Parse Message Object
I need to parse an incoming javax.jms.Message (incoming from queues). Dependant on the xml tags i need to invoke jdbc methods...
i want to use InputSource class=
InputSource is = new InputSource("xml.xml");the above instantiation worx for a xml file...now how do i parse Message object,
You have some kind of Message (as you know JMS has several kinds). First figure out how you can get the XML out of that Message; you haven't given us any information to help you with that.
Second, look at the API documentation for InputSource to figure out which constructor you can use, based on how you can get the XML out of the Message. Hint: there's a class StringReader that lets you make a String into a Reader.
Similar Messages
-
Unable to read payload from the message object in XI
Hello Guys,
Please help me about my problem in XI version 7.0.im quite new here.
im trying to test my config but error message occured. "Unable to read payload from the message object"
when i checked the comm channel this is the error message :
Error during database connection to the database URL 'jdbc:sqlserver://172.16.40.20:1433;databasename=TRAVEL:SelectMethod=cursor' using the JDBC driver 'com.microsoft.sqlserver.jdbc.SQLServerDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:sqlserver://172.16.40.20:1433;databasename=TRAVEL:SelectMethod=cursor': com.microsoft.sqlserver.jdbc.SQLServerException: Cannot open database "TRAVEL:SelectMethod=cursor" requested by the login. The login failed.'
when i tried my login in sql it works...but in this message the login is failed..what shall i do..
Please advice.
Thanks in advance
aVaDuDzHi
Check with the connection string & Authorization of user you have used.
MSSQL string is
jdbc:microsoft:sqlserver://dbhost:1433;databaseName=example;SelectMethod=Cursor
While doing JDBC its good to refer Note 831162 lot of problems can be resolved.
Thanks
Gaurav -
Sync/Async JMS without BPM - No receiver specified in message object
Hi All,
My scenario is Proxy - JMS - Proxy. I have chosen to do this without BPM and had followed closely to the instructions given in various help documents/blog/forum threads. During testing, the proxy returns a system fault 'No receiver specified in message object'. In RWB it indicates that the correlation is correct and the JMS Receiver adapter is getting the response, below is part of the audit log:
2009-08-03 18:12:32 Information WRB: retrieving the message for de80831d-97f5-08f1-bdaf-00145e6883af ...
2009-08-03 18:12:33 Information WRB: retrieved the message: ApplicationResponse
2009-08-03 18:12:33 Information WRB: leaving WaitResponseBean
2009-08-03 18:12:33 Information MP: leaving
2009-08-03 18:12:33 Information The message was successfully delivered to the application using connection JMS_http://sap.com/xi/XI/System.
2009-08-03 18:12:33 Information The message status was set to DLVD.
When I check SXMB_MONI in XI-ABAP, I see 2 messages with status 'System Error - Restart not possible' and 1 with status 'Log Version'. The message with status 'Log Version' is the respond. The other 2 messages has the following error:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Request Message Mapping
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="MAPPING">NO_RECEIVER</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:Stack>No receiver specified in message object</SAP:Stack>
<SAP:Retry>N</SAP:Retry>
</SAP:Error>
It seem to me that the system does not know where to go/what to do next after returning to the JMS Receiver adapter. I am at a lost what could have gone wrong. Here is how I've done my configuration.
Repository
- Sync Sender Interface for R/3 Backend
- Sync Receiver Interface for MQ
- Async Sender Interface for the reply
Directory
- 1 CC for JMS Recevier
- 1 CC for JMS Sender (for the respond)
- 1 CC for Proxy Sender
- 1 Interface Determination
- 1 Receiver Determination
- 1 Receiver Agreement for JMS Receiver
- 1 Sender Agreement for the reply
Any help is appreciated. Thanks.Hi Prateek,
This is what was tried in my first case. I did exactly what was given in that link.But since the Message id being 32 bytes and length of correlation id is 24 bytes id is getting truncated.
So its not working fine.
@ke i am having a look at the note will update you on this
Thanks for your response
Rgds
Aditya -
Unable to read payload from the message object
Hi
I have a scenario where i am send request to http receiver and getting the response. When I am testing through WFETCH it is working fine. But when i am testing through XI I am getting the follwoing error
Unable to read payload from the message object
I have tested the XI payload in mapping. I have done all kinds of testing but it is still giving the same error.
One more strange thing is
I have done one BPM scenario where Data is coming from Source to BPM( which is asyn) and then from it will go from BPM to Target (which is sync) But when I am checking the SXMB_MONI... it showing the messages like this
Source to BPM
Target to BPM
Target to BPM.
But i think it should show message like
Source to BPM
BPM to Target
Target to BPM
why i am getting the floHi
Check with the connection string & Authorization of user you have used.
MSSQL string is
jdbc:microsoft:sqlserver://dbhost:1433;databaseName=example;SelectMethod=Cursor
While doing JDBC its good to refer Note 831162 lot of problems can be resolved.
Thanks
Gaurav -
Modify Application: Error Message:: Object Variable or With Block variable
Hi Experts,
We just installed 5.1 on our server and once the application is installed.
When I try to modify the aplication I get this error at the end
This is step what the modify app does:
Check environment information
Drop Fact table index.
Modify fact table.
Update application information.
Set Fact table index.
Create stored procedures and comment table.
Increase application version and make legal consolidation table.
Make OLAP database and Journal/Audit reports. / Validate dimension formulas.
Error Message:: Object Variable or With Block variable
Any one has any any answer ? I will appreciate your help on this.
ThanksPlease check if Reporting Services is working properly.
Just open IE and type http://nameofserver/reports
If you receive any error then you have to fix that error verifying configuration of RS.
If RS is working make sure you add the right information into Server Manager Server Option for RS and Report Server virtual directory.
Also please check the tblappsetinfo to have all the fields completed (regarding servers).
Regards
Sorin Radulescu -
XML Parser Message: Element series is not valid for the content model
Hello,
I work with FrameMaker 8 and DITA.
I change the element prodinfo in the topic.edd from:
General rule: (prodname), (vrmlist), (brand | series | platform | prognum | featnum | component)*
to:
General rule: (brand | series | platform | component)*
When I import the element definition to the template everything is okay.
When I insert the elements metadata, prodinfo, brand, series, platform and component into a topic I get the XML Parser Message that the element brand is not valid for the content model (prodname,vrmlist, ((brand|series|platform|prognum|featnum|component))*).
When I delete the element brand in the topic I get the XML Parser Message that the element series is not valid for the content model (prodname,vrmlist, ((brand|series|platform|prognum|featnum|component))*).
I change the element prodinfo in the topic.edd to:
General rule: (brand)?, (series)?, (platform)?, (component)?
...and get the same Parser Message.
I do not understand that. Is not it allowed to change the EDD this way without changing the DTD?
With kind regards
NinaHi Nina...<br /><br />In general, the EDD and DTD need to sync up. You can remove elements from an EDD element definition's general rule, as long as the resulting elements are still valid to the DTD. But if changing a general rule creates an invalid structure, you'll need to also change the DTD to allow the revised structure.<br /><br />With DITA, it is common to remove inline elements from block-level elements. For example, you might want to remove the <msgblock>, <msgnum>, and <msgph> elements from the general rule of the <p> element .. this can be done easily in the EDD and the resulting structure remains valid with the DTD.<br /><br />However, what you're doing leaves the <brand> element as a child of <prodinfo> .. which is invalid. You'll get these errors when saving a file, since this is when the file is validated against the DTD.<br /><br />I do not recommend modifying the structure in such a way that requires you to modify the DTD. If you really need to do this, then you should consider making a specialization to support your revised model.<br /><br />I hope this helps.<br /><br />Cheers and Happy New Year!<br /><br />...scott
-
Error Message : Object does not exist (status management)
Hi Gurus,
I am working on tcode IW52(Change Notifications). and using badi's for validations at different points.
1. Order level,
2. Notification,
3. Task level validations.
In the task level validations, I have an requirement that if certain condition is met, than user should not be able to delete the task. I have no problem doing that, I am able to restrict it.
Now the issue is :
Say you have 6 tasks, and condition is met for the 5th task and I try to delete it. then the error message "can not delete task" is getting triggered from the badi.
and after this error message if you try to do any functionality on the 6th task, I am experiencing error message "Object does not exist (status management)".
Is anyone aware of this error message, any suggestions are highly appreciated.
Thanks in advance.
Shrikant
Edited by: Alvaro Tejada Galindo on Mar 17, 2008 1:56 PMHi ,
You have posted this question long back that is one and half year back nearly.
You got an error message in IW52 stating Object does not exist ( status management ).
Now iam also facing the same problem in iw22 transaction. Can you say me how you solved if you remember. -
Message object returns SharedByteArrayInputStream instead of Multipart.
Dear friends,
I am using java Mail API v 1.3.1 to access POP3 server.
I am getting problem while I try to read an RTF message from POP3 server.
When I try to access the data through getContent() method on javax.mail.Message Object, it sometimes gives me correct result as a Multipart data, while sometimes, it returns an object of type com.sun.mail.util.SharedByteArrayInputStream.
Although it returns SharedByteArrayInputStream object, when I invoke getContentType() on Message Object, it returns Multipart as correct.
I think this is some problem with the JavaMail API.
Going specifically, I use the POP server : ksc.th.com
Waiting for reply,
-> Maulik Soni.hi,
I have the same Problem,too. But now, i have found the reason.
the javamail jar delivers a file named 'mailcap' in the META-INF dir of the library jar with
the following content:
text/plain;; x-java-content-handler=com.sun.mail.handlers.text_plain
text/html;; x-java-content-handler=com.sun.mail.handlers.text_html
text/xml;; x-java-content-handler=com.sun.mail.handlers.text_xml
multipart/*;; x-java-content-handler=com.sun.mail.handlers.multipart_mixed
message/rfc822;; x-java-content-handler=com.sun.mail.handlers.message_rfc822
now while creating the default instance of MailcapCommandMap (activation framework),
this class is searching the 'mailcap' file in the META-INF dir. if 'mailcap' is not found, the
activation framework don't map these mimetyps.
workaround:
make sure, that the MailcapCommandMap can find the mailcap file in META-INF or in user.home dir
or
map manually (javax.activation.MailcapCommandMap):
MailcapCommandMap map = (MailcapCommandMap)MailcapCommandMap.getDefaultCommandMap();
map.addMailcap("text/plain;;x-java-content-handler=com.sun.mail.handlers.text_plain");
map.addMailcap("text/html;;x-java-content-handler=com.sun.mail.handlers.text_html");
map.addMailcap("text/xml;;x-java-content-handler=com.sun.mail.handlers.text_xml");
map.addMailcap("multipart/*;;x-java-content-handler=com.sun.mail.handlers.multipart_mixed");
map.addMailcap("message/rfc822;;x-java-content-handler=com.sun.mail.handlers.message_rfc822");
simple,
if you known it.
thx, bye.
franz bartlechner -
Dump a Message object to file, rebuild later - Possible or not?
Has someone used the MimeMessage class to serialized,
for saving to disk and then load it back to a Message object again?
Thanksno not possible because niether MimeMessage nor any its super class is not implementing Serializable interface
-
Dump a Message object to file, rebuild later- Possible or no?
Hello all-
I need to pass along a Message object (a mail object) from one component (an Enterprise JavaBean) to another (Also an EJB). Thing is, I want to put it in an XML file- in other words- is it possible to dump a message object as a raw text file, then rebuild it at the destination?
Now, I guess the problem here is that the Message-class isn't serializable. Can anyone think of any clever workarounds to this??
-ThomasN, frustratedI don't think you can do it with a message class,
but if what you're looking for is for the raw text of the email you can use the MimeMessage class and use the
message.writeTo(outputStream) function to put the
source of the email into a particular stream -
Error Message: Object could not be activated
Hello experts,
Once I try to activate a DSO the system shows the following message:
Object ZZABCDE could not be activated;
The errors are:
-The creation of the export data source failed (RSBM035),
whilst generating the export Infosource, the metadata for a datasourcemust be generated. An error arose when doing this.
-ERROR CALL_FUNCTION_SECSTORE_ERROR occur ed. P1=PB9CLNT100 P2=PB9CLNT100 P3=/RFC/
The system I am using was copied from an other system, could such errors be due to missing elements in the configuration of the system?
thank you in advanceHi,
I assume that this is due to the system Copy.
Since there is always an export DataSOurce generetad to ODS or DSO, the myself-System needs to be setup properly.
Check if the Sourcesystem connection to the MYSELF-System (your BI) is maintained properly after system-copy.
If not, contact your admin.
If your'e not working with sap-all/sap-new, you should also check authorisation.
hth
Sven -
Error Message : Object could not be scheduled within the specified time interval
Post Author: mohamed elkashef
CA Forum: Publishing
Dear All when i try to run event for daily reports it sometimes take generation status failed with this error message : Object could not be scheduled within the specified time interval so i need to know the reason of failure and how can i fix this error thanks a lotPost Author: nvnaresh
CA Forum: Publishing
Dear jsanzone,
I'm facing the same error even when the server time out is more than the query execution time of the report.By server time out I assume connection time out of WebI report server which I have set to 180 min.But the actual query takes maximum of 5 min.
We are using BO XIR2+SP2.
I scheduled a webI report to get saved in Excel format to an Unmanaged disk location upon a File Event.
We have 3 such reports to be scheduled on the same event.
Expected frequency of File Event getting fired in a day is twice.Scheduling frequency I have set it as every one hour with the file event.
This usually should work fine.
But frequently 1 or 2 of the above 3 instances are getting failed with the following error "Object could not be scheduled with in specified time interval " after being in Running state for few hours(8). Amazingly this is not happening every time. May be once or twice in a week.This works fine after I restart the BO services and the same thing repeats after 3 or 4 days.
Do I need to increase any server parameters?
Why is this happening randomly? -
Log4j:ERROR Message object not configured.
while trying to use the SMTPAppender i got this message:
log4j:ERROR Message object not configured.
any idea?
thank youIt is unfortunte that this tops the Google serach
result for the subject text. It is message like this
that really pollutes all the good information that
are found in the web space. Message like this not
only perpetuates the "anti-social geek, I'm God and
you're not" stereotype, but also alienates the next
generation of aspired developers that this country is
so in need of.Did you register an account just to insult a pretty well-dedicated group of volunteers here? These people offer to help people they don't know with absolutely no benefit to themselves except to further the process of learning. Maybe there' s a warm fuzzy stemming from the fact that the person whose question was answered might have learned something.
If this is the type of asshat developer you would like to foster through the IT world, then you can try to put up with these people. People who are unwilling to communicate their problems do not deserve to have them solved. People who are simply attempting to skate by and be spoonfed through what's left of their mediocre careers can go elsewhere for help.
Thank you for your answer, and I admire that you posted here after you solved your own problem. Just leave out the cheeky, holier-than-thou diatribe next time. Go to Javaranch if you want to chat about Java and have your hand held while you bumble around. -
We are seeing the following error on our SharePoint 2010 site:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3;
MS-RTC LM 8; .NET4.0E; MS-RTC EA 2)
Timestamp: Tue, 5 Jun 2012 16:05:37 UTC
Message: '_spBodyOnLoadFunctionNames' is undefined
Line: 130
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: '_spBodyOnLoadFunctionNames' is undefined
Line: 157
Char: 1752
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: 'ContextInfo' is undefined
Line: 547
Char: 7
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 602
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: 'ContextInfo' is undefined
Line: 627
Char: 7
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 682
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: 'ContextInfo' is undefined
Line: 735
Char: 7
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 788
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: 'ContextInfo' is undefined
Line: 801
Char: 7
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 854
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: 'ContextInfo' is undefined
Line: 867
Char: 7
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 920
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: '_spBodyOnLoadFunctionNames' is undefined
Line: 964
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: 'WPSC' is undefined
Line: 1105
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 1118
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 1119
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 1120
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 1121
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 1122
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 1123
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 1124
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 1125
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 1126
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 1127
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 1128
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 1129
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 1130
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 1131
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 1132
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 1133
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 1134
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 1135
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 1136
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 1146
Char: 119
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: 'SetupFixedWidthWebParts' is undefined
Line: 1152
Char: 112
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: '_spBodyOnLoadFunctionNames' is undefined
Line: 1073
Char: 76
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 157
Char: 77
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 682
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Message: Object expected
Line: 682
Char: 1
Code: 0
URI: http://prodshare/Pages/default.aspx
Sites are not loading images from the \14\TEMPLATE\IMAGES (we get the red x) and site controls are not working.
We have two web front ends that are load balanced with the alternate access mapping setup for the prodshare url.
Opening prodshare from the applications server (also a wfe) does not produce all of the errors but some items are still missing.
We’ve rerun the products configuration wizard on the wfes, performed issresets, and rebooted both servers.
I’ve also tried running the install software as a repair with no change.
I'm not sure what to attempt next and would appreciate any suggestions.
Greg GliddenThe load balancer is setup using the F5 Sharepoint 2010 template. All traffic is directed to one server or the other. The AAM has the nlb url as the default for the port
80 web app.
We have two other SP2010 environments (development and QA) setup that work appropriately. To the best of my knowledge we've got them all setup the same on the network.
When we access the site using both the wfe server addresses (http://spweb1 or http://spweb2 instead of the nlb
http://prodshare), we get the same errors so we ruled out the nlb as the issue. When accessing the site using the app server address
(http://spapp1) all images and controls work correctly. It appears to be something wrong in the setup on the web front end servers. But running the SharePoint 2010 Products
Configuration Wizard did not fix the issue.
Greg Glidden -
I unistalled Photoshop Elements 12 from my computer and now when I'm trying to re-install I'm getting an error message "object already exist". Any suggestions on how to correct this?
jgbrph
If your program is Photoshop Elements 12, then you have posted in the wrong forum. Your thread is now in the Adobe Premiere Elements Forum (video editing).
Please re-post your question in the Adobe Photoshop Elements Forum or wait for a moderator here to see your thread here and move it from here to there.
Photoshop Elements
While you are making your move, consider
a. what computer operating system is involved...if we assume Windows
b. have you checked Control Panel/Programs to assure that the program is no longer listed as an installed program?
If it is no longer installed, you might want to consider a free ccleaner run through (regular cleaner and registry cleaner parts) to get
rid of any leftovers from incomplete installs and uninstalls. Then reinstall with antivirus and firewall(s) disabled.
ATR
Maybe you are looking for
-
How can I organize photos in Mavericks?
I am currently using Mavericks on a MacBook. I imported from an older Mac and from an older Linux machine. With all the sources, and with import trouble, I ended up with multiple duplicates of most of my files. Over the past several months, I have be
-
Error deploying Web application
Hello Everyone, i have a problem with my web application that is not able to be deployed. the first time i deployed the application everything worked correctly i performed the contex lookup with no problem as was able to connect to the EJB applicatio
-
Hi, I've never noticed it before upgrading to Lion. Using sRGB as working color setting, if I create a new doc and fill a layer with red (255,0,0), I see Orange color, instead of red. Similarly if I use Adobe RGB 98 as working color setting. I have P
-
After project build, code that opened a sub VI no longer works
I have a project that I am ready to build into a .exe. I have code in the main VI that opens and runs another VI when an operator clicks on a button. When the operator is done manipulating the popup vi, he closes it and continues working in the main
-
Failed to use JaxWsProxyFactoryBean on Websphere 6.1??
I tried to create and call a service located in another machine using the following method (which is referenced from this link: [http://docs.huihoo.com/apache/cxf/2.0/jax-ws-configuration.html|http://docs.huihoo.com/apache/cxf/2.0/jax-ws-configuratio