|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
The Java method could not be found in message flow. |
« View previous topic :: View next topic » |
Author |
Message
|
chris888 |
Posted: Thu Aug 12, 2010 10:43 pm Post subject: The Java method could not be found in message flow. |
|
|
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 |
|
 |
mqjeff |
Posted: Fri Aug 13, 2010 1:37 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
How did you deploy the java file? |
|
Back to top |
|
 |
rekarm01 |
Posted: Fri Aug 13, 2010 3:06 am Post subject: Re: The Java method could not be found in message flow. |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 1415
|
|
Back to top |
|
 |
chris888 |
Posted: Sat Aug 14, 2010 8:20 pm Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Sun Aug 15, 2010 8:19 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
rekarm01's link is the answer to your issue. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|