Setting message properties
I'm trying to set a message property for my message object.
The name of the property is "Content-Type".
When I try the setObjectProperty method I get an exception (MessageFormatException).
When I try the setStringProperty method I get an exception (MessageFormatException)
because setStringProperty calls setObjectProperty.
The exception message is "Illegal property name, Content-Type".
My message type is TextMessage.
What am I doing wrong?
As per the JMS spec, property names must be legal Java identifiers,
so a "-" is not legal. I'm guessing the reason for this is to
simplify parsing property names within selector expressions.
Tom
Dustin Williams wrote:
> I'm trying to set a message property for my message object.
>
> The name of the property is "Content-Type".
>
> When I try the setObjectProperty method I get an exception (MessageFormatException).
> When I try the setStringProperty method I get an exception (MessageFormatException)
> because setStringProperty calls setObjectProperty.
>
> The exception message is "Illegal property name, Content-Type".
> My message type is TextMessage.
>
> What am I doing wrong?
Similar Messages
-
Why do users get "unable to set template properties" message?
Hi there,
I am trying to administer a new site that was created with DW and has a .dwt (Templates/ locatedat the site root). I'm creating "Publisher" role connection keys so users can edit their subsections of the site. Users should be able to modify template properties when they edit/create new pages.
While testing the keys, the users report that they can connect and edit pages. However, when they try to modify template properties on either a new or existing page, they get this message "Unable to set template properties" and are prevented.
I've tried redefining the site and starting all over, tried CS3 vs. CS4 to see if it was a compatibility issue, looked at forum after forum but can't find any answers. I am experienced with DW but new to Contribute administration so I don't know what else to try. Hoping that someone will have encountered this before and can suggest a solution.
Thanks in advance!
ps- Let me know if there's other info I can provide to help troubleshoot.I did find this April 9, 2009 post from majtom2grndctrl that suggests the issue is how contribute treats https:// sites. My site is set up as majtom2grndctrl described and I am having the same problem.
"I've got a problem with not being able to edit Template Properties on our test sites we host on HTTPS servers. I've narrowed down the problem to Contribute CS4 ignoring the website root configuration when it looks for the Templates folder. For example, say you have a site hosted at the following address:
https://www.yourdomain.com/yourfolder/
Contribute is configured to know your site is in /yourfolder/, but for whatever reason, when you open or create a page, and Contribute reads the InstanceBegin template="/Templates/file.dwt" tag at the beginning of HTML documents, it looks for a Templates folder at the HTTP server root, not in /yourfolder/. This prevents Contribute from loading the template while editing a document, and any attempt to edit Template Properties will yield the infamous "Unable to set template properties" dialog box." -
Setting portlet properties on different pages
Hello,
New to Personalization so I apologize if this is obvious.
Is there a way to have the same portlet available on multiple
pages and allow a user to set different properties in a profile
based on the page the portlet is in? For example, if portlet X
is available on page A and page B and the edit tab allows the
user to set value Val1 in a property, is there a way to qualify
the Val1 property with a namespace so that it is associated with
the page it is on? Currently if I have some properties defined
in a profile and I set those profile values in an edit page
and get them in the top portlet, then those same profile values
will be associated with that portlet on all pages. That is with
using the um:getProperty tag. Is there some way through roles
to namespace profile values based on the page the portlet is on?
Thanks,
CurtCurt,
Sure you can.
Just define separate user property sets and store the information based on
the page the user is on.
You can easily determine the page id using portal API (for example look at
the jsp which renders the page tabs in the framework directory).
Regards,
Michael Goldverg
"Curt" <[email protected]> wrote in message
news:[email protected]..
>
Hello,
New to Personalization so I apologize if this is obvious.
Is there a way to have the same portlet available on multiple
pages and allow a user to set different properties in a profile
based on the page the portlet is in? For example, if portlet X
is available on page A and page B and the edit tab allows the
user to set value Val1 in a property, is there a way to qualify
the Val1 property with a namespace so that it is associated with
the page it is on? Currently if I have some properties defined
in a profile and I set those profile values in an edit page
and get them in the top portlet, then those same profile values
will be associated with that portlet on all pages. That is with
using the um:getProperty tag. Is there some way through roles
to namespace profile values based on the page the portlet is on?
Thanks,
Curt -
SOAP Use Adapter-Specific Message Properties and Variable Transport Binding
Hi Friends,
I am new to use to Soap Adapter. Please help me out bellow doubts.
1.When you use Use Adapter-Specific Message Properties and Variable Transport Binding .
2. Where exactly we r using below parameters.
Remote User : (technical name: SRemoteUser )
Remote Host : (technical name: SRemoteHost )
SOAP Action (technical name: SHeaderSOAPACTION )
To transfer further header fields, set the relevant indicator. You can then store the following attributes and their values in the XI message header:
Variable Header : (technical name: XHeaderName1 )
Variable Header : (technical name: XHeaderName2 )
Variable Header : (technical name: XHeaderName3 )
Thanks&Regards
G.BhanuprakashHi,
1.When you use Use Adapter-Specific Message Properties and Variable Transport Binding .
SAP Help says both are needed to be checked when you want to process adapter attributes
Configuring the Receiver SOAP Adapter - SAP NetWeaver Exchange Infrastructure - SAP Library
These attributes can be get/set using dynamic configuration and their technical names are what you have pasted:
Remote User : (technical name: SRemoteUser )
Remote Host : (technical name: SRemoteHost )
SOAP Action (technical name: SHeaderSOAPACTION )
To transfer further header fields, set the relevant indicator. You can then store the following attributes and their values in the XI message header:
Variable Header : (technical name: XHeaderName1 )
Variable Header : (technical name: XHeaderName2 )
Variable Header : (technical name: XHeaderName3 )
Remote User - the username used to send a message to the adapter engine using SOAP
Remote Host - hostname which the remote user used
SOAP Action - SOAP Action of the XI webservice (sender) / SOAP Action of the receiver webservice
Variable Headers are additional key-value pairs in the HTTP Header that could be accessed in the XI Header using dynamic configuration. The limit is only three though.
Regards,
Mark -
How do I set file properties (win XP) ?
Does anyone know how to set/modify a windows file properties inside Labview ? For exemple : change the author, the comment... etc.
Thank you !
J.K.Hello,
It is not possible with advanced file I/O LabVIEW VIs.
There is a possible workaround by using low level Windows functions in a dll.
Perhaps the easier would be to set your properties at the top of your file.
You will find some explanations here :
http://forums.ni.com/ni/board/message?board.id=170&message.id=85101&requireLogin=False
regards
Marc L.
NIF -
Setting Portlet Properties in Development
I am trying out the Portal 9.2 Trial, so am very new to this.
I have created a very simple JSP Portlet in Workshop and created a "Message" Preference for this Portlet with a default value of "Hello World". I have created an instance of this Portlet in a Portal and run it on the server, and in my JSP it displays the default "Hello World" message.
However how do I set another value for this Portlet Preference in my Portal within Workshop? So for example how can I overide the "Hello World" value with something else. I can see how do this through the Administration Console on my Staging site, but not sure how to do the same on the development side within Workshop.
Not sure I really understand the difference between setting up the .portal file in Workshop and the Staging Administration Application.Curt,
Sure you can.
Just define separate user property sets and store the information based on
the page the user is on.
You can easily determine the page id using portal API (for example look at
the jsp which renders the page tabs in the framework directory).
Regards,
Michael Goldverg
"Curt" <[email protected]> wrote in message
news:[email protected]..
>
Hello,
New to Personalization so I apologize if this is obvious.
Is there a way to have the same portlet available on multiple
pages and allow a user to set different properties in a profile
based on the page the portlet is in? For example, if portlet X
is available on page A and page B and the edit tab allows the
user to set value Val1 in a property, is there a way to qualify
the Val1 property with a namespace so that it is associated with
the page it is on? Currently if I have some properties defined
in a profile and I set those profile values in an edit page
and get them in the top portlet, then those same profile values
will be associated with that portlet on all pages. That is with
using the um:getProperty tag. Is there some way through roles
to namespace profile values based on the page the portlet is on?
Thanks,
Curt -
Setting message tokens for short tips
I have a field with a shorttip defined. I want to be able to make the message dynamic, i.e. set message tokens. Is this possible?
There are two ways of doing this in processFormRequest,
(1) Easier and not recommended.
Use the same code that I gave in my previous post, but put it in your processFormRequest. However, note that OA Framework coding guidelines prohibit you from changing web bean properties during processFormRequest.
(2) Write your custom bound value.
Write your own bound value implementation extending oracle.apps.fnd.framework.webui.OAAbstractBoundValue. Implement the constructor, and getValue(object) method. In the getValue method, put in your code that recognizes the tip value to be rendered.
In the processRequest of your controller, attach the above bound value class to the tip property as follows,
inputFieldBean.setAttributeValue(TIP_ATTR, new <yourTipBoundValueClass>());
Define the constructor such that you pass in parameters necessary to calculate the tip. Note that the bean on which you are setting the bound value must be sent in as a parameter (inputFieldBean). In the constructor implementation, set this parameter to mOAWebBean which is a public variable defined in OAAbstractBoundValue. -
Additional JMS Message Properties
Hi Guru's,
I am looking for a solution to dynamicly set the filename for JMS receiver adapter. What I have found so far is that this should be done with the Additional JMS Message Properties...
Based on a field from the source structure I want to determine the filename which will be send via the JMS adapter. Is there any documentation available on how to achieve this?
Best regards,
Guido KoopmannI have written an UDF to determine the filename dynamicly:
//write your code here
String str = "SAPDATA-" + a + "ES" + ".xml";
DynamicConfiguration conf = (DynamicConfiguration)
container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey FileName = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","FileName");
conf.put(FileName, str);
return ""; -
Creating Items and setting the properties programtically
Hi ,
Can any one provide me some details of how to create item programatically and setting its properties.
Ex: I have to create a message choice
set its id, picklist view definition ,picklist display attribute, picklist value attribute, prompt, action type and event
Regards,
KrishnaHi Krishna,
OAMessageChoiceBean abc = (OAMessageChoiceBean) createWebBean
(pageContext, MESSAGE_CHOICE_BEAN);
abc.setPickListViewUsageName("ListVO");
abc.setListValueAttribute(" ");
abc.setListDisplayAttribute(" " );
abc.setID("ID");
this wl help u I guess..
for more details Refer JDev Guide. -
Creating buttons on the fly and setting button properties
If I have a view and want to add buttons to it "on the fly" from values in an array, is that something straightforward to do?
I have an array of UIImageVIew objects and would like to create buttons from them (showing the image on the buttons) and associate those buttons with a method in my implementation file. That would be a lot more general and flexible than creating the buttons in the Interface Builder I would imagine.
And one more question - can I freely set button properties while doing that? Or in Objective-C can I only set properties that are already pre-defined for that class?
Thanks!
dougThanks for your reply.
That.... works! Thanks!
And I can generate the button and click on it and it calls my other method and that works too. Cool!
The syntax is still very mysterious to me, but I suppose eventually I'll understand what it all means.
Breaking it down to see what it means:
[button1 addTarget:self action:@selector(selectedHandler1:) forControlEvents:UIControlEventTouchUpInside];
* button1 is the object I created (I'm going to try to do this in a loop next.)
* addTarget is a message I am sending to button1 and the content of the message is "self", which refers to - this button? I'm not sure why such a message would be necessary.
* action is another message sent to button1 and the contents of that message are a little harder to parse. I see the result, and can mimic the syntax now that I've seen it, but I don't really understand what the @ is for, or the : after the method name or why this wouldn't just be "action: selectedHandler". I'm sure the language designers have a logical reason for all that, but I don't quite "grok" those extra symbols yet.
* forControlEvents is another message sent to button1 and the event message itself is clear in its meaning.
Anyway, that is working and I can refer more to the UIButton class reference now and try to set more stuff, like position it better, etc.
Thanks very much!
doug -
ESB - Is there a way to set context properties when using esb custom pipeline
Hi there,
I have a situation where I am using a oneway wcf sql custom receive adapter to polling db and a two-way solicit response wcf sql send adapter to update the db and receive a result back.
Now I had got this working by setting the BTS.Operation and BTS.MessageType properties using a custom receive pipeline on the receive port. FOR SOME REASON THESE TWO WERE NOT SET BY THE RECEIVE PORT !!!
Now I have decided to wrap all that in en ESB itinerary by converting the send port into a dynamic one. I get the following error:
Exception of type 'Microsoft.BizTalk.Message.Interop.BTSException' was thrown.
Since I am using the ESB pipeleine - ItineraryReceiveXML I am not able to set the BTS.Operation and BTS.MessageType explicitly in a pipeline neither can I derive a pipeline form the ESB pipeline as it's a sealed class.
So my questions are:
1. Any idea what the above error could be ?
2. Also is there a way I get set context properties using an ESB itinerary as that is the only difference from before, can I do that in a map ?
Thanks
PhanindraBTS.MessageType is typically set by one of the Disassemblers.
BTS.Operation has nothing to do with the Receive Port/Location and is set by the Engine only when coming from an Orchestration Port.
But, you can set any Property in any Stage with a custom Pipeline Component as you've found.
"Exception of type 'Microsoft.BizTalk.Message.Interop.BTSException' was thrown."
There's usually a lot more to the stack trace. You'll have to include the whole thing.
Finally, what benefit do you expect from adding the ESB layer? This is pretty trivial with an Orchestration. -
Is contextInitialized() blocked from setting System properties?
A certain 3rd party app we're using within a web app requires a specific System
property be set. Since it's a local path, we'd like to shy away from hardcoding
a -D into the startup script, and instead do it via a ServletContextListener and
set the property within contextInitialized(). In WL7.0sp2, it seems to hit the
line in our listener where it tries to set a System property, and nothing happens.
It doesn't seem to throw an exception, write anything to the console, nothing.
Is there a security setting that blocks contextInitialized() methods from setting
System properties? Is it a WL thing, or maybe a servlet spec thing? It works
if we use a dummy servlet set to pre-load, where we set the System property in
the servlet's init() method, but that's a little tackier than doing it in one
single context init listener.Turns out the context-param that I was trying to use as the value of the System
property was null. When it sets a non-null value, it works. But apparently when
the value of the System property is null, you get the weird behaviour described
below: it's as if the tread just stops. I tried setting a breakpoint and stepping
through, but it immediately went into weblogic security and threading classes
and never returned. So now I'll have a new question about when context-params
load during deployment, but I'll post that separately.
"Mark Griffith" <[email protected]> wrote:
I don't know of any restriction. Your saying it never sets it? The
app
deploys but it is not there in the system properites?
Have you tried setting a break point and stepping?
Very strange.
mbg
"dave thompson" <[email protected]> wrote in message
news:3ecac0f8$[email protected]..
A certain 3rd party app we're using within a web app requires a specificSystem
property be set. Since it's a local path, we'd like to shy away fromhardcoding
a -D into the startup script, and instead do it via aServletContextListener and
set the property within contextInitialized(). In WL7.0sp2, it seemsto
hit the
line in our listener where it tries to set a System property, and nothinghappens.
It doesn't seem to throw an exception, write anything to the console,nothing.
Is there a security setting that blocks contextInitialized() methodsfrom
setting
System properties? Is it a WL thing, or maybe a servlet spec thing?It
works
if we use a dummy servlet set to pre-load, where we set the Systemproperty in
the servlet's init() method, but that's a little tackier than doingit in
one
single context init listener. -
URL to set session properties?
Is there a URL to SET session properties? I know I can get a list of them by calling "/XMII/PropertyAccessServlet?mode=list&Content-Type=text/xml", but is there a way to set them in a similar manner?
Hi all, If you want me to start a new thread let me know...
I'm having funky, although repeatable, results using the URL to set a session parameter via AJAX call,
which always gets a Successful message.
/XMII/PropertyAccessServlet?mode=Store&PropName=plantId&PropValue=60
I am verifying the session parameter 2 ways:
1. Refresh the page and view source (I took the lt and gt out)
...............span id="savedPlantId" style="visibility:hidden;"
2. AJAX call to /XMII/PropertyAccessServlet?mode=List
Quirk #1: I see the value in the span. I do not see it in the servlet list.
Quirk #2: I can change the value a couple (2 or 3 times) then it doesn't change after that
Quirk #3: When it stops changing via the AJAX call, I can still change it with a browser URL
http://<server>:50000/XMII/PropertyAccessServlet?mode=Store&PropName=plantId&PropValue=199
Any hints or ideas?
Yes, I am trying to use a single pixel applet, but having trouble with that too! See a different post.
I really would prefer to use the URL as there is no visual indication to the user
and an applet (and JVM) doesn't have to load.
--Amy Smith
--Haworth
Oh, and P.S. Is there a mode=Delete to remove the session parameter? -
Set message type as text for MQ
I am trying to send a text message to remote MQ from WebLogic 10.3.2 JMS. The remote application does not see the message as text, even though I am creating a Text Message on my side. I have tried to set various properties for MQSTR, but it is of no help. Can someone advise what is the correct property to set so MQ sees it as a text message?
TIA,
RaviFrom JMS the correct way to set the mq message format to MQSTR is by using a JMS text message. You don't have to set anything explicitly.
Can you try posting the message to a local mq and use some tool to see the message sitting on the format and check for the MQ format field. Also let know what exact error the other system is getting.
P.S: For anything MQ, I would recommend to use this forum : www.mqseries.net. -
How to set CORS properties for BLOB Storage using node?
Hi - I just got started with Azure using a Node-based web site and mobile services.
I am following various documentation in order to provide an API for users to upload images via a time-restricted SAS for the BLOB Storage.
In order to upload my image, I need to set the CORS configuration for the BLOB Storage. Unfortunately this cannot be done via the management portal.
I'm unclear as to how to accomplish this. I'm considering using the startup.js file in my mobile service to make a post request to the BLOB Storage REST API:
http://msdn.microsoft.com/en-us/library/windowsazure/hh452235.aspx
Are there appropriate methods in the Node SDK to make this easier, especially the signing part?
What is the recommended way for setting CORS properties for the BLOB Storage via Node?
Thanks for your help
StefanUnfortunately Node SDK does not support CORS functionality yet. Your option would be to write code which consumes the REST API for setting CORS. Not sure if it helps but there's a free tool out there written by my company which you can use to set CORS
on your storage account. More information about this tool can be found here:
http://blog.cynapta.com/2013/12/cynapta-azure-cors-helper-free-tool-to-manage-cors-rules-for-windows-azure-blob-storage/
Hope this helps.
Maybe you are looking for
-
Broadcaster Variable Schedule Date
Is there a way to use a variable for the date and time the broadcaster will email workbooks. We want to email some workbooks right after the financial books close. This date will always change and cannot predict. Is there a userexit or something? Any
-
Manual data enter into SAP Service Receipt
Hi, Can anyone please tell me how to manually enter data into SAP Service Receipt? 1. What is the transaction for that? 2.What are the steps to do? I'm new to SRM. Any help will be highly appreciated... Thanks! Uma.
-
Lock the delete function (Trash) for contract documents
Dear Experts, I have Query in SAP CLM : I am in need to lock the delete function (Trash) for contract documents after they have been executed. After a user sets the contract document phase at "Executed," they should not be able to click the trash ico
-
I can search the app and can load it but it's not showing up on my main apps screen. Only happened after updating to ios 5 yesterday. Downloaded a few new apps but not seeing them on the main screen.
-
Mail Email crashes when I try to use forwarding option.
Hi, I'v been having a lot of trouble with mail for the past 2 weeks. Basically everytime I use forward option Mail app crasses. Havey someone elso experienced the sem issue if so please could you let me know how to fix it? Thanks