[JBoss Web Services] New message: "Re: Occasional exceptions out of SOAPAddressingPropertiesImpl.writeHeaders"
by Andrew Dinn
User development,
A new message was posted in the thread "Occasional exceptions out of SOAPAddressingPropertiesImpl.writeHeaders":
http://community.jboss.org/message/529112#529112
Author : Andrew Dinn
Profile : http://community.jboss.org/people/adinn
Message:
--------------------------------------------------------------
> frapaa wrote:
>
>
> Did you manage to solve this problem?
>
>
No. I didn't bother to do so. The error indicated that it was to do with an application classloader refusing to load classes correctly because the app had been undeployed. That implies that the problem relates to use of hot deployment. If the configuration I ran on was a stable production release it might merit the effort tracking down which class was hanging on to old rereferences. I think there are far more important things to fix in the version I was using. If you rsituation is the former it might be worth pushing for someone to look at the problem. Of course, you could alwasy try to debug it yourself. We are always happy to be sent fixes :-)
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529112#529112
16 years, 1 month
[EJB 3.0 Development] New message: "lookup for remote bean - failure"
by Yaron Levy
User development,
A new message was posted in the thread "lookup for remote bean - failure":
http://community.jboss.org/message/529105#529105
Author : Yaron Levy
Profile : http://community.jboss.org/people/reyaron
Message:
--------------------------------------------------------------
Hi,
My problem is that for some reason, the path to my remote bean is being duplicated by the http://java.sun.com/javase/6/docs/api/javax/naming/InitialContext.html as you can see also in the exception:
/my-app-ear-name/GeneralDao/my-app-ear-name/GeneralDao/remote
why is that happening?
How can I avoid this?
I work with jboss-5.1.0.GA , http://www.javaranch.com/ 6.0.12
the way I do the lookup:
Properties properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
properties.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
properties.put(Context.PROVIDER_URL, "127.0.0.1:1099");
context = new InitialContext(properties);
Object bean = context.lookup("my-app-ear-name/GeneralDao/remote");
The exeption:
javax.naming.NamingException: Could not dereference object [Root exception is java.lang.RuntimeException: Exception while trying to locate proxy factory in JNDI, at key ProxyFactory/my-app-ear-name/GeneralDao/my-app-ear-name/GeneralDao/remote]
at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1508)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:824)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.mycompany.util.TestServiceLocator.getRemote(TestServiceLocator.java:47)
at com.mycompany.util.TestServiceLocator.getRemoteBean(TestServiceLocator.java:60)
at com.mycompany.GeneralDaoTest.testMergeFindRemove(GeneralDaoTest.java:17)
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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.RuntimeException: Exception while trying to locate proxy factory in JNDI, at key ProxyFactory/my-app-ear-name/GeneralDao/my-app-ear-name/GeneralDao/remote
at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.getProxyFactoryFromJNDI(ProxyObjectFactory.java:249)
at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.getObjectInstance(ProxyObjectFactory.java:157)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1483)
at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1500)
... 28 more
Caused by: javax.naming.NameNotFoundException: ProxyFactory not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
at org.jnp.server.NamingServer.lookup(NamingServer.java:396)
at sun.reflect.GeneratedMethodAccessor280.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688)
at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.getProxyFactoryFromJNDI(ProxyObjectFactory.java:240)
my remote bean declaration:
@Stateless
public class GeneralDao implements GeneralDaoIfc, GeneralDaoIfcRemote{
....
}
GeneralDaoIfcRemote:
@Remote
public interface GeneralDaoIfcRemote {
...
}
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529105#529105
16 years, 1 month
[JBoss Web Services] New message: "Re: Occasional exceptions out of SOAPAddressingPropertiesImpl.writeHeaders"
by Frank Paaske
User development,
A new message was posted in the thread "Occasional exceptions out of SOAPAddressingPropertiesImpl.writeHeaders":
http://community.jboss.org/message/529100#529100
Author : Frank Paaske
Profile : http://community.jboss.org/people/frapaa
Message:
--------------------------------------------------------------
Hi,
Did you manage to solve this problem?
I have a similar situation here; first deploy always succeeds, but after a redeploy the following exception prints out in the log:
org.mobicents.servlet.sip.core.dispatchers.DispatcherException: Unexpected exception while processing response : SIP/2.0 200 OK at org.mobicents.servlet.sip.core.dispatchers.ResponseDispatcher$1.dispatch(ResponseDispatcher.java:314) at org.mobicents.servlet.sip.core.dispatchers.DispatchTask.dispatchAndHandleExceptions(DispatchTask.java:55) at org.mobicents.servlet.sip.core.dispatchers.DispatchTask.run(DispatchTask.java:50) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:637)Caused by: javax.xml.parsers.FactoryConfigurationError: Provider com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl could not be instantiated: java.lang.IllegalStateException: BaseClassLoader@40be2b01{...} classLoader is not connected to a domain (probably undeployed?) for class com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:129) at org.apache.axis.utils.XMLUtils.getDOMFactory(XMLUtils.java:221) at org.apache.axis.utils.XMLUtils.access$000(XMLUtils.java:75) at org.apache.axis.utils.XMLUtils$ThreadLocalDocumentBuilder.initialValue(XMLUtils.java:98) at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:141) at java.lang.ThreadLocal.get(ThreadLocal.java:131) at org.apache.axis.utils.XMLUtils.getDocumentBuilder(XMLUtils.java:237) at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:337) at org.apache.axis.message.SOAPDocumentImpl.<init>(SOAPDocumentImpl.java:70) at org.apache.axis.SOAPPart.<init>(SOAPPart.java:1020) at org.apache.axis.Message.setup(Message.java:377) at org.apache.axis.Message.<init>(Message.java:246)
Any tips are appreciated!
Thanks,
Frank
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529100#529100
16 years, 1 month