Message Handling in Java?
Hi, All Friends:
Has Java afford some message processing capabilities like CORBA or MPI?
I want to use Java to send some types of messages and process them.
Now I have to use sockets to do them by hand.
Thank u very much!
Corba and MPI feel like two different animals to me.
Java has an analog to Corba built-in: it's Remote Method Invocation (RMI). Just like Corba, RMI uses stubs and skeletons, marshalling and unmarshalling of parameters to effect distributed objects.
I know of MPI from parallel computing for large linear algebra problems. It might be that you can use MPI as a substitute for Corba and visa versa, but I've not seen it done.
Have you Googled for a Java MPI implementation?
http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=Java+MPI&btnG=Search
Brought back these:
http://mailer.csit.fsu.edu/mailman/listinfo/java-mpi/
http://sunsite.iisc.ernet.in/java/mpiJava/docs/mpiJava.html
http://portal.acm.org/citation.cfm?id=331553&dl=ACM&coll=portal
http://beowulf.lcs.mit.edu/18.337-2003/projects/web.mit.edu/maxg/www/18.337/
There might be more out there.
Similar Messages
-
Accessing SAP:HopList element in message header from JAVA-mapping
Dear Experts,
Is it possible to access the SAP:HopList element from message header in JAVA-mapping?
I need this to get the list off all receivers of current message (I have a ReceiverDetermination with two receivers, without any conditions, so both receivers are receiving each message and in InterfaceDetermination to one of the receivers I have a JAVA-mapping, in which I need to know the name of another receiver. And the SAP:HopList is containing this information).
Or maybe where is some other solution?
Best Regards,
Artsiom AnichenkaThat's tricky, since the proper way of doing it would be through BPM.
Anyway, if you expose your XI interface as a WebService (Soap sender cc) you could access it through Mapping Lookup (lookup works for RFC, DB and Soap lookups). Check https://help.sap.com/javadocs/NW04S/current/pi/index.html
But be aware that Mapping Lookup API is not intended for inserts/updates (since it doesn't contain any transacational handling), just mere lookups (selects in tables), so I'm not sure it is the best approach for your case.
Regards,
Henrique. -
RWB Message monitiring error :java.lang.NullPointerException
Hi experts,
We have moved our developement system to new hardware with clustering. gdc-vsap-m11 holds ASCS, CI and SCS but database id on gdc-vsap-m10. On exchange profiles and all the connection for integration server, integration repository, integration directory, adapter engine and RWB is set gc-vsap-m11 and on sxmb_adm and sld for intergration server is set to gdc-vsap-m11.
Now when accessing integration directory and integration repository on the http://gdc-vsap-m11.no.enterdir.com:50800/rep/start/index.jsp is opening perfectly. But on RWB, the message monitoring I get the error java.lang.NullPointerException. At component monitoring I get this:
Domain ??? (domain.08.gdc-vsap-m10)
Integration Server
Integration Engines
Non-Central Adapter Engines
Adapter Engine XD8 (gdc-vsap-m10)
J2SE Adapter
Tools
Nothing is displayed under integration server and integration engine. Please guide.
Thanks.
Regards,
ThavaHi,
I have added parameter com.sap.aii.connect.integrationserver.sld.name and given value as is.08.gdc-vsap-m11 yet the same error. Nothing is populated under integration server in component monitoring.
on rwb the same error persists :
java.lang.NullPointerException
at com.sap.aii.mdt.web.MonitorDynPage.setNewComponent(MonitorDynPage.java:531)
at com.sap.aii.mdt.web.MonitorDynPage.process_go_button(MonitorDynPage.java:391)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:331)
at com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:173)
at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:119)
at com.sapportals.htmlb.page.PageProcessorServlet.handleRequest(PageProcessorServlet.java:62)
at com.sapportals.htmlb.page.PageProcessorServlet.doPost(PageProcessorServlet.java:22)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
Wait...
Query being processed
Please help.
Thanks.
Thava -
Tool Pallete - Advanced - Message Handling Script/Script
We have few clarifications in OEDQ.
Tool Pallete -> Advanced -> Message Handling Script/Script:
we can write Java Script to define processing logic that acts across all the records in a message, or that acts selectively on only the first record in the message.
I tried writing Java Script for Data Validation and to display the message.
Java Code:
Public static void main(String[] args)
int EMPNO;
if(EMPNO = "123456")
system.out.println("Invalid EMPNO");
else
system.out.println("Valid EMPNO");
When we try to run the processor, We are getting the below error.
"error during process preparation
error in script: Error compiling Script: Missing ; before statement"
We are not getting error when we try to write a C program for the Message Handling Script.
C program:
var res=' '
var res1=' '
var res2=' '
if(input1=='US'){
res='Valid Country Code';
output1=res;
else if (input1=='UK')
res1='Valid Country Code';
output1=res1;
else
res2='InValid Country Code';
output1=res2;
Could you please let us know whether Java code can be used in Message handling script and can we have the header "Public static void main(String[] args)" in the script.
Thanks for your time.Hi,
See the OEDQ online help here
Search for "Script" and "Message Handling Script"
You can use JavaScript or Groovy but NOT Java. Also the script needs to adhere to certain interfaces to allow it to be called by EDQ. See the examples provided.
regards,
Nick -
SOAP APIs needed to extract SOAP request arguments for message handler implementation
1. I am facing problem in using the Message Handler approach for the implementation
of webservices using SOAP on BEA weblogic 8.1. A SOAP request(XML format) can
be interrupted using the message handler and hence can be modified before it invokes
the webservice method. I have been able to successfully extract the SOAP Name
space xml format as a part of the SOAP request using the APIs given below
APIs:
SOAPBody body = env.getBody();
Name Spaces format:
<m:sayHello xmlns:m="http://www.bea.com/servers/wls70/samples/examples/webservices/basic/statelessSession">
<intVal xsi:type="xsd:int">100</intVal>
<string xsi:type="xsd:string">vikas</string>
</m:sayHello>
The above is a Hello world example which invokes the sayHello method with arguments
as an integer and a string. I have not been able to find the SOAP APIs to extract
these arguments from the SOAP Body.
2. But there are XML apis which can extract the tag data from the SOAPBody e.g
NodeList nl = body.getChildNodes();
for(int i = 0; i < nl.getLength(); i++)
Node node = (Node)nl.item(i);
if(node instanceof SOAPElement){
SOAPElement se = (SOAPElement)node;
String operationName = se.getLocalName();
String value = se.getValue();
The SOAPBody interface implements the following interfaces (Ref : http://java.sun.com/j2ee/1.4/docs/api/index.html
javax.xml.soap > SOAPBody )javax.xml.soap.Node, javax.xml.soap.SOAPElement(SOAP APIs)
org.w3c.dom.Node, org.w3c.dom.Element (XML Parser APis)
3. But webservice implementation of Weblogic Application server 8.1(webservice.jar)
doesn't support the XML parser APIs and only supports the SOAP APIs.
i.e. The SOAPBody Interface of Weblogic Application Server only implements the
javax.xml.soap.Node, javax.xml.soap.SOAPElement (SOAP APIs) and not the XML APIs
(org.w3c.dom.Node, org.w3c.dom.Element)
So the code snippet written as a part of point 2 will not be compiled(give compilation
error) using the webservice.jar of Weblogic 8.1.
4. I have tried to compile the same code using the saaj-1_2-fr-api.jar (SOAP 1.2
apis jar) which I have downloaded from java.sun site. And the code got successfully
compiled.
In this latest version of SOAP APIs jar the SOAPBody interface implements both
the SOAP as well as XML parser Apis.
5. I was not able to run this code on the Weblogic server , bcoz at the runtime
weblogic 8.1 is using its webservice.jar instead of saaj-1_2-fr-api.jar. And
this code was giving me runtime error as
java.lang.NoSuchMethodError: javax.xml.soap.SOAPBody.getChildNodes()Lorg/w3c/dom/NodeList;
(see Fault Detail for stacktrace)</faultstring>
So now I need to find out the version of the webservice.jar of Weblogic 8.1 which
supports SOAP Apis as well as XML parser apis.
Otherwise I have to find out the SOAP apis which can extract the tag data from
the SOAP body.
Please Help.You can use the SAAJ APIs to get the child nodes.
Example here:
http://manojc.com/tutorial/sample4/ServerHandler.java
so instead of using body.getChildNodes(), you have to use
body.getChildElements() which returns an iterator of SOAPElements.
Regards,
-manoj
http://manojc.com
"Vikas Garg" <[email protected]> wrote in message
news:40dfb5e0$1@mktnews1...
>
1. I am facing problem in using the Message Handler approach for theimplementation
of webservices using SOAP on BEA weblogic 8.1. A SOAP request(XML format)can
be interrupted using the message handler and hence can be modified beforeit invokes
the webservice method. I have been able to successfully extract the SOAPName
space xml format as a part of the SOAP request using the APIs given below
APIs:
SOAPBody body = env.getBody();
Name Spaces format:
<m:sayHelloxmlns:m="http://www.bea.com/servers/wls70/samples/examples/webservices/basic
/statelessSession">
<intVal xsi:type="xsd:int">100</intVal>
<string xsi:type="xsd:string">vikas</string>
</m:sayHello>
The above is a Hello world example which invokes the sayHello method witharguments
as an integer and a string. I have not been able to find the SOAP APIs toextract
these arguments from the SOAP Body.
2. But there are XML apis which can extract the tag data from the SOAPBodye.g
>
NodeList nl = body.getChildNodes();
for(int i = 0; i < nl.getLength(); i++)
Node node = (Node)nl.item(i);
if(node instanceof SOAPElement){
SOAPElement se = (SOAPElement)node;
String operationName = se.getLocalName();
String value = se.getValue();
The SOAPBody interface implements the following interfaces (Ref :http://java.sun.com/j2ee/1.4/docs/api/index.html
javax.xml.soap > SOAPBody )javax.xml.soap.Node, javax.xml.soap.SOAPElement(SOAP APIs)
org.w3c.dom.Node, org.w3c.dom.Element (XML Parser APis)
3. But webservice implementation of Weblogic Application server8.1(webservice.jar)
doesn't support the XML parser APIs and only supports the SOAP APIs.
i.e. The SOAPBody Interface of Weblogic Application Server only implementsthe
javax.xml.soap.Node, javax.xml.soap.SOAPElement (SOAP APIs) and not theXML APIs
(org.w3c.dom.Node, org.w3c.dom.Element)
So the code snippet written as a part of point 2 will not be compiled(givecompilation
error) using the webservice.jar of Weblogic 8.1.
4. I have tried to compile the same code using the saaj-1_2-fr-api.jar(SOAP 1.2
apis jar) which I have downloaded from java.sun site. And the code gotsuccessfully
compiled.
In this latest version of SOAP APIs jar the SOAPBody interface implementsboth
the SOAP as well as XML parser Apis.
5. I was not able to run this code on the Weblogic server , bcoz at theruntime
weblogic 8.1 is using its webservice.jar instead of saaj-1_2-fr-api.jar.And
this code was giving me runtime error as
java.lang.NoSuchMethodError:javax.xml.soap.SOAPBody.getChildNodes()Lorg/w3c/dom/NodeList;
(see Fault Detail for stacktrace)</faultstring>
So now I need to find out the version of the webservice.jar of Weblogic8.1 which
supports SOAP Apis as well as XML parser apis.
Otherwise I have to find out the SOAP apis which can extract the tag datafrom
the SOAP body.
Please Help. -
Handling apllication java.Exceptions
I've developed an Weblogic WebService Application with several webservices inside.
They are working fine but when a WebService throws a java Exception this exception is putted inside a SoapFaultException.
After some research I figured that I should create my own Exceptions that inherits from SoapFaultException to best format the exception message
my clients will receive, ok it is done and it's working. Now I need to handle all java Exceptions (witch were not throw by me) to put it in my own Exceptions witch inherits from soapFaultException. Does anybody know if I can implement an Exception handler that will capture all java Exceptions unhandled by my applicatio.
I'm using WLS 9.2.Rethrow an exception and catch it in the call in JavaFX code?
-
Message Handler chain in ALSB2.6
We need to move WLI webservices to ALSB2.6. Webservices used message handler chain which did lots of custom work.
ALSB seems to have java callout but making methods in java call out sysnchronized means performance hit.
Is there anything equivalent to handler chain in ALSB which can be applied to ALL the deployed proxy services?
Thanks.ALSB is not a web service container, simply an intermediary. Therefore there is nothing equivalent to the JAX-RPC handler chain.
Java callout looks like a reasonable alternative. What is your concern about performance? Why would you synchronize the java callout methods and not the message handler chain?
As a best practice, I would suggest you create a local proxy containing the implementation you want to share across ALSB services. The invocation af a local proxy is optimized and as fast as simply replicating an action across every services.
Gregory Haardt
ALSB Prg. Manager
[email protected] -
Message Handling for Personal Information application on ESS Portal
Dear Experts,
JAVA webdynpro applications are attached on portal for Personal Information, Whenever employee changes his personal Information like personal details, address , Family details after pressing 'SAVE' button I want to display custom message.
I have gone through this post Personal data changes in ESS portal
1) Class CL_HRESS_PER_DETAIL is not triggering.
2) BADI HRPAD00INFTYBL is triggering on 'REVIEW' button only & it is only showing error message , I want to show successful message.
3) BADI HRPAD00INFTYDB is triggering on 'SAVE' button but method IF_EX_HRPAD00INFTYDB~UPDATE_DB don't have any message handling parameter.
I tried with class cl_hrpa_message_list in UPDATE_DB method its not showing any message.
Please Help.
Thanks & Regards,
BhushanHi Yugandhar,
If possible I want to change message as shown in screen shot, If it is not possible to change it I have to show additional success message "The Changes you made were sent for HR approval".
Thanks & Regards,
Bhushan -
ORABPEL-05002 - Message handle error - Session has timed out or was invalid
In our production environment we are facing this issue.
We are trying to find the root cause to fix the issue.
My Understanding:*
In the below error message,
we are able to see the Session has timed out or invalidated.
Also we are able to see the Non-fatal connection error. I believe that when the MDB trying to process the dispatched message, it will invoke the message from invoke_message table of dehydration store. At this point of time it gets non-fatal connection error so we are gettign this error.
I need to know the difference between fatal and non-fatal connection error. Is my understanding correct or not ?
ORABPEL-05002
Message handle error.
An exception occurred while attempting to process the message *"com.collaxa.cube.engine.dispatch.message.system.RemoveMessage"; the exception is: Session has timed out or was invalidated*
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:207)
at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:266)
at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
at java.lang.Thread.run(Thread.java:619)
<2010-08-11 23:05:10,131> <ERROR> <WorkExecutorWorkerThread-129> <engine.dispatch> <DispatchHelper::handleMessage> failed to handle message
java.rmi.NoSuchObjectException: Session has timed out or was invalidated
at com.evermind.server.ejb.StatefulSessionEJBObject.throwPassivisationException(StatefulSessionEJBObject.java:335)
at com.evermind.server.ejb.StatefulSessionEJBObject.remove_X(StatefulSessionEJBObject.java:174)
at com.evermind.server.ejb.StatefulSessionEJBObject.remove_X(StatefulSessionEJBObject.java:159)
at com.evermind.server.ejb.LocalStatefulSessionEJBObject.remove(LocalStatefulSessionEJBObject.java:25)
at com.collaxa.cube.engine.util.EngineBeanCache.releaseMessageBean(EngineBeanCache.java:293)
at com.collaxa.cube.engine.dispatch.message.system.RemoveMessageHandler.handle(RemoveMessageHandler.java:36)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:142)
at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:266)
at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
at java.lang.Thread.run(Thread.java:619)
<2010-08-11 23:05:10,132> <ERROR> <WorkExecutorWorkerThread-129> <engine.dispatch> *<DispatchHelper::handleMessage> Not fatal connection error ... not retrying: class com.oracle.bpel.client.ServerException: Session has timed out or was invalidated*
<2010-08-11 23:05:10,132> <ERROR> <WorkExecutorWorkerThread-129> <engine.dispatch> *<BaseScheduledWorker::process> Failed to handle dispatch message ... exception ORABPEL-05002*
Message handle error.
An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.system.RemoveMessage"; the exception is: Session has timed out or was invalidated
-----I'm having the same problem. I posted to VSM sample and Pooled ApplicationModule Maximum Inactive Age
which seems to be a similar situation.
Does anyone have any information on where this time out parameter is set on either the app module or OAS and how to handle this error correctly?
Thanks,
Brian -
Active chat Message Handler is received twice, anybody know why?
Hi Guys,
Please can anyone help me with the below issue:
Active Chat Message Handler in Applescript for Messages app runs twice, looks like it receives the message twice, has anyone else seen this issue?
below is my code:
global myBuddysName
global textmsg
on readFile(unixPath)
set foo to (open for access (POSIX file unixPath))
set txt to paragraphs of (read foo for (get eof foo))
close access foo
return txt
end readFile
on msgImage(unixPath)
tell application "Finder"
set randomFile to (some file of folder unixPath)
set the clipboard to (randomFile as «class furl»)
end tell
tell application "System Events"
keystroke "v" using command down
key code 36 -- This is a 'return' which sends the message automatically.
end tell
end msgImage
using terms from application "Messages"
on message received theMessage from theBuddy for theChat
set myBuddysName to 1st item of readFile("Users/username/Desktop/AutomatedTextReply/BuddyName.txt")
set textmsg to some item of readFile("Users/username/Desktop/AutomatedTextReply/Texts.txt")
if name of theBuddy is myBuddysName then
if theMessage contains "text" then
send textmsg to theBuddy
end if
if theMessage contains "image" or theMessage contains "img" then
msgImage("Macintosh HD:Users:username:Desktop:AutomatedTextReply:Images")
delay (5)
end if
if theMessage contains "video" then
msgImage("Macintosh HD:Users:usernameDesktop:AutomatedTextReply:Videos")
end if
end if
end message received
on message sent theMessage with eventDescription
end message sent
on chat room message received with eventDescription
end chat room message received
on active chat message received theMessage from theBuddy
set myBuddysName to 1st item of readFile("Users/username/Desktop/AutomatedTextReply/BuddyName.txt")
set textmsg to some item of readFile("Users/username/Desktop/AutomatedTextReply/Texts.txt")
if name of theBuddy is myBuddysName then
if theMessage contains "text" then
send textmsg to theBuddy
end if
if theMessage contains "image" or theMessage contains "img" then
msgImage("Macintosh HD:Users:username:Desktop:AutomatedTextReply:Images")
delay (5)
end if
if theMessage contains "video" then
msgImage("Macintosh HD:Users:username:Desktop:AutomatedTextReply:Videos")
end if
end if
end active chat message received
on addressed message received theMessage from theBuddy for theChat with eventDescription
end addressed message received
on received text invitation with eventDescription
end received text invitation
on received audio invitation theText from theBuddy for theChat with eventDescription
end received audio invitation
on received video invitation theText from theBuddy for theChat with eventDescription
end received video invitation
on received local screen sharing invitation from theBuddy for theChat with eventDescription
end received local screen sharing invitation
on buddy authorization requested with eventDescription
end buddy authorization requested
on addressed chat room message received with eventDescription
end addressed chat room message received
on received remote screen sharing invitation with eventDescription
end received remote screen sharing invitation
on login finished with eventDescription
end login finished
on logout finished with eventDescription
end logout finished
on buddy became available with eventDescription
end buddy became available
on buddy became unavailable with eventDescription
end buddy became unavailable
on received file transfer invitation theFileTransfer with eventDescription
end received file transfer invitation
on av chat started with eventDescription
end av chat started
on av chat ended with eventDescription
end av chat ended
on completed file transfer with eventDescription
end completed file transfer
end using terms fromSunil, I tried and no luck. I restarted weblogic server and here is the console output showing the parameter :
C:\Oracle11\MIDDLE~1\JDK160~1\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPe
rmSize=128m -Dweblogic.Name=AdminServer -Djava.security.policy=C:\Oracle11\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.polic
y -Xverify:none -da -Dplatform.home=C:\Oracle11\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle11\MIDDLE~1\WLSERV~1.3\server
-Dweblogic.home=C:\Oracle11\MIDDLE~1\WLSERV~1.3\server -Dweblogic.wsee.workarea.skipWorkAreaHeader=true -Dweblogic.mana
gement.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle11\M
But as usual, the message is not caught by the handler.
thanks
Jyothi -
JMS Patterns - Generic Message Handler
Hi,
For those interested in Java EE patterns, I've created a [blog post|http://jonathanjwright.wordpress.com/2009/08/12/jms-patterns-generic-message-handler/] outlining the use of a generic message handler to simplify MDB message type checking and payload extraction.
Regards,
JonathanThis requirement has now gone away after implementing SP21
-
Error message handling in BAPI...
Hi Guys,
I am working on documentation of a BAPI used SAP insurance module. Now I want to see all the error messages associated/ handled in that BAPI. How can I do that ? Is there a table in data dictionary where I can see error messages handled by a given Function module/ BAPI?
Any inputs will be highly appreciated.
Thanks.
Regards,
Tushar.Hi,
here´s one possible solution:
CALL FUNCTION 'MESSAGES_INITIALIZE'.
LOOP AT it_return_bapi.
CALL FUNCTION 'MESSAGE_STORE'
EXPORTING
arbgb = it_return_bapi-id
exception_if_not_active = ' '
msgty = it_return_bapi-type
msgv1 = it_return_bapi-message_v1
msgv2 = it_return_bapi-message_v2
msgv3 = it_return_bapi-message_v3
msgv4 = it_return_bapi-message_v4
txtnr = it_return_bapi-number
zeile = ' '
EXCEPTIONS
message_type_not_valid = 1
not_active = 2
OTHERS = 3.
ENDLOOP.
CALL FUNCTION 'MESSAGES_STOP'
EXCEPTIONS
a_message = 04
e_message = 03
i_message = 02
w_message = 01.
IF NOT sy-subrc IS INITIAL.
CALL FUNCTION 'MESSAGES_SHOW'
EXPORTING
i_use_grid = 'X'
i_amodal_window = i_amodal_window
EXCEPTIONS
inconsistent_range = 1
no_messages = 2
OTHERS = 3.
ENDIF.
ENDFUNCTION.
Best regards -
# Question
Since updating to Firefox 3.6.15, I can no longer print coupons from SmartSource. The error message is that Java is not detected. The check box is longer showing in the Options/Content of this version of Firefox, so I can not enable it.Same PC as I used to post the question. When I go to the "plug in check" page, it shows I am up to date and it is not disabled.
Java(TM) Platform SE 6 U24
Next Generation Java Plug-in 1.6.0_24 for Mozilla browsers 1.6.0.24 -
Receiver File adapter - 'Empty Message Handling' option to ignore not worki
Hi,
I am trying to create the Files in receiver based on condition.But I am gettiung error in communication channel when there is no payload. Receiver I am usuing FCC and processing tab I selected -'Empty Message Handling' option to ignore .
one source -> Target 1 (0..1 occurance in signature tab changed, message mapping and operation mapping)
and Target 2 (0..1 occurance in signature tab changed)
and I put the message type level condition. While creating first message If did not create the Message type in my maaping still my Receiver File communication channel is giving error. even thow I my receiver interface occurance is 0..1
Right now I am in PI7.1 and SP7 is the bug for support pack do I am missing any thing. and do I need to upgrade any nwe patch. appreciate your help.
Regards,
Venu.Hi,
here is the my requirment one source -> two target interfacess (0..1)
If u have 2 target interfaces,then this is not suffice..... u should make it as 0..unbounded both in operation mapping and message mapping.
But based on ur requirements posted above i guess u have only one inbound interface at a time based on some conditions....
But,
<messages>
<messages1>
based on condition first message type not created in mapping.
<messgaes2>
The error u r getting is because.... u want only one interface in target at a time....
Then u should not generate Message1 also in the target.
So avoid mapping to message1 if u want only message2.
If both message1 and message2 are created in target means... it is triggering for two interfaces.... so avoid one message1 or message2... based on some conditions u have..
Still nt solved do post...
Babu -
Receiver file adapter creates empty files, Empty-Message Handling SP19
Hello,
We have just upgraded the system to SP19.
One of the new features is that it should be possible to determine how XI messages with an empty main payload are to be handled in the receiver file adapter.
If the parameter Empty-Message Handling is set to 'Ignore' no file should be created if the main payload is empty. In our case an empty file (size 0 kb) is still created even though the main payload is empty and the flag is set to 'Ignore'.
Has anybody experienced the same problem?
// Best regards HansThis should work:
Use your own adapter module that parses incoming message and checks if it has any record sets in the document. If it does not have any record sets, then set the message to empty and then give this modified message to File receiver.
For example, see the example code below:
Module imports..
Audit log import..
DOM imports/SAX imports..
public ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData) throws ModuleException {
try {
// get the XI message from the environment
Message msg = (Message) inputModuleData.getPrincipalData();
AuditMessageKey amk = new AuditMessageKey(msg.getMessageId(),AuditDirection.INBOUND);
Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"RemoveRootTag: Module called");
XMLPayload payLoad = msg.getDocument();
Document doc = parseXmlFile(payLoad.getInputStream());
if(doc != null){
if(!doc.getDocumentElement().hasChildNodes()){
Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS, "Document is empty!!");
payLoad.setContent("".getBytes());
msg.setDocument(payLoad);
// provide the XI message for returning
inputModuleData.setPrincipalData(msg);
} catch (Exception e) {
// raise exception, when an error occurred
ModuleException me = new ModuleException(e);
throw me;
// return XI message
return inputModuleData;
private Document parseXmlFile(InputStream xmlpayload) {
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setValidating(false);
// Create the builder and parse the file
Document doc = factory.newDocumentBuilder().parse(xmlpayload);
return doc;
} catch (SAXException e) {
} catch (ParserConfigurationException e) {
} catch(IOException e){
return null;
Maybe you are looking for
-
Applephotostreams.exe has stopped working on Windows 7 PC
applephotostreams.exe has stopped working. Windows 7 PC.
-
Hei Guys , i'm new here , i have a Nokia C6-01 and i have a problem .. when i turn on the radio works fine for 5 sec , after that , the phone is totally freezed , i can't actually kill the fm radio from task manager .. please help me how to solve th
-
Select count into versus create table as in functions/procedures
I am working on a dynamic PL/SQL script that will count the number of records in a remote database based on certain criteria and then if the number is "acceptable" will create a table in the connecting database with those records. My where clauses ar
-
Profit & Loss and Balance Sheet at profit center group level
Hi, my client has "xxxx" as group in standard hierarchy of profit center. under this group there are further two sub groups "01" & "02". under each sub group there is one profit center "0100001" and "0200001" respectively. now the requirement is that
-
Is 4gb ram is enough for mac air 2013?
Hi. I'm gone upgrade mac air 2013 to 256gb ssd with i5 processor. But my question is 4gb ram enough? I will just do web browsing, imovie, iphoto, movie, document work and parallel only for autocad. (money is my concern!) thx for ur advise, apprieciat