Giter Site home page Giter Site logo

matthewgallina / smockin Goto Github PK

View Code? Open in Web Editor NEW
81.0 10.0 24.0 11.92 MB

Dynamic API, S3 & Mail mocking for web, mobile & microservice development.

Home Page: https://www.smockin.com

License: Apache License 2.0

Shell 0.55% Batchfile 0.27% Java 49.56% CSS 1.83% HTML 8.75% JavaScript 38.92% RAML 0.09% Dockerfile 0.04%
api raml api-mocking api-rest mock-server mocking java-8 simulation api-simulation api-mock

smockin's Introduction

version 2.20.1


NEW! in version 2.20.0

  • Ngrok is now built into sMockin.
  • Your API mocks can now be made publicly accessible in seconds!

Change of JDK version



Dynamic API, S3 Bucket & Mail Server mocking for application development & QA testing



OVERVIEW

sMockin is a development tool used to dynamically mock API endpoints, S3 buckets & Email Accounts.

Featuring a rich UI an built in mock servers, creating and managing mocks can be done quickly, both with or without code.

Whether you are a developer who needs to simulate RESTFul API endpoints or an engineer working with complex microservice infrastructure, sMockin can help by mimicking any services that are either unavailable or otherwise too difficult or time consuming to set up.

sMockin runs as a small web app which can be either installed locally onto a personal machine or hosted centrally and used by multiple users.


dashboard

client call


KEY FEATURES

  • Create dynamic API mocks to mimic real world application behaviour.
  • Create & manage S3 Bucket mocks where an AWS account may not be available.
  • (NEW) Create & manage mock mail inboxes.
  • Run sMockin centrally and create user accounts for your team.
  • Import / Export mocks to share between your team & version control.
  • Monitor and log traffic going to the HTTP or S3 mock servers.
  • Choose whether to build your API mocks using JavaScript or without code.
  • A rich and complete UI solution.

REQUIREMENTS

  • Java 8
  • Maven 3

Please Note - All bash scripts were written and tested on GNU Bash version 3.2.57(1)-release. - All BAT files were were written and tested on Windows 7.


QUICK START

Clone this repo:

git clone https://github.com/mgtechsoftware/smockin.git

Change the current directory to smockin and build the project:

cd smockin

mvn clean install

Run the install and start scripts (for windows, use the equivalent .bat files):

./install.sh

./start.sh

Finally from your browser open the dashboard:

http://localhost:8000/index.html

(If running sMockin for the first time then please allow 20 - 30 secs for the app to fully start up.)


For further details, please consult the Installation and Getting Started guides in the Wiki.

You can also check out the latest help guide here


TROUBLESHOOTING

Please consult the Configuration & Troubleshooting guide.


LICENCE

sMockin is licensed in accordance with the terms of the Apache License, Version 2.0.

The full text of this license can be found at https://www.apache.org/licenses/LICENSE-2.0


ACKNOWLEDGEMENTS / THIRD PARTIES

sMockin is built upon the following frameworks:

    Spring Boot                 -       https://projects.spring.io/spring-boot
    Hibernate                   -       http://hibernate.org
    Spark                       -       http://sparkjava.com
    Maven                       -       https://maven.apache.org
    AngularJS                   -       https://angularjs.org
    UI Bootstrap                -       https://angular-ui.github.io/bootstrap
    vkBeautify                  -       https://github.com/vkiryukhin/vkBeautify
    H2                          -       http://www.h2database.com
    HikariCP                    -       https://brettwooldridge.github.io/HikariCP
    Apache Commons              -       https://commons.apache.org/
    Apache Http Components      -       https://hc.apache.org/
    Apache Commons IO           -       https://commons.apache.org/proper/commons-io/
    JUnit                       -       http://junit.org
    Mockito                     -       http://site.mockito.org/
    Apache ActiveMQ             -       http://activemq.apache.org/
    Apache FtpServer            -       https://mina.apache.org/ftpserver-project/
    RAML Parser 2               -       https://github.com/raml-org/raml-java-parser
    Jasypt                      -       http://www.jasypt.org/
    Java-JWT                    -       https://github.com/auth0/java-jwt
    JWT-Decode                  -       https://github.com/auth0/jwt-decode
    JQuery                      -       https://jquery.com/
    Code Mirror                 -       https://codemirror.net/
    S3proxy                     -       https://github.com/gaul/s3proxy
    GreenMail                   -       https://greenmail-mail-test.github.io/greenmail/
    java-ngrok                  -       https://github.com/alexdlaird/java-ngrok
    Ngrok                       -       https://ngrok.com/


RECENT RELEASE FEATURES


IMPORTANT! New in version 2.19.0

From 2.19.0 onwards, sMockin's internal H2 database has been upgraded to v2.1 (moving away from v1.4).

Unfortunately v2 of H2 is not backwards compatible with v1.4, which means you will need to export your existing data and migrate this to the new DB.


NOTE, the latest version of sMockin to continue using v1.4 of H2 will be kept here:

https://github.com/matthewgallina/smockin/tree/2.18.4


To upgrade to 2.19.0, please follow the steps below:

  1. In your current version of sMockin (2.18.x or earlier), use the Export feature to backup any mock data your wish to keep.
  2. Next, go to the user home directory sMockin is running from and rename the config directory .smockin to .smockin_2.18.4.
  3. Download version 2.19.0 (or later) of sMockin. We recommend keeping the previous version of sMockin on your system also for the short term, so you can switch between versions until all of your data has been moved across.
  4. Using the new version of sMockin, run the install script. This will create a new .smockin config directory, containing the newer H2 database.
  5. Launch the new version of sMockin using one of the start/run scripts.
  6. From the sMockin dashboard, use the Import feature to save your mock data to the new database.

Unfortunately not all data can be automatically exported and so will need to be handled manually. This includes:

  • Mail mocks and messages
  • Server configuration
  • Key/Value Data

Should you wish to switch between versions of sMockin (as suggested above), then this can be done by simply switching the .smockin config directory in your user home and ensuring this aligns with version of sMockin you wish to run.

A good practice we advise is to rename/suffix any unused .smockin config directories with the version of the sMockin application they align too, so as to make them easily identifiable.

For example:

.smockin_2.18.4 <- unused config dir
.smockin_2.19.0 <- unused config dir
.smockin <- this is the active config dir



New in version 2.18.0

  • Introducing the Email Mock Server!
  1. Swap in the sMockin mock mail server (running on port 8003) as your application's delivery mail server.
  2. Create Email accounts in the sMockin UI.
  3. View all received email messages from the UI (including mail attachments).
  4. Support for mail inbox auto-generation so as to support random addresses during testing.

Mail messages can be stored in-memory or saved to database.



New in version 2.17.0

  • Introducing S3 bucket mocking!

Simply create a mock bucket, build your S3 content and point your application to the S3 mock server.

Featuring different synchronisation modes, developing and testing around S3 has never been easier.

Once you've created your first bucket, this can be accessed from port 8002 using any S3 client like so:

s3 client



New in version 2.11.0

  • Introducing Block, mock and Swap!

With a number of users discovering sMockin as a great way to monitor live dev traffic, you can now intercept and manipulate on the fly, any requests via the live logging tool.

Combined with the proxy server, this now gives developers and QA engineers, complete visibility and control over all HTTP traffic running between your applications.



New in version 2.10.0

  • The sMockin proxy server now supports multiple url destinations which can be mapped to specific paths.

For example, say you are running 3 independent microservices for each of the following services:

/v1/product   -> localhost:9001
/v1/customer  -> localhost:9002
/v1/address   -> localhost:9003

You can now add these 'Path to URL' mappings to sMockin and then decide whether swap out any traffic between these services and the end user with mocked responses using various strategies.

This can be highly useful for either temporarily modifying an existing API or adding (mocking) an entirely new endpoint.



ABOUT

sMockin is designed and actively maintained by Matthew Gallina.

Why the name sMockin? Whilst it may sound like an old english middle ages embroidery technique, the name actually came about more in relation to a classic Jim Carey movie quote 'Smokin'.

...and yes, far too much thought and time went into it.

smockin's People

Contributors

dependabot[bot] avatar dtremblay avatar jlleitschuh avatar matthewgallina avatar zgibek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

smockin's Issues

CLI REST API

Hi!
I want to do automated backups of our mock data.
In my opinion the simplest method would be to have an endpoint that downloads all data.
I've seen that there already is an POST endpoint that we could maybe use, but it requires the request ids.

Is there such a mechanism already in place, or a simple way of getting all the data?
(via a curl call, I'm fine with downloading the database as well)

Deployment in kubernetes with nginx ingress controller

Good Evening, I'm trying to configure smockin behind nginx-ingress in a kubernets cluster and it works fine, but when I activate the MULTI_USER_MODE variable to TRUE I can no longer access due to authentication activation, can you tell me which annotations I can use in my nginx-ingress on kubernetes.?

Thanks

Responding to Websocket onconnect and onmessage methods

The product is really good for REST calls. I am now trying to respond to Websocket messages and connection events.

Is there a way to mock a response from the server when a client connects to the websocket?
Similarly, how would I add mocked responses for a given websocket request?

Is there a way to generate server push events?

Thanks!

Dan

Unable to use live trace in Docker

I'm using Smockin inside a Kubernetes environment. Traffic is routed via Traefik to the docker container.

Everything works perfectly, but I'm having issues enabling the HTTP live feed.
After checking the chrome DevTools it seems that after opening the Live Feed panel Smockin tries to open a connection to: http://localhost:8000/liveLoggingFeed .
I'm assuming this is due to https://github.com/mgtechsoftware/smockin/blob/master/src/main/resources/public/js/controller/view_http_requests.js#L172

Since hostname and port should be the same as the ones where the UI is served, may we be able to retrieve them dynamically?

Post body issues with the use of Custom JavaScript option

We are currently using the a docker images the latest one as per the documentation here: https://hub.docker.com/r/mgallina/smockin

We are running the following this commands to boot up the server.

1. Run docker run --name smockin -d -p 8000:8000 -p 8001:8001 mgallina/smockin:290
2. Open the sMockin dashboard http://localhost:8000/index.html

We are using the Javascript based mocking option to create/configure the post endpoint and tried hitting that passing in a json body but we see the following.

ERROR

Looks like there is an issue with the Javascript driving this mock <eval>:1:161 Missing close quote

var request = {  path : null, pathVars : {}, body : null, headers : {}, parameters : {}};request.path='/money-movement/rtp/v1/credit-transfers'; request.body='{

                                                                                                                                                                 ^ in <eval> at line number 1 at column number 161

Not sure if we are missing something here?

Vulnerable docker container due to obselete debian:jessie base image

Hi Matthew,

I did a scan of the docker image for smockin:240. My scanner found hundreds of vulnerabilities.

You have not shared the Dockerfile for the image, so it's a bit more guess work for me to remediate this problem.

Could you share your Dockerfile with me (or in Github) so that we could generate a more secure one, please?

Thanks!

Dan

FileNotFoundException

Hi,
smockin version [2201] running on windows server 2022,
java version "11.0.20" 2023-07-18 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.20+9-LTS-256)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.20+9-LTS-256, mixed mode)
Http endpoint with javascrip logic parse XML:
image
Everything is working fine, but smockin on all requests, write this exception to the log:
2023-12-19 13:03:20,673 ERROR [qtp1355973015-102] com.smockin.mockserver.service.JavaScriptResponseHandlerImpl : Error loading JS extensions java.io.FileNotFoundException: file:\C:\WEB\smockin-2.20.1.sa.win-x64\lib\smockin-2.20.1.jar!\BOOT-INF\classes!\js-extensions\from-xml.min.js (The filename, directory name, or volume label syntax is incorrect) at java.base/java.io.FileInputStream.open0(Native Method) at java.base/java.io.FileInputStream.open(FileInputStream.java:219) at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157) at java.base/java.io.FileInputStream.<init>(FileInputStream.java:112) at java.base/java.io.FileReader.<init>(FileReader.java:60) at com.smockin.mockserver.service.JavaScriptResponseHandlerImpl.loadEngineExtensions(JavaScriptResponseHandlerImpl.java:312) at com.smockin.mockserver.service.JavaScriptResponseHandlerImpl.buildEngine(JavaScriptResponseHandlerImpl.java:302) at com.smockin.mockserver.service.JavaScriptResponseHandlerImpl.executeJS(JavaScriptResponseHandlerImpl.java:89) at com.smockin.mockserver.service.JavaScriptResponseHandlerImpl.executeUserResponse(JavaScriptResponseHandlerImpl.java:55) at com.smockin.mockserver.service.JavaScriptResponseHandlerImpl$$FastClassBySpringCGLIB$$53a8bb1b.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708) at com.smockin.mockserver.service.JavaScriptResponseHandlerImpl$$EnhancerBySpringCGLIB$$a06d86e.executeUserResponse(<generated>) at com.smockin.mockserver.engine.MockedRestServerEngineUtils.processRequest(MockedRestServerEngineUtils.java:346) at com.smockin.mockserver.engine.MockedRestServerEngineUtils.handleMockLookup(MockedRestServerEngineUtils.java:143) at com.smockin.mockserver.engine.MockedRestServerEngineUtils.loadMockedResponse(MockedRestServerEngineUtils.java:93) at com.smockin.mockserver.engine.MockedRestServerEngineUtils$$FastClassBySpringCGLIB$$932885eb.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708) at com.smockin.mockserver.engine.MockedRestServerEngineUtils$$EnhancerBySpringCGLIB$$98137ade.loadMockedResponse(<generated>) at com.smockin.mockserver.engine.MockedRestServerEngine.processResponse(MockedRestServerEngine.java:333) at com.smockin.mockserver.engine.MockedRestServerEngine.lambda$buildGlobalHttpEndpointsHandler$6(MockedRestServerEngine.java:277) at spark.RouteImpl$1.handle(RouteImpl.java:72) at spark.http.matching.Routes.execute(Routes.java:61) at spark.http.matching.MatcherFilter.doFilter(MatcherFilter.java:134) at spark.embeddedserver.jetty.JettyHandler.doHandle(JettyHandler.java:50) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1598) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:59) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.Server.handle(Server.java:516) at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487) at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:137) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034) at java.base/java.lang.Thread.run(Thread.java:834)

File location is OK:
image
and also js location is ok
image

Stay on Endpoint details after save

When using sMockin, I often need to change data in the same endpoint multiple times.
At the moment the process is:

  1. Change data
  2. Hit save
  3. Search for the endpoint in the list
  4. Change data again

This is kind of time consuming.

It would be nice to stay on the endpoint details after clicking on save. Maybe you could just change the current save button to stay on the page or add another button "Save & Exit".

Thanks for your help

Deployment in kubernetes with nginx ingress controller

Hello,

Smockin is great and works perfectly locally in our dev stack :)

I've deployed smockin in a kubernetes cluster for my frontend dev team to be able to use it without having to manage it locally.

It mostly works but we've hit a limitation : HTTP live feed (and new response interception feature) does not work.

Probable cause is that admin interface and api are reachable on 2 separated domains on standard 443 HTTPS port. This is mandatory when using default kubernetes nginx ingress controller : we can only expose 80 & 443 ports.

Could Smockin be updated to allow such a setup ?
Or maybe is such a setup already possible with some config step or workaround ?

Copy endpoint

Sometimes we need to have a copy of an endpoint and change only a few things (e.g. the path).
At the moment we export the endpoint, make the changes in the json, and import it again.

It would be nice to have a "Copy endpoint" option, which will open the create endpoint page prefilled with the existing data. There we can make our changes and have an easy was for copying endpoints.

Record and replay feature

  • Record and replay will be the interesting feature for integration testing phase
  • If we have a feature to set up a mock by proxying the real request and responses and later redo the integration testing using smockin

Use a local server address

Hello,

Is it possible to configure the Mock server for a local address only (in 127.x.x.x), to avoid to expose Mock on network ?

Thanks,

Error when try to update proxy config

when I try to update proxy config, then the interface shows the message: "Oops looks like something went wrong!" and the servers throw an "NullPointerException".
I'm on Ubuntu 22.04.2 LTS, running smockin on docker version 2201
I tried the version 2200 and 2190, but both throw the same error

image

2023-07-24 17:17:12,554 ERROR com.smockin.admin.controller.ExceptionHandlerController : Error
java.lang.NullPointerException: null
        at com.smockin.mockserver.engine.ProxyMappingCache.lambda$update$3(ProxyMappingCache.java:44)
        at java.base/java.util.concurrent.atomic.AtomicReference.getAndUpdate(Unknown Source)
        at com.smockin.mockserver.engine.ProxyMappingCache.update(ProxyMappingCache.java:41)
        at com.smockin.admin.service.MockedServerEngineServiceImpl.saveProxyForwardMappingsForUser(MockedServerEngineServiceImpl.java:505)
        at com.smockin.admin.service.MockedServerEngineServiceImpl$$FastClassBySpringCGLIB$$b636bd76.invoke(<generated>)
        at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)
        at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123)
        at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)
        at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)
        at com.smockin.admin.service.MockedServerEngineServiceImpl$$EnhancerBySpringCGLIB$$698c5257.saveProxyForwardMappingsForUser(<generated>)
        at com.smockin.admin.controller.MockedServerEngineController.postServerConfigUserProxyMappings(MockedServerEngineController.java:231)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
        at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150)
        at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808)
        at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1072)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:965)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
        at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:517)
        at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:584)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
        at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1656)
        at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:292)
        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1626)
        at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1626)
        at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1626)
        at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)
        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1626)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:552)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:505)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
        at org.eclipse.jetty.server.Server.handle(Server.java:516)
        at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487)
        at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
        at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
        at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
        at java.base/java.lang.Thread.run(Unknown Source)

Fatal error compiling: java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor

Hi Matt,

I just got an erro like this,

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project smockin: Fatal error compiling: java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x81368c9) cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.processing to unnamed module @0x81368c9 -> [Help 1]

Any idea?

Create rule with input data (json)

Hi All,

I created an HTTP Endpoint with some rule conditions and it´s working.

image

image

But if I have 2 arrays in my request and added it to the rule conditions, it doesn't work.

This is my request:

{
"partyadddata": {
"attribute": [{
"name": "servtype",
"value": "99"
}, {
"name": "authcode",
"value": "AAA"
}
]
},
"source": {
"name": "Pedro",
"lastname": "Yepes",
"age": "35"
}
}

This is my rule conditions:
image

image

Thank you very much for your help!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.