[
https://issues.apache.org/jira/browse/SMX4-1999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ben Alaya updated SMX4-1999:
----------------------------
Attachment: beans.xml
> Failed to connect to JBoss using remote protocol
> ------------------------------------------------
>
> Key: SMX4-1999
> URL: https://issues.apache.org/jira/browse/SMX4-1999
> Project: ServiceMix 4
> Issue Type: Bug
> Environment: * {color:#205081}ServiceMix 4.3.0-fuse-03-00/Camel
> 2.5.0-fuse-00-00 {color}
> * {color:#205081}idem for ServiceMix 6.0.5/Camel 2.5.16{color}
> * {color:#205081}JBoss 6.2.0{color}
> * {color:#205081}JDK 1.7.0.51{color}
> * {color:#205081}JBoss Client
> (org.jboss.as/jboss-as-client-all/7.3.0.Final-redhat-14), wrapped as
> bundle{color}
> Reporter: Ben Alaya
> Priority: Major
>
> Hi.
> I will open this ticket as a Bug, as I don't see any other alternative for
> now.
> {color:#205081}*+Context:+*{color}
> I am using servicemix 4.3.0 (idem for 6.0.5 version). We migrated from JBoss
> 4.2.3 to JBoss 6.2.0 so jndi lookup will be done using remote:// instead of
> jnp:// which was working of course in old version.
> I am trying to do a remote invocation from a running application on
> JBoss6.2.0, but having the error message below.
> For your information, I did the following in order to shorten the list of
> possible issues:
> # Tried as mentionned to use version of serviceMix 6.0.5 (Camel 2.5.16)
> instead of version 4.3.0 (Camel 2.5.0) we were using in past, but got same
> error message (the one stated below)
> # I made a small test case using a maven project (basic project) and I could
> recuperate the target ConnectionFactory successfully, with the same bean
> instanciation than the one used in camel-context
> # For the JBoss side, I removed the realm attribute on the remoting
> configuration, so not needing any authentication (ps : the point2 has shown
> that no authentication information needs to be provided)
> # Even tried to get the beans from that bundle to another one (wrap:mvn ...,
> without a camel context), and got same issue
> I don't know whether I missed something here, but seems to me that this is an
> issue. I will post updates on the ticket from my side if I have something new
> to share.
> Log here is on version 6.0.5.
> {code:java}
> 2019-03-12 18:42:44,191 | DEBUG | ExtenderThread-3 | HaRemoteNamingStore |
> 231 - com.bsb.org.jboss.client - 1.0.0 | Failed to connect to server
> remote://10.5.189.31:4447
> java.lang.RuntimeException: Operation failed with status WAITING
> at
> org.jboss.naming.remote.protocol.IoFutureHelper.get(IoFutureHelper.java:89)[231:com.bsb.org.jboss.client:1.0.0]
> at
> org.jboss.naming.remote.client.HaRemoteNamingStore.failOverSequence(HaRemoteNamingStore.java:193)[231:com.bsb.org.jboss.client:1.0.0]
> at
> org.jboss.naming.remote.client.HaRemoteNamingStore.namingStore(HaRemoteNamingStore.java:144)[231:com.bsb.org.jboss.client:1.0.0]
> at
> org.jboss.naming.remote.client.HaRemoteNamingStore.namingOperation(HaRemoteNamingStore.java:125)[231:com.bsb.org.jboss.client:1.0.0]
> at
> org.jboss.naming.remote.client.HaRemoteNamingStore.lookup(HaRemoteNamingStore.java:241)[231:com.bsb.org.jboss.client:1.0.0]
> at
> org.jboss.naming.remote.client.RemoteContext.lookup(RemoteContext.java:79)[231:com.bsb.org.jboss.client:1.0.0]
> at
> org.jboss.naming.remote.client.RemoteContext.lookup(RemoteContext.java:83)[231:com.bsb.org.jboss.client:1.0.0]
> at javax.naming.InitialContext.lookup(InitialContext.java:411)[:1.7.0_51]
> at
> org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:154)[106:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
> at
> org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:87)[106:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
> at
> org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152)[106:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
> at
> org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178)[106:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
> at
> org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95)[106:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
> at
> org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)[106:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
> at
> org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:231)[106:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
> at
> org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:217)[106:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1573)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1511)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1419)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1160)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1419)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1160)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:636)[104:org.apache.servicemix.bundles.spring-beans:3.2.17.RELEASE_1]
> at
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:938)[106:org.apache.servicemix.bundles.spring-context:3.2.17.RELEASE_1]
> at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)[110:org.springframework.osgi.core:1.2.1]
> at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)[110:org.springframework.osgi.core:1.2.1]
> at
> org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[110:org.springframework.osgi.core:1.2.1]
> at
> org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[110:org.springframework.osgi.core:1.2.1]
> at
> org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)[111:org.springframework.osgi.extender:1.2.1]
> at java.lang.Thread.run(Thread.java:744)[:1.7.0_51]
> {code}
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)