You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Frankiboy <ma...@gmail.com> on 2014/07/25 14:55:12 UTC

IBM MQ The data received from host is not valid ?

I reading from a file , with the only text  "Frank was here" from a file
named test.txt

Schold i format my data in some way or ?

But on the remote MQ mashine a "AIX" there is this  error in  MQ log:

AMQ9207: The data received from host 'BDD03240 (10.10.173.88)' is not valid.

When i look this up, the problem is:

1.An unknown host is sending data 
2.A non-mq application sending data to the mq listener port 
3.The CCSIDs are incorrect causing bad conversion 
4.The inetd.conf entry is not correct , for example, incorrect port defined 
5.The /dev/null directory does not have the proper permission's on the
remote machine 
6.DataPower Customers can encounter this problem. See the following APARs: 


My
from("file:c:/camel-input/?delete=true").to("activemq:topic:HUB_TOP01?selector=BD='YES'");

My camel.xml: 

<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	 xmlns:cxf="http://camel.apache.org/schema/cxf"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
         http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd
         http://camel.apache.org/schema/cxf
http://camel.apache.org/schema/cxf/camel-cxf.xsd">

	<bean id="bankconnectRoutes"
class="dk.bankconnect.hub.controller.CentralRouter" />
	
	
	<bean id="activemq" class="org.apache.camel.component.jms.JmsComponent">  
	  <property name="connectionFactory">
        <bean class="com.ibm.mq.jms.MQConnectionFactory">  
        	 <property name="transportType" value="1"/>
			 <property name="hostName" value="bdaix416.bdunet.dk"/>     
		   	 <property name="port" value="1414"/>
		   	 <property name="queueManager" value="HUB_T_416"/>
		     <property name="channel" value="SYSTEM.DEF.SVRCONN"/> 
		     <property name="CCSID" value="819"></property>
	    </bean> 
	  </property>
	 </bean>
	

 	<cxf:cxfEndpoint id="hubws" address="/CorporateService"
		xmlns="http://service.bankconnect.dk" wsdlURL="WEB-INF/bankconnect.wsdl"
/>  
	<camelContext xmlns="http://camel.apache.org/schema/spring">
		<routeBuilder ref="bankconnectRoutes" />
		
		
	</camelContext>
</beans>

Route: 

from("file:c:/camel-input/?delete=true").to("activemq:topic:HUB_TOP01?selector=BD='YES'");
 
My java exception:


Exchange[ 
        Id                  ID-BDD03240-58932-1406121373570-0-56 
        ExchangePattern     InOnly 
        Headers            
{breadcrumbId=ID-BDD03240-58932-1406121373570-0-55, CamelFileAbsolute=true,
CamelFileAbsolutePath=c:\camel-input\test.txt,
CamelFileLastModified=1405948679309, CamelFileLength=14,
CamelFileName=test.txt, CamelFileNameConsumed=test.txt,
CamelFileNameOnly=test.txt, CamelFileParent=c:\camel-input,
CamelFilePath=c:\camel-input\test.txt, CamelFileRelativePath=test.txt,
CamelRedelivered=false, CamelRedeliveryCounter=0}
         BodyType            org.apache.camel.component.file.GenericFile 
        Body                [Body is file based:
GenericFile[c:\camel-input\test.txt]]
 ] 


The stack trace from websphere log:

Stacktrace 
---------------------------------------------------------------------------------------------------------------------------------------
 org.springframework.jms.UncategorizedJmsException: Uncategorized exception
occured during JMS processing; nested exception is
com.ibm.msg.client.jms.DetailedJMSException: JMSFMQ6312: An exception
occurred in the Java(tm) MQI. The Java(tm) MQI has thrown an exception
describing the problem.  See the linked exception for further information.;
nested exception is com.ibm.mq.jmqi.JmqiException: CC=2;RC=2195;AMQ9546:
Error return code received.
[1=java.lang.NoSuchMethodException[com.ibm.mq.jmqi.remote.internal.RemoteFAP.<init>(com.ibm.mq.jmqi.JmqiEnvironment,
int)],3=Class.throwNoSuchMethodException]
         at
org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:316)
         at
org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:168)
         at
org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:469)
         at
org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate.send(JmsConfiguration.java:226)
         at
org.apache.camel.component.jms.JmsProducer.doSend(JmsProducer.java:415)
         at
org.apache.camel.component.jms.JmsProducer.processInOnly(JmsProducer.java:369)
         at
org.apache.camel.component.jms.JmsProducer.process(JmsProducer.java:145)
         at
org.apache.camel.processor.SendProcessor.process(SendProcessor.java:110)
         at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
         at
org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)
         at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
         at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
         at
org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:401)
         at
org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:201)
         at
org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:165)
         at
org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:187)
         at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:114)
         at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:452)
         at
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:328)
         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:161) 
        at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:109)
         at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:191)
         at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:215)
         at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
         at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
         at java.lang.Thread.run(Thread.java:738) 
Caused by: com.ibm.msg.client.jms.DetailedJMSException: JMSFMQ6312: An
exception occurred in the Java(tm) MQI. The Java(tm) MQI has thrown an
exception describing the problem.  See the linked exception for further
information.
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
         at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:56)
         at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:39)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:527) 
        at
com.ibm.msg.client.commonservices.j2se.NLSServices.createException(NLSServices.java:313)
         at
com.ibm.msg.client.commonservices.nls.NLSServices.createException(NLSServices.java:388)
         at
com.ibm.msg.client.wmq.factories.WMQConnectionFactory.createV7ProviderConnection(WMQConnectionFactory.java:7178)
         at
com.ibm.msg.client.wmq.factories.WMQConnectionFactory.createProviderConnection(WMQConnectionFactory.java:6583)
         at
com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl.createConnection(JmsConnectionFactoryImpl.java:295)
         at
com.ibm.mq.jms.MQConnectionFactory.createCommonConnection(MQConnectionFactory.java:6232)
         at
com.ibm.mq.jms.MQConnectionFactory.createConnection(MQConnectionFactory.java:6260)
         at
org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:184)
         at
org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:456)
         ... 23 more 
Caused by: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2195;AMQ9546: Error return
code received.
[1=java.lang.NoSuchMethodException[com.ibm.mq.jmqi.remote.internal.RemoteFAP.<init>(com.ibm.mq.jmqi.JmqiEnvironment,
int)],3=Class.throwNoSuchMethodException]
         at
com.ibm.mq.jmqi.JmqiEnvironment.getInstance(JmqiEnvironment.java:770)
         at com.ibm.mq.jmqi.JmqiEnvironment.getMQI(JmqiEnvironment.java:623) 
        at
com.ibm.msg.client.wmq.factories.WMQConnectionFactory.createV7ProviderConnection(WMQConnectionFactory.java:7170)
         ... 29 more 
Caused by: java.lang.NoSuchMethodException:
com.ibm.mq.jmqi.remote.internal.RemoteFAP.<init>(com.ibm.mq.jmqi.JmqiEnvironment,
int)
         at java.lang.Class.throwNoSuchMethodException(Class.java:288) 
        at java.lang.Class.getConstructor(Class.java:335) 
        at
com.ibm.mq.jmqi.JmqiEnvironment.getInstance(JmqiEnvironment.java:683)
         ... 31 more 



Frank 



--
View this message in context: http://camel.465427.n5.nabble.com/IBM-MQ-The-data-received-from-host-is-not-valid-tp5754448.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: IBM MQ The data received from host is not valid ?

Posted by Frankiboy <ma...@gmail.com>.
I find the problem, i missed one jar file com.mq.mq.jms.jar so this problem
is solved 



--
View this message in context: http://camel.465427.n5.nabble.com/IBM-MQ-The-data-received-from-host-is-not-valid-tp5754448p5754573.html
Sent from the Camel - Users mailing list archive at Nabble.com.