On 14.04.2010 12:44, Andy Gumbrecht wrote:
Started to get this after pulling latest trunk. Am I missing something? It seems that 'init' is not getting called (or fails) and 'tracker' is null.

3883 [main] ERROR OpenEJB.server.remote - Cannot instantiate the service class org.apache.openejb.server.discovery.MulticastDiscoveryAgent. Received error: java.lang.NullPointerException null
java.lang.NullPointerException
at org.apache.openejb.server.discovery.MulticastDiscoveryAgent.setDiscoveryListener(MulticastDiscoveryAgent.java:96) at org.apache.openejb.server.DiscoveryRegistry.addDiscoveryAgent(DiscoveryRegistry.java:68) at org.apache.openejb.server.ServiceManager.initServer(ServiceManager.java:136) at org.apache.openejb.server.ServiceManager.initServers(ServiceManager.java:76) at org.apache.openejb.server.SimpleServiceManager.init(SimpleServiceManager.java:121)
    at org.apache.openejb.server.Server.init(Server.java:72)
    at org.apache.openejb.server.Main.initServer(Main.java:155)
    at org.apache.openejb.server.Main.main(Main.java:128)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.openejb.cli.MainImpl.main(MainImpl.java:152)
    at org.apache.openejb.cli.Bootstrap.main(Bootstrap.java:103)
3904 [main] ERROR OpenEJB.server - Cannot register service 'ejbd' with DiscoveryAgent.
java.lang.NullPointerException
at org.apache.openejb.server.discovery.MulticastDiscoveryAgent.registerService(MulticastDiscoveryAgent.java:100) at org.apache.openejb.server.DiscoveryRegistry.registerService(DiscoveryRegistry.java:84) at org.apache.openejb.server.ServiceDaemon.start(ServiceDaemon.java:180) at org.apache.openejb.server.SimpleServiceManager.start(SimpleServiceManager.java:138) at org.apache.openejb.server.ServiceManager.start(ServiceManager.java:212)
    at org.apache.openejb.server.Server.start(Server.java:92)
    at org.apache.openejb.server.Main.initServer(Main.java:156)
    at org.apache.openejb.server.Main.main(Main.java:128)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.openejb.cli.MainImpl.main(MainImpl.java:152)
    at org.apache.openejb.cli.Bootstrap.main(Bootstrap.java:103)
4196 [main] ERROR OpenEJB.server - Cannot register service 'ejbd' with DiscoveryAgent.
java.lang.NullPointerException
at org.apache.openejb.server.discovery.MulticastDiscoveryAgent.registerService(MulticastDiscoveryAgent.java:100) at org.apache.openejb.server.DiscoveryRegistry.registerService(DiscoveryRegistry.java:84) at org.apache.openejb.server.ServiceDaemon.start(ServiceDaemon.java:180) at org.apache.openejb.server.SimpleServiceManager.start(SimpleServiceManager.java:138) at org.apache.openejb.server.ServiceManager.start(ServiceManager.java:212)
    at org.apache.openejb.server.Server.start(Server.java:92)
    at org.apache.openejb.server.Main.initServer(Main.java:156)
    at org.apache.openejb.server.Main.main(Main.java:128)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.openejb.cli.MainImpl.main(MainImpl.java:152)
    at org.apache.openejb.cli.Bootstrap.main(Bootstrap.java:103)


Andy.


Adding a default constructor that calls init with empty properties seems to fix the issue, but not sure if that would be the correct thing to do.

Andy

--
------------------------------------------------------------------------

*Andy Gumbrecht*
Software Developer
Orpro Vision GmbH
Hefehof 8, 31785, Hameln

Tel +49 (0) 5151 809 44 21
Cell +49 (0) 174 1800 381
Email [email protected]
Web www.orprovision.com


           Orpro Vision GmbH
           Sitz der Gesellschaft: 31785, Hameln
           USt-Id-Nr: DE264453214
           Amtsgericht Hannover HRB204336
           Geschaeftsfuehrer: Roberto Gatti

------------------------------------------------------------------------


           Diese E-Mail enthält vertrauliche und/oder rechtlich
           geschützte Informationen. Wenn Sie nicht der richtige
           Adressat sind oder diese E-Mail irrtümlich erhalten haben,
           informieren Sie bitte sofort den Absender und vernichten Sie
           diese Mail. Das unerlaubte Kopieren, jegliche anderweitige
           Verwendung sowie die unbefugte Weitergabe dieser Mail ist
           nicht gestattet.

------------------------------------------------------------------------


           This e-mail may contain confidential and/or privileged
           information. If you are not the intended recipient (or have
           received this e-mail in error) please notify the sender
           immediately and destroy this e-mail. Any unauthorized
           copying, disclosure, distribution or other use of the
           material or parts thereof is strictly forbidden.

------------------------------------------------------------------------


Reply via email to