Adding exception in XML
hi
here is small snippet of my code that generates the XML in oracle
i want to add the exception in the code.
how to do so?
XMLElement("PersonalDetails",
XMLForest(NVL(to_char(to_date(a.DOB,'YYYYMMDD'),'DD-MM-YYYY'),' ') AS "DOB",
NVL(a.Gender,' ') AS "Gender",
NVL(a.MaidenName,' ') AS "MaidenName")))
if the format of date is wrong, it throws the exception. i want to catch the exception here itself.
How many different formats are there stored in the string?
ddmmyyyy
mmddyyyy
ddmmyy
mmddyy
dd/mm/yyyy
dd/mm/yy
mm/dd/yyyy
mm/dd/yy
dd-mm-yyyy
dd-mm-yy
mm-dd-yyyy
mm-dd-yyyy
yyyymmdd
yymmdd
yyyyddmm
yyddmm
etc.
You're going to have to string process to determine which one the string matches using CASE and then apply the correct to_date format mask for that format.
e.g.
SQL> ed
Wrote file afiedt.buf
1 with t as (select '01012008' as dt from dual union all
2 select '130208' from dual union all
3 select '12/02/2008' from dual union all
4 select '12-02/2008' from dual union all
5 select 'a2-02/2008' from dual union all
6 select '01-04-08' from dual)
7 -- end of test data
8 select dt, case when regexp_like(dt, '^[[:digit:]\/-]*$') then
9 -- all numbers or numbers with seperators
10 case when regexp_like(dt, '^[[:digit:]]*$') and length(dt) = 8 then
11 to_char(to_date(dt,'ddmmrrrr'),'yyyymmdd')
12 when regexp_like(dt, '^[[:digit:]]*$') and length(dt) = 6 then
13 to_char(to_date(dt,'ddmmrr'),'yyyymmdd')
14 when regexp_like(dt, '^[[:digit:]\/]*$') and length(dt) = 10 then
15 to_char(to_date(dt,'dd/mm/rrrr'),'yyyymmdd')
16 when regexp_like(dt, '^[[:digit:]\/]*$') and length(dt) = 8 then
17 to_char(to_date(dt,'dd/mm/rr'),'yyyymmdd')
18 when regexp_like(dt, '^[[:digit:]-]*$') and length(dt) = 10 then
19 to_char(to_date(dt,'dd-mm-rrrr'),'yyyymmdd')
20 when regexp_like(dt, '^[[:digit:]-]*$') and length(dt) = 8 then
21 to_char(to_date(dt,'dd-mm-rr'),'yyyymmdd')
22 else
23 'unknown format'
24 end
25 else
26 'invalid date'
27 end as formatted_date
28* from t
SQL> /
DT FORMATTED_DATE
01012008 20080101
130208 20080213
12/02/2008 20080212
12-02/2008 unknown format
a2-02/2008 invalid date
01-04-08 20080401
6 rows selected.
SQL>Message was edited by:
BluShadow
correction to lengths
Similar Messages
-
i am using toplink 10.1.3.0.0 with oracle app server 10.1.2.2, i am using change field optimistic locking and generating the project xml,
application runs great locally in the jdeveloper, but when it is deployed on app server getting following error
here are the headers from both my project.xml as well as session xml..
<?xml version="1.0" encoding="UTF-8"?>
<toplink:object-persistence version="Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)" xmlns:opm="http://xmlns.oracle.com/ias/xsds/opm" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:toplink="http://xmlns.oracle.com/ias/xsds/toplink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<opm:name>PROJ</opm:name>
<opm:class-mapping-descriptors>
<opm:class-mapping-descriptor xsi:type="toplink:relational-class-mapping-descriptor">
<?xml version="1.0" encoding="UTF-8"?>
<toplink-sessions version="4.5" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<session xsi:type="server-session">
<name>PROJSession</name>
<event-listener-classes/>
<logging xsi:type="toplink-log">
<log-level>finer</log-level>
</logging>
<primary-project xsi:type="xml">PROJ.xml</primary-project>
<login xsi:type="database-login">
<platform-class>oracle.toplink.platform.database.oracle.OraclePlatform</platform-class>
<user-name></user-name>
any help/idea appreciated...
Exception [TOPLINK-9005] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.SessionLoaderException
Exception Description: An exception was thrown while loading the <project-xml> file [PROJ.xml].
Internal Exception: Exception [TOPLINK-25004] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.XMLMarshalException
Exception Description: An error occurred unmarshalling the document
Internal Exception: Exception [TOPLINK-27101] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.platform.xml.XMLPlatformException
Exception Description: An error occurred while parsing the document.
Internal Exception: oracle.xml.parser.v2.XMLParseException: xsi:type "toplink:changed-field-locking-policy" not resolved to a type definition
at oracle.toplink.exceptions.SessionLoaderException.failedToLoadProjectXml(SessionLoaderException.java:74)
at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.loadProjectConfig(TopLinkSessionsFactory.java:316)
at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.createSession(TopLinkSessionsFactory.java:241)
at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.buildServerSessionConfig(TopLinkSessionsFactory.java:215)
at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.buildSession(TopLinkSessionsFactory.java:168)
at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.buildTopLinkSessions(TopLinkSessionsFactory.java:124)
at oracle.toplink.tools.sessionconfiguration.XMLSessionConfigLoader.load(XMLSessionConfigLoader.java:103)
at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:367)
at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:334)
at myProjectPackage.common.data.toplink.ToplinkDataManagerPeer.<init>(ToplinkDataManagerPeer.java:41)
at myProjectPackage.common.data.DataManagerFactory.getDataManagerInstance(DataManagerFactory.java:40)
at myProjectPackage.common.servlet.NYSDOTFilter.getDataManager(NYSDOTFilter.java:964)
at myProjectPackage.common.servlet.NYSDOTFilter.doFilter(NYSDOTFilter.java:144)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
at myProjectPackage.caf.servlet.NYSDOTCAFFilter.doFilter(NYSDOTCAFFilter.java:90)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
at myProjectPackage.common.servlet.NYSDOTLoginFilter.doFilter(NYSDOTLoginFilter.java:95)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:669)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:340)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:228)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:570)first thanks for your reply,
i already figured that out and deployed it using 10.1.3.1 jars
my question
1) if it is a bug , how come it works fine with jdeveloper (
i would appreciate if you could provide any info about it.
2) i dont want to sound sarcastic , but 10.1.3.1 has of optimistic locking and the recommended solution i found was to use descriptor.getQueryManager().setUpdateCallCacheSize(0);
looks like 10.1.3.1 fixed one bug and introduced other one which was working fine earlier...
is there any other way of fixing optimistic locking issue other than using the
descriptor.getQueryManager().setUpdateCallCacheSize(0);
where i can find the latest/greatest (up to date patched version of toplink)
thanks again for your help -
Hi all,
I have a file-XI-file scenario.
In this scenario the Transport Protocol used is FTP.
The remote sender and the receiver system have Golden FTP server installed.
The xml file is getting properly picked from the sender system. The format of this file is:
<?xml version="1.0" encoding="UTF-8" ?>
<ns:file_mt xmlns:ns="http://namespace4BPM1">
<file_type>binary</file_type>
<file_name>input</file_name>
<file_ext>txt</file_ext>
<content_dt>
<firstname>neetu</firstname>
<middlename>k</middlename>
<lastname>gupta</lastname>
</content_dt>
</ns:file_mt>
But the reciever file adapter is giving the following error:
Receiver Adapter v1027 for Party '', Service 'Receiver_Service':
Configured at 10:21:05 2006-06-05
Last message processing started 10:21:35 2006-06-05, Error: Message processing failed with java.lang.Throwable: ftp access error: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'ns:file_mt' found in document', probably configuration error in file adapter (XML parser error)'
The parameters specified in the receiver adapter are:
Connect mode: per file transfer
Transfer mode: Binary
put file: directly
file type : binary
I also tried sending the file after removing the structure 'ns:file_mt', but it gave the structure missing error message.
Pls if anybody could guide me as to what should be done.
Thanks in advance.
Regards
Neetucheck the document name in file adapter configuration channel and message type name of the interface and name space..both should have same name...
check thz blog for more inputs
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
Go through them and cross check ur config.. -
Exception in XML Parser (format problem?)
Hi Experts,
I am working on IDOC -> AS2 Configuration and the AS2 Configuration has the below structure
<RecordSet>
<Row1>
<row1 - field1>
<row1 - field2>
<row1 - field3>
</Row1>
<Row2>
<row2 - field1>
<row2 - field2>
<row2 - field3>
</Row2>
<Records>
<Record1>
<Record1-Field1>
<Record1-Field1>
<Record1-Field1>
</Record1>
<Record2>
<Record2-Field1>
<Record2-Field1>
<Record2-Field1>
</Record2>
</Records>
</RecordSet>
We are getting the expected Structure when we AS2 Receiver has the xml format. But while doing module development with the strctxml2Plain, we are getting the below error in RWB CC Monitoring.
Message processing failed. Cause: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.NullPointerException''; nested exception caused by: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.NullPointerException'
Any ideas, why this error we are getting.....
Thanks in advance,
Regards,
VasuHi Vasu,
Not in the Mapping of IR.
In BIC Mapping Designer you have to test with the standard Mappings by providing the sample file whether the Conversion is happening correctly or not.
You have to take the same input file that what ever you are having now.
So that it will say clearly what is the problem in converting the XMLto the required EDI Format...
Check whether you have any Date Format Values are comming from the input file.
Regards
Seshagiri -
Attempt to process file failed with Exception in XML Parser-format problem
Hi all,
Iam getting an unusual error in the J2EE stack in XI.
And the message is:
006-11-30 17:31:07 Error Attempt to process file failed with Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)(:main:, row=1, col=1044002) -> com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)' 2006-11-30 17:31:07 Error Exception caught by adapter framework: null 2006-11-30 17:31:07 Error Delivery of the message to the application using connection AFW failed, due to: RecoverableException.
My scenerio iam posting IDOC to a flat file with content conversion in the receiver side,the mapping got executed successfully and in the audit log i found that the error was after the 'Start converting XML document content to plain text'.
This means that error occured during content conversion of XML to the prescribed file format.
Can anyone suggest any better approach using which we may trace the junk data in IDoc. Manual adhoc approach could take time and is error prone.
Thanks in advance...
karunHi Bhavesh,
Thanks for the early reply. I checked the mapping and everything is fine and the output is also in valid XML format.
The audit log shows that the mapping got executed successfully and the error is after the step 'Start converting XML document content to plain text '. Is there any constraint in the file adapter regarding the message size for parsing.
2006-11-30 17:30:50 Success Transfer: "BIN" mode, size 2912595 bytes, character encoding -
2006-11-30 17:30:50 Success Start converting XML document content to plain text
2006-11-30 17:31:07 Error Attempt to process file failed with Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)(:main:, row=1, col=1044002) -> com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)'
2006-11-30 17:31:07 Error Exception caught by adapter framework: null
2006-11-30 17:31:07 Error Delivery of the message to the application using connection AFW failed, due to: RecoverableException.
2006-11-30 17:31:07 Success The asynchronous message was successfully scheduled to be delivered at Thu Nov 30 17:36:07 GMT 2006.
2006-11-30 17:31:07 Success The message status set to WAIT.
2006-11-30 17:31:08 Success Acknowledgement creation triggered for type: SystemErrorAck
2006-11-30 17:31:08 Success Acknowledgement sent successfully for type: SystemErrorAck
2006-11-30 17:36:08 Success Retrying to deliver message to the application. Retry: 1 -
Exception in XML Parsing:Premature End of file.
Hii
I am geting exception in XML pasing in following line
doc=parser.parse(new File(sFileName));
if any one kno about this then plz send me solution and reason of this exception.
ThanksYour XML file is malformed.
-
Hello Experts..,
I created a EJB session bean 3.0 (Remote and Local). I created a web service from this bean.
When I test the web service, I get following exception...
javax.ejb.EJBException: Exception raised from invocation of public java.lang.String com.<name>...doeHeader(java.lang.String) method on bean instance com.<name>...@714647bf for bean nested exception is: javax.xml.ws.WebServiceException: java.lang.ClassCastException: class ..jndi.persistent.UnsatisfiedReferenceImpl:service:[email protected]@4807ccf6@alive incompatible with interface
My ejb-jar.xml is almost empty:
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
</ejb-jar>
Am I missing any properties in the ejb-jar.xml?
Server logs show
at $Proxy3060.salesOrderCreateOut(Unknown Source)
at com...doe.salesheader.DoeToPIBean.doeHeader(DoeToPIBean.java:58)
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:585)
What does these logs mean?
Thanks
SrinivasHere is the DoeToPIBean
@WebService(targetNamespace="http://<name>.com/doe/salesheader/", endpointInterface="com...doe.salesheader.DoeToPIRemote", portName="DoeToPIBeanPort", serviceName="DoeToPIService")
@Stateless
public class DoeToPIBean implements DoeToPIRemote, DoeToPILocal {
@WebServiceRef (name="SalesOrderCreateOutService")
private SalesOrderCreateOutService service;
public String doeHeader(String headerXml){
SalesOrderCreateOut servicePort = service.getSalesOrderCreate_Out_Port();
javax.xml.ws.BindingProvider bp = (javax.xml.ws.BindingProvider) servicePort;
Map<String, Object> context = bp.getRequestContext();
context.put(BindingProvider.USERNAME_PROPERTY, "<name>");
context.put(BindingProvider.PASSWORD_PROPERTY, "<pwd>");
SalesOrderResponse response = null;
Project salesOrderCreateRequest = new Project();
Header header = new Header();
header.setTitle("EAST COAST SHEET METAL MOTOR WARRANTY");
header.setBillToName("GLOBAL MECHANICAL SYSTEMS LTD");
salesOrderCreateRequest.setHeader(header);
try {
response = servicePort.salesOrderCreateOut(salesOrderCreateRequest);
} catch (SalesOrderError_Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
TRETURN treturn = response.getTRETURN();
Iterator ls = treturn.getItem().iterator();
while(ls.hasNext()){
TRETURN.Item tempItem = (TRETURN.Item)ls.next();
headerXml = tempItem.getMESSAGE();
break;
return headerXml;
Exception occurs on the bold line above: (line 58)
When I "CTRL + click" on the method "salesOrderCreateOut" on this line, it goes to the interface declaration. So I don't see the implementation of this interface method anywhere in my workspace..,
I generated this client code using the wizard similar to wsimport..
Here is the full stack trace:
Error com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding # java.lang.ClassCastException: class com.sap.engine.services.jndi.persistent.UnsatisfiedReferenceImpl:service:[email protected]@75da931b@alive incompatible with interface com.sap.engine.services.webservices.espbase.xi.ESPXIMessageProcessor:library:[email protected]ssLoader@5892a78b@alive
[EXCEPTION]
javax.xml.ws.WebServiceException: java.lang.ClassCastException: class com.sap.engine.services.jndi.persistent.UnsatisfiedReferenceImpl:service:[email protected]@75da931b@alive incompatible with interface com.sap.engine.services.webservices.espbase.xi.ESPXIMessageProcessor:library:[email protected]ssLoader@5892a78b@alive
at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.call_XI(SOAPTransportBinding.java:2067)
at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.callWOLogging(SOAPTransportBinding.java:812)
at com.sap.engine.services.webservices.espbase.client.bindings.impl.SOAPTransportBinding.call(SOAPTransportBinding.java:759)
at com.sap.engine.services.webservices.espbase.client.jaxws.core.WSInvocationHandler.processTransportBindingCall(WSInvocationHandler.java:167)
at com.sap.engine.services.webservices.espbase.client.jaxws.core.WSInvocationHandler.invokeSEISyncMethod(WSInvocationHandler.java:120)
at com.sap.engine.services.webservices.espbase.client.jaxws.core.WSInvocationHandler.invokeSEIMethod(WSInvocationHandler.java:83)
at com.sap.engine.services.webservices.espbase.client.jaxws.core.WSInvocationHandler.invoke(WSInvocationHandler.java:64)
at $Proxy3060.salesOrderCreateOut(Unknown Source)
at com....doe.salesheader.DoeToPIBean.doeHeader(DoeToPIBean.java:58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
Here is the full stack trace, as this editor won't let me paste (limit is 7500 chars)...
http://www.yousendit.com/download/YWhPSkhRTXY3bUJjR0E9PQ -
Classnot found exception- persistence.xml
While Executing Unit test from Eclipse itself, Keep getting exception saying......Unable to load entity class, it's not on the classpath, check your persistence.xml
if anyone have some clue on that?
Entity classes are in some different project in eclipse & have added those Entities jars in My classpath.Nicky26 wrote:
While Executing Unit test from Eclipse itself, Keep getting exception saying......Unable to load entity class, it's not on the classpath, check your persistence.xml
if anyone have some clue on that?
Entity classes are in some different project in eclipse & have added those Entities jars in My classpath.Java does not agree with you and Java is the boss.
A thought: perhaps the wrong persistence.xml is loaded? In other words, do you have multiple persistence.xml files on the classpath? -
Hi,
I am using bursting control file to split the output of the invoice report based on the trax number.
Below is my control file
<!-- $Header: XXBS_AR007_PRT_INV_BURSTING_CONTROL.xml 2011/09/30 10:23:23 xdouser noship $ -->
<!-- dbdrv: none -->
<xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
<xapi:request select="/XXBSAR007PRINV/LIST_G_ORDER_BY/G_ORDER_BY/LIST_G_INVOICE/G_INVOICE">
<xapi:delivery>
<xapi:ftp id="123" server="${CF_SERVER}" user="${CF_USER_NAME}" password="${CF_PASSWORD}" remote-directory="${CF_REMOTE_DIRECTORY}" remote-file="${TRX_NUMBER}.pdf" secure-ftp="${CF_SECURE_FTP}"/>
</xapi:delivery>
<xapi:document output="${TRX_NUMBER}.pdf" output-type="pdf" delivery="123">
<xapi:template type="rtf"
location="xdo://XXBS.XXBSAR007PRINV.en.US/?getSource=true">
</xapi:template>
</xapi:document>
</xapi:request>
</xapi:requestset>
I have defined the formula columns for the server details.
But when I am running this prog getting the following exception
XML/BI Publisher Version : 5.6.3
Request ID: 23041418
All Parameters: Dummy for Data Security=Y:ReportRequestID=23041417:DebugFlag=Y
Report Req ID: 23041417
Debug Flag: Y
Updating request description
Updated description
Retrieving XML request information
Node Name:IT03APSTST
Preparing parameters
null output =/test_diapason_ebs/APPL_R12/inst/apps/PRE_it03apstst/logs/appl/conc/out/o23041418.out
inputfilename =/test_diapason_ebs/APPL_R12/inst/apps/PRE_it03apstst/logs/appl/conc/out/o23041417.out
Data XML File:/test_diapason_ebs/APPL_R12/inst/apps/PRE_it03apstst/logs/appl/conc/out/o23041417.out
Set Bursting parameters..
Temp. Directory:/usr/tmp
[100311_111822843][][STATEMENT] Oracle XML Parser version ::: Oracle XML Developers Kit 10.1.3.0.0 - Production
[100311_111822847][][STATEMENT] setOAProperties called..
Bursting propertes.....
{user-variable:cp:territory=IT, user-variable:cp:ReportRequestID=23041417, user-variable:cp:language=en, user-variable:cp:responsibility=50344, user-variable.OA_MEDIA=http://it03apstst.biesse.it:8000/OA_MEDIA, burstng-source=EBS, user-variable:cp:DebugFlag=Y, user-variable:cp:parent_request_id=23041417, user-variable:cp:locale=en-IT, user-variable:cp:user=IT00EX0097, user-variable:cp:application_short_name=XDO, user-variable:cp:request_id=23041418, user-variable:cp:org_id=102, user-variable:cp:reportdescription=Biesse: Print Invoices, user-variable:cp:Dummy for Data Security=Y}
Start bursting process..
Bursting process complete..
Generating Bursting Status Report..
--Exception
/usr/tmp/100311_111822882/9.pdf (No such file or directory)
java.io.FileNotFoundException: /usr/tmp/100311_111822882/9.pdf (No such file or directory)
at java.io.FileInputStream.<init>(FileInputStream.java:112)
at java.io.FileInputStream.<init>(FileInputStream.java:72)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.zipOutputFiles(JCP4XDOBurstingEngine.java:523)
at oracle.apps.xdo.oa.cp.JCP4XDOBurstingEngine.runProgram(JCP4XDOBurstingEngine.java:292)
at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
I am not which file is referred here .. here 9 is the trx number but rest of the things I am not sure.
Please let me know where am I wrong?
Any help would be appreciated.Your XML file is malformed.
-
Exception: org.xml.sax.SAXParseException
Hi Folks,
We are trying to parse against a dtd and we are receiving:
org.xml.sax.SAXParseException: Relative URI "C:\SuitabilityHR.dtd"; can not be resolved without a document URI.
The path is absolute and named correctly. Can anyone provide some direction around the cause of this exception? Thanks.Thanks. However we are still receiving this exception. Here is the <!Doctype> tag along with the rest of the message. We also tried the relative version. Thanks.
<!DOCTYPE SuitAddClose SYSTEM "c:\\SuitabilityCasesInput.dtd"><SuitAddClose><XMLVersion><XMLBase>3.0</XMLBase><XMLRev>1.0</XMLRev></XMLVersion><EMMHeader/><SuitActionCode>Update</SuitActionCode><SuitCaseInfo><ClientID>00100000000000018364735</ClientID><SuitIndicator>Y</SuitIndicator><TIN/><AcctID/><AdvisorID/><GroupID/><Reason/><Topic/><SubTopic/><PaymentAmount/><SuitFields/></SuitCaseInfo></SuitAddClose> -
Adding properties to XML Registry
I'm using WLS 6.0. I was wondering if it is possible
to add more properties into the XML Registry on the console.
The two properties currently there are: DocumentBuilderFactory
and SaxParserFactory.
I'd like to add the two system properties: javax.xml.transform.TransformerFactory
and org.xml.sax.driver.
I know I can set these from the command line using the
-D option but I'd much rather have the configuration
in the console.
Can I do this? If so, how?
Thanks!Follow-up: Even though it lists 4 missing required properties in the error, when I went back and added only the Value property, the red flags went away....
Werry Interestink! -
The examples for adding users to iFS work fine, but do I have to create an XML file for every user I want to add? I tried to create an XML file with more than one <SimpleUser> definitions, but iFS reports an "unexpected end of file" error at the position where the second User definition starts.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by jsacks:
Ralf,
Using the standard <object_list> tag to parse a list of simpleuser tags should work:
<HR></BLOCKQUOTE>
Included inside <objectlist> tags, it works fine. Thank you very much.
null -
EJBComponents not added to config.xml
We are in the process of upgrading our version of Weblogic Server from 6.1 to 8.1.
In 6.1 weblogic used to add all an EJBComponent tag into config.xml for each
ejb module in application.xml, but it no longer seems to do this in 8.1. From
the weblogic console I can all the ejbs are listed as modules, however they have
no target set. Do we have to manually add the EJBComponents to config.xml now?
Below is the contents of the config.xml:
<Domain ConfigurationVersion="8.1" Name="E7.2_jeantine_weblogic8.1">
<FileRealm Name="wl_default_file_realm"/>
<Security CompatibilityMode="true" Name="E7.2_jeantine_weblogic8.1"
PasswordPolicy="wl_default_password_policy"
Realm="wl_default_realm" RealmSetup="true"/>
<PasswordPolicy Name="wl_default_password_policy"/>
<Realm FileRealm="wl_default_file_realm" Name="wl_default_realm"/>
<JTA Name="E7.2_jeantine_weblogic8.1" TimeoutSeconds="1800"/>
<JDBCConnectionPool CapacityIncrement="1"
DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="1"
LoginDelaySeconds="0" MaxCapacity="20" Name="energyPool"
Password="{3DES}ulcBYGqUa6R1aydmAaegvQ=="
Properties="user=energydb" RefreshMinutes="999999"
ShrinkPeriodMinutes="720" ShrinkingEnabled="true"
Targets="myserver" TestConnectionsOnRelease="false"
TestConnectionsOnReserve="true" TestTableName="dual" URL="jdbc:oracle:thin:@n028.peace.co.nz:10002:lob"/>
<JDBCDataSource JNDIName="energyDataSource" Name="energyDataSource"
PoolName="energyPool" Targets="myserver"/>
<SNMPAgent Name="E7.2_jeantine_weblogic8.1"/>
<Log FileName="logs/wl-domain.log" Name="E7.2_jeantine_weblogic8.1"/>
<ApplicationManager Name="E7.2_jeantine_weblogic8.1"/>
<Application Deployed="false" Name="energy"
Path="./applications/energy" TwoPhase="false">
<WebAppComponent Name="energy" Targets="myserver" URI="energy"/>
</Application>
<JMSServer Name="EnergyJMSServer" Store="interfacesJMSJDBCStore" Targets="myserver">
<JMSQueue JNDIName="InputBatch" Name="InputBatch"
RedeliveryDelayOverride="5" RedeliveryLimit="2" StoreEnabled="true"/>
<JMSQueue JNDIName="InterfacesAsyncCompletionQueue"
Name="InterfacesAsyncCompletionQueue"
RedeliveryDelayOverride="10" RedeliveryLimit="2" StoreEnabled="true"/>
</JMSServer>
<JMSConnectionFactory DefaultRedeliveryDelay="5"
JNDIName="InterfacesJMSConnectionFactory" MessagesMaximum="100"
Name="InterfacesJMSConnectionFactory" Targets="myserver"/>
<JMSJDBCStore ConnectionPool="energyPool" Name="interfacesJMSJDBCStore"/>
<Server ListenPort="10116" Name="myserver" NativeIOEnabled="true"
ServerVersion="8.1.0.0" TransactionLogFilePrefix="logs/">
<ServerDebug DebugEJB="true" DebugEJBCalls="true"
DebugEJBDeployment="true" Name="myserver"/>
<Log FileName="logs/weblogic.log" Name="myserver"/>
<ServerStart Name="myserver"/>
<ExecuteQueue Name="default" ThreadCount="15"/>
<WebServer DefaultWebApp="energy"
LogFileName="./logs/access.log" LoggingEnabled="true" Name="myserver"/>
<KernelDebug Name="myserver"/>
<SSL IdentityAndTrustLocations="FilesOrKeyStoreProviders" Name="myserver"/>
</Server>
<EmbeddedLDAP
Credential="{3DES}XyvpZX5+kEplLubZ3VpJc5CJBhNoACGAnIMLDiNRnQE=" Name="E7.2_jeantine_weblogic8.1"/>
<SecurityConfiguration
Credential="{3DES}GnmhhG5n4eq1d2mgIQyu+x3HjLZOEg71LkqMj+RkzwBesyY/DArh2ES4hQaRRFoyyJA5VB3DStp6nM66Ag2Ek1p/o/ImDfHV"
Name="E7.2_jeantine_weblogic8.1" RealmBootStrapVersion="1"/>
</Domain>I tried removing the application tag from config.xml, but it didn't manage to automatically
pick up my application.
I am able to deploy my application successfully from the console and the all the
appropriate components get added to the config.xml during that process, but for
some reason it doesn't do this when I first deploy??
The contents of my applications/energy directory are:
n028 jeantine <applications/energy> ls
AdvancedSearchSessionBean.jar MeterMgmtBean.jar
APIAdministrationBean.jar NonTransCORBABean.jar
App4SupSessionBean.jar ParameterStorageBean.jar
AppServSessionBean.jar PasswordServerBean.jar
ARCCCommonControllerBean.jar PaymentArrangementMaintenanceBean.jar
ARCCSessionBean.jar PaymentPlanBOControllerBean.jar
ARSessionBean.jar PaymentPlanCSRControllerBean.jar
AsyncInterfaceControllerBean.jar PaymentPlanCSRLogicBean.jar
AsyncMessageDrivenBean.jar PeriodicBillingLightingSessionBean.jar
BillingMarketModelSessionBean.jar PeriodicBillingSessionBean.jar
BillingSessionBean.jar PostalAddressMaintenanceBean.jar
CCSessionBean.jar PremiseAddressMaintenanceBean.jar
ComponentSessionBean.jar PremiseSearchBean.jar
ContactSessionBean.jar PremiseSessionBean.jar
ContractSessionBean.jar PriceSessionBean.jar
CredControlSessionBean.jar ProcessTrackingMaintenanceBean.jar
CreditControlMaintenanceBean.jar ProfileSessionBean.jar
CustomerMaintenanceBean.jar ProspectInfoSessionBean.jar
CustomerSearchBean.jar ProspectSearchSessionBean.jar
CustomerSessionBean.jar ProspectTransSessionBean.jar
CustomerSignUpBean.jar PRWSessionBean.jar
DirectDebitMaintenanceBean.jar PtjSessionBean.jar
energy QuotationSessionBean.jar
energyapicommon.jar ReadingAdjustmentSessionBean.jar
EnergyCommonControllerBean.jar ReadingSessionBean.jar
energycorba.rar RegisterSessionBean.jar
energyejbcommon.jar ReprocessSessionBean.jar
EnergyLocaleBean.jar SalesMarketing
EnergyPaginatorBean.jar SearchSessionBean.jar
EnrollmentSessionBean.jar ServiceConfigSessionBean.jar
ExternalBillingSessionBean.jar ServiceSessionBean.jar
FIRSessionBean.jar SessionManagerBean.jar
GenericAdminBean.jar SMInBoundProxySessionBean.jar
interfaces_clients.jar SMOutBoundProxySessionBean.jar
interfaces.jar StatementGenerationBean.jar
InternalAsyncRequestBean.jar SupplySessionBean.jar
InvoiceValidationSessionBean.jar SyncInterfaceControllerBean.jar
JDBCOnly1Bean.jar TariffSessionBean.jar
JDBCOnly2Bean.jar TaxExemptionSessionBean.jar
logging.jar TaxJurisdictionSessionBean.jar
MarketExtRefBean.jar TaxSessionBean.jar
MenuServerBean.jar TransactionalRemoteInvokerBean.jar
META-INF UMCSessionBean.jar
Rob Woollen <[email protected]> wrote:
No, you shouldn't have to manually add the EJBComponents.
The Deployed attribute of your application appears to be false. That
doesn't seem too good.
<Application Deployed="false" Name="energy"
Path="./applications/energy" TwoPhase="false">
<WebAppComponent Name="energy" Targets="myserver" URI="energy"/>
</Application>My recommendation would be to remove this application's entry from the
config.xml and restart the server. Since it's in the applications
directory, it should be picked up automatically.
If you're still having problems, can you show me the contents of the
applications/energy directory?
-- Rob
Jeantine wrote:
We are in the process of upgrading our version of Weblogic Server from6.1 to 8.1.
In 6.1 weblogic used to add all an EJBComponent tag into config.xmlfor each
ejb module in application.xml, but it no longer seems to do this in8.1. From
the weblogic console I can all the ejbs are listed as modules, howeverthey have
no target set. Do we have to manually add the EJBComponents to config.xmlnow?
Below is the contents of the config.xml:
<Domain ConfigurationVersion="8.1" Name="E7.2_jeantine_weblogic8.1">
<FileRealm Name="wl_default_file_realm"/>
<Security CompatibilityMode="true" Name="E7.2_jeantine_weblogic8.1"
PasswordPolicy="wl_default_password_policy"
Realm="wl_default_realm" RealmSetup="true"/>
<PasswordPolicy Name="wl_default_password_policy"/>
<Realm FileRealm="wl_default_file_realm" Name="wl_default_realm"/>
<JTA Name="E7.2_jeantine_weblogic8.1" TimeoutSeconds="1800"/>
<JDBCConnectionPool CapacityIncrement="1"
DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="1"
LoginDelaySeconds="0" MaxCapacity="20" Name="energyPool"
Password="{3DES}ulcBYGqUa6R1aydmAaegvQ=="
Properties="user=energydb" RefreshMinutes="999999"
ShrinkPeriodMinutes="720" ShrinkingEnabled="true"
Targets="myserver" TestConnectionsOnRelease="false"
TestConnectionsOnReserve="true" TestTableName="dual" URL="jdbc:oracle:thin:@n028.peace.co.nz:10002:lob"/>
<JDBCDataSource JNDIName="energyDataSource" Name="energyDataSource"
PoolName="energyPool" Targets="myserver"/>
<SNMPAgent Name="E7.2_jeantine_weblogic8.1"/>
<Log FileName="logs/wl-domain.log" Name="E7.2_jeantine_weblogic8.1"/>
<ApplicationManager Name="E7.2_jeantine_weblogic8.1"/>
<Application Deployed="false" Name="energy"
Path="./applications/energy" TwoPhase="false">
<WebAppComponent Name="energy" Targets="myserver" URI="energy"/>
</Application>
<JMSServer Name="EnergyJMSServer" Store="interfacesJMSJDBCStore"Targets="myserver">
<JMSQueue JNDIName="InputBatch" Name="InputBatch"
RedeliveryDelayOverride="5" RedeliveryLimit="2" StoreEnabled="true"/>
<JMSQueue JNDIName="InterfacesAsyncCompletionQueue"
Name="InterfacesAsyncCompletionQueue"
RedeliveryDelayOverride="10" RedeliveryLimit="2" StoreEnabled="true"/>
</JMSServer>
<JMSConnectionFactory DefaultRedeliveryDelay="5"
JNDIName="InterfacesJMSConnectionFactory" MessagesMaximum="100"
Name="InterfacesJMSConnectionFactory" Targets="myserver"/>
<JMSJDBCStore ConnectionPool="energyPool" Name="interfacesJMSJDBCStore"/>
<Server ListenPort="10116" Name="myserver" NativeIOEnabled="true"
ServerVersion="8.1.0.0" TransactionLogFilePrefix="logs/">
<ServerDebug DebugEJB="true" DebugEJBCalls="true"
DebugEJBDeployment="true" Name="myserver"/>
<Log FileName="logs/weblogic.log" Name="myserver"/>
<ServerStart Name="myserver"/>
<ExecuteQueue Name="default" ThreadCount="15"/>
<WebServer DefaultWebApp="energy"
LogFileName="./logs/access.log" LoggingEnabled="true" Name="myserver"/>
<KernelDebug Name="myserver"/>
<SSL IdentityAndTrustLocations="FilesOrKeyStoreProviders" Name="myserver"/>
</Server>
<EmbeddedLDAP
Credential="{3DES}XyvpZX5+kEplLubZ3VpJc5CJBhNoACGAnIMLDiNRnQE="Name="E7.2_jeantine_weblogic8.1"/>
<SecurityConfiguration
Credential="{3DES}GnmhhG5n4eq1d2mgIQyu+x3HjLZOEg71LkqMj+RkzwBesyY/DArh2ES4hQaRRFoyyJA5VB3DStp6nM66Ag2Ek1p/o/ImDfHV"
Name="E7.2_jeantine_weblogic8.1" RealmBootStrapVersion="1"/>
</Domain> -
Oracle State Session Store throws an Unhandled Exception with Xml
I wish to use the Oracle.Net Session Store to store a value to session. The value or object if you prefer is marked as serializable in order to be placed within the store.
Unfortunately, when running the code I get an unhandled exception error being displayed to the screen. The code itself does not fail at any point in debug. The actual error message in full is "An unhandled exception occurred 'Type 'System.Xml.XmlDocument' in Assembley 'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable"
Now, we have xml fields in our classes, and we have tried all sorts things, but I would like to know whether there is a far simpler way of saving xml documents to session when using Oracle.Net Session Store. We have also tried saving sessions using the ASP.Net State Server and hit exactly the same error.
Does anyone have any good ideas/solutions?Hi Muthuraja,
The warning in error log is caused by the error you mentioned above. Based on my search, the error message can be caused by various reasons.
To troubleshooting the issue, please refer to the following steps:
Check the "Idle Time-out" option of the application pool, if its value is not zero, set it to a larger integer value such as 120.
Check the "Virtual Memory Limit" option of the application tool, if its value is not zero, set it to 0 instead.
Set the "Maximum Worker Processes" option of the application tool to 1.
In the web.config of the Web Application, set the “cookieless” to “true” like below:
<sessionState mode="InProc" cookieless="true" timeout="120"/>
Modify the httpRuntime settings like below:
<httpRuntime maxRequestLength="20000" executionTimeout="600"/>
Reference:
sessionState Element
httpRuntime Element
AspNetSessionExpiredException
If you have any more questions, please feel free to ask.
Thanks,
Wendy Fu
If you have any feedback on our support, please click
here. -
Exception javax.xml.ws.soap.SOAPFault when trying to invoke OBR
Hi,
1 .I am have created a SOA Composite which has an OBR. I deployed that project and that was working fine.
2 .In Order to call the OBR service from another composite I have created another composite in which a web service(reference) adapter which is towards the right side of the composite shall call the web service of the OBR composite.
When I point the URL to the WSDL of the OBR web service, I get the error. The screenshot of the error is avbl at the following URL. http://img199.imageshack.us/img199/7015/37887205.jpg
3 .So I have manually saved the WSDL of OBR web service as a file and saved it in the proj that i mentioned in 2. Then I was able to create web service adapter with out any problem. Then I created a composite (screenshot http://img59.imageshack.us/img59/7826/30673557.jpg ) which calles the OBR web service and gets the reply.
4. After deploying the composite, when I am trying to invoke the OBR service, I get the following error in the console of the Soa server.
SEVERE: AbstractWebServiceBindingComponent.dispatchRequest Unable to dispatch re
quest to http://rws60045rems:5002/soa-infra/services/default/EventLogProj/OracleRules1_DecisionService_1 due to exceptionjavax.xml.ws.soap.SOAPFaultException
SEVERE: Received a business fault{http://xmlns.oracle.com/OracleRules2/OracleRul
es2_DecisionService_1}operationErroredFault. Sending fault to fault action
SEVERE: AbstractWebServiceBindingComponent.dispatchRequest Unable to dispatch re
quest to http://rws60045rems:5002/soa-infra/services/default/HighValueOrderOBRPr
oject/OracleRules2_DecisionService_1 due to exceptionjavax.xml.ws.soap.SOAPFault
Exception: Invalid URI "ID:<65469.1271952700558.0>" in Addressing element Relate
sTo.
: Got an exception: oracle.fabric.common.FabricInvocationException
oracle.tip.mediator.infra.exception.MediatorException: ORAMED-03303:[Unexpected exception in case execution]Unexpected exception in request response operation "callFunctionStateless" on reference "CallHighValOrdService". Possible Fix:Check whether the reference service is properly configured and running or look at exception for analysing the reason or contact oracle support.
Please help me to resolve these errors. Please let me know what could have led to this problem and exceptions.
Thanks,
Raj kumar
Edited by: Raja Kumar on Apr 22, 2010 10:06 AM
Edited by: Raja Kumar on Apr 22, 2010 10:07 AMHi,
The problem is solved now. While creating the WS adapter in Jdev, I have tried specifying the URL with the Ip address instead of server name. seems Jdev was not able to resolve the name of the server. Once I created composite with this and deployed the error got resolved.
Thanks,
Raj
Maybe you are looking for
-
IPad keeps closing or kicking me out
When using safari or even on app store browsing apps. The iPad suddenly closes. It's been happening for 2 weeks. Could it be a virus
-
Problem with semantic search (topicmaps) and german umlauts (ä,ü,ö)
Hello, i've implemented semantic search like it is described in "How to Enable semantic search.pdf". If i create a synonymlist with a word containing ä,ü or ö; for example "nuts;nüsse", and now i search for nuts, i get the following error message: <<
-
To see Print Preview for Goods Issue
Hi! I have attached the custom SAPScript in NACE for GI. But while doing Goods Issue Posting (MIGO_GI), I should get some printout of Goods Issue Document. But I am not getting any printout but the material document is getting created. I went to SPRO
-
I heard about languages packs for nokia devices. Is it possible to install a Polish one on my C7 Astound? I need that language very much.
-
Theres this app called ifunny which lets you upload and save funny photos and ever since i got the app it made an album in my pictures called ifunny and inside are all the photos that i saved (Like instagrams save to camera roll option) What i would