I just started jbpm tutorial here https://www.jbpm.org/learn/gettingStartedUsingSingleZipDistribution.html
Was able to start the server (after some suffering due to Reflection / access restrictions after java 9) .. then I went with the first step to open and deploy the sample process provided (Evaluation process)
https://youtu.be/-fxL2iioPRI
I got an error message on the business-central screen while trying to open the process : error retrieving datatypes
I checked the logs, It is not very useful, I wonder where I can look and trace the issue
14:49:06,862 INFO [org.guvnor.common.services.builder.ResourceChangeIncrementalBuilder] (EJB default - 2) Incremental build request being processed: default://master#MySpace/Evaluation_Process/src/main/resources/META-INF/persistence.xml (added).
14:49:06,888 ERROR [stderr] (EJB default - 2) java.lang.IllegalStateException: size = 2
14:49:06,889 ERROR [stderr] (EJB default - 2) at deployment.business-central.war//net.bytebuddy.matcher.FilterableList$AbstractBase.getOnly(FilterableList.java:139)
14:49:06,889 ERROR [stderr] (EJB default - 2) at deployment.business-central.war//net.bytebuddy.implementation.InvocationHandlerAdapter.apply(InvocationHandlerAdapter.java:235)
14:49:06,889 ERROR [stderr] (EJB default - 2) at deployment.business-central.war//net.bytebuddy.implementation.InvocationHandlerAdapter$ForInstance$Appender.apply(InvocationHandlerAdapter.java:362)
14:49:06,889 ERROR [stderr] (EJB default - 2) at deployment.business-central.war//net.bytebuddy.dynamic.scaffold.TypeWriter$MethodPool$Record$ForDefinedMethod$WithBody.applyCode(TypeWriter.java:713)
14:49:06,889 ERROR [stderr] (EJB default - 2) at deployment.business-central.war//net.bytebuddy.dynamic.scaffold.TypeWriter$MethodPool$Record$ForDefinedMethod$WithBody.applyBody(TypeWriter.java:698)
14:49:06,889 ERROR [stderr] (EJB default - 2) at deployment.business-central.war//net.bytebuddy.dynamic.scaffold.TypeWriter$MethodPool$Record$ForDefinedMethod.apply(TypeWriter.java:605)
14:49:06,916 ERROR [stderr] (EJB default - 2) ... 93 more
14:49:06,916 ERROR [org.guvnor.common.services.builder.ResourceChangeIncrementalBuilder] (EJB default - 2) An error occurred while executing the Local Source Config stage.: java.lang.RuntimeException: An error occurred while executing the Local Source Config stage.
at deployment.business-central.war//org.guvnor.ala.pipeline.execution.PipelineExecutor.continuePipeline(PipelineExecutor.java:126)
at deployment.business-central.war//org.guvnor.ala.pipeline.execution.PipelineExecutor.execute(PipelineExecutor.java:76)
at deployment.business-central.war//org.kie.workbench.common.services.backend.builder.ala.BuildPipelineInvoker.invokeLocalBuildPipeLine(BuildPipelineInvoker.java:88)
at deployment.business-central.war//org.kie.workbench.common.services.backend.builder.ala.BuildPipelineInvoker$Proxy$_$$_WeldClientProxy.invokeLocalBuildPipeLine(Unknown Source)
at deployment.business-central.war//org.kie.workbench.common.services.backend.builder.service.BuildServiceHelper.invokeLocalBuildPipeLine(BuildServiceHelper.java:156)
at deployment.business-central.war//org.kie.workbench.common.services.backend.builder.service.BuildServiceHelper.localBuild(BuildServiceHelper.java:67)
at deployment.business-central.war//org.kie.workbench.common.services.backend.builder.service.BuildServiceHelper$Proxy$_$$_WeldClientProxy.localBuild(Unknown Source)
at deployment.business-central.war//org.kie.workbench.common.services.backend.builder.service.BuildServiceImpl.build(BuildServiceImpl.java:64)
at deployment.business-central.war//org.kie.workbench.common.services.backend.builder.service.BuildServiceImpl$Proxy$_$$_WeldClientProxy.build(Unknown Source)
at deployment.business-central.war//org.guvnor.common.services.builder.ResourceChangeIncrementalBuilder$1.execute(ResourceChangeIncrementalBuilder.java:132)
.
.
Caused by: java.lang.IllegalArgumentException: Illegal character in path at index 1: ${input.root-path}
at java.base/java.net.URI.create(URI.java:906)
at deployment.business-central.war//org.kie.workbench.common.services.backend.builder.ala.LocalSourceConfigExecutor.apply(LocalSourceConfigExecutor.java:51)
at deployment.business-central.war//org.kie.workbench.common.services.backend.builder.ala.LocalSourceConfigExecutor.apply(LocalSourceConfigExecutor.java:33)
at deployment.business-central.war//org.kie.workbench.common.services.backend.builder.ala.LocalSourceConfigExecutor$Proxy$_$$_WeldClientProxy.apply(Unknown Source)
at deployment.business-central.war//org.guvnor.ala.pipeline.execution.PipelineExecutor.lambda$continuePipeline$0(PipelineExecutor.java:114)
at deployment.business-central.war//org.guvnor.ala.pipeline.StageUtil$1.execute(StageUtil.java:38)
at deployment.business-central.war//org.guvnor.ala.pipeline.StageUtil$1.execute(StageUtil.java:33)
at deployment.business-central.war//org.guvnor.ala.pipeline.execution.PipelineExecutor.continuePipeline(PipelineExecutor.java:94)
... 86 more
Caused by: java.net.URISyntaxException: Illegal character in path at index 1: ${input.root-path}
at java.base/java.net.URI$Parser.fail(URI.java:2966)
at java.base/java.net.URI$Parser.checkChars(URI.java:3137)
at java.base/java.net.URI$Parser.parseHierarchical(URI.java:3219)
at java.base/java.net.URI$Parser.parse(URI.java:3178)
at java.base/java.net.URI.<init>(URI.java:623)
at java.base/java.net.URI.create(URI.java:904)
... 93 more
14:49:10,127 ERROR [stderr] (default task-13) java.lang.IllegalStateException: size = 2
14:49:10,127 ERROR [stderr] (default task-13) at deployment.business-central.war//net.bytebuddy.matcher.FilterableList$AbstractBase.getOnly(FilterableList.java:139)
14:49:10,127 ERROR [stderr] (default task-13) at deployment.business-central.war//net.bytebuddy.implementation.InvocationHandlerAdapter.apply(InvocationHandlerAdapter.java:235)
14:49:10,127 ERROR [stderr] (default task-13) at deployment.business-central.war//net.bytebuddy.implementation.InvocationHandlerAdapter$ForInstance$Appender.apply(InvocationHandlerAdapter.java:362)
14:49:10,127 ERROR [stderr] (default task-13) at deployment.business-central.war//net.bytebuddy.dynamic.scaffold.TypeWriter$MethodPool$Record$ForDefinedMethod$WithBody.applyCode(TypeWriter.java:713)
14:49:10,128 ERROR [stderr] (default task-13) at deployment.business-central.war//net.bytebuddy.dynamic.scaffold.TypeWriter$MethodPool$Record$ForDefinedMethod$WithBody.applyBody(TypeWriter.java:698)
14:49:10,128 ERROR [stderr] (default task-13) at deployment.business-central.war//net.bytebuddy.dynamic.scaffold.TypeWriter$MethodPool$Record$ForDefinedMethod.apply(TypeWriter.java:605)
14:49:10,128 ERROR [stderr] (default task-13) at deployment.business-central.war//net.bytebuddy.dynamic.scaffold.TypeWriter$Default$ForCreation.create(TypeWriter.java:5133)
14:49:10,128 ERROR [stderr] (default task-13) at deployment.business-central.war//net.bytebuddy.dynamic.scaffold.TypeWriter$Default.make(TypeWriter.java:1933))
.
.
14:49:10,146 ERROR [stderr] (default task-13) java.lang.IllegalArgumentException: Illegal character in path at index 1: ${input.root-path}
14:49:10,146 ERROR [stderr] (default task-13) at java.base/java.net.URI.create(URI.java:906)
14:49:10,146 ERROR [stderr] (default task-13) at deployment.business-central.war//org.kie.workbench.common.services.backend.builder.ala.LocalSourceConfigExecutor.apply(LocalSourceConfigExecutor.java:51)
14:49:10,147 ERROR [stderr] (default task-13) at deployment.business-central.war//org.kie.workbench.common.services.backend.builder.ala.LocalSourceConfigExecutor.apply(LocalSourceConfigExecutor.java:33)
14:49:10,147 ERROR [stderr] (default task-13) at deployment.business-central.war//org.kie.workbench.common.services.backend.builder.ala.LocalSourceConfigExecutor$Proxy$_$$_WeldClientProxy.apply(Unknown Source)
14:49:10,147 ERROR [stderr] (default task-13) at deployment.business-central.war//org.guvnor.ala.pipeline.execution.PipelineExecutor.lambda$continuePipeline$0(PipelineExecutor.java:114)
14:49:10,147 ERROR [stderr] (default task-13) at deployment.business-central.war//org.guvnor.ala.pipeline.StageUtil$1.execute(StageUtil.java:38)
14:49:10,147 ERROR [stderr] (default task-13) at deployment.business-central.war//org.guvnor.ala.pipeline.StageUtil$1.execute(StageUtil.java:33)
14:49:10,147 ERROR [stderr] (default task-13) at deployment.business-central.war//org.guvnor.ala.pipeline.execution.PipelineExecutor.continuePipeline(PipelineExecutor.java:94)
14:49:10,148 ERROR [stderr] (default task-13) at deployment.business-central.war//org.guvnor.ala.pipeline.execution.PipelineExecutor.execute(PipelineExecutor.java:76)
14:49:10,148 ERROR [stderr] (default task-13) at deployment.business-central.war//org.kie.workbench.common.services.backend.builder.ala.BuildPipelineInvoker.invokeLocalBuildPipeLine(BuildPipelineInvoker.java:88)
14:49:10,148 ERROR [stderr] (default task-13) at deployment.business-central.war//org.kie.workbench.common.services.backend.builder.ala.BuildPipelineInvoker$Proxy$_$$_WeldClientProxy.invokeLocalBuildPipeLine(Unknown Source)
14:49:10,148 ERROR [stderr] (default task-13) at deployment.business-central.war//org.kie.workbench.common.services.backend.builder.service.BuildServiceHelper.invokeLocalBuildPipeLine(BuildServiceHelper.java:189)
14:49:10,148 ERROR [stderr] (default task-13) at deployment.business-central.war//org.kie.workbench.common.services.backend.builder.service.BuildServiceHelper.localBuildAndDeploy(BuildServiceHelper.java:143)
14:49:10,148 ERROR [stderr] (default task-13) at deployment.business-central.war//org.kie.workbench.common.services.backend.builder.service.BuildServiceHelper$Proxy$_$$_WeldClientProxy.localBuildAndDeploy(Unknown Source)
14:49:10,149 ERROR [stderr] (default task-13) at deployment.business-central.war//org.kie.workbench.common.services.backend.builder.service.BuildServiceImpl.buildAndDeploy(BuildServiceImpl.java:101)
14:49:10,149 ERROR [stderr] (default task-13) at deployment.business-central.war//org.kie.workbench.common.services.backend.builder.service.BuildServiceImpl.buildAndDeploy(BuildServiceImpl.java:84)
14:49:10,149 ERROR [stderr] (default task-13) at deployment.business-central.war//org.kie.workbench.common.services.backend.builder.service.BuildServiceImpl$Proxy$_$$_WeldClientProxy.buildAndDeploy(Unknown Source)
14:49:10,149 ERROR [stderr] (default task-13) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:49:10,149 ERROR [stderr] (default task-13) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
14:49:10,149 ERROR [stderr] (default task-13) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
14:49:10,149 ERROR [stderr] (default task-13) at java.base/java.lang.reflect.Method.invoke(Method.java:567)
14:49:10,149 ERROR [stderr] (default task-13) at deployment.business-central.war//org.jboss.errai.bus.server.io.AbstractRPCMethodCallback.invokeMethodFromMessage(AbstractRPCMethodCallback.java:65)
.
.
14:49:10,162 ERROR [stderr] (default task-13) Caused by: java.net.URISyntaxException: Illegal character in path at index 1: ${input.root-path}
14:49:10,163 ERROR [stderr] (default task-13) ... 93 more
I doubt the issue is with db configuration (not sure) ... it is using h2 by default as I learned.
Edit: I switched to local postgres 15, problem is still there
jvm: openjdk 16
bpm: latest 7.7.3.0
OS: windows
Related
I'm miograting an app in our server, from Websphere to JBoss EAP7.
The app is working fine in the Webspehere server but when we migrate in in JBoss, we are encountering an exception upon logging in the app.
java.lang.IllegalArgumentException: org.infinispan.commons.ma rshall.NotSerializableException
Here is the stacktrace of the error.
2019-05-28 17:17:38,161 ERROR [stderr] (default task-7) java.lang.IllegalArgumentException: org.infinispan.commons.ma rshall.NotSerializableException: ph.com.crm.common.admin.ListLovListVO
2019-05-28 17:17:38,162 ERROR [stderr] (default task-7) at org.wildfly.clustering.web.infinispan.session.coar se.CoarseSessionAttributes.setAttribute(CoarseSessionAttributes.java:63)
2019-05-28 17:17:38,162 ERROR [stderr] (default task-7) at org.wildfly.clustering.web.undertow.session.Distri butableSession.setAttribute(DistributableSession.java:147)
2019-05-28 17:17:38,162 ERROR [stderr] (default task-7) at io.undertow.servlet.spec.HttpSessionImpl.setAttrib ute(HttpSessionImpl.java:169)
2019-05-28 17:17:38,162 ERROR [stderr] (default task-7) at ph.com.crm.modules.security.LoginProcessor.t oHomePage(LoginProcessor.java:803)
2019-05-28 17:17:38,162 ERROR [stderr] (default task-7) at ph.com.crm.modules.security.LoginProcessor.p erformTask(LoginProcessor.java:327)
2019-05-28 17:17:38,162 ERROR [stderr] (default task-7) at ph.com.crm.modules.security.LoginProcessor.e xecute(LoginProcessor.java:146)
2019-05-28 17:17:38,162 ERROR [stderr] (default task-7) at ph.com.crm.modules.security.ActionListener.e xecute(ActionListener.java:41)
2019-05-28 17:17:38,162 ERROR [stderr] (default task-7) at ph.com.common.servlet.CommonServlet.performT ask(CommonServlet.java:289)
2019-05-28 17:17:38,163 ERROR [stderr] (default task-7) at ph.com.common.servlet.CommonServlet.doPost(C ommonServlet.java:82)
2019-05-28 17:17:38,163 ERROR [stderr] (default task-7) at javax.servlet.http.HttpServlet.service(HttpServlet .java:707)
2019-05-28 17:17:38,163 ERROR [stderr] (default task-7) at javax.servlet.http.HttpServlet.service(HttpServlet .java:790)
2019-05-28 17:17:38,163 ERROR [stderr] (default task-7) at io.undertow.servlet.handlers.ServletHandler.handle Request(ServletHandler.java:85)
2019-05-28 17:17:38,163 ERROR [stderr] (default task-7) at io.undertow.servlet.handlers.security.ServletSecur ityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
2019-05-28 17:17:38,163 ERROR [stderr] (default task-7) at io.undertow.servlet.handlers.ServletDispatchingHan dler.handleRequest(ServletDispatchingHandler.java:36)
2019-05-28 17:17:38,163 ERROR [stderr] (default task-7) at org.wildfly.extension.undertow.security.SecurityCo ntextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
2019-05-28 17:17:38,163 ERROR [stderr] (default task-7) at io.undertow.server.handlers.PredicateHandler.handl eRequest(PredicateHandler.java:43)
2019-05-28 17:17:38,163 ERROR [stderr] (default task-7) at io.undertow.servlet.handlers.security.SSLInformati onAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
2019-05-28 17:17:38,164 ERROR [stderr] (default task-7) at io.undertow.servlet.handlers.security.ServletAuthe nticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
2019-05-28 17:17:38,164 ERROR [stderr] (default task-7) at io.undertow.server.handlers.PredicateHandler.handl eRequest(PredicateHandler.java:43)
2019-05-28 17:17:38,164 ERROR [stderr] (default task-7) at io.undertow.security.handlers.AbstractConfidential ityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
2019-05-28 17:17:38,164 ERROR [stderr] (default task-7) at io.undertow.servlet.handlers.security.ServletConfi dentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
2019-05-28 17:17:38,164 ERROR [stderr] (default task-7) at io.undertow.security.handlers.AuthenticationMechan ismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
2019-05-28 17:17:38,164 ERROR [stderr] (default task-7) at io.undertow.servlet.handlers.security.CachedAuthen ticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
2019-05-28 17:17:38,164 ERROR [stderr] (default task-7) at io.undertow.security.handlers.NotificationReceiver Handler.handleRequest(NotificationReceiverHandler.java:50)
2019-05-28 17:17:38,165 ERROR [stderr] (default task-7) at io.undertow.security.handlers.AbstractSecurityCont extAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
2019-05-28 17:17:38,165 ERROR [stderr] (default task-7) at io.undertow.server.handlers.PredicateHandler.handl eRequest(PredicateHandler.java:43)
2019-05-28 17:17:38,165 ERROR [stderr] (default task-7) at org.wildfly.extension.undertow.security.jacc.JACCC ontextIdHandler.handleRequest(JACCContextIdHandler.java:61)
2019-05-28 17:17:38,165 ERROR [stderr] (default task-7) at io.undertow.server.handlers.PredicateHandler.handl eRequest(PredicateHandler.java:43)
2019-05-28 17:17:38,165 ERROR [stderr] (default task-7) at io.undertow.server.handlers.PredicateHandler.handl eRequest(PredicateHandler.java:43)
2019-05-28 17:17:38,165 ERROR [stderr] (default task-7) at io.undertow.servlet.handlers.ServletInitialHandler .handleFirstRequest(ServletInitialHandler.java:285)
2019-05-28 17:17:38,165 ERROR [stderr] (default task-7) at io.undertow.servlet.handlers.ServletInitialHandler .dispatchRequest(ServletInitialHandler.java:264)
2019-05-28 17:17:38,166 ERROR [stderr] (default task-7) at io.undertow.servlet.handlers.ServletInitialHandler .access$000(ServletInitialHandler.java:81)
2019-05-28 17:17:38,166 ERROR [stderr] (default task-7) at io.undertow.servlet.handlers.ServletInitialHandler $1.handleRequest(ServletInitialHandler.java:175)
2019-05-28 17:17:38,166 ERROR [stderr] (default task-7) at io.undertow.server.Connectors.executeRootHandler(C onnectors.java:202)
2019-05-28 17:17:38,166 ERROR [stderr] (default task-7) at io.undertow.server.HttpServerExchange$1.run(HttpSe rverExchange.java:792)
2019-05-28 17:17:38,166 ERROR [stderr] (default task-7) at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1149)
2019-05-28 17:17:38,166 ERROR [stderr] (default task-7) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624)
2019-05-28 17:17:38,167 ERROR [stderr] (default task-7) at java.lang.Thread.run(Thread.java:748)
2019-05-28 17:17:38,167 ERROR [stderr] (default task-7) Caused by: org.infinispan.commons.marshall.NotSerializableExc eption: ph.com.crm.common.admin.ListLovListVO
2019-05-28 17:17:38,167 ERROR [stderr] (default task-7) java.lang.Exception: org.infinispan.commons.marshall.NotSeria lizableException: ph.com.crm.common.admin.ListLovListVO
2019-05-28 17:17:38,168 ERROR [stderr] (default task-7) at ph.com.crm.modules.security.LoginProcessor.t oHomePage(LoginProcessor.java:809)
2019-05-28 17:17:38,168 ERROR [stderr] (default task-7) at ph.com.crm.modules.security.LoginProcessor.p erformTask(LoginProcessor.java:327)
2019-05-28 17:17:38,168 ERROR [stderr] (default task-7) at ph.com.crm.modules.security.LoginProcessor.e xecute(LoginProcessor.java:146)
2019-05-28 17:17:38,168 ERROR [stderr] (default task-7) at ph.com.crm.modules.security.ActionListener.e xecute(ActionListener.java:41)
2019-05-28 17:17:38,168 ERROR [stderr] (default task-7) at ph.com.common.servlet.CommonServlet.performT ask(CommonServlet.java:289)
2019-05-28 17:17:38,168 ERROR [stderr] (default task-7) at ph.com.common.servlet.CommonServlet.doPost(C ommonServlet.java:82)
2019-05-28 17:17:38,169 ERROR [stderr] (default task-7) at javax.servlet.http.HttpServlet.service(HttpServlet .java:707)
2019-05-28 17:17:38,169 ERROR [stderr] (default task-7) at javax.servlet.http.HttpServlet.service(HttpServlet .java:790)
2019-05-28 17:17:38,169 ERROR [stderr] (default task-7) at io.undertow.servlet.handlers.ServletHandler.handle Request(ServletHandler.java:85)
2019-05-28 17:17:38,169 ERROR [stderr] (default task-7) at io.undertow.servlet.handlers.security.ServletSecur ityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
2019-05-28 17:17:38,169 ERROR [stderr] (default task-7) at io.undertow.servlet.handlers.ServletDispatchingHan dler.handleRequest(ServletDispatchingHandler.java:36)
2019-05-28 17:17:38,169 ERROR [stderr] (default task-7) at org.wildfly.extension.undertow.security.SecurityCo ntextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
2019-05-28 17:17:38,169 ERROR [stderr] (default task-7) at io.undertow.server.handlers.PredicateHandler.handl eRequest(PredicateHandler.java:43)
2019-05-28 17:17:38,170 ERROR [stderr] (default task-7) at io.undertow.servlet.handlers.security.SSLInformati onAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
2019-05-28 17:17:38,170 ERROR [stderr] (default task-7) at io.undertow.servlet.handlers.security.ServletAuthe nticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
2019-05-28 17:17:38,170 ERROR [stderr] (default task-7) at io.undertow.server.handlers.PredicateHandler.handl eRequest(PredicateHandler.java:43)
2019-05-28 17:17:38,170 ERROR [stderr] (default task-7) at io.undertow.security.handlers.AbstractConfidential ityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
2019-05-28 17:17:38,170 ERROR [stderr] (default task-7) at io.undertow.servlet.handlers.security.ServletConfi dentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
2019-05-28 17:17:38,170 ERROR [stderr] (default task-7) at io.undertow.security.handlers.AuthenticationMechan ismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
2019-05-28 17:17:38,170 ERROR [stderr] (default task-7) at io.undertow.servlet.handlers.security.CachedAuthen ticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
2019-05-28 17:17:38,171 ERROR [stderr] (default task-7) at io.undertow.security.handlers.NotificationReceiver Handler.handleRequest(NotificationReceiverHandler.java:50)
2019-05-28 17:17:38,171 ERROR [stderr] (default task-7) at io.undertow.security.handlers.AbstractSecurityCont extAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
2019-05-28 17:17:38,171 ERROR [stderr] (default task-7) at io.undertow.server.handlers.PredicateHandler.handl eRequest(PredicateHandler.java:43)
2019-05-28 17:17:38,171 ERROR [stderr] (default task-7) at org.wildfly.extension.undertow.security.jacc.JACCC ontextIdHandler.handleRequest(JACCContextIdHandler.java:61)
Any inputs would be appreciated thanks!
JVM says this is an issue:
2019-05-28 17:17:38,161 ERROR [stderr] (default task-7) java.lang.IllegalArgumentException: org.infinispan.commons.ma rshall.NotSerializableException: ph.com.crm.common.admin.ListLovListVO
2019-05-28 17:17:38,167 ERROR [stderr] (default task-7) Caused by: org.infinispan.commons.marshall.NotSerializableExc eption: ph.com.crm.common.admin.ListLovListVO
2019-05-28 17:17:38,167 ERROR [stderr] (default task-7) java.lang.Exception: org.infinispan.commons.marshall.NotSeria lizableException: ph.com.crm.common.admin.ListLovListVO
Is that dependency from your project? Is it part of your pom.xml? Or was it carried over from WebSphere, assuming that it'd be part of JBOSS?
I already fixed it by adding implements Serialization in my class specifically in ListLovListVO.
I am trying to make a simple project using JAX-WS. I am following this example: https://docs.oracle.com/javaee/7/JEETT.pdf to be precise the head about JAX-WS. I have followed all of the steps. The difference is that I am using wildfly as a server and for IDE Eclipse which is important as I had to generate the HelloService from the command prompt. The code for the webservice:
#WebService
public class Hello {
private final String message = "Hello, ";
public Hello() {
}
#WebMethod
public String sayHelloName(String name) {
return message + name + ".";
}
#WebMethod
public String sayHello() {
return message + ".";
}
}
and the code for the servlet:
#WebServlet(name = "HelloServlet", urlPatterns = { "/HelloServlet" })
public class HelloServlet extends HttpServlet {
private static final long serialVersionUID = 1530081955969170723L;
#WebServiceRef(wsdlLocation = "http://localhost:8080/SampleRest-web/Hello?wsdl")
private HelloService service;
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
try (PrintWriter out = response.getWriter()) {
out.println("<html lang=\"en\">");
out.println("<head>");
out.println("<title>Servlet HelloServlet</title>");
out.println("</head>");
out.println("<body>");
out.println("<h1>Servlet HelloServlet at " + request.getContextPath() + "</h1>");
out.println("<p>" + sayHello("world") + "</p>");
out.println("</body>");
out.println("</html>");
}
}
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
try {
processRequest(request, response);
} catch (ServletException e) {
e.printStackTrace();
}
System.out.println("Test2");
}
private String sayHello(java.lang.String arg0) {
try {
Hello port = service.getHelloPort();
return port.sayHelloName(arg0);
}catch (Exception e) {
e.printStackTrace();
}
return "Ne stana";
}
}
The url code with ?wsdl works fine, it generates the wsdl code. When I call the servlet this is the error I get:
5:10:37,075 ERROR [stderr] (default task-2) javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException
15:10:37,076 ERROR [stderr] (default task-2) at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:361)
15:10:37,077 ERROR [stderr] (default task-2) at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:350)
15:10:37,078 ERROR [stderr] (default task-2) at javax.xml.ws.Service.getPort(Service.java:99)
15:10:37,078 ERROR [stderr] (default task-2) at soap.endpoints.soap.HelloService.getHelloPort(HelloService.java:72)
15:10:37,078 ERROR [stderr] (default task-2) at webclient.HelloServlet.sayHello(HelloServlet.java:49)
15:10:37,078 ERROR [stderr] (default task-2) at webclient.HelloServlet.processRequest(HelloServlet.java:32)
15:10:37,079 ERROR [stderr] (default task-2) at webclient.HelloServlet.doGet(HelloServlet.java:40)
15:10:37,080 ERROR [stderr] (default task-2) at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
15:10:37,080 ERROR [stderr] (default task-2) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
15:10:37,080 ERROR [stderr] (default task-2) at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
15:10:37,081 ERROR [stderr] (default task-2) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
15:10:37,081 ERROR [stderr] (default task-2) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
15:10:37,081 ERROR [stderr] (default task-2) at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
15:10:37,081 ERROR [stderr] (default task-2) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
15:10:37,081 ERROR [stderr] (default task-2) at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
15:10:37,081 ERROR [stderr] (default task-2) at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
15:10:37,082 ERROR [stderr] (default task-2) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
15:10:37,082 ERROR [stderr] (default task-2) at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
15:10:37,082 ERROR [stderr] (default task-2) at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
15:10:37,082 ERROR [stderr] (default task-2) at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
15:10:37,082 ERROR [stderr] (default task-2) at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
15:10:37,083 ERROR [stderr] (default task-2) at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
15:10:37,083 ERROR [stderr] (default task-2) at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
15:10:37,083 ERROR [stderr] (default task-2) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
15:10:37,083 ERROR [stderr] (default task-2) at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
15:10:37,083 ERROR [stderr] (default task-2) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
15:10:37,083 ERROR [stderr] (default task-2) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
15:10:37,083 ERROR [stderr] (default task-2) at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)
15:10:37,083 ERROR [stderr] (default task-2) at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)
15:10:37,084 ERROR [stderr] (default task-2) at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)
15:10:37,084 ERROR [stderr] (default task-2) at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)
15:10:37,084 ERROR [stderr] (default task-2) at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
15:10:37,084 ERROR [stderr] (default task-2) at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
15:10:37,084 ERROR [stderr] (default task-2) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
15:10:37,084 ERROR [stderr] (default task-2) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
15:10:37,085 ERROR [stderr] (default task-2) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
15:10:37,085 ERROR [stderr] (default task-2) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
15:10:37,085 ERROR [stderr] (default task-2) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
15:10:37,085 ERROR [stderr] (default task-2) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
15:10:37,085 ERROR [stderr] (default task-2) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
15:10:37,085 ERROR [stderr] (default task-2) at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
15:10:37,086 ERROR [stderr] (default task-2) at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
15:10:37,086 ERROR [stderr] (default task-2) at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)
15:10:37,086 ERROR [stderr] (default task-2) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:805)
15:10:37,086 ERROR [stderr] (default task-2) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
15:10:37,086 ERROR [stderr] (default task-2) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
15:10:37,087 ERROR [stderr] (default task-2) at java.lang.Thread.run(Thread.java:748)
15:10:37,087 ERROR [stderr] (default task-2) Caused by: org.apache.cxf.service.factory.ServiceConstructionException
15:10:37,087 ERROR [stderr] (default task-2) at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:329)
15:10:37,087 ERROR [stderr] (default task-2) at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86)
15:10:37,087 ERROR [stderr] (default task-2) at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:423)
15:10:37,088 ERROR [stderr] (default task-2) at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:525)
15:10:37,088 ERROR [stderr] (default task-2) at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:261)
15:10:37,088 ERROR [stderr] (default task-2) at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:199)
15:10:37,088 ERROR [stderr] (default task-2) at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
15:10:37,088 ERROR [stderr] (default task-2) at org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:91)
15:10:37,088 ERROR [stderr] (default task-2) at org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBean.java:157)
15:10:37,088 ERROR [stderr] (default task-2) at org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.java:142)
15:10:37,089 ERROR [stderr] (default task-2) at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:493)
15:10:37,089 ERROR [stderr] (default task-2) at org.jboss.wsf.stack.cxf.client.ProviderImpl$JBossWSServiceImpl.createPort(ProviderImpl.java:578)
15:10:37,089 ERROR [stderr] (default task-2) at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:359)
15:10:37,089 ERROR [stderr] (default task-2) ... 46 more
15:10:37,089 ERROR [stderr] (default task-2) Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 4 counts of IllegalAnnotationExceptions
15:10:37,089 ERROR [stderr] (default task-2) Two classes have the same XML type name "{http://soap/}sayHello". Use #XmlType.name and #XmlType.namespace to assign different names to them.
15:10:37,094 ERROR [stderr] (default task-2) this problem is related to the following location:
15:10:37,094 ERROR [stderr] (default task-2) at soap.endpoints.soap.jaxws_asm.SayHello
15:10:37,094 ERROR [stderr] (default task-2) this problem is related to the following location:
15:10:37,094 ERROR [stderr] (default task-2) at soap.endpoints.soap.SayHello
15:10:37,094 ERROR [stderr] (default task-2) at public javax.xml.bind.JAXBElement soap.endpoints.soap.ObjectFactory.createSayHello(soap.endpoints.soap.SayHello)
15:10:37,094 ERROR [stderr] (default task-2) at soap.endpoints.soap.ObjectFactory
15:10:37,094 ERROR [stderr] (default task-2) Two classes have the same XML type name "{http://soap/}sayHelloResponse". Use #XmlType.name and #XmlType.namespace to assign different names to them.
15:10:37,094 ERROR [stderr] (default task-2) this problem is related to the following location:
15:10:37,094 ERROR [stderr] (default task-2) at soap.endpoints.soap.jaxws_asm.SayHelloResponse
15:10:37,094 ERROR [stderr] (default task-2) this problem is related to the following location:
15:10:37,094 ERROR [stderr] (default task-2) at soap.endpoints.soap.SayHelloResponse
15:10:37,094 ERROR [stderr] (default task-2) at public javax.xml.bind.JAXBElement soap.endpoints.soap.ObjectFactory.createSayHelloResponse(soap.endpoints.soap.SayHelloResponse)
15:10:37,095 ERROR [stderr] (default task-2) at soap.endpoints.soap.ObjectFactory
15:10:37,095 ERROR [stderr] (default task-2) Two classes have the same XML type name "{http://soap/}sayHelloNameResponse". Use #XmlType.name and #XmlType.namespace to assign different names to them.
15:10:37,095 ERROR [stderr] (default task-2) this problem is related to the following location:
15:10:37,095 ERROR [stderr] (default task-2) at soap.endpoints.soap.jaxws_asm.SayHelloNameResponse
15:10:37,095 ERROR [stderr] (default task-2) this problem is related to the following location:
15:10:37,095 ERROR [stderr] (default task-2) at soap.endpoints.soap.SayHelloNameResponse
15:10:37,095 ERROR [stderr] (default task-2) at public javax.xml.bind.JAXBElement soap.endpoints.soap.ObjectFactory.createSayHelloNameResponse(soap.endpoints.soap.SayHelloNameResponse)
15:10:37,095 ERROR [stderr] (default task-2) at soap.endpoints.soap.ObjectFactory
15:10:37,095 ERROR [stderr] (default task-2) Two classes have the same XML type name "{http://soap/}sayHelloName". Use #XmlType.name and #XmlType.namespace to assign different names to them.
15:10:37,095 ERROR [stderr] (default task-2) this problem is related to the following location:
15:10:37,095 ERROR [stderr] (default task-2) at soap.endpoints.soap.jaxws_asm.SayHelloName
15:10:37,095 ERROR [stderr] (default task-2) this problem is related to the following location:
15:10:37,095 ERROR [stderr] (default task-2) at soap.endpoints.soap.SayHelloName
15:10:37,095 ERROR [stderr] (default task-2) at public javax.xml.bind.JAXBElement soap.endpoints.soap.ObjectFactory.createSayHelloName(soap.endpoints.soap.SayHelloName)
15:10:37,095 ERROR [stderr] (default task-2) at soap.endpoints.soap.ObjectFactory
15:10:37,095 ERROR [stderr] (default task-2)
15:10:37,101 ERROR [stderr] (default task-2) at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:106)
15:10:37,102 ERROR [stderr] (default task-2) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:460)
15:10:37,102 ERROR [stderr] (default task-2) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:292)
15:10:37,102 ERROR [stderr] (default task-2) at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:139)
15:10:37,102 ERROR [stderr] (default task-2) at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1138)
15:10:37,103 ERROR [stderr] (default task-2) at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:162)
15:10:37,103 ERROR [stderr] (default task-2) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:10:37,103 ERROR [stderr] (default task-2) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
15:10:37,103 ERROR [stderr] (default task-2) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
15:10:37,103 ERROR [stderr] (default task-2) at java.lang.reflect.Method.invoke(Method.java:498)
15:10:37,104 ERROR [stderr] (default task-2) at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:211)
15:10:37,104 ERROR [stderr] (default task-2) at javax.xml.bind.ContextFinder.find(ContextFinder.java:392)
15:10:37,104 ERROR [stderr] (default task-2) at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:618)
15:10:37,104 ERROR [stderr] (default task-2) at org.apache.cxf.common.jaxb.JAXBContextCache$2.run(JAXBContextCache.java:348)
15:10:37,104 ERROR [stderr] (default task-2) at org.apache.cxf.common.jaxb.JAXBContextCache$2.run(JAXBContextCache.java:346)
15:10:37,104 ERROR [stderr] (default task-2) at java.security.AccessController.doPrivileged(Native Method)
15:10:37,104 ERROR [stderr] (default task-2) at org.apache.cxf.common.jaxb.JAXBContextCache.createContext(JAXBContextCache.java:346)
15:10:37,104 ERROR [stderr] (default task-2) at org.apache.cxf.common.jaxb.JAXBContextCache.getCachedContextAndSchemas(JAXBContextCache.java:247)
15:10:37,104 ERROR [stderr] (default task-2) at org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContextAndSchemas(JAXBDataBinding.java:472)
15:10:37,105 ERROR [stderr] (default task-2) at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:327)
15:10:37,105 ERROR [stderr] (default task-2) ... 58 more
15:10:37,106 INFO [stdout] (default task-2) Test2
Again I managed to find the solution myself. The problem was on the client side. When executing the command: wsimport, a pack of classes was created and in them their
#XmlType(name = "SayHelloName", propOrder = {
"arg0"
})
was not ok. The name was with small first letter which led to the exception. As soon as I changed it, it started working. Hope this answer helps other beginners with JAX-WS
I get NullPointerException when I try to add mappings by creating my custom mapper in some container-managed objects. I tried it in #Stateless EJB service and #RequestScoped rest service. The error is similar and occurs in line:
modelMapper.addMappings(skipCdeMap);
Is it a bug? I assume that mapper is trying to do some reflection stuff on managed bean and because of that get NullPointerException.
This is my code:
PropertyMap<ObjectAbcDto, ObjectAbc> skipCdeMap =
new PropertyMap<ObjectAbcDto, ObjectAbc>() {
protected void configure() {
skip().setObjectCde(null);
}
};
modelMapper.addMappings(skipCdeMap);
This is the error:
13:37:03,453 ERROR [stderr] (default task-12) org.modelmapper.ConfigurationException: ModelMapper configuration errors:
13:37:03,453 ERROR [stderr] (default task-12)
13:37:03,453 ERROR [stderr] (default task-12) 1) Error reading class com.app.SomeRestEasyService$1
13:37:03,453 ERROR [stderr] (default task-12)
13:37:03,453 ERROR [stderr] (default task-12) 2) Failed to configure mappings
13:37:03,454 ERROR [stderr] (default task-12)
13:37:03,454 ERROR [stderr] (default task-12) 2 errors
13:37:03,454 ERROR [stderr] (default task-12) at org.modelmapper.internal.Errors.throwConfigurationExceptionIfErrorsExist(Errors.java:241)
13:37:03,454 ERROR [stderr] (default task-12) at org.modelmapper.internal.ExplicitMappingBuilder.build(ExplicitMappingBuilder.java:206)
13:37:03,454 ERROR [stderr] (default task-12) at org.modelmapper.internal.TypeMapImpl.addMappings(TypeMapImpl.java:72)
13:37:03,454 ERROR [stderr] (default task-12) at org.modelmapper.internal.TypeMapStore.getOrCreate(TypeMapStore.java:101)
13:37:03,454 ERROR [stderr] (default task-12) at org.modelmapper.ModelMapper.addMappings(ModelMapper.java:93)
13:37:03,454 ERROR [stderr] (default task-12) at com.app.SomeRestEasyService.create(SomeRestEasyService.java:129)
13:37:03,454 ERROR [stderr] (default task-12) at com.app.SomeRestEasyService$Proxy$_$$_WeldClientProxy.create(Unknown Source)
[...]
13:37:03,459 ERROR [stderr] (default task-12) Caused by: java.lang.NullPointerException
13:37:03,459 ERROR [stderr] (default task-12) at org.modelmapper.internal.ExplicitMappingBuilder.validateVisitedMappings(ExplicitMappingBuilder.java:236)
13:37:03,459 ERROR [stderr] (default task-12) at org.modelmapper.internal.ExplicitMappingBuilder.visitPropertyMap(ExplicitMappingBuilder.java:227)
13:37:03,459 ERROR [stderr] (default task-12) at org.modelmapper.PropertyMap.configure(PropertyMap.java:380)
13:37:03,459 ERROR [stderr] (default task-12) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
13:37:03,459 ERROR [stderr] (default task-12) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
13:37:03,459 ERROR [stderr] (default task-12) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
13:37:03,460 ERROR [stderr] (default task-12) at java.lang.reflect.Method.invoke(Method.java:606)
13:37:03,460 ERROR [stderr] (default task-12) at org.modelmapper.internal.ExplicitMappingBuilder.build(ExplicitMappingBuilder.java:194)
13:37
I can answer on my own question. My assumptions was correct. When I created PropertyMap class in Pojo or in its own, dedicated class - mappings worked well. So I suppose that my previous error occurs because of reflection which ModelMapper does on class in which PropertyMap was created. If it is some Menaged Bean that would result with NullPointerException.
I'm having the same problem (using ModelMapper v0.7.5) trying to map String to UUID.
For example, having these classes:
public class Car {
private UUID id;
// other fields
}
public class CarDto {
private String id;
// other fields
}
and trying to set a custom mapping like this:
mapper.addMappings(new PropertyMap<CarDto, Car>() {
protected void configure() {
map().setId(UUID.fromString(source.getId()));
// other mappings
}
});
I'm getting the same configuration error.
The cause is that UUID is a final class and cannot be proxed by ModelMapper framework.
As a workaround I created in my Car class a method like this:
public void setIdAsString(String id) {
this.id = UUID.fromString(id);
}
While I am trying to access webservice url from GateIn3.4(JBOSS AS 7) it is redirecting to org.exoplatform.services.rest.impl.ResponseImpl$ResponseBuilderImpl and the following error occurs org.exoplatform.services.rest.impl.ResponseImpl$ResponseBuilderImpl.<init>(ResponseImpl.java:217). I am attaching the entire log here.
18:11:32,148 ERROR [stderr] (http--0.0.0.0-8087-1) Caused by: org.apache.cxf.jaxrs.client.ClientWebApplicationException: java.lang.NullPointerException
18:11:32,149 ERROR [stderr] (http--0.0.0.0-8087-1) at org.apache.cxf.jaxrs.client.WebClient.handleResponse(WebClient.java:839)
18:11:32,149 ERROR [stderr] (http--0.0.0.0-8087-1) at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:816)
18:11:32,150 ERROR [stderr] (http--0.0.0.0-8087-1) at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:743)
18:11:32,150 ERROR [stderr] (http--0.0.0.0-8087-1) at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:717)
18:11:32,151 ERROR [stderr] (http--0.0.0.0-8087-1) at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:344)
18:11:32,151 ERROR [stderr] (http--0.0.0.0-8087-1) at org.apache.cxf.jaxrs.client.WebClient.get(WebClient.java:469)
18:11:32,152 ERROR [stderr] (http--0.0.0.0-8087-1) at com.radiant.cisms.services.WorkflowProcessService.getBusinessRuleList(WorkflowProcessService.java:455)
18:11:32,152 ERROR [stderr] (http--0.0.0.0-8087-1) at com.radiant.cisms.services.WorkflowProcessService$$FastClassByCGLIB$$b715c2f2.invoke(<generated>)
18:11:32,153 ERROR [stderr] (http--0.0.0.0-8087-1) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
18:11:32,154 ERROR [stderr] (http--0.0.0.0-8087-1) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
18:11:32,154 ERROR [stderr] (http--0.0.0.0-8087-1) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
18:11:32,155 ERROR [stderr] (http--0.0.0.0-8087-1) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
18:11:32,156 ERROR [stderr] (http--0.0.0.0-8087-1) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
18:11:32,156 ERROR [stderr] (http--0.0.0.0-8087-1) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)
18:11:32,157 ERROR [stderr] (http--0.0.0.0-8087-1) at com.radiant.cisms.services.WorkflowProcessService$$EnhancerByCGLIB$$4bcf15b7.getBusinessRuleList(<generated>)
18:11:32,158 ERROR [stderr] (http--0.0.0.0-8087-1) at com.radiant.cisms.view.bean.BusinessRuleBean.getBusinessRuleList(BusinessRuleBean.java:69)
18:11:32,159 ERROR [stderr] (http--0.0.0.0-8087-1) ... 307 more
18:11:32,159 ERROR [stderr] (http--0.0.0.0-8087-1) Caused by: java.lang.NullPointerException
18:11:32,159 ERROR [stderr] (http--0.0.0.0-8087-1) at org.exoplatform.services.rest.impl.ResponseImpl$ResponseBuilderImpl.<init>(ResponseImpl.java:217)
18:11:32,160 ERROR [stderr] (http--0.0.0.0-8087-1) at org.exoplatform.services.rest.impl.ResponseImpl$ResponseBuilderImpl.clone(ResponseImpl.java:284)
18:11:32,161 ERROR [stderr] (http--0.0.0.0-8087-1) at org.apache.cxf.jaxrs.client.AbstractClient.setResponseBuilder(AbstractClient.java:381)
18:11:32,161 ERROR [stderr] (http--0.0.0.0-8087-1) at org.apache.cxf.jaxrs.client.WebClient.handleResponse(WebClient.java:829)
18:11:32,162 ERROR [stderr] (http--0.0.0.0-8087-1) ... 322 more*
Expecting a solution...
I can't do deep cloning since the class is from a third party source. Is there some other way to solve this. When I am running the code in a sample progrm it is working fine. But the issue happens when executing from within the application which is deployed in gateIn 3.6 with JBOSS7. Is any other configurations should I do ?Or can it be due to some jar mismatch?
The error is java.lang.NullPointerException in the constructor of ResponseBuilderImpl. When it call clone to instantiate the object instance it might not copy some field values. You need to use deep clone technique.
I am installing our ERP Solution developed in Java onto my IBM System X3750 M4 Server. I have downloaded and installed the JRE from IBM; the package name is: ibm-java-x86_64-jre-7.0-5.0.x86_64.
My Application Server is JBoss 6.0 and Client Server is Apache Tomcat 7.0.14 and Database is MYSQL 5.1.69.
While starting the JBoss Server I am getting an error as given in the bottom of my Question.
Any idea on how can it be resolved?
18:03:29,265 INFO [AbstractServer] Starting: JBossAS [6.0.0.Final "Neo"]
18:03:30,482 ERROR [STDERR] javax.management.NotCompliantMBeanException: Class does not expose a management interface: java.lang.Object
18:03:30,483 ERROR [STDERR] at org.jboss.mx.metadata.MBeanCapability.of(MBeanCapability.java:101)
18:03:30,483 ERROR [STDERR] at org.jboss.mx.metadata.MBeanCapability.of(MBeanCapability.java:99)
18:03:30,483 ERROR [STDERR] at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:200)
18:03:30,483 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:03:30,483 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:76)
18:03:30,484 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:03:30,484 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:607)
18:03:30,484 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
18:03:30,484 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
18:03:30,484 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
18:03:30,484 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
18:03:30,485 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
18:03:30,485 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
18:03:30,485 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271)
18:03:30,485 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670)
18:03:30,485 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1443)
18:03:30,485 ERROR [STDERR] at java.security.AccessController.doPrivileged(AccessController.java:330)
18:03:30,486 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1438)
18:03:30,486 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:378)
18:03:30,486 ERROR [STDERR] at java.lang.management.ManagementFactory.registerPlatformBeans(ManagementFactory.java:786)
18:03:30,486 ERROR [STDERR] at java.lang.management.ManagementFactory.access$100(ManagementFactory.java:42)
18:03:30,486 ERROR [STDERR] at java.lang.management.ManagementFactory$1.run(ManagementFactory.java:373)
18:03:30,486 ERROR [STDERR] at java.security.AccessController.doPrivileged(AccessController.java:274)
18:03:30,487 ERROR [STDERR] at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:371)
18:03:30,487 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:03:30,487 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:76)
18:03:30,487 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:03:30,487 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:607)
18:03:30,487 ERROR [STDERR] at org.jboss.system.server.jmx.JMXKernel.start(JMXKernel.java:182)
18:03:30,488 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:03:30,488 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:76)
18:03:30,488 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:03:30,488 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:607)
18:03:30,488 ERROR [STDERR] at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60)
18:03:30,488 ERROR [STDERR] at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168)
18:03:30,489 ERROR [STDERR] at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
18:03:30,489 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:257)
18:03:30,489 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
18:03:30,489 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:125)
18:03:30,489 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72)
18:03:30,490 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:202)
18:03:30,490 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
18:03:30,490 ERROR [STDERR] at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
18:03:30,490 ERROR [STDERR] at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
18:03:30,490 ERROR [STDERR] at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
18:03:30,490 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
18:03:30,491 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)
18:03:30,491 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)
18:03:30,491 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)
18:03:30,491 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)
18:03:30,491 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)
18:03:30,491 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)
18:03:30,492 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:894)
18:03:30,492 ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:641)
18:03:30,492 ERROR [STDERR] at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:319)
18:03:30,492 ERROR [STDERR] at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:297)
18:03:30,492 ERROR [STDERR] at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
18:03:30,493 ERROR [STDERR] at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKernelDeployer.java:76)
18:03:30,493 ERROR [STDERR] at org.jboss.bootstrap.impl.mc.deployer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:92)
18:03:30,493 ERROR [STDERR] at org.jboss.bootstrap.impl.mc.deployer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:193)
18:03:30,493 ERROR [STDERR] at org.jboss.bootstrap.impl.mc.server.AbstractMCServerBase.bootstrapMcAndDescriptors(AbstractMCServerBase.java:310)
18:03:30,493 ERROR [STDERR] at org.jboss.bootstrap.impl.mc.server.AbstractMCServerBase.doStart(AbstractMCServerBase.java:257)
18:03:30,493 ERROR [STDERR] at org.jboss.bootstrap.impl.as.server.AbstractJBossASServerBase.doStart(AbstractJBossASServerBase.java:381)
18:03:30,494 ERROR [STDERR] at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:413)
18:03:30,494 ERROR [STDERR] at java.lang.Thread.run(Thread.java:781)
I was actually missing some libraries in jboss that caused the error. Because it was actually happened when I tried to make jboss light by removing unused jars. Any way restoring the jboss libraries took away this error.