7 Replies Latest reply on Feb 26, 2015 7:26 AM by Tomas Remes

    [3.0.0.Alpha5] NPE in org.jboss.weld.probe.JsonObjects.createSimpleBeanJson

    Juergen Zimmermann Master

      I applied the patch for WildFly 9.2.0-SNAPSHOT (the version in patch.xml was changed before). Then I changed my weld.properties:

      org.jboss.weld.probe.invocationMonitor.excludeType = .*deltaspike.*|.*picketlink.*|.*jackson.*|.*swagger.*

      Now the deployment works fine.

       

      However, when I invoke https://localhost:8443/shop/weld-probe I'm getting the following stacktrace:

      ERROR [io.undertow.request] UT005023: Exception handling request to /shop/weld-probe/deployment: java.lang.NullPointerException

      at org.jboss.weld.probe.JsonObjects.createSimpleBeanJson(JsonObjects.java:471)

      at org.jboss.weld.probe.JsonObjects.createDeploymentJson(JsonObjects.java:191)

      at org.jboss.weld.probe.Resource$1.handleGet(Resource.java:83)

      at org.jboss.weld.probe.Resource$Handler.handle(Resource.java:380)

      at org.jboss.weld.probe.Resource.handle(Resource.java:286)

      at org.jboss.weld.probe.ProbeServlet.processRequest(ProbeServlet.java:79)

      at org.jboss.weld.probe.ProbeServlet.doGet(ProbeServlet.java:50)

      at org.jboss.weld.probe.ProbeServlet$Proxy$_$$_WeldSubclass.doGet(Unknown Source)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)

      at org.jboss.weld.probe.ProbeServlet$Proxy$_$$_WeldSubclass.service(Unknown Source)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

      at org.jboss.weld.probe.ProbeServlet$Proxy$_$$_WeldSubclass.service$$super(Unknown Source)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:483)

      at org.jboss.weld.interceptor.proxy.TerminalAroundInvokeInvocationContext.proceedInternal(TerminalAroundInvokeInvocationContext.java:51)

      at org.jboss.weld.interceptor.proxy.AroundInvokeInvocationContext.proceed(AroundInvokeInvocationContext.java:79)

      at org.jboss.weld.probe.InvocationMonitor.monitor(InvocationMonitor.java:105)

      at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:483)

      at org.jboss.weld.interceptor.reader.SimpleInterceptorInvocation$SimpleMethodInvocation.invoke(SimpleInterceptorInvocation.java:73)

      at org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.executeAroundInvoke(InterceptorMethodHandler.java:86)

      at org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.executeInterception(InterceptorMethodHandler.java:74)

      at org.jboss.weld.interceptor.proxy.InterceptorMethodHandler.invoke(InterceptorMethodHandler.java:58)

      at org.jboss.weld.bean.proxy.CombinedInterceptorAndDecoratorStackMethodHandler.invoke(CombinedInterceptorAndDecoratorStackMethodHandler.java:79)

      at org.jboss.weld.bean.proxy.CombinedInterceptorAndDecoratorStackMethodHandler.invoke(CombinedInterceptorAndDecoratorStackMethodHandler.java:68)

      at org.jboss.weld.probe.ProbeServlet$Proxy$_$$_WeldSubclass.service(Unknown Source)

      at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:86)

      at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)

      at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

      at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

      at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)

      at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)

      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

      at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)

      at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)

      at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)

      at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)

      at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)

      at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)

      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

      at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

      at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261)

      at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:247)

      at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:76)

      at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:166)

      at io.undertow.server.Connectors.executeRootHandler(Connectors.java:199)

      at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:769)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      at java.lang.Thread.run(Thread.java:745)