[Installation, Configuration & DEPLOYMENT] - 4.0.5 to 4.2.1 hostname problem with port 4446?
by fmorton
Jboss 4.2.1 (do not see this problem with 4.0.5)
linux redhat enterprise/intel system
java 1.5.0_12
One instance of jboss inside firewall. IP address of system is 10.0.0.46. Valid external routeable address also
assigned to the server. Start system including options:
-Djava.rmi.server.useLocalHostname=true -Djava.rmi.server.hostname=ACTUALHOSTNAMEHERE
Outside the firewall is another instance of jboss. Attach to inside system using:
java.naming.provider.url=ACTUALHOSTNAMEHERE:1099
Starting jboss using "-b 0.0.0.0".
However, with 4.2.1, the external server is unable to attach to the server inside the firewall.
Have seen this message from the external server:
org.jboss.remoting.CannotConnectException: Can not get connection to
server. Problem establishing socket connection for InvokerLocator
[socket://10.0.0.46:4446/?dataType=invocation&enableTcpNoDelay=true&
marshaller=org.jboss.invocation.unified.marshall.InvocationMarshaller&
socketTimeout=600000&unmarshaller=org.jboss.invocation.unified.marshall.InvocationUnMarshaller]
Note that it is referring to the non-routeable address of the internal server (10.0.0.46) rather than the valid external ip address.
So, I suspect there is some configuration file somewhere that determines where it grabs the hostname from,
though I'd like to also hear other comments.
Anyone know how to resolve this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076087#4076087
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076087
18Â years, 9Â months
[JBoss Seam] - Getting "Stack must not be null" error when running a test
by ejbengine
The code for my test is :
| public class FindClaimTest extends SeamTest {
|
| @Test
| public void testFindUnregisteredClaims() throws Exception {
| new ComponentTest() {
|
| protected void testComponents() throws Exception {
| invokeMethod("#{registrationFinder.find}");
| }
|
| }.run();
| }
| }
However, when this test runs , its failing with the message "javax.el.ELException: javax.ejb.EJBException: java.lang.IllegalArgumentException: Stack must not be null"
The full stacktrace is shown below :
javax.el.ELException: javax.ejb.EJBException: java.lang.IllegalArgumentException: Stack must not be null
| at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)
| at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:338)
| at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
| at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
| at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
| at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:174)
| at org.jboss.seam.mock.BaseSeamTest$ComponentTest.invokeMethod(BaseSeamTest.java:130)
| at com.introspect.scs.testclients.FindClaimTest$1.testComponents(FindClaimTest.java:13)
| at org.jboss.seam.mock.BaseSeamTest$ComponentTest.run(BaseSeamTest.java:156)
| at com.introspect.scs.testclients.FindClaimTest.testFindUnregisteredClaims(FindClaimTest.java:10)
| Caused by: javax.ejb.EJBException: java.lang.IllegalArgumentException: Stack must not be null
| at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:193)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:105)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:204)
| at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:100)
| at $Proxy67.find(Unknown Source)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
| at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:72)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
| at org.jboss.seam.ejb.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:41)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
| at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:50)
| at org.javassist.tmp.java.lang.Object_$$_javassist_68.find(Object_$$_javassist_68.java)
| at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:325)
| ... 31 more
| Caused by: java.lang.IllegalArgumentException: Stack must not be null
| at org.jboss.seam.core.ConversationEntry.<init>(ConversationEntry.java:39)
| at org.jboss.seam.core.ConversationEntries.createConversationEntry(ConversationEntries.java:53)
| at org.jboss.seam.core.Manager.createConversationEntry(Manager.java:510)
| at org.jboss.seam.core.Manager.beginConversation(Manager.java:531)
| at org.jboss.seam.core.ConversationInterceptor.beginConversation(ConversationInterceptor.java:212)
| at org.jboss.seam.core.ConversationInterceptor.beginConversationIfNecessary(ConversationInterceptor.java:149)
| at org.jboss.seam.core.ConversationInterceptor.aroundInvoke(ConversationInterceptor.java:55)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
| at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53)
| at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| ... 65 more
Any pointers?
Thanks
jeff mutonho
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076081#4076081
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076081
18Â years, 9Â months