NPE in R16 demo

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

NPE in R16 demo

Jacques Le Roux
Administrator
Hi Devs,

Thought you could be interested by this bug

2017-01-05 10:20:34,376 |kJoinPool-1-worker-0 |ExecutionPool                 |E| null
java.util.concurrent.ExecutionException: java.lang.NullPointerException
     at java.util.concurrent.ForkJoinTask.get(ForkJoinTask.java:1006) ~[?:1.8.0_111]
     at org.apache.ofbiz.base.concurrent.ExecutionPool.getAllFutures(ExecutionPool.java:83) [ofbiz.jar:?]
     at org.apache.ofbiz.service.DispatchContext.getGlobalServiceMap(DispatchContext.java:267) [ofbiz.jar:?]
     at org.apache.ofbiz.service.DispatchContext.getModelService(DispatchContext.java:207) [ofbiz.jar:?]
     at org.apache.ofbiz.webtools.artifactinfo.ArtifactInfoFactory.getModelService(ArtifactInfoFactory.java:181) [ofbiz.jar:?]
     at org.apache.ofbiz.webtools.artifactinfo.ServiceArtifactInfo.<init>(ServiceArtifactInfo.java:68) [ofbiz.jar:?]
     at org.apache.ofbiz.webtools.artifactinfo.ArtifactInfoFactory.getServiceArtifactInfo(ArtifactInfoFactory.java:228) [ofbiz.jar:?]
     at org.apache.ofbiz.webtools.artifactinfo.ServiceEcaArtifactInfo.populateAll(ServiceEcaArtifactInfo.java:61) [ofbiz.jar:?]
     at org.apache.ofbiz.webtools.artifactinfo.ArtifactInfoFactory.getServiceEcaArtifactInfo(ArtifactInfoFactory.java:240) [ofbiz.jar:?]
     at org.apache.ofbiz.webtools.artifactinfo.ServiceArtifactInfo.populateTriggeredServiceEcas(ServiceArtifactInfo.java:225) [ofbiz.jar:?]
     at org.apache.ofbiz.webtools.artifactinfo.ServiceArtifactInfo.populateAll(ServiceArtifactInfo.java:79) [ofbiz.jar:?]
     at org.apache.ofbiz.webtools.artifactinfo.ArtifactInfoFactory.getServiceArtifactInfo(ArtifactInfoFactory.java:230) [ofbiz.jar:?]
     at org.apache.ofbiz.webtools.artifactinfo.ServiceEcaArtifactInfo.populateAll(ServiceEcaArtifactInfo.java:61) [ofbiz.jar:?]
     at org.apache.ofbiz.webtools.artifactinfo.ArtifactInfoFactory.getServiceEcaArtifactInfo(ArtifactInfoFactory.java:240) [ofbiz.jar:?]
     at org.apache.ofbiz.webtools.artifactinfo.ServiceArtifactInfo.populateTriggeredServiceEcas(ServiceArtifactInfo.java:225) [ofbiz.jar:?]
     at org.apache.ofbiz.webtools.artifactinfo.ServiceArtifactInfo.populateAll(ServiceArtifactInfo.java:79) [ofbiz.jar:?]
     at org.apache.ofbiz.webtools.artifactinfo.ArtifactInfoFactory.getServiceArtifactInfo(ArtifactInfoFactory.java:230) [ofbiz.jar:?]
     at org.apache.ofbiz.webtools.artifactinfo.ServiceArtifactInfo.populateServicesFromNameSet(ServiceArtifactInfo.java:213) [ofbiz.jar:?]
     at org.apache.ofbiz.webtools.artifactinfo.ServiceArtifactInfo.populateCalledServices(ServiceArtifactInfo.java:161) [ofbiz.jar:?]
     at org.apache.ofbiz.webtools.artifactinfo.ServiceArtifactInfo.populateAll(ServiceArtifactInfo.java:78) [ofbiz.jar:?]
     at org.apache.ofbiz.webtools.artifactinfo.ArtifactInfoFactory.getServiceArtifactInfo(ArtifactInfoFactory.java:230) [ofbiz.jar:?]
     at org.apache.ofbiz.webtools.artifactinfo.ArtifactInfoFactory$1.call(ArtifactInfoFactory.java:389) [ofbiz.jar:?]
     at org.apache.ofbiz.webtools.artifactinfo.ArtifactInfoFactory$1.call(ArtifactInfoFactory.java:385) [ofbiz.jar:?]
     at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1424) [?:1.8.0_111]
     at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) [?:1.8.0_111]
     at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) [?:1.8.0_111]
     at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) [?:1.8.0_111]
     at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) [?:1.8.0_111]
Caused by: java.lang.NullPointerException
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_111]
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_111]
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_111]
     at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_111]
     at java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:598) ~[?:1.8.0_111]
     at java.util.concurrent.ForkJoinTask.get(ForkJoinTask.java:1005) ~[?:1.8.0_111]
     ... 27 more
Caused by: java.lang.NullPointerException
     at org.apache.ofbiz.service.DispatchContext.getDelegator(DispatchContext.java:133) ~[ofbiz.jar:?]
     at org.apache.ofbiz.service.DispatchContext$1.call(DispatchContext.java:239) ~[ofbiz.jar:?]
     at org.apache.ofbiz.service.DispatchContext$1.call(DispatchContext.java:237) ~[ofbiz.jar:?]
     ... 5 more

I now restart the demo...

Jacques

Reply | Threaded
Open this post in threaded view
|

Re: NPE in R16 demo

taher
Hi Jacques,

This seems to be a bug in java.util.concurrent related logic. Perhaps you
can provide more context in a Jira to try and tackle it?

On Jan 5, 2017 8:12 PM, "Jacques Le Roux" <[hidden email]>
wrote:

Hi Devs,

Thought you could be interested by this bug

2017-01-05 10:20:34,376 |kJoinPool-1-worker-0 |ExecutionPool
 |E| null
java.util.concurrent.ExecutionException: java.lang.NullPointerException
    at java.util.concurrent.ForkJoinTask.get(ForkJoinTask.java:1006)
~[?:1.8.0_111]
    at org.apache.ofbiz.base.concurrent.ExecutionPool.getAllFutures(ExecutionPool.java:83)
[ofbiz.jar:?]
    at org.apache.ofbiz.service.DispatchContext.getGlobalServiceMap(DispatchContext.java:267)
[ofbiz.jar:?]
    at org.apache.ofbiz.service.DispatchContext.getModelService(DispatchContext.java:207)
[ofbiz.jar:?]
    at org.apache.ofbiz.webtools.artifactinfo.ArtifactInfoFactory.g
etModelService(ArtifactInfoFactory.java:181) [ofbiz.jar:?]
    at org.apache.ofbiz.webtools.artifactinfo.ServiceArtifactInfo.<
init>(ServiceArtifactInfo.java:68) [ofbiz.jar:?]
    at org.apache.ofbiz.webtools.artifactinfo.ArtifactInfoFactory.g
etServiceArtifactInfo(ArtifactInfoFactory.java:228) [ofbiz.jar:?]
    at org.apache.ofbiz.webtools.artifactinfo.ServiceEcaArtifactInf
o.populateAll(ServiceEcaArtifactInfo.java:61) [ofbiz.jar:?]
    at org.apache.ofbiz.webtools.artifactinfo.ArtifactInfoFactory.g
etServiceEcaArtifactInfo(ArtifactInfoFactory.java:240) [ofbiz.jar:?]
    at org.apache.ofbiz.webtools.artifactinfo.ServiceArtifactInfo.p
opulateTriggeredServiceEcas(ServiceArtifactInfo.java:225) [ofbiz.jar:?]
    at org.apache.ofbiz.webtools.artifactinfo.ServiceArtifactInfo.p
opulateAll(ServiceArtifactInfo.java:79) [ofbiz.jar:?]
    at org.apache.ofbiz.webtools.artifactinfo.ArtifactInfoFactory.g
etServiceArtifactInfo(ArtifactInfoFactory.java:230) [ofbiz.jar:?]
    at org.apache.ofbiz.webtools.artifactinfo.ServiceEcaArtifactInf
o.populateAll(ServiceEcaArtifactInfo.java:61) [ofbiz.jar:?]
    at org.apache.ofbiz.webtools.artifactinfo.ArtifactInfoFactory.g
etServiceEcaArtifactInfo(ArtifactInfoFactory.java:240) [ofbiz.jar:?]
    at org.apache.ofbiz.webtools.artifactinfo.ServiceArtifactInfo.p
opulateTriggeredServiceEcas(ServiceArtifactInfo.java:225) [ofbiz.jar:?]
    at org.apache.ofbiz.webtools.artifactinfo.ServiceArtifactInfo.p
opulateAll(ServiceArtifactInfo.java:79) [ofbiz.jar:?]
    at org.apache.ofbiz.webtools.artifactinfo.ArtifactInfoFactory.g
etServiceArtifactInfo(ArtifactInfoFactory.java:230) [ofbiz.jar:?]
    at org.apache.ofbiz.webtools.artifactinfo.ServiceArtifactInfo.p
opulateServicesFromNameSet(ServiceArtifactInfo.java:213) [ofbiz.jar:?]
    at org.apache.ofbiz.webtools.artifactinfo.ServiceArtifactInfo.p
opulateCalledServices(ServiceArtifactInfo.java:161) [ofbiz.jar:?]
    at org.apache.ofbiz.webtools.artifactinfo.ServiceArtifactInfo.p
opulateAll(ServiceArtifactInfo.java:78) [ofbiz.jar:?]
    at org.apache.ofbiz.webtools.artifactinfo.ArtifactInfoFactory.g
etServiceArtifactInfo(ArtifactInfoFactory.java:230) [ofbiz.jar:?]
    at org.apache.ofbiz.webtools.artifactinfo.ArtifactInfoFactory$
1.call(ArtifactInfoFactory.java:389) [ofbiz.jar:?]
    at org.apache.ofbiz.webtools.artifactinfo.ArtifactInfoFactory$
1.call(ArtifactInfoFactory.java:385) [ofbiz.jar:?]
    at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1424)
[?:1.8.0_111]
    at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
[?:1.8.0_111]
    at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
[?:1.8.0_111]
    at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
[?:1.8.0_111]
    at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
[?:1.8.0_111]
Caused by: java.lang.NullPointerException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method) ~[?:1.8.0_111]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Native
ConstructorAccessorImpl.java:62) ~[?:1.8.0_111]
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De
legatingConstructorAccessorImpl.java:45) ~[?:1.8.0_111]
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
~[?:1.8.0_111]
    at java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:598)
~[?:1.8.0_111]
    at java.util.concurrent.ForkJoinTask.get(ForkJoinTask.java:1005)
~[?:1.8.0_111]
    ... 27 more
Caused by: java.lang.NullPointerException
    at org.apache.ofbiz.service.DispatchContext.getDelegator(DispatchContext.java:133)
~[ofbiz.jar:?]
    at org.apache.ofbiz.service.DispatchContext$1.call(DispatchContext.java:239)
~[ofbiz.jar:?]
    at org.apache.ofbiz.service.DispatchContext$1.call(DispatchContext.java:237)
~[ofbiz.jar:?]
    ... 5 more

I now restart the demo...

Jacques
Reply | Threaded
Open this post in threaded view
|

Re: NPE in R16 demo

Jacopo Cappellato-5
I am just guessing...

ArtifactInfoFactory: it is possible that someone visited the "Artifact
info" page of webtools in the attempt to generate meta-data for the
services/entities/screens... if this is the case it should be possible to
replicate (and it may end up being an error in a service/eca definition or
similar)

Jacopo
Reply | Threaded
Open this post in threaded view
|

Re: NPE in R16 demo

Jacques Le Roux
Administrator
Le 05/01/2017 à 19:11, Jacopo Cappellato a écrit :

> I am just guessing...
>
> ArtifactInfoFactory: it is possible that someone visited the "Artifact
> info" page of webtools in the attempt to generate meta-data for the
> services/entities/screens... if this is the case it should be possible to
> replicate (and it may end up being an error in a service/eca definition or
> similar)
>
> Jacopo
>

Yes this is the context from the stack trace, that's why I posted, I think we can indeed debug it

Jacques