[JBoss JIRA] Created: (JBESB-1498) StackOverflowError caused by NamingContext
by Naveen Malik (JIRA)
StackOverflowError caused by NamingContext
------------------------------------------
Key: JBESB-1498
URL: http://jira.jboss.com/jira/browse/JBESB-1498
Project: JBoss ESB
Issue Type: Patch
Security Level: Public (Everyone can see)
Components: Rosetta
Affects Versions: 4.2.1
Environment: JBoss AS 4.2.1, Java 1.5.0_12
Reporter: Naveen Malik
When starting JBoss AS 4.2.1 with JBoss ESB 4.2.1GA installed a stack overflow exception is logged several times:
2008-01-17 16:13:52,336 WARN [org.jboss.soa.esb.listeners.lifecycle.AbstractThreadedManagedLifecycle] Unexpected error from doRun()
java.lang.StackOverflowError
at java.lang.StringCoding.decode(StringCoding.java:228)
at java.lang.String.<init>(String.java:405)
at java.lang.String.<init>(String.java:433)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:266)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:84)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:77)
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:239)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1387)
at org.jnp.interfaces.NamingContext.list(NamingContext.java:795)
at javax.naming.InitialContext.list(InitialContext.java:401)
at org.jboss.ha.jndi.TreeHead.list(TreeHead.java:354)
at org.jboss.ha.jndi.HAJNDI.list(HAJNDI.java:161)
at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.ha.framework.interfaces.HARMIClient.invoke(HARMIClient.java:258)
at $Proxy70.list(Unknown Source)
at org.jnp.interfaces.NamingContext.list(NamingContext.java:802)
at javax.naming.InitialContext.list(InitialContext.java:401)
at org.jboss.ha.jndi.TreeHead.list(TreeHead.java:354)
at org.jboss.ha.jndi.HAJNDI.list(HAJNDI.java:161)
at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.ha.framework.interfaces.HARMIClient.invoke(HARMIClient.java:258)
at $Proxy70.list(Unknown Source)
at org.jnp.interfaces.NamingContext.list(NamingContext.java:802)
at javax.naming.InitialContext.list(InitialContext.java:401)
at org.jboss.ha.jndi.TreeHead.list(TreeHead.java:354)
at org.jboss.ha.jndi.HAJNDI.list(HAJNDI.java:161)
at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.ha.framework.interfaces.HARMIClient.invoke(HARMIClient.java:258)
at $Proxy70.list(Unknown Source)
...
at org.jnp.interfaces.NamingContext.list(NamingContext.java:802)
at javax.naming.InitialContext.list(InitialContext.java:401)
at org.jboss.ha.jndi.TreeHead.list(TreeHead.java:354)
at org.jboss.ha.jndi.HAJNDI.list(HAJNDI.java:161)
at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.ha.framework.interfaces.HARMIClient.invoke(HARMIClient.java:258)
at $Proxy70.list(Unknown Source)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 8 months
[JBoss JIRA] Created: (JBESB-952) Classloading issue for .war files within .ears
by Tom Cunningham (JIRA)
Classloading issue for .war files within .ears
----------------------------------------------
Key: JBESB-952
URL: http://jira.jboss.com/jira/browse/JBESB-952
Project: JBoss ESB
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.2
Reporter: Tom Cunningham
Assigned To: Mark Little
There seems to be a classloading problem on redeploy for .WAR files within .ESB packages - and also with .WAR files side by side .ESB files in an .EAR. This was seen in JBESB-721, which was fixed by repackaging things. Basically if you have an ESB file set up like this :
--- My.esb
--------My.jar
--------My.war
--------META-INF/jboss-esb.xml
The classes references in My.jar don't seem to be flushed when the .esb redeploys, because if they are accessed from .esb actions, they cause ClassCastExceptions, yet they work from the .war.
helloworld_hibernate_action in SVN revision 14780 are a decent test case for this.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 8 months
[JBoss JIRA] Created: (JBESB-1557) JBossRemotingGateway listener should support multiple listeners for the same host port combination
by Daniel Bevenius (JIRA)
JBossRemotingGateway listener should support multiple listeners for the same host port combination
--------------------------------------------------------------------------------------------------
Key: JBESB-1557
URL: http://jira.jboss.com/jira/browse/JBESB-1557
Project: JBoss ESB
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: Transports
Affects Versions: 4.3
Reporter: Daniel Bevenius
Assigned To: Daniel Bevenius
Fix For: 4.3
Add support for having multiple jbr listeners listen to the same host port combination:
<jbr-provider name="JBR-Http" protocol="http" host="localhost" path="service1">
<jbr-bus busid="Http-1" port="8765" />
</jbr-provider>
<jbr-provider name="JBR-Http2" protocol="http" host="localhost" path="service2">
<jbr-bus busid="Http-2" port="8765"/>
</jbr-provider>
Also notice the addition of the path configuration parameter. This is intended to identify the path that will be used by a ws client that calls the service. Talked to Tom and he suggested placing the path property on the jbr-bus element so I'll change that. The attached example uses this way just as a proof-of-concept (too lazy to change it right now)
The path is used by the JBossRemoteGatewayListener as the subsystem when adding InvokationHandlers to a Connector. So we are bascically keeping track of JBoss Remting Connectors that share the same host/port combination, and adding InvokationHandlers to them with the above specifed path as their subsystem.
This solution requires that the JBoss Remoting ServerInvoker be modified and adding something like this:
String subsystem = invocation.getSubsystem();
String clientId = invocation.getSessionId();
Map requestPayload = invocation.getRequestPayload();
if ( subsystem == null && requestPayload != null )
{
String path = (String) requestPayload.get( HTTPMetadataConstants.PATH );
subsystem = path.substring( path.indexOf( '/' ) + 1 );
}
log.info( "subsystem : " + subsystem );
This is needed so it can set the incoming path as the target subsystem.
I'm not sure if this is the best way to do this but I'll ask in the Remoting forum if they have a better suggestion.
Really, the gain with this is that we can have multiple webservice running in a ESB instance using the same port. This is important because we it becomes difficult opening a separate port for every web service. This is the issue we are facing at the moment.
Note that this solution does not work when running multiple ESB instances on the same machine, as this would still cause a port conflict. The solution is specific to a single JVM.
Any thought or comments on this?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 10 months
[JBoss JIRA] Created: (JBESB-652) Refactory JMSRouter to simplfy setting properties on JMSMessage from ESB Message object
by Daniel Bevenius (JIRA)
Refactory JMSRouter to simplfy setting properties on JMSMessage from ESB Message object
---------------------------------------------------------------------------------------
Key: JBESB-652
URL: http://jira.jboss.com/jira/browse/JBESB-652
Project: JBoss ESB
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Reporter: Daniel Bevenius
Assigned To: Mark Little
Priority: Minor
The use case for this is that we need to set the correlation id of the JMSMessage before it is sent by the JMSRouter.
We have previously subclassed JMSRouter but this was not the best solution as we needed to override the route method and duplicate most of the code.
I would be nice to have a method that would be called from the route method that looked something like this:
setJMSProperties ( jmsMessage, esbMsg );
The default implementation could do nothing but would let subclasses only override this method.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 10 months