ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » The Java method could not be found in message flow.

Post new topic  Reply to topic
 The Java method could not be found in message flow. « View previous topic :: View next topic » 
Author Message
chris888
PostPosted: Thu Aug 12, 2010 10:43 pm    Post subject: The Java method could not be found in message flow. Reply with quote

Novice

Joined: 12 Jul 2010
Posts: 21

I write a test flow as following, and I met the problem that the java method could not be found, can someone help me with it? :

Mqinput -> compute ->mqoutput
code for compute:
Code:

 
CREATE COMPUTE MODULE testJavaFlow_Compute
   CREATE FUNCTION Main() RETURNS BOOLEAN
   BEGIN
      -- CALL CopyMessageHeaders();
      -- CALL CopyEntireMessage();
      declare a1 character;
      declare a2 character;
      declare a3 character;
      set a1 = 'a1';
      set a2 = 'a2';
      call test(a1,a2,a3);
      
      RETURN TRUE;
   END;

CREATE PROCEDURE test(IN P1 CHARACTER, IN P2 character, OUT P3 character)
      LANGUAGE JAVA
      EXTERNAL NAME "chris.test.testIt";      

END MODULE;



JAVA file:

Code:
package chris;

class test {
   public static void testIt(String a1, String a2,String a3){
       a3 = a1 + a2;
   }
}



Error message

Code:
File:CHARACTER: ild/S610_P/src/DataFlowEngine/ImbRdl/ImbRdlExternalJava.cpp
Line:INTEGER:1102
Function:CHARACTER:ESQL2JavaMethodResolver::decodeReturnStatus
Type:CHARACTER:
Name:CHARACTER:
Label:CHARACTER:
Catalog:CHARACTER:BIPv610
Severity:INTEGER:3
Number:INTEGER:2946
Text:CHARACTER:The Java method could not be found
Insert
Type:INTEGER:5
Text:CHARACTER:chris.test.testIt
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Aug 13, 2010 1:37 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

How did you deploy the java file?
Back to top
View user's profile Send private message
rekarm01
PostPosted: Fri Aug 13, 2010 3:06 am    Post subject: Re: The Java method could not be found in message flow. Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

The ESQL-to-Java data-type mapping table explains how to declare Java arguments to map correctly to ESQL IN/OUT parameters.
Back to top
View user's profile Send private message
chris888
PostPosted: Sat Aug 14, 2010 8:20 pm    Post subject: Reply with quote

Novice

Joined: 12 Jul 2010
Posts: 21

Quote:
How did you deploy the java file?


When I create Bar file, I select Java file in the Prepare panel.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Sun Aug 15, 2010 8:19 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

rekarm01's link is the answer to your issue.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » The Java method could not be found in message flow.
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.