Ben Alaya created SMX4-1999:
-------------------------------

             Summary: Failed to connect to Remote
                 Key: SMX4-1999
                 URL: https://issues.apache.org/jira/browse/SMX4-1999
             Project: ServiceMix 4
          Issue Type: Bug
         Environment: * ServiceMix 6.0.5
* Karaf 2.5.16
* JBoss 6.2.0
* JDK 1.7.0.51
* 
            Reporter: Ben Alaya


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 (karaf 2.5.16) 
instead of version 4.3.0 (karaf 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)

Reply via email to