Problems with JBoss3.0.0 and log4j
smarti9 Oct 21, 2002 11:58 AMHi everybody,
I updated my jboss3.0.0RC3 to jboss3.0.0 and redeployed my beans without problems. but everytime i start my client i get the following exception when calling the create-method on an home-interface of a bean:
se = home.create();
the exception is:
Exception occurred during event dispatching:
java.lang.ExceptionInInitializerError: java.lang.NullPointerException
at org.apache.log4j.Layout.(Layout.java:25)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at org.apache.log4j.PropertyConfigurator.class$(PropertyConfigurator.java:76)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:631)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:602)
at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:499)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:405)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:431)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:456)
at org.apache.log4j.LogManager.(LogManager.java:145)
at org.apache.log4j.Category.getInstance(Category.java:517)
at org.jboss.logging.Logger.(Logger.java:45)
at org.jboss.logging.Logger.getLogger(Logger.java:288)
at org.jboss.invocation.MarshalledValueInputStream.(MarshalledValueInputStream.java:25)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at org.jboss.invocation.MarshalledValueOutputStream.class$(MarshalledValueOutputStream.java:26)
at org.jboss.invocation.MarshalledValueOutputStream.(MarshalledValueOutputStream.java:28)
at org.jboss.invocation.MarshalledValue.(MarshalledValue.java:47)
at org.jboss.invocation.MarshalledInvocation.writeExternal(MarshalledInvocation.java:317)
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1172)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:268)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:106)
at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:128)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:185)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
at $Proxy0.create(Unknown Source)
at event_address.client.BranchenAnzeigen.(BranchenAnzeigen.java:55)
at event_address.client.EventMain.jMenuItemAdminBranche_actionPerformed(EventMain.java:307)
at event_address.client.EventMain.jButtonShowBranchen_actionPerformed(EventMain.java:303)
at event_address.client.EventMain$7.actionPerformed(EventMain.java:122)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:216)
at java.awt.Component.processMouseEvent(Component.java:3715)
at java.awt.Component.processEvent(Component.java:3544)
at java.awt.Container.processEvent(Container.java:1164)
at java.awt.Component.dispatchEventImpl(Component.java:2593)
at java.awt.Container.dispatchEventImpl(Container.java:1213)
at java.awt.Component.dispatchEvent(Component.java:2497)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
at java.awt.Container.dispatchEventImpl(Container.java:1200)
at java.awt.Window.dispatchEventImpl(Window.java:926)
at java.awt.Component.dispatchEvent(Component.java:2497)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
i changed nothing in the code (wether the beans nor the client) except of the following 3 lines in the client-code:
//old env.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
//old env.put("java.naming.provider.url", "iiop://" + host + ":" + port);
//old env.put("java.naming.factory.url.pkgs", "org.jboss.naming");
env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
env.put(Context.PROVIDER_URL, "jnp://" + host + ":" + port);
env.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
using the first three lines the initial.lookup(mybean) fails!
i have no idea what the reason is - i would appreciate any help...
thanks a lot in advance!
best regards,
Smarti