Related
I am working on an existing application written in Java 7.
I have the following utility method:
private static String callAuth(String endpointUrl, String userName, String password) {
//System.out.println(endpointUrl);
try {
JSONObject jo = new JSONObject();
jo.put("username", userName);
jo.put("password", password);
ClientResource cr = new ClientResource(endpointUrl);
Representation response = cr.post(new JsonRepresentation(jo), MediaType.APPLICATION_JSON);
String jsonString = response.getText();
Gson gson = new Gson();
AuthenticationResponse authenticationResponse = gson.fromJson(jsonString, AuthenticationResponse.class);
System.out.println(authenticationResponse.getJwt());
return authenticationResponse.getJwt();
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
When I call this method via a main, it works, i.e. it successfully calls the the external api.
public static void main(String[] args) {
String jwtToken = callAuth(authUrl, "richardmarais", "d18dc3184bdcb2bffdeae7ac9409b3701d9f2a3ade45994669458aea078114fcc2c4f83b85ed440358a9165e23167b9f");
}
However, if I start the application (which is a Struts application that runs on a JBoss server), and call the method, on a breakpoint I can see that on this line:
ClientResource cr = new ClientResource(endpointUrl);
There is the following error:
java.lang.reflect.InvocationTargetException - java.lang.NoClassDefFoundError: Could not initialize class org.restlet.data.Method
However, it does not get caught in the Catch block of the utility method.
} catch (Exception e) {
e.printStackTrace();
}
Rather up the chain, in another class there's a catch block, with the following error.
javax.ejb.EJBException: Unexpected Error
cause:
java.lang.NoClassDefFoundError: Could not initialize class org.restlet.data.Method
So it appears like the application is not seeing the class it's working on or something. Is the restlet dependencies out of scope or something? They are visible when running from the main method, but not from within the application.
POM
<!-- https://mvnrepository.com/artifact/org.restlet.jee/org.restlet -->
<dependency>
<groupId>org.restlet.jee</groupId>
<artifactId>org.restlet</artifactId>
<version>2.3.5</version>
</dependency>
<dependency>
<groupId>org.restlet.jse</groupId>
<artifactId>org.restlet.ext.simple</artifactId>
<version>2.3.5</version>
</dependency>
<dependency>
<groupId>org.restlet.jse</groupId>
<artifactId>org.restlet.ext.json</artifactId>
<version>2.3.5</version>
</dependency>
<dependency>
<groupId>org.restlet.jee</groupId>
<artifactId>org.restlet.ext.jackson</artifactId>
<version>2.3.5</version>
</dependency>
I am pretty confused, and if anyone could provide some direction, I would appreciate it.
Entire Stack Trace:
14:08:20,920 SEVERE [com.travellinck.travelIT.requisition.action.SelectQuotesAction] (http--0.0.0.0-8443-1) There was an error trying to auto approve a trip. Unexpected Error
14:08:23,242 ERROR [stderr] (http--0.0.0.0-8443-1) javax.ejb.EJBException: Unexpected Error
14:08:23,243 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:157)
14:08:23,244 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:213)
14:08:23,245 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:284)
14:08:23,245 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:182)
14:08:23,246 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
14:08:23,247 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.as.ejb3.component.session.SessionInvocationContextInterceptor.processInvocation(SessionInvocationContextInterceptor.java:71)
14:08:23,248 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
14:08:23,249 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
14:08:23,249 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:146)
14:08:23,250 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
14:08:23,252 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
14:08:23,253 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:76)
14:08:23,254 ERROR [stderr] (http--0.0.0.0-8443-1) at com.travellinck.approval.ApprovalRequestSubmissionService$$$view37.retrieveEvaluatorsList(Unknown Source)
14:08:23,255 ERROR [stderr] (http--0.0.0.0-8443-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:08:23,256 ERROR [stderr] (http--0.0.0.0-8443-1) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
14:08:23,257 ERROR [stderr] (http--0.0.0.0-8443-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
14:08:23,258 ERROR [stderr] (http--0.0.0.0-8443-1) at java.lang.reflect.Method.invoke(Method.java:606)
14:08:23,259 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
14:08:23,259 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
14:08:23,260 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
14:08:23,261 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
14:08:23,261 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:125)
14:08:23,262 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.invoke(EnterpriseTargetBeanInstance.java:62)
14:08:23,263 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
14:08:23,264 ERROR [stderr] (http--0.0.0.0-8443-1) at com.travellinck.approval.autoselection.ApprovalRequestSubmissionService$-1239349679$Proxy$_$$_Weld$Proxy$.retrieveEvaluatorsList(ApprovalRequestSubmissionService$-1239349679$Proxy$_$$_Weld$Proxy$.java)
14:08:23,265 ERROR [stderr] (http--0.0.0.0-8443-1) at com.travellinck.travelIT.requisition.action.SelectQuotesAction.executeSpecificTask(SelectQuotesAction.java:370)
14:08:23,266 ERROR [stderr] (http--0.0.0.0-8443-1) at corptravweb.actions.base.BaseBookingPortalAction.execute(BaseBookingPortalAction.java:98)
14:08:23,266 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:479)
14:08:23,267 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:237)
14:08:23,268 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1962)
14:08:23,269 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:459)
14:08:23,270 ERROR [stderr] (http--0.0.0.0-8443-1) at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
14:08:23,271 ERROR [stderr] (http--0.0.0.0-8443-1) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
14:08:23,271 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
14:08:23,272 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
14:08:23,273 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67)
14:08:23,274 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
14:08:23,275 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
14:08:23,275 ERROR [stderr] (http--0.0.0.0-8443-1) at application.configuration.cache.NoCacheFilter.doFilter(NoCacheFilter.java:28)
14:08:23,276 ERROR [stderr] (http--0.0.0.0-8443-1) at application.configuration.cache.NoCacheFilter.doFilter(NoCacheFilter.java:20)
14:08:23,277 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
14:08:23,277 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
14:08:23,278 ERROR [stderr] (http--0.0.0.0-8443-1) at application.configuration.logging.LoggerFilter.doFilter(LoggerFilter.java:61)
14:08:23,280 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
14:08:23,280 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
14:08:23,281 ERROR [stderr] (http--0.0.0.0-8443-1) at com.travellinck.protection.InputProtectionFilter.doFilter(InputProtectionFilter.java:30)
14:08:23,282 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
14:08:23,283 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
14:08:23,284 ERROR [stderr] (http--0.0.0.0-8443-1) at com.travellinck.travelIT.admin.sessiontracker.LoggedInUsersFilter.doFilter(LoggedInUsersFilter.java:67)
14:08:23,286 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
14:08:23,287 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
14:08:23,288 ERROR [stderr] (http--0.0.0.0-8443-1) at com.travellinck.notes.filter.UpdateNotesFilter.doFilter(UpdateNotesFilter.java:75)
14:08:23,289 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
14:08:23,290 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
14:08:23,291 ERROR [stderr] (http--0.0.0.0-8443-1) at com.travellinck.debug.DebugFilter.doFilter(DebugFilter.java:42)
14:08:23,292 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
14:08:23,294 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
14:08:23,294 ERROR [stderr] (http--0.0.0.0-8443-1) at application.configuration.compression.GZIPFilter.doFilter(GZIPFilter.java:29)
14:08:23,295 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
14:08:23,296 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
14:08:23,297 ERROR [stderr] (http--0.0.0.0-8443-1) at corptravweb.security.TLJaasAdaptorFilter.doFilter(TLJaasAdaptorFilter.java:31)
14:08:23,298 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
14:08:23,299 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
14:08:23,300 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
14:08:23,300 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
14:08:23,302 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
14:08:23,303 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:388)
14:08:23,304 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
14:08:23,305 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49)
14:08:23,306 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
14:08:23,306 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
14:08:23,307 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
14:08:23,308 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
14:08:23,308 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
14:08:23,309 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
14:08:23,310 ERROR [stderr] (http--0.0.0.0-8443-1) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
14:08:23,310 ERROR [stderr] (http--0.0.0.0-8443-1) at java.lang.Thread.run(Thread.java:745)
14:08:23,311 ERROR [stderr] (http--0.0.0.0-8443-1) Caused by: java.lang.NoClassDefFoundError: com/sun/net/httpserver/HttpHandler
14:08:23,312 ERROR [stderr] (http--0.0.0.0-8443-1) at org.restlet.engine.Engine.registerDefaultConnectors(Engine.java:730)
14:08:23,313 ERROR [stderr] (http--0.0.0.0-8443-1) at org.restlet.engine.Engine.discoverConnectors(Engine.java:546)
14:08:23,313 ERROR [stderr] (http--0.0.0.0-8443-1) at org.restlet.engine.Engine.<init>(Engine.java:379)
14:08:23,314 ERROR [stderr] (http--0.0.0.0-8443-1) at org.restlet.engine.Engine.register(Engine.java:301)
14:08:23,315 ERROR [stderr] (http--0.0.0.0-8443-1) at org.restlet.engine.Engine.register(Engine.java:290)
14:08:23,315 ERROR [stderr] (http--0.0.0.0-8443-1) at org.restlet.engine.Engine.getInstance(Engine.java:199)
14:08:23,316 ERROR [stderr] (http--0.0.0.0-8443-1) at org.restlet.data.Method.<init>(Method.java:337)
14:08:23,317 ERROR [stderr] (http--0.0.0.0-8443-1) at org.restlet.data.Method.<init>(Method.java:396)
14:08:23,317 ERROR [stderr] (http--0.0.0.0-8443-1) at org.restlet.data.Method.<init>(Method.java:361)
14:08:23,318 ERROR [stderr] (http--0.0.0.0-8443-1) at org.restlet.data.Method.<clinit>(Method.java:48)
14:08:23,319 ERROR [stderr] (http--0.0.0.0-8443-1) at org.restlet.resource.ClientResource.<init>(ClientResource.java:396)
14:08:23,320 ERROR [stderr] (http--0.0.0.0-8443-1) at com.travellinck.approval.helpers.ApprovalUtilityRestService.callAuth(ApprovalUtilityRestService.java:62)
14:08:23,320 ERROR [stderr] (http--0.0.0.0-8443-1) at com.travellinck.approval.helpers.ApprovalUtilityRestService.sendApprovalRequest(ApprovalUtilityRestService.java:38)
14:08:23,321 ERROR [stderr] (http--0.0.0.0-8443-1) at com.travellinck.approval.autoselection.ApprovalAutoSelectionRequestSubmissionImpl.submitApprovalRequest(ApprovalAutoSelectionRequestSubmissionImpl.java:323)
14:08:23,322 ERROR [stderr] (http--0.0.0.0-8443-1) at com.travellinck.approval.autoselection.ApprovalAutoSelectionRequestSubmissionImpl.retrieveEvaluatorsList(ApprovalAutoSelectionRequestSubmissionImpl.java:190)
14:08:23,323 ERROR [stderr] (http--0.0.0.0-8443-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:08:23,323 ERROR [stderr] (http--0.0.0.0-8443-1) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
14:08:23,324 ERROR [stderr] (http--0.0.0.0-8443-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
14:08:23,325 ERROR [stderr] (http--0.0.0.0-8443-1) at java.lang.reflect.Method.invoke(Method.java:606)
14:08:23,325 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
14:08:23,326 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
14:08:23,327 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:370)
14:08:23,327 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:122)
14:08:23,328 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:130)
14:08:23,329 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
14:08:23,329 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
14:08:23,330 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
14:08:23,331 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:45)
14:08:23,331 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
14:08:23,332 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:44)
14:08:23,333 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
14:08:23,334 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)
14:08:23,335 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
14:08:23,336 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
14:08:23,338 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
14:08:23,339 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
14:08:23,340 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.as.ee.component.ViewDescription$ComponentDispatcherInterceptor.processInvocation(ViewDescription.java:202)
14:08:23,340 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
14:08:23,341 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:50)
14:08:23,342 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:287)
14:08:23,342 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.as.ejb3.component.session.SessionInvocationContextInterceptor$CustomSessionInvocationContext.proceed(SessionInvocationContextInterceptor.java:126)
14:08:23,343 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:211)
14:08:23,344 ERROR [stderr] (http--0.0.0.0-8443-1) ... 75 more
14:08:23,345 ERROR [stderr] (http--0.0.0.0-8443-1) Caused by: java.lang.ClassNotFoundException: com.sun.net.httpserver.HttpHandler from [Module "deployment.corporateEAR-3.10.ear:main" from Service Module Loader]
14:08:23,345 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
14:08:23,346 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)
14:08:23,347 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)
14:08:23,347 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)
14:08:23,348 ERROR [stderr] (http--0.0.0.0-8443-1) at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)
14:08:23,349 ERROR [stderr] (http--0.0.0.0-8443-1) ... 117 more
I'm using a servlets (atmosphere framework and a custom one) which both use the same ReentrantLock to synchronize some operations. I got the confusing behavior, that a single thread enters the lock again and again without ever calling unlock() matching its previous lock().
For debugging purposes I've added a dump of the stacktrace right after the lock() invokation and it always shows the very same output. Doesn't this mean, that my method is invoked again and again but the succeeding try...finally is never executed?
IManagerLock batchLock = _lockManager.getManagerLock(true);
try {
// ...do something - in this case the code won't try to lock() again
}
finally {
batchLock.unlock();
}
The getManagerLock() will aquire the lock and return some wrapper object around the lock which allows me to perform some debugging etc. It will e.g. assign an UUID to the wrapper object which is printed to the log on lock() and unlock().
Here is an example of the wired stacktrace. It is repeated seven times. As you can see, there is only the Locked: xxx but not Unlocked: xxx message.
17:25:18,550 INFO [stdout] (http-/0.0.0.0:8080-13) Locked: 1a59d9ea-841f-4024-9043-67c8e649c342
17:25:18,551 ERROR [stderr] (http-/0.0.0.0:8080-13) java.lang.Exception
17:25:18,551 ERROR [stderr] (http-/0.0.0.0:8080-13) at xxx.jee.pagelock.DefaultLockManager$LockManagerBatch.<init>(DefaultLockManager.java:377)
17:25:18,552 ERROR [stderr] (http-/0.0.0.0:8080-13) at xxx.jee.pagelock.DefaultLockManager.getManagerLock(DefaultLockManager.java:246)
17:25:18,553 ERROR [stderr] (http-/0.0.0.0:8080-13) at xxx.jee.pagelock.DefaultLockManager$Proxy$_$$_WeldClientProxy.getManagerLock(DefaultLockManager$Proxy$_$$_WeldClientProxy.java)
17:25:18,553 ERROR [stderr] (http-/0.0.0.0:8080-13) at xxx.jee.pagelock.channel.LockChannel.onClose(LockChannel.java:128)
17:25:18,554 ERROR [stderr] (http-/0.0.0.0:8080-13) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
17:25:18,554 ERROR [stderr] (http-/0.0.0.0:8080-13) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
17:25:18,555 ERROR [stderr] (http-/0.0.0.0:8080-13) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
17:25:18,556 ERROR [stderr] (http-/0.0.0.0:8080-13) at java.lang.reflect.Method.invoke(Method.java:606)
17:25:18,556 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.util.Utils.invoke(Utils.java:209)
17:25:18,556 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.config.managed.ManagedAtmosphereHandler.invoke(ManagedAtmosphereHandler.java:335)
17:25:18,557 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.config.managed.ManagedAtmosphereHandler.onStateChange(ManagedAtmosphereHandler.java:209)
17:25:18,557 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.cpr.AsynchronousProcessor.invokeAtmosphereHandler(AsynchronousProcessor.java:544)
17:25:18,558 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.cpr.AsynchronousProcessor.completeLifecycle(AsynchronousProcessor.java:486)
17:25:18,558 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.interceptor.OnDisconnectInterceptor.inspect(OnDisconnectInterceptor.java:77)
17:25:18,558 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.cpr.AsynchronousProcessor.invokeInterceptors(AsynchronousProcessor.java:340)
17:25:18,559 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:199)
17:25:18,559 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:115)
17:25:18,560 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.container.JBossWebCometSupport.service(JBossWebCometSupport.java:93)
17:25:18,560 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:2281)
17:25:18,560 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.cpr.AtmosphereServlet.event(AtmosphereServlet.java:326)
17:25:18,560 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilterEvent(ApplicationFilterChain.java:494)
17:25:18,560 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.ApplicationFilterChain.doFilterEvent(ApplicationFilterChain.java:399)
17:25:18,561 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:273)
17:25:18,561 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
17:25:18,561 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)
17:25:18,561 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:165)
17:25:18,562 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
17:25:18,562 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
17:25:18,562 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
17:25:18,562 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:372)
17:25:18,562 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897)
17:25:18,563 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:634)
17:25:18,563 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2039)
17:25:18,563 ERROR [stderr] (http-/0.0.0.0:8080-13) at java.lang.Thread.run(Thread.java:745)
17:25:18,567 INFO [stdout] (http-/0.0.0.0:8080-13) Locked: 56fe9bc2-6c52-4fe4-8011-858221db4318
17:25:18,568 ERROR [stderr] (http-/0.0.0.0:8080-13) java.lang.Exception
17:25:18,568 ERROR [stderr] (http-/0.0.0.0:8080-13) at xxx.jee.pagelock.DefaultLockManager$LockManagerBatch.<init>(DefaultLockManager.java:377)
17:25:18,568 ERROR [stderr] (http-/0.0.0.0:8080-13) at xxx.jee.pagelock.DefaultLockManager.getManagerLock(DefaultLockManager.java:246)
17:25:18,568 ERROR [stderr] (http-/0.0.0.0:8080-13) at xxx.jee.pagelock.DefaultLockManager$Proxy$_$$_WeldClientProxy.getManagerLock(DefaultLockManager$Proxy$_$$_WeldClientProxy.java)
17:25:18,568 ERROR [stderr] (http-/0.0.0.0:8080-13) at xxx.jee.pagelock.channel.LockChannel.onClose(LockChannel.java:128)
17:25:18,569 ERROR [stderr] (http-/0.0.0.0:8080-13) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
17:25:18,569 ERROR [stderr] (http-/0.0.0.0:8080-13) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
17:25:18,569 ERROR [stderr] (http-/0.0.0.0:8080-13) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
17:25:18,569 ERROR [stderr] (http-/0.0.0.0:8080-13) at java.lang.reflect.Method.invoke(Method.java:606)
17:25:18,569 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.util.Utils.invoke(Utils.java:209)
17:25:18,569 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.config.managed.ManagedAtmosphereHandler.invoke(ManagedAtmosphereHandler.java:335)
17:25:18,569 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.config.managed.ManagedAtmosphereHandler.onStateChange(ManagedAtmosphereHandler.java:209)
17:25:18,570 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.cpr.AsynchronousProcessor.invokeAtmosphereHandler(AsynchronousProcessor.java:544)
17:25:18,570 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.cpr.AsynchronousProcessor.completeLifecycle(AsynchronousProcessor.java:486)
17:25:18,570 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.interceptor.OnDisconnectInterceptor.inspect(OnDisconnectInterceptor.java:77)
17:25:18,572 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.cpr.AsynchronousProcessor.invokeInterceptors(AsynchronousProcessor.java:340)
17:25:18,572 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:199)
17:25:18,572 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:115)
17:25:18,572 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.container.JBossWebCometSupport.service(JBossWebCometSupport.java:93)
17:25:18,575 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:2281)
17:25:18,575 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.cpr.AtmosphereServlet.event(AtmosphereServlet.java:326)
17:25:18,575 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilterEvent(ApplicationFilterChain.java:494)
17:25:18,575 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.ApplicationFilterChain.doFilterEvent(ApplicationFilterChain.java:399)
17:25:18,576 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:273)
17:25:18,576 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
17:25:18,576 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)
17:25:18,576 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:165)
17:25:18,577 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
17:25:18,577 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
17:25:18,577 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
17:25:18,577 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:372)
17:25:18,579 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897)
17:25:18,579 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:634)
17:25:18,579 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2039)
17:25:18,579 ERROR [stderr] (http-/0.0.0.0:8080-13) at java.lang.Thread.run(Thread.java:745)
17:25:18,584 INFO [stdout] (http-/0.0.0.0:8080-13) Locked: 0f2d436a-7e80-4a56-97e2-42187ac56a8b
17:25:18,584 ERROR [stderr] (http-/0.0.0.0:8080-13) java.lang.Exception
17:25:18,584 ERROR [stderr] (http-/0.0.0.0:8080-13) at xxx.jee.pagelock.DefaultLockManager$LockManagerBatch.<init>(DefaultLockManager.java:377)
17:25:18,585 ERROR [stderr] (http-/0.0.0.0:8080-13) at xxx.jee.pagelock.DefaultLockManager.getManagerLock(DefaultLockManager.java:246)
17:25:18,585 ERROR [stderr] (http-/0.0.0.0:8080-13) at xxx.jee.pagelock.DefaultLockManager$Proxy$_$$_WeldClientProxy.getManagerLock(DefaultLockManager$Proxy$_$$_WeldClientProxy.java)
17:25:18,585 ERROR [stderr] (http-/0.0.0.0:8080-13) at xxx.jee.pagelock.channel.LockChannel.onClose(LockChannel.java:128)
17:25:18,586 ERROR [stderr] (http-/0.0.0.0:8080-13) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
17:25:18,586 ERROR [stderr] (http-/0.0.0.0:8080-13) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
17:25:18,586 ERROR [stderr] (http-/0.0.0.0:8080-13) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
17:25:18,586 ERROR [stderr] (http-/0.0.0.0:8080-13) at java.lang.reflect.Method.invoke(Method.java:606)
17:25:18,586 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.util.Utils.invoke(Utils.java:209)
17:25:18,586 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.config.managed.ManagedAtmosphereHandler.invoke(ManagedAtmosphereHandler.java:335)
17:25:18,589 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.config.managed.ManagedAtmosphereHandler.onStateChange(ManagedAtmosphereHandler.java:209)
17:25:18,589 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.cpr.AsynchronousProcessor.invokeAtmosphereHandler(AsynchronousProcessor.java:544)
17:25:18,589 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.cpr.AsynchronousProcessor.completeLifecycle(AsynchronousProcessor.java:486)
17:25:18,589 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.interceptor.OnDisconnectInterceptor.inspect(OnDisconnectInterceptor.java:77)
17:25:18,591 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.cpr.AsynchronousProcessor.invokeInterceptors(AsynchronousProcessor.java:340)
17:25:18,591 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:199)
17:25:18,591 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:115)
17:25:18,591 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.container.JBossWebCometSupport.service(JBossWebCometSupport.java:93)
17:25:18,593 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:2281)
17:25:18,593 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.atmosphere.cpr.AtmosphereServlet.event(AtmosphereServlet.java:326)
17:25:18,593 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilterEvent(ApplicationFilterChain.java:494)
17:25:18,593 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.ApplicationFilterChain.doFilterEvent(ApplicationFilterChain.java:399)
17:25:18,595 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:273)
17:25:18,595 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
17:25:18,595 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)
17:25:18,595 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:165)
17:25:18,596 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
17:25:18,597 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
17:25:18,597 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
17:25:18,597 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:372)
17:25:18,598 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897)
17:25:18,598 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:634)
17:25:18,599 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2039)
17:25:18,599 ERROR [stderr] (http-/0.0.0.0:8080-13) at java.lang.Thread.run(Thread.java:745)
Some seconds later the same thread handles more HTTP requests and all returned successfully, This time with the correct Locked: xxx and Unlocked: xxx messages:
17:25:23,891 INFO [stdout] (http-/0.0.0.0:8080-13) Locked: 351e7416-c74b-4974-b2a6-a2ba0a0ad87d
17:25:23,892 ERROR [stderr] (http-/0.0.0.0:8080-13) java.lang.Exception
17:25:23,893 ERROR [stderr] (http-/0.0.0.0:8080-13) at xxx.jee.pagelock.DefaultLockManager$LockManagerBatch.<init>(DefaultLockManager.java:377)
17:25:23,894 ERROR [stderr] (http-/0.0.0.0:8080-13) at xxx.jee.pagelock.DefaultLockManager.getManagerLock(DefaultLockManager.java:246)
17:25:23,896 ERROR [stderr] (http-/0.0.0.0:8080-13) at xxx.jee.pagelock.DefaultLockManager$Proxy$_$$_WeldClientProxy.getManagerLock(DefaultLockManager$Proxy$_$$_WeldClientProxy.java)
17:25:23,897 ERROR [stderr] (http-/0.0.0.0:8080-13) at xxx.jee.pagelock.command.LockCommand.invoke(LockCommand.java:33)
17:25:23,898 ERROR [stderr] (http-/0.0.0.0:8080-13) at xxx.jee.pagelock.PageLockCommandServlet._executeCommand(PageLockCommandServlet.java:90)
17:25:23,899 ERROR [stderr] (http-/0.0.0.0:8080-13) at xxx.jee.pagelock.PageLockCommandServlet.doPost(PageLockCommandServlet.java:61)
17:25:23,900 ERROR [stderr] (http-/0.0.0.0:8080-13) at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
17:25:23,900 ERROR [stderr] (http-/0.0.0.0:8080-13) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
17:25:23,901 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
17:25:23,901 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
17:25:23,901 ERROR [stderr] (http-/0.0.0.0:8080-13) at xxx.webapp.servlet.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:51)
17:25:23,902 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
17:25:23,902 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
17:25:23,903 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)
17:25:23,903 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
17:25:23,903 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
17:25:23,904 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
17:25:23,904 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
17:25:23,904 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)
17:25:23,905 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:165)
17:25:23,905 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
17:25:23,905 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
17:25:23,906 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
17:25:23,906 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:372)
17:25:23,906 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897)
17:25:23,907 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:634)
17:25:23,907 ERROR [stderr] (http-/0.0.0.0:8080-13) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2039)
17:25:23,907 ERROR [stderr] (http-/0.0.0.0:8080-13) at java.lang.Thread.run(Thread.java:745)
17:25:23,908 INFO [stdout] (http-/0.0.0.0:8080-13) Unlocked: 351e7416-c74b-4974-b2a6-a2ba0a0ad87d
Any idea what is going on? Can you explain to me how the very same thread can be executed again and again without fully executing the function body? Without releasing the lock?
Edit 12.11.2015 19:56: As mentioned in the comments: http-/0.0.0.0:8080-13 is the name of the thread. So I'm sure that it is the same thread that is executed again.
Edit 13.11.2015 09:38: As mentioned in the comments: I'm using JBoss 7.1.3.Final with JBossWeb 7.0.17.Final. The AtmosphereServlet uses asyncSupported=true while the custom one doesn't.
I found the solution for this behavior: A (CDI) bean was involved which couldn't be created for some reason. An exception was thrown after my log messages and before the try-block. But it was not visible in the log as the atmosphere framework caught it. The framework itself will only print it to the log if it is set to debug level (which is not set on the production server).
A really stupid self-caused bug!
I am currently integrating from solr 1.4 to solr 3.4. After executing the codes, I got the following error message.
15:56:09,575 ERROR [STDERR] [SolrServerException] QueryResponse SOLRSearchWorker. generateResponse(SolrQuery, SolrServer, SolrRequest.METHOD) message:
15:56:13,150 ERROR [STDERR] org.apache.solr.client.solrj.SolrServerException: java.lang.RuntimeException: Invalid version or the data in not in 'javabin' format
15:56:13,152 ERROR [STDERR] at org.apache.solr.client.solrj.impl.LBHttpSolrServer.request(LBHttpSolrServer.java:217)
15:56:13,152 ERROR [STDERR] at org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:89)
15:56:13,153 ERROR [STDERR] at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:122)
15:56:13,153 ERROR [STDERR] at org.cambridge.ebooks.production.solr.util.SOLRSearchWorker.generateResponse(SOLRSearchWorker.java:153)
15:56:13,154 ERROR [STDERR] at org.cambridge.ebooks.production.solr.util.SOLRSearchWorker.searchCore(SOLRSearchWorker.java:58)
15:56:13,155 ERROR [STDERR] at org.cambridge.ebooks.production.solr.util.EBookSearchWorker.searchBookCore(EBookSearchWorker.java:161)
15:56:13,155 ERROR [STDERR] at org.cambridge.ebooks.production.ebook.EBookWorker.getQuickSearchResult(EBookWorker.java:113)
15:56:13,156 ERROR [STDERR] at org.cambridge.ebooks.production.ebook.EBookManagedBean.doSearch(EBookManagedBean.java:248)
15:56:13,156 ERROR [STDERR] at org.cambridge.ebooks.production.ebook.EBookManagedBean.getInitBooks(EBookManagedBean.java:163)
15:56:13,157 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:56:13,157 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
15:56:13,158 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
15:56:13,158 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
15:56:13,159 ERROR [STDERR] at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
15:56:13,159 ERROR [STDERR] at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
15:56:13,160 ERROR [STDERR] at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:71)
15:56:13,160 ERROR [STDERR] at org.apache.el.parser.AstValue.getValue(AstValue.java:118)
15:56:13,161 ERROR [STDERR] at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
15:56:13,161 ERROR [STDERR] at org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:101)
15:56:13,162 ERROR [STDERR] at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:190)
15:56:13,162 ERROR [STDERR] at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:178)
15:56:13,163 ERROR [STDERR] at javax.faces.component.UIOutput.getValue(UIOutput.java:164)
15:56:13,163 ERROR [STDERR] at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:201)
15:56:13,164 ERROR [STDERR] at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:351)
15:56:13,164 ERROR [STDERR] at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:160)
15:56:13,165 ERROR [STDERR] at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:879)
15:56:13,165 ERROR [STDERR] at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650)
15:56:13,166 ERROR [STDERR] at javax.faces.render.Renderer.encodeChildren(Renderer.java:164)
15:56:13,166 ERROR [STDERR] at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:849)
15:56:13,167 ERROR [STDERR] at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1643)
15:56:13,168 ERROR [STDERR] at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646)
15:56:13,168 ERROR [STDERR] at com.sun.faces.application.view.JspViewHandlingStrategy.doRenderView(JspViewHandlingStrategy.java:427)
15:56:13,169 ERROR [STDERR] at com.sun.faces.application.view.JspViewHandlingStrategy.renderView(JspViewHandlingStrategy.java:229)
15:56:13,169 ERROR [STDERR] at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:127)
15:56:13,170 ERROR [STDERR] at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:269)
15:56:13,171 ERROR [STDERR] at org.apache.myfaces.tomahawk.application.ResourceViewHandlerWrapper.renderView(ResourceViewHandlerWrapper.java:93)
15:56:13,171 ERROR [STDERR] at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:117)
15:56:13,172 ERROR [STDERR] at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97)
15:56:13,172 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135)
15:56:13,173 ERROR [STDERR] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:309)
15:56:13,173 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
15:56:13,174 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
15:56:13,174 ERROR [STDERR] at org.cambridge.ebooks.production.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:62)
15:56:13,175 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
15:56:13,175 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
15:56:13,176 ERROR [STDERR] at org.cambridge.ebooks.production.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:69)
15:56:13,177 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
15:56:13,177 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
15:56:13,178 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
15:56:13,178 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
15:56:13,179 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
15:56:13,180 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
15:56:13,180 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
15:56:13,181 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
15:56:13,181 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
15:56:13,182 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
15:56:13,183 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
15:56:13,183 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
15:56:13,184 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
15:56:13,184 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
15:56:13,185 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
15:56:13,185 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
15:56:13,186 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
15:56:13,186 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
15:56:13,187 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
15:56:13,188 ERROR [STDERR] at java.lang.Thread.run(Thread.java:662)
15:56:13,189 ERROR [STDERR] Caused by: java.lang.RuntimeException: Invalid version or the data in not in 'javabin' format
15:56:13,189 ERROR [STDERR] at org.apache.solr.common.util.JavaBinCodec.unmarshal(JavaBinCodec.java:99)
15:56:13,190 ERROR [STDERR] at org.apache.solr.client.solrj.impl.BinaryResponseParser.processResponse(BinaryResponseParser.java:39)
15:56:13,190 ERROR [STDERR] at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:466)
15:56:13,191 ERROR [STDERR] at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:243)
15:56:13,191 ERROR [STDERR] at org.apache.solr.client.solrj.impl.LBHttpSolrServer.request(LBHttpSolrServer.java:205)
15:56:13,192 ERROR [STDERR] ... 65 more
Then, I tried to debug and found out that the Query response is returning null because of this java bin format. I need help to fix this code, I tried all the possible solution I found in internet, but no luck. Anyone can help?? this is for my major release of project in my company.
Thanks!
This is usually related to either a version difference in Java itself between the server and the client, but more often it's caused by the server throwing an error and the application container returning an error page instead of the expected javabin formatted response.
Check the server log to see if it's not throwing an exception, and then attempt the same request in your browser (the server should have a log of the query and the parameters included) to see what the server actually responds with.
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.