Problem in getting the bpel payload
Hi,
When I'm trying to read the contents of BPELInputVariable (message type) via com.oracle.bpel.client.IInstanceHandle.getField("bpelVariableName") API,I am getting an empty hashmap whereas for all other message type variables in that bpel, the returned object is a Map and I can get the Element via map.get("partName").If I use some assign activity and assign some value to this input variable at some later point of time, the getField(inputVariable) gives the payolad.
Could you help me in finding the reason for this strange behaviour?
Thanks,
Shyamala
Hi,
can you please check the namespace of your input variable?
Can you assign the input to another variable?
Similar Messages
-
How to get the input payload passed to the BPEL Process using java.
Hi all,
I am working on an application in which, if some fault occurs in the flow I need to insert the input payload that is being sent to the BPEL process into a Queue using Java. I have gone through the FaultHandling framework and failed to find the method by which we can get the input payload. Can someone kindly help me in getting the input payload. using the java.
RegardsHi,
Use method getVariableData with your input variable.
Object getVariableData(String name, String part, String query)
For example: getVariableData("input", "payload", "/");
http://docs.oracle.com/cd/E17904_01/integration.1111/e10224/bp_java.htm
Cheers,
Vlad -
Problem in getting the database connection from a connection pool
Hai All,
I am facing a problem in getting the database connection from a connection pool created on weblogic server 8.1.
I am using the Oracle database 8.1.7.
I have configured my connection pool, datasource and JNDI in weblogic.
In my java program i have the following code to retrieve the connection.
import java.sql.*;
import java.util.Hashtable;
import javax.naming.Context;
import javax.naming.InitialContext;
class jdbcshp1 {
public static void main(String[] args) {
Connection connection = null;
try {
Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory"); // Wanna get rid of this.
ht.put(Context.PROVIDER_URL,"t3://localhost:7001"); // wanna get rid of this.
// Get a context for the JNDI look up
Context ctx = new InitialContext(ht);
javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("myjndi1");
//Create a connection object
connection = ds.getConnection();
The above code is working fine but, the two ht.put statements are creating problem.
The problem is, after converting the application into WAR file it can be deployed
on any machine or different port on same machine. My application fails if its deployed on
weglogicserver which is at different port.
Is there any way that i can get rid of those ht.put statements or any other way to solve the problem.
any help is appreciated.
Thanks in advance
Pooja.Hai All,
Firstly, thanks for ur reply.
Even i have seen some code which uses context constructor with out any parameter and works fine.
i dont understand why its not working for my code.
When i remove those ht.put code and use context constructor with out any parameter, it giving an error.
Context ctx = new InitialContext();
javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("ocjndi");
connection = ds.getConnection();The error is as follows:
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
the above error is forcing me to include those code but if the port number is changed the code will not work. Plz let meknow if some setting have to be made.
I appreciate all ur valuable help.
Thanks once again.
Pooja. -
Problem in getting the function template object from the repository.
Hi all,
I have created a par file. I have a JCO connection in that. I am facing problems in getting the function template object from the repository. This thing is running successfully when i try to deploy it in Tomcat. But i am facing problems when i try to deploy it in SAP EP 6.0.
Below is statement which is giving error after being deployed to SAP EP6.
This is executing fine when executed in Tomcat Server.
// getting the object of function template
IFunctionTemplate functionTemplate =
aRepository.getFunctionTemplate("YADDNEWUSER");
Note : YADDNEWUSER is the name of the RFC which I am calling from my JAVA Code.
Thanks in advance,
DivijaThis sounds like a bug in the smart upload code. I have used this stuff before, but it's probably an older version, so maybe they broke something. Enumerations aren't usually guaranteed to keep things in any particular order. I would say for now, make a method to take the enumeration and a param name to find the value. And write to the JSPSmart people.
-
How to get the XML Payload of called process from calling process?
I have two SOA processes say process A and process B.
Process B is called by process A.In process A I, am using the getRequestMessage() method in Java code to get the XML payload of process A.
But i want the XML payload of process B in process A.How can i achieve it?Doug,
I used the property loader method but I could not load the limits of any sub sequence call calling an external sequence file.
I took the FlowRate_test.seq example from the NI Example folder "C:\Documents and Settings\All Users\Documents\National Instruments\TestStand 4.2.1\Examples\PropertyLoader\LoadingLimits\LimitsFromExcelFile\UsingCVI". I created a sequence called PumpTest.seq in the same folder path. I then moved the Pump Test step from the FlowRate_test.seq to the PumpTest.seq. Now created a sequence call in the FlowRate_test.seq and called the PumpTest.Seq as the module path. When I execute the FlowRate_test.seq , I get the error as shown below:
Attached is the Flowrate_Test.seq and the PumpTest.seq which should be there in the folder path "C:\Documents and Settings\All Users\Documents\National Instruments\TestStand 4.2.1\Examples\PropertyLoader\LoadingLimits\LimitsFromExcelFile\UsingCVI".
Let me know whether I am doing something wrong in this method.
My idea is to alter the runstate variable High and Low of Pump Test in the PumpTest.seq and then run the Flowrate_Test.seq.
Attachments:
PumpTest.seq 6 KB
FlowRate_test.seq 11 KB -
Problem about get the workflow context
There are 2 servers.
One is Weblogic server (server1), deployed a fusion web project on it.
Another is BPM server (server2), deployed the bpm process on it.
On the fusion web project, we use API to get the tasks. But we encountered a problem about get the workflow context.
There are 2 method to get the workflow context.
1. getTaskQueryService().authenticate(userId, password, null, null), this method need to pass in useId and password, we can get the user form request but can't get
password.
2. getTaskQueryService().createContext(request), we pass the request on server1, but can't get the context on server2, exception thrown.
Appreciate if you can give some help.javax.el.ELException: java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[jcooper, ERole]
at javax.el.BeanELResolver.getValue(BeanELResolver.java:266)
at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
at com.sun.el.parser.AstValue.getValue(Unknown Source)
at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
Truncated. see log file for complete stacktrace
Exception thrown when createContext() -
Problem in getting the application login page
Hi Firends,
I am facing problem in getting the application login page.
http://localhost:7777/pls/apex/f?p=102:1
when i am clicking this link it is not directing me to the login page for this application.please let me know what could be the reason behind this.
Thanks in advanceHi Martin, many thanks for replying. Let me know how this could effect in not getting the login page. I have checked in my application,it is by default "No application authorization required " and other option is " must not be a public user " . Should i change it to " must not be a public user from no application authorization required"
please put more light on it. Y i am saying this because it was working fine day b4r yesterday but today i am getting problem in finding the login page of my application aftr providing the url. i am following the SSO authentication scheme and under Home>Application Builder>Application 102>Shared Components>Edit Security Attributes , i have given f?p=&APP_ID.:1:&SESSION. as home link and under Home>Application Builder>Application 100>Page 101>Edit Page Process, this code i have provided
wwv_flow_custom_auth_std.login(
P_UNAME => v('P101_USERNAME'),
P_PASSWORD => :P101_PASSWORD,
P_SESSION_ID => v('APP_SESSION'),
P_FLOW_PAGE => :APP_ID||':1'
as a source code.
i am really stucked into it, and i need to finish is ASAP. Please provide all possible reasons for this problem. -
Problem with getting the little blackberry icon
Hi the blackberry I'm using is working and up to date. I was setting up my mates blackberry 9320 but having a problem with getting the little blackberry icon to appear in the top right corner of my phone where the GMS is and signal bar and stuff its something to do with blackberry.
I tried downloading bbm and it say associating bbm with blackberry id and constant loads with nothing happening bbm not working
I NEED THE TINY BB ICON AT TOP RIGHT???Hi neal123
That BlackBerry icon will appear near signal bar when we activate BIS on a 3G device. Did he activated BIS on his account. ?
Click " Like " if you want to Thank someone.
If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it. -
Please help, i used to have various colors to select from when selecting FILL in Keynote such as red, now I only have a few pastel colors. I cannot seem to fix this problem to get the original colors back. Can someone please advise what I need to do.
i have on my ipad2 and re-download it - but I can't afford to loose the presentation that I currently have ....??
Are you using Keynote on an iPad?
If so you posted in the wrong forum, this is the Keynote Mac discussion and it is a different application. I dont know how the iPad works at all, so I cant help you, post in the Keynote iOS discussion.
If you are using a Mac, the colours palette is accesed by clicking on the colour well (arrowed) and then selecting a colour chip or changing the color in the colour wheel. -
Having problem to get the value from radio button
i am doing my double module project for my degree course and i am also a newbie in JSP. Hope there is someone can help me to solve this problem. Now, i set the value of a radio button to "don't smoke", "smoke lightly", and "smoke heavily". Then i use request.getParameter ("smoking behavior") to get the value selected by the user, but the result is only "don't" or "smoke", which the character after spacing will be not be retrieved. I dun know how to solve it, so can any expert here help me to solve this problem? Thanks for helping.
Why do you have to use whitespace. If your radio button group is name smokingBehavior - no whitespace, wouldn't it just make sence to have values of don't, lightly and heavily. This would solve the problem easily. If your teacher is being a pain in the a&!, and requires you to use whitespace for your naming variables I guess you could insert %20 between the two words and unescape the value on the server side. This seems like a lot of unnecessary work and a silly solution - good luck!
-
Problem in getting the image through URL
hi all,
I facing the problem,Inwhich i am unable find the solution...I am using the following code to display the image
public void doGet(HttpServletRequest request,HttpServletResponse response)
throws IOException, ServletException {
int data=0;
response.setContentType("image/png");
ServletOutputStream out = response.getOutputStream();
String file = request.getContextPath()+imageNames[0];
//String file = "C:/Program Files/Apache Group/Tomcat 4.1/webapps/ImageComm/WEB-INF/images"+imageNames[index];
BufferedInputStream in = new BufferedInputStream(new FileInputStream(file));
System.out.println("the size of the inputStream is..."+in.available());
System.out.println("the context path is..."+request.getContextPath());
while ((data = in.read()) != -1) {
out.write(data);
with the above i am not getting any error at the compile time but it was giving exception like FileNotFoundException.
but the same thing(URL address) when i am copying on the browser it was displayig the image.
(what might be the reason)
one more thing when i commented on the url address and try to use the actual realpath address it was displaying the image with out any problem
can anybody give me the solution like where to keep my images by which i can able to get the images through url address
thanks in advance
lakshmanhi all,
I am getting the image from the server.but the problem is i am getting the Exception as ArrayOutOfBound exception.
It was displaying the Image for the first time.and when ever it was going for the second time in to the paint method it was displaying the IOException in reading the stream from the connection.
can anybody give me the solution in rectifying that exception.
thanks in advance
lakshman -
A problem to get the value of a selected cell
Hi all,
I am trying to get the value of a cell in JTable. The problem that I have is ListSelectionListener only listens if the selection changes(valueChanged method).
It means that if I select apple then rum, only rowSelectionModel is triggered, which means I do not get the index of the column from selectionModel of ColumnModel.
apple orange plum
rum sky blue
This is a piece of code from JTable tutorial that I modified by adding
selRow and selCol variables to keep track of the location so that I can get the value of the selected cell.
Thank you.
if (ALLOW_ROW_SELECTION) { // true by default
ListSelectionModel rowSM = table.getSelectionModel();
rowSM.addListSelectionListener(new ListSelectionListener() {
public void valueChanged(ListSelectionEvent e) {
if (e.getValueIsAdjusting()) return;
ListSelectionModel lsm = (ListSelectionModel)e.getSource();
if (lsm.isSelectionEmpty()) {
System.out.println("No rows are selected.");
} else {
int selectedRow = lsm.getMinSelectionIndex();
selRow = selectedRow;
System.out.println("Row " + selectedRow + " is now selected.");
else {
table.setRowSelectionAllowed(false);
if (ALLOW_COLUMN_SELECTION) { // false by default
if (ALLOW_ROW_SELECTION) {
table.setCellSelectionEnabled(true);
table.setColumnSelectionAllowed(true);
ListSelectionModel colSM = table.getColumnModel().getSelectionModel();
colSM.addListSelectionListener(new ListSelectionListener() {
public void valueChanged(ListSelectionEvent e) {
//Ignore extra messages.
if (e.getValueIsAdjusting()) return;
ListSelectionModel lsm = (ListSelectionModel)e.getSource();
if (lsm.isSelectionEmpty()) {
System.out.println("No columns are selected.");
} else {
int selectedCol = lsm.getMinSelectionIndex();
selCol = selectedCol;
System.out.println("Column " + selCol + " is now selected.");
System.out.println("Row " + selRow + " is now selected.");
javax.swing.table.TableModel model = table.getModel();
// I get the value here
System.out.println("Value: "+model.getValueAt(selRow,selCol));
}maybe you can try with :
table.getSelectedColumn()
table.getSelectedRow()
:) -
Problem in getting the BASKET HEADER DATA in java class?
Hi Gurus,
In the order_change.jsp i have created a new custom input field and when i give some text in it, i should pass this as extension data. For this i have created a class to add this extension data:
UserSessionData userSessionData = UserSessionData.getUserSessionData(request.getSession());
BusinessObjectManager isaBOM = (BusinessObjectManager)userSessionData.
getBOM(BusinessObjectManager.ISACORE_BOM);
ZCustomer mybom = (ZCustomer) userSessionData.getBOM(ZCustomer.ZCUSTOM_BOM);
Basket basket = isaBOM.getBasket();
HeaderData headerData = isaBOM.getBasket().getHeaderData();
String extBasketHeaderData = request.getParameter("test");
headerData.addExtensionData("ZTEST", extBasketHeaderData);
But iam getting a null pointer execption when the following is executed in the above code
HeaderData headerData = isaBOM.getBasket().getHeaderData();
Can you please help me why i am getting null pointer exception when i try to get the header data.
I have tried interpreting my action class with the following classes
1. ordersend.do
2. maintainorder.do
2.orderchangeconfirmed.do
but not able to get the header data if include in any of the above the action class.
Please help me out in this regard.
Thanks a lot in Advance.
Regards,
Lakshman.Hi All,
I have a similar kind of problem. I want to add extension data to a standard FM . But when I am creating a basket object
Basket basket = isaBOM.getBasket(); I am getting an error saying
Type mismatch:Cannot convert from void to basket
and also If I am trying to import
import com.sap.isa.businessobject.order.Basket;
I am getting an error saying
This compilation unit indirectly references the missing type com.sap.isa.businessobject.BusinessObjectBase(typically some required class file is referencing a type outside the classpath)
Kindly help me on this.
Thanks
Harshmeet Singh -
Problem in getting the parameters from teh form html with upload file
I have used the jspsmartupload package:
the html file:
<HTML>
<BODY BGCOLOR="white">
<H1>jspSmartUpload : Sample 5</H1>
<HR>
<form METHOD="POST" ACTION="sample5.jsp"
NAME="PW" ENCTYPE="multipart/form-data">
<table CELLSPACING="0" CELLPADDING="3" BORDER="1" WIDTH="474">
<!-- FILE -->
<!-- TEXT -->
<tr>
<td width="150">
<div align="left">
<p><small><font face="Verdana">Text : </font></small>
</div>
</td>
<td width="324"><small><font face="Verdana">
<input TYPE="TEXT" name="myText" value="">
<br>
</font></small></td>
</tr>
<!-- TEXTAREA -->
<tr>
<td width="150">
<div align="left">
<p><small><font face="Verdana">Text Area : </font></small>
</div>
</td>
<td width="324"><small><font face="Verdana">
<textarea name="myTextArea" rows="4" value=""></textarea>
<br>
</font></small></td>
</tr>
<!-- PASSWORD -->
<tr>
<td>
<div align="left">
<p><small><font face="Verdana">PassWord : </font></small>
</div>
</td>
<td><small><font face="Verdana">
<input TYPE="PASSWORD" name="myPASSWORD" value="">
<br>
</font></small></td>
</tr>
<!-- HIDDEN -->
<tr>
<td>
<div align="left">
<p><small><font face="Verdana">Hidden : </font></small>
</div>
</td>
<td><small><font face="Verdana">
<input TYPE="hidden" name="myHidden" value="hidden">
<br>
</font></small></td>
</tr>
<tr>
<td><small><font face="Verdana">Select a first file :
</font></small></td>
<td><small><font face="Verdana">
<input type="file" name="FILE1">
</font></small></td>
</tr>
<tr>
<td><small><font face="Verdana">Select a second file : </font></small></td>
<td><small><font face="Verdana">
<input type="file" name="FILE2">
</font></small></td>
</tr>
<!-- CHECKBOX -->
<tr>
<td>
<div align="left">
<p><small><font face="Verdana">CheckBox : </font></small>
</div>
</td>
<td><small><font face="Verdana">
<input TYPE="CHECKBOX" name="myCheckBox" value="Value 1">
Value 1<br>
<input TYPE="CHECKBOX" name="myCheckBox" value="Value 2">
Value 2<br>
<input TYPE="CHECKBOX" name="myCheckBox" value="Value 3">
Value 3<br>
</font></small></td>
</tr>
<!-- RADIO -->
<tr>
<td>
<div align="left">
<p><small><font face="Verdana">Radio : </font></small>
</div>
</td>
<td><small><font face="Verdana">
<input TYPE="radio" name="radio" value="Value 1">
Value 1<br>
<input TYPE="radio" name="radio" value="Value 2">
Value 2<br>
<input TYPE="radio" name="radio" value="Value 3">
Value 3<br>
</font></small></td>
</tr>
<!-- SELECT -->
<tr>
<td>
<div align="left">
<p><small><font face="Verdana">Simple Select : </font></small>
</div>
</td>
<td><small><font face="Verdana">
<SELECT name="mySimpleSelect" >
<OPTION value="Value 1">Value 1</OPTION>
<OPTION value="Value 2">Value 2</OPTION>
<OPTION value="Value 3">Value 3</OPTION>
</SELECT>
<br>
</font></small></td>
</tr>
<!-- SELECT MULTIPLE -->
<tr>
<td>
<div align="left">
<p><small><font face="Verdana">Multiple Select : </font></small>
</div>
</td>
<td><small><font face="Verdana">
<SELECT multiple name="myMultSelect" >
<OPTION value="Value 1">Value 1</OPTION>
<OPTION value="Value 2">Value 2</OPTION>
<OPTION value="Value 3">Value 3</OPTION>
</SELECT>
<br>
</font></small></td>
</tr>
<!-- SUBMIT -->
<tr>
<td colspan="2" width="474">
<div align="center">
<center>
<p><small><font face="Verdana">
<input
TYPE="Submit">
</font></small>
</center>
</div>
</td>
</tr>
</table>
</form>
</BODY>
</HTML>
the jsp file :
<%@page language="java" import="com.jspsmart.upload.*"%>
<%@page import="java.util.*"%>
<jsp:useBean id="myUpload" scope="page" class="com.jspsmart.upload.SmartUpload" />
<HTML>
<BODY BGCOLOR="white">
<H1>jspSmartUpload : Sample 5</H1>
<HR>
<%
// Initialization
myUpload.initialize(pageContext);
// Upload
myUpload.upload();
// Files
out.println("<BR><STRONG>Display information about Files</STRONG><BR>");
out.println("Number of files = " + myUpload.getFiles().getCount() + "<BR>");
//out.println("Total size (bytes) = " + myUpload.getFiles().getSize() +"<BR>");
for (int i=0;i<myUpload.getFiles().getCount();i++){
out.print(myUpload.getFiles().getFile(i).getFieldName());
if (!myUpload.getFiles().getFile(i).isMissing())
out.print(" = " + myUpload.getFiles().getFile(i).getFileName() + " (" + myUpload.getFiles().getFile(i).getSize() + ")");
myUpload.getFiles().getFile(i).saveAs("/upload/" + myUpload.getFiles().getFile(i).getFileName());
else
out.print(" = vide");
out.println("<BR>");
// Request
out.println("<BR><BR><STRONG>Display information about Requests</STRONG><BR>");
// Retreive Requests' names
java.util.Enumeration e = myUpload.getRequest().getParameterNames();
// Retreive parameters
while (e.hasMoreElements()) {
String key = (String)e.nextElement();
String[] values = myUpload.getRequest().getParameterValues(key);
// Browse the current parameter values
for(int i = 0; i < values.length; i++) {
out.print(key + " = ");
out.print(values[i] + "<BR>");
%>
</BODY>
</HTML>
The result shown is:
jspSmartUpload : Sample 5
Display information about Files
Number of files = 2
FILE1 = path.txt (240)
FILE2 = WS_FTP.LOG (146)
Display information about Requests
radio = Value 2
mySimpleSelect = Value 1
myTextArea = test
myPASSWORD =
myMultSelect = Value 3
myHidden = hidden
myText = test
myCheckBox = Value 1
myCheckBox = Value 2
myCheckBox = Value 3
I would like to know if i want to get back the parameters from the form ,
is that i must use Enumeration.
Because i have tried request.getParameter() to get the value of radio button, textbox, checkbox and select menu, but it get the null values.
Also, the function of Enumeration does not get the values of parameter in sequence as html form. e.g.In the html file, the first parameters should be textbox,but it displays the radio button's values first.
How to solve the problem .
ThanksThis sounds like a bug in the smart upload code. I have used this stuff before, but it's probably an older version, so maybe they broke something. Enumerations aren't usually guaranteed to keep things in any particular order. I would say for now, make a method to take the enumeration and a param name to find the value. And write to the JSPSmart people.
-
When trying to uninstall iTune (because the current install has problems; iTune error message states it cannot sync and that I should reinstall the application; also, it fails when I tried to upgrade to the latest release), I get the error message 2324. What should I do to reinstall the application?
That installer error is a "Can't open file" error
It suggest that you may have a corrupt file.
Try running a disk check
http://windows.microsoft.com/en-US/windows7/Check-a-drive-for-errors
If it fixes errors try uninstalling iTunes again.
If that doesn't work, is it possible for find out the name of the problem file, is further information available? Try looking in your Action center - that's on the control panel. Another place is in the Windows Error logs. From the start menu , right click on "Computer" and select manage, then Event viewer.
If nothing emerges, try a manual uninstall of iTunes and related programs according to this method:
http://support.apple.com/kb/HT1923
Don't worry if an uninstall fails, that is expected. Go on to the part where you have to delete files (2. Verify iTunes etc completely deleted) . Hopefully you manage to find a file that can't be deleted, that is the one we will need to deal with.
Maybe you are looking for
-
I installed bootcamp but became a pain to use so I unistalled it. Now every time I turn my Macbook pro on it keeps asking me what startup disk to use. I tried using the system preferences to correct this but it hasn't worked. I even restored my mac b
-
HT2534 payment type none doesnt appear on the screen
guys help me out
-
ESYU: R12 - Order를 Booking 하면 Order line의 Tax Classificaiton을 clear 하는 문제
Symptoms Oracle Order Management - Version: 12.0.1 This problem can occur on any platform. Tax Classification Code가 Saled Order에 정상적으로 override 되지 못한다. 한번 Order를 저장하면 이 field의 값은 null로 변경된다. STEPS: 이 issue는 아래 steps에 따라 재현이 가능하다. 1. Order Management
-
Volume showing a lock symbol when trying to adjust volume
Hi, I have a Z10 running 10.3.1.1565 and have the following issue that appeared out of nowhere. When I try to adjust volume it will not adjust the volume and there is a lock symbol next to the volume. Have tried restarting with and without battery pu
-
Confirmation that email has been read
Is there a way in Mail to receive a confirmation that an email I've sent has been opened by the recipient? If yes, how do I do that?