You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Leon (JIRA)" <ji...@apache.org> on 2014/11/17 07:03:33 UTC

[jira] [Commented] (OFBIZ-5879) Sometimes, RMIDispatcher cannot be constructed

    [ https://issues.apache.org/jira/browse/OFBIZ-5879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14214310#comment-14214310 ] 

Leon commented on OFBIZ-5879:
-----------------------------

Maybe it's concurrency issue related to FastMap. Since ofbiz is intending to remove all Javolutions, I will apply latest patch (using ConcurrentHashMap instead) and close this ticket.

> Sometimes, RMIDispatcher cannot be constructed
> ----------------------------------------------
>
>                 Key: OFBIZ-5879
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5879
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Leon
>
> sometimes, the ofbiz instance startup failed because following error:
> {quote}
> java.lang.NullPointerException
>         at javolution.util.FastMap$Entry.access$302(FastMap.java:1530)
>         at javolution.util.FastMap.put(FastMap.java:490)
>         at javolution.util.FastMap.put(FastMap.java:453)
>         at org.ofbiz.service.group.ServiceGroupReader.addGroupDefinitions(ServiceGroupReader.java:79)
>         at org.ofbiz.service.group.ServiceGroupReader.readConfig(ServiceGroupReader.java:62)
>         at org.ofbiz.service.ServiceDispatcher.<init>(ServiceDispatcher.java:104)
>         at org.ofbiz.service.ServiceDispatcher.<init>(ServiceDispatcher.java:151)
>         at org.ofbiz.service.ServiceDispatcher.getInstance(ServiceDispatcher.java:183)
>         at org.ofbiz.service.ServiceDispatcher.getLocalDispatcher(ServiceDispatcher.java:162)
>         at org.ofbiz.service.GenericDispatcherFactory.createLocalDispatcher(GenericDispatcherFactory.java:46)
>         at org.ofbiz.service.ServiceContainer.getLocalDispatcher(ServiceContainer.java:90)
>         at org.ofbiz.service.rmi.RmiServiceContainer.start(RmiServiceContainer.java:133)
>         at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:237)
>         at org.ofbiz.base.start.Start.startStartLoaders(Start.java:341)
>         at org.ofbiz.base.start.Start.start(Start.java:367)
>         at org.ofbiz.base.start.Start.main(Start.java:135)
> 20141110104822705 |Thread-0             |ContainerLoader               |I| Shutting down containers
> 20141110104822705 |Thread-0             |ContainerLoader               |I| Stopping container birt-container
> 20141110104822706 |Thread-0             |ContainerLoader               |I| Stopped container birt-container
> 20141110104822706 |Thread-0             |ContainerLoader               |I| Stopping container catalina-container
> 20141110104822706 |Thread-0             |ContainerLoader               |I| Stopped container catalina-container
> 20141110104822706 |Thread-0             |ContainerLoader               |I| Stopping container rmi-dispatcher
> java.lang.NullPointerException
>         at org.ofbiz.service.rmi.RmiServiceContainer.stop(RmiServiceContainer.java:176)
>         at org.ofbiz.base.container.ContainerLoader.unload(ContainerLoader.java:264)
>         at org.ofbiz.base.start.Start.shutdownServer(Start.java:317)
>         at org.ofbiz.base.start.Start$1.run(Start.java:231)
> {quote}
> Since it's hard to reproduce, and I'm not familiar with the logic behind it, I'm unable to figure out what the root cause is.
> Anyone can help?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)