Jax-ws reading fault saop messges - error parsing the xml source
i have a class for reading soap messages including fault:
class it.xx.SOAPListener.LoggingHandler, handleFault is the method like:
public boolean handleFault(SOAPMessageContext c) {
try {
SOAPMessage msg = c.getMessage();
msg.writeTo(System.out);
} catch (SOAPException ex) {
but c.getMessage throws an javax.xml.stream.XMLStreamException as you can see above.
& # 28 is the char not understood properly by the parser (as ou can see above )
this kind of fault soap message is a standard for the remote webservices i used and, i cant change it!
the exception thrown don't write the soap message of response because the line msg.writeTo(output stream) is not executed
so, how can i get the response without exception, how can formatting the message before exception can be thrown without change jax-ws library code??
thank you
exception is:
javax.xml.ws.WebServiceException: javax.xml.soap.SOAPException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,2059]
Message: Character reference "" is an invalid XML character.
at com.sun.xml.ws.handler.SOAPMessageContextImpl.getMessage(SOAPMessageContextImpl.java:81)
at it.xx.SOAPListener.LoggingHandler.handleFault(LoggingHandler.java:77)
at it.xx.SOAPListener.LoggingHandler.handleFault(LoggingHandler.java:32)
at com.sun.xml.ws.handler.HandlerProcessor.callHandleFault(HandlerProcessor.java:378)
at com.sun.xml.ws.handler.HandlerProcessor.callHandlersResponse(HandlerProcessor.java:202)
at com.sun.xml.ws.handler.ClientSOAPHandlerTube.callHandlersOnResponse(ClientSOAPHandlerTube.java:159)
at com.sun.xml.ws.handler.HandlerTube.processResponse(HandlerTube.java:160)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:605)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
at com.sun.xml.ws.client.Stub.process(Stub.java:248)
at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:135)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:109)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)
at $Proxy38.m01(Unknown Source)
ecc...
Edited by: robyp7 on Aug 25, 2009 2:07 AM
Edited by: robyp7 on Aug 25, 2009 2:09 AM
i have a class for reading soap messages including fault:
class it.xx.SOAPListener.LoggingHandler, handleFault is the method like:
public boolean handleFault(SOAPMessageContext c) {
try {
SOAPMessage msg = c.getMessage();
msg.writeTo(System.out);
} catch (SOAPException ex) {
but c.getMessage throws an javax.xml.stream.XMLStreamException as you can see above.
& # 28 is the char not understood properly by the parser (as ou can see above )
this kind of fault soap message is a standard for the remote webservices i used and, i cant change it!
the exception thrown don't write the soap message of response because the line msg.writeTo(output stream) is not executed
so, how can i get the response without exception, how can formatting the message before exception can be thrown without change jax-ws library code??
thank you
exception is:
javax.xml.ws.WebServiceException: javax.xml.soap.SOAPException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,2059]
Message: Character reference "" is an invalid XML character.
at com.sun.xml.ws.handler.SOAPMessageContextImpl.getMessage(SOAPMessageContextImpl.java:81)
at it.xx.SOAPListener.LoggingHandler.handleFault(LoggingHandler.java:77)
at it.xx.SOAPListener.LoggingHandler.handleFault(LoggingHandler.java:32)
at com.sun.xml.ws.handler.HandlerProcessor.callHandleFault(HandlerProcessor.java:378)
at com.sun.xml.ws.handler.HandlerProcessor.callHandlersResponse(HandlerProcessor.java:202)
at com.sun.xml.ws.handler.ClientSOAPHandlerTube.callHandlersOnResponse(ClientSOAPHandlerTube.java:159)
at com.sun.xml.ws.handler.HandlerTube.processResponse(HandlerTube.java:160)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:605)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
at com.sun.xml.ws.client.Stub.process(Stub.java:248)
at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:135)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:109)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)
at $Proxy38.m01(Unknown Source)
ecc...
Edited by: robyp7 on Aug 25, 2009 2:07 AM
Edited by: robyp7 on Aug 25, 2009 2:09 AM
Similar Messages
-
CS3 - "Unable to locate or parse the XML source"
Hello,
When I try and attach a remote XML source to my XSL fragment,
Dreamweaver
CS3 tells me "Unable to locate or parse the XML source".
This happens irrespective of where the remote XML file is
located, and for
all the remote XML files that I have found and tested from a
myriad of
different sources - I always get the same response.
I can download any of these XML files and work with them
locally, which
Dreamweaver is quite happy to do, but that isn't appropriate
for an
application that needs to rely on an XML feed that is always
up to date!
From searching Google I can find numerous other queries of
this nature, but
no solutions! I am not sure if it is a Dreamweaver problem,
or related to
the type of web server I'm using or indeed to the corporate
firewall here.
For clarity, only Dreamweaver can't locate the remote XML
sources - pasted
into a browser they are all perfectly valid.
(Apologies for sort of cross posting, I have already asked
this question
slightly differently on macromedia.dreamweaver)
Cheers,
D.Kelli, I know this is months late for you.. but I get the
same error.. I found if I downloaded the xml locally I was able to
set up my xsl page. After I got the page to look the way I wanted I
switch the source to the external URL.
If you have found a fix for the error please let me know,
other then that this way will work. -
Unable to locate or parse the XML source (-1,-1)
Hello,
Why do I get this error when I'm trying to get the XML source
from
*.php ?
quote:
"Unable to locate or parse the XML source (-1,-1)"
The
*.php file has a recordset which I exported as XML based on
this
tutorial
I can see the XML of *php in the browser but can't get the
schema.
What am I missing?
Thank youpage.php
url
quote:
code:
<?php require_once('../Connections/example.php'); ?>
<?php
// Load the XML classes
require_once('../includes/XMLExport/XMLExport.php');
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType,
$theDefinedValue = "", $theNotDefinedValue = "")
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue)
: $theValue;
$theValue = function_exists("mysql_real_escape_string") ?
mysql_real_escape_string($theValue) :
mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) .
"'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue :
$theNotDefinedValue;
break;
return $theValue;
mysql_select_db($database_example, $example);
$query_data = "SELECT * FROM example";
$data = mysql_query($query_data, $example) or
die(mysql_error());
$row_data = mysql_fetch_assoc($data);
$totalRows_data = mysql_num_rows($data);
// Begin XMLExport data
$xmlExportObj = new XMLExport();
$xmlExportObj->setRecordset($data);
$xmlExportObj->addColumn("Name", "Name");
$xmlExportObj->addColumn("Damage", "Damage");
$xmlExportObj->addColumn("Speed", "Speed");
$xmlExportObj->addColumn("Level", "Level");
$xmlExportObj->addColumn("Details", "Details");
$xmlExportObj->addColumn("Type", "Type");
$xmlExportObj->addColumn("Source", "Source");
$xmlExportObj->addColumn("Location", "Location");
$xmlExportObj->addColumn("Date", "Date");
$xmlExportObj->addColumn("Price", "Price");
$xmlExportObj->addColumn("Skill", "Skill");
$xmlExportObj->addColumn("Constitution", "Constitution");
$xmlExportObj->addColumn("Intelligence", "Intelligence");
$xmlExportObj->addColumn("Wisdom", "Wisdom");
$xmlExportObj->addColumn("Strength", "Strength");
$xmlExportObj->addColumn("Member", "Member");
$xmlExportObj->addColumn("Image", "Image");
$xmlExportObj->setMaxRecords("ALL");
$xmlExportObj->setDBEncoding("ISO-8859-1");
$xmlExportObj->setXMLEncoding("ISO-8859-1");
$xmlExportObj->setXMLFormat("NODES");
$xmlExportObj->setRootNode("Category");
$xmlExportObj->setRowNode("Type");
$xmlExportObj->Execute();
// End XMLExport data
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http:// www.
w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http:// www . w3. org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>example</title>
<link href="css.css" rel="stylesheet" type="text/css"
/>
</head>
<body>
</body>
</html>
<?php
mysql_free_result($data);
?> -
Unable to Locate or Parse the XML source
I've just started playing around with Dreamweaver 8 and I'm
trying to pull in a RSS feed. I've followed the instructions in
Dreamweaver, but when I add my XML source (
http://rss.cnn.com/rss/cnn_law.rss)
I get an error message in the bindings area where the XML structure
should be displaying that says "Unable to locate or parse the XML
source". I'm somewhat familiar with XML and new to RSS feeds so I
have no idea what this means. Any help will be appreciated.Kelli, I know this is months late for you.. but I get the
same error.. I found if I downloaded the xml locally I was able to
set up my xsl page. After I got the page to look the way I wanted I
switch the source to the external URL.
If you have found a fix for the error please let me know,
other then that this way will work. -
I have an ODSI Physical Service that is based on a Java Function. The Java Function builds a SQL statement and uses JDBC to query for a ResultSet. One of the columns that is queried is a Clob. Sometimes, the data in this column causes an XMLBeans validation exception in ODSI: {err}XQ0027: Validation failed: error: decimal: Invalid decimal value: unexpected char '114'
The issue is not consistently replicable with particular database record, the database records that present this issue at one point in time will be resolved after a restart of ODSI and replaced by another list of records that present the same error.
As can be seen from the stack trace, it looks like the issue is happening after the database query has returned and while the process is assembling the SOAP response.
Error at line:2 col:481 Line:2 '=' expected, got char[99]
at weblogic.xml.babel.scanner.ScannerState.expect(ScannerState.java:241)
at weblogic.xml.babel.scanner.OpenTag.read(OpenTag.java:60)
at weblogic.xml.babel.scanner.Scanner.startState(Scanner.java:251)
at weblogic.xml.babel.scanner.Scanner.scan(Scanner.java:178)
at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:533)
at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:510)
at weblogic.xml.babel.baseparser.EndElement.parse(EndElement.java:34)
at weblogic.xml.babel.baseparser.BaseParser.parseElement(BaseParser.java:457)
at weblogic.xml.babel.baseparser.BaseParser.parseSome(BaseParser.java:326)
at weblogic.xml.stax.XMLStreamReaderBase.advance(XMLStreamReaderBase.java:195)
at weblogic.xml.stax.XMLStreamReaderBase.next(XMLStreamReaderBase.java:237)
at weblogic.xml.stax.XMLEventReaderBase.parseSome(XMLEventReaderBase.java:189)
at weblogic.xml.stax.XMLEventReaderBase.nextEvent(XMLEventReaderBase.java:122)
at weblogic.xml.query.parsers.StAXEventAdaptor.queueNextTokens(StAXEventAdaptor.java:136)
at weblogic.xml.query.parsers.StAXEventAdaptor.queueNextTokens(StAXEventAdaptor.java:124)
at weblogic.xml.query.parsers.BufferedParser.fetchNext(BufferedParser.java:79)
at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:104)
at weblogic.xml.query.runtime.navigation.ChildPath.fetchNext(ChildPath.java:308)
at weblogic.xml.query.iterators.GenericIterator.hasNext(GenericIterator.java:133)
at weblogic.xml.query.schema.BestEffortValidatingIterator$OpenedIterator.hasNext(BestEffortValidatingIterator.java:224)
at weblogic.xml.query.schema.ValidatingIterator.fetchNext(ValidatingIterator.java:82)
at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:104)
at weblogic.xml.query.xdbc.iterators.ItemIterator.fetchNext(ItemIterator.java:86)
at weblogic.xml.query.iterators.LegacyGenericIterator.next(LegacyGenericIterator.java:109)
at weblogic.xml.query.schema.BestEffortValidatingIterator.fetchNext(BestEffortValidatingIterator.java:85)
at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:104)
at weblogic.xml.query.xdbc.iterators.ItemIterator.fetchNext(ItemIterator.java:86)
at weblogic.xml.query.iterators.LegacyGenericIterator.next(LegacyGenericIterator.java:109)
at weblogic.xml.query.runtime.typing.SeqTypeMatching.fetchNext(SeqTypeMatching.java:137)
at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:104)
at com.bea.dsp.wrappers.jf.JavaFunctionIterator.fetchNext(JavaFunctionIterator.java:273)
at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:104)
at weblogic.xml.query.runtime.querycide.QueryAssassin.fetchNext(QueryAssassin.java:54)
at weblogic.xml.query.iterators.GenericIterator.peekNext(GenericIterator.java:163)
at weblogic.xml.query.runtime.qname.InsertNamespaces.fetchNext(InsertNamespaces.java:247)
at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:104)
at weblogic.xml.query.runtime.core.ExecutionWrapper.fetchNext(ExecutionWrapper.java:88)
at weblogic.xml.query.iterators.GenericIterator.next(GenericIterator.java:104)
at weblogic.xml.query.xdbc.iterators.ItemIterator.fetchNext(ItemIterator.java:86)
at weblogic.xml.query.iterators.LegacyGenericIterator.hasNext(LegacyGenericIterator.java:130)
at weblogic.xml.query.xdbc.util.Serializer.serializeItems(Serializer.java:251)
at com.bea.ld.server.ResultPusher$DSP25CompatibilityPusher.next(ResultPusher.java:236)
at com.bea.ld.server.ResultPusher.pushResults(ResultPusher.java:112)
at com.bea.ld.server.XQueryInvocation.execute(XQueryInvocation.java:770)
at com.bea.ld.EJBRequestHandler.invokeQueryInternal(EJBRequestHandler.java:624)
at com.bea.ld.EJBRequestHandler.invokeOperationInternal(EJBRequestHandler.java:478)
at com.bea.ld.EJBRequestHandler.invokeOperation(EJBRequestHandler.java:323)
at com.bea.ld.ServerWrapperBean.invoke(ServerWrapperBean.java:153)
at com.bea.ld.ServerWrapperBean.invokeOperation(ServerWrapperBean.java:80)
at com.bea.ld.ServerWrapper_s9smk0_ELOImpl.invokeOperation(ServerWrapper_s9smk0_ELOImpl.java:63)
at com.bea.dsp.ws.RoutingHandler$PriviledgedRunner.run(RoutingHandler.java:96)
at com.bea.dsp.ws.RoutingHandler.handleResponse(RoutingHandler.java:217)
at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.java:287)
at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.java:271)
at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:176)
at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)
at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66)
at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java:44)
at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseWSServlet.java:285)
at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:169)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3498)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
<Apr 29, 2011 12:47:01 PM EDT> <Notice> <ODSI> <BEA-000000> <LabOrderDataServices> <Error occurred performing ODSI operation: {ld:LabOrder/logical/LabOrderReport}getLabOrderDetails:1
weblogic.xml.query.exceptions.XQueryDynamicException: ld:LabOrder/logical/LabOrderReport.ds, line 34, column 6: {err}FODC0002 [{bea-err}FODC0002a]: Error parsing input XML: Error at line:2 col:481 Line:2 '=' expected, got char[99]
at weblogic.xml.query.iterators.AbstractIterator.reportUserError(AbstractIterator.java:95)
at weblogic.xml.query.iterators.AbstractIterator.reportUserError(AbstractIterator.java:147)
at weblogic.xml.query.parsers.Parser.reportParseError(Parser.java:157)
at weblogic.xml.query.parsers.StAXEventAdaptor.queueNextTokens(StAXEventAdaptor.java:225)
at weblogic.xml.query.parsers.StAXEventAdaptor.queueNextTokens(StAXEventAdaptor.java:124)
Truncated. see log file for complete stacktrace
javax.xml.stream.XMLStreamException: Error at line:2 col:481 Line:2 '=' expected, got char[99]
at weblogic.xml.stax.XMLStreamReaderBase.advance(XMLStreamReaderBase.java:206)
at weblogic.xml.stax.XMLStreamReaderBase.next(XMLStreamReaderBase.java:237)
at weblogic.xml.stax.XMLEventReaderBase.parseSome(XMLEventReaderBase.java:189)
at weblogic.xml.stax.XMLEventReaderBase.nextEvent(XMLEventReaderBase.java:122)
at weblogic.xml.query.parsers.StAXEventAdaptor.queueNextTokens(StAXEventAdaptor.java:136)
Truncated. see log file for complete stacktrace
Error at line:2 col:481 Line:2 '=' expected, got char[99]
at weblogic.xml.babel.scanner.ScannerState.expect(ScannerState.java:241)
at weblogic.xml.babel.scanner.OpenTag.read(OpenTag.java:60)
at weblogic.xml.babel.scanner.Scanner.startState(Scanner.java:251)
at weblogic.xml.babel.scanner.Scanner.scan(Scanner.java:178)
at weblogic.xml.babel.baseparser.BaseParser.accept(BaseParser.java:533)
Truncated. see log file for complete stacktrace
>
Can somebody shed some light on this issue?
Thanks
Edited by: user738507 on May 6, 2011 7:21 AMHere is the java function:
* Iterate through the search results and build out the XmlBean response
* @param helper A helper class used to simplify common JDBC commands
* @param doc The XmlBean document to populate
* @param isCollectionsIncluded True if Collection info should be included in results, False otherwise
* @param isFullDetailsIncluded True if Result data should be included in results, False otherwise
* @throws Exception
private static void addOrders(XmlBeansJDBCHelper helper, LabOrderReportDocument doc,
boolean isCollectionsIncluded, boolean isFullDetailsIncluded) throws Exception {
int rows = 0;
ResultSet rs = helper.getResultSet();
LabOrders labOrders = doc.getLabOrderReport().addNewLabOrders();
LabOrder record = null;
HashMap<Long, Collection> parentCollectionMap = null;
// initialize variable used to track when child elements of the XML should be created
long previousRowOrderId = 0;
long previousRowParentOrderCollectionId = 0;
long previousRowOrderCollectionId = 0;
long previousRowResultId = 0;
boolean isRootCollectionNode = false;
LabOrder.Collections lastParentOuterCollectionsAdded = null;
com.idexx.services.lde.laborder.Collection.Collections lastParentInnerCollectionsAdded = null;
com.idexx.services.lde.laborder.Collection lastCollectionAdded = null;
Result lastResultAdded = null;
// Loop through the results and build XmlBean nodes for each row
// Since the SQL is joining Orders to Collections (one-to-many) to Results (one-to-many),
// and returning a flat structure, there will be duplicate Order data on each row when
// multiple collections exist on the Order, and duplicate Collection data when multiple
// Results exist. We can use this fact to determine when to create a new Collection, or
// Result node.
while (helper.getResultSet().next())
rows++;
long currentRowParentOrderCollectionId = 0;
long currentRowOrderCollectionId = 0;
long currentRowResultId = 0;
long currentRowResultRemarkId = 0;
//int rowno = helper.getResultSet().getRow();
// Get the Order ID
logDebug("Getting the OrderId.....");
BigInteger dbOrderId = JDBCHelper.getBigInteger(rs, DataConstants.ORDER_ID);
logDebug("DONE getting the OrderId.");
long currentRowOrderId = dbOrderId.longValue();
// Determine the Order ID, Order Collection ID, and Result ID currently being processed.
// These will be used to determine whether to start a new LabOrder Bean, Collections Bean, or Results Bean
if (isCollectionsIncluded || isFullDetailsIncluded) {
// Get the ParentOrderCollectionID
logDebug("Getting the Parent Collection Order ID.....");
BigInteger dbParentOrderCollectionId = JDBCHelper.getBigInteger(rs, DataConstants.PARENT_ORDER_COLLECTION_ID);
if ( dbParentOrderCollectionId != null )
currentRowParentOrderCollectionId = dbParentOrderCollectionId.longValue();
else
currentRowParentOrderCollectionId = 0;
// Get the OrderCollectionID
logDebug("Getting the Order Collection ID.....");
BigInteger dbOrderCollectionId = JDBCHelper.getBigInteger(rs, DataConstants.ORDER_COLLECTION_ID);
if ( dbOrderCollectionId != null )
currentRowOrderCollectionId = dbOrderCollectionId.longValue();
else
currentRowOrderCollectionId = 0;
if ( isFullDetailsIncluded ) {
// Get the ResultID
logDebug("Getting the Result Id.....");
BigInteger dbResultId = JDBCHelper.getBigInteger(rs, DataConstants.RESULT_ID);
if ( dbResultId != null )
currentRowResultId = dbResultId.longValue();
else
currentRowResultId = 0;
// Get the ResultRemarkID
BigInteger dbResultRemarkId = JDBCHelper.getBigInteger(rs, DataConstants.RESULT_REMARK_ID);
if ( dbResultRemarkId != null )
currentRowResultRemarkId = dbResultRemarkId.longValue();
else
currentRowResultRemarkId = 0;
isRootCollectionNode = (currentRowParentOrderCollectionId == 0);
logDebug("currentRowOrderId: " + currentRowOrderId);
logDebug("previousRowOrderId: " + previousRowOrderId);
logDebug("currentRowResultId: " + currentRowResultId);
logDebug("previousRowResultId: " + previousRowResultId);
logDebug("currentRowResultRemarkId: " + currentRowResultRemarkId);
logDebug("previousRowResultRemarkId: N/A");
logDebug("currentRowParentOrderCollectionId: " + currentRowParentOrderCollectionId);
logDebug("previousRowParentOrderCollectionId: " + previousRowParentOrderCollectionId);
logDebug("currentRowOrderCollectionId: " + currentRowOrderCollectionId);
logDebug("previousRowOrderCollectionId: " + previousRowOrderCollectionId);
if ( currentRowOrderId != previousRowOrderId ) {
parentCollectionMap = new HashMap<Long, Collection>();
lastParentOuterCollectionsAdded = null;
lastParentInnerCollectionsAdded = null;
lastCollectionAdded = null;
lastResultAdded = null;
// This is a new Order, generate a new Lab Order bean
record = addOrder(labOrders, helper, dbOrderId, isFullDetailsIncluded);
logDebug("Order Added!");
// If there is Parent Collection data and it should be included, build a Collections element,
// and populate the first one
if ( !isRootCollectionNode && (isCollectionsIncluded || isFullDetailsIncluded) ) {
lastParentOuterCollectionsAdded = record.addNewCollections();
lastCollectionAdded = addCollection(record, helper, lastParentOuterCollectionsAdded, true);
logDebug("Collection Added! Is it null? " + (lastCollectionAdded == null));
// If there is Collection data and it should be included, build a Collections element,
// and populate the first one
if ( currentRowOrderCollectionId > 0 && (isCollectionsIncluded || isFullDetailsIncluded) ) {
if ( isRootCollectionNode ) {
lastParentOuterCollectionsAdded = record.addNewCollections();
lastCollectionAdded = addCollection(record, helper, lastParentOuterCollectionsAdded, false);
parentCollectionMap.put(new Long(currentRowOrderCollectionId), lastCollectionAdded);
logDebug("parent collection added to map: " + currentRowOrderCollectionId);
else {
lastParentInnerCollectionsAdded = lastCollectionAdded.addNewCollections();
lastCollectionAdded = addCollection(record, helper, lastParentInnerCollectionsAdded, false);
logDebug("Collection Added! Is it null? " + (lastCollectionAdded == null));
// If there is Result data and it should be included, build a Results element,
// and populate the first one
if ( currentRowResultId > 0 && isFullDetailsIncluded ) {
logDebug("Adding result....");
lastResultAdded = addResult(record, helper, lastCollectionAdded);
logDebug("Result Added!");
// If there is Result Remark data and it should be included, build a ResultRemarks element,
// and populate the first one
if ( currentRowResultRemarkId > 0 && isFullDetailsIncluded ) {
addResultRemark(record, helper, lastResultAdded);
logDebug("DONE getting first Collection and Result.");
else if ( currentRowParentOrderCollectionId != previousRowParentOrderCollectionId
&& (isCollectionsIncluded || isFullDetailsIncluded) ) {
// This is a new, top level, Order Collection to be included
lastParentOuterCollectionsAdded = null;
lastParentInnerCollectionsAdded = null;
lastCollectionAdded = null;
lastResultAdded = null;
logDebug("Getting next Order Collection...");
// If there is Parent Collection data and it should be included, build a Collections element,
// and populate the first one
if ( !isRootCollectionNode ) {
lastCollectionAdded = (com.idexx.services.lde.laborder.Collection)parentCollectionMap.get(new Long(currentRowParentOrderCollectionId));
logDebug("A Collection Added! Is it null? " + (lastCollectionAdded == null));
// If there is Collection data and it should be included, build a Collections element,
// and populate the first one
if ( currentRowOrderCollectionId > 0 ) {
if ( isRootCollectionNode ) {
//LabOrder.Collections collections = record.addNewCollections();
lastParentOuterCollectionsAdded = record.getCollections();
lastCollectionAdded = addCollection(record, helper, lastParentOuterCollectionsAdded, false);
parentCollectionMap.put(new Long(currentRowOrderCollectionId), lastCollectionAdded);
else {
lastParentInnerCollectionsAdded = lastCollectionAdded.addNewCollections();
lastCollectionAdded = addCollection(record, helper, lastParentInnerCollectionsAdded, false);
logDebug("B Collection Added! Is it null? " + (lastCollectionAdded == null));
// If there is Result data and it should be included, build a Results element,
// and populate the first one
if ( currentRowResultId > 0 && isFullDetailsIncluded ) {
lastResultAdded = addResult(record, helper, lastCollectionAdded);
// If there is Result Remark data and it should be included, build a ResultRemarks element,
// and populate the first one
if ( currentRowResultRemarkId > 0 && isFullDetailsIncluded ) {
addResultRemark(record, helper, lastResultAdded);
else if ( currentRowOrderCollectionId != previousRowOrderCollectionId
&& (isCollectionsIncluded || isFullDetailsIncluded) ) {
// This is a new Order Collection to be included inside of a parent collection
logDebug("Getting next CHILD Order Collection...");
logDebug("isRootCollectionNode: " + isRootCollectionNode);
logDebug("Order ID: " + helper.getBigInteger(DataConstants.ORDER_ID));
logDebug("Order Collection ID: " + helper.getBigInteger(DataConstants.ORDER_COLLECTION_ID));
logDebug("Collection ID: " + helper.getBigInteger(DataConstants.COLLECTION_ID));
if ( isRootCollectionNode ) {
lastCollectionAdded = addCollection(record, helper, lastParentOuterCollectionsAdded, false);
parentCollectionMap.put(new Long(currentRowOrderCollectionId), lastCollectionAdded);
else {
com.idexx.services.lde.laborder.Collection parentCollection = (com.idexx.services.lde.laborder.Collection)parentCollectionMap.get(new Long(currentRowParentOrderCollectionId));
if(parentCollection == null) {
log(LOG_LEVEL.WARN, "Parent Collection with id: " + currentRowParentOrderCollectionId + " is null for collection id: " + currentRowOrderCollectionId + " but isRootCollectionNode is " + isRootCollectionNode);
} else {
lastParentInnerCollectionsAdded = parentCollection.getCollections();
logDebug("Is lastParentInnerCollectionsAdded null? " + (lastParentInnerCollectionsAdded == null));
lastCollectionAdded = addCollection(record, helper, lastParentInnerCollectionsAdded, false);
// If there is Result data and it should be included, build a Results element,
// and populate the first one
if ( currentRowResultId > 0 && isFullDetailsIncluded ) {
lastResultAdded = addResult(record, helper, lastCollectionAdded);
// If there is Result Remark data and it should be included, build a ResultRemarks element,
// and populate the first one
if ( currentRowResultRemarkId > 0 && isFullDetailsIncluded ) {
addResultRemark(record, helper, lastResultAdded);
else if ( currentRowResultId != previousRowResultId
&& isFullDetailsIncluded ) {
// There is a new Result to be included
logDebug("Getting next Result...");
// This is a new result to be included
lastResultAdded = addResult(record, helper, lastCollectionAdded);
// If there is Result Remark data and it should be included, build a ResultRemarks element,
// and populate the first one
if ( currentRowResultRemarkId > 0 && isFullDetailsIncluded ) {
addResultRemark(record, helper, lastResultAdded);
else if ( isFullDetailsIncluded ) {
// There is a new Result Remark to include
logDebug("Getting next Result Remark...");
// This is a new result remark to be included
addResultRemark(record, helper, lastResultAdded);
logDebug("Done building response.");
previousRowResultId = currentRowResultId;
previousRowParentOrderCollectionId = currentRowParentOrderCollectionId;
previousRowOrderCollectionId = currentRowOrderCollectionId;
previousRowOrderId = currentRowOrderId;
logDebug("Found " + rows + " rows of data.");
} -
Opatch error 'Unable to parse the xml file'
Hi there,
I am new to installing patches on Oarcle and I need to install patch 12375678 on my windows system, Oracle 11.2.0.2.
I have followed the instructions in the readme.txt file, but got this error and I have not come across anywhere on the web that explain how I could fix it.
Could you please advise?
Thanks
C:\>set oracle_home=C:\oracle\product\11.2.0\dbhome_1
C:\>echo %oracle_home%
C:\oracle\product\11.2.0\dbhome_1
C:\>cd C:\oracle\product\11.2.0\dbhome_1\inventory\oneoffs\12375678
C:\oracle\product\11.2.0\dbhome_1\inventory\oneoffs\12375678>opatch apply
Invoking OPatch 11.2.0.1.1
Oracle Interim Patch Installer version 11.2.0.1.1
Copyright (c) 2009, Oracle Corporation. All rights reserved.
Oracle Home : C:\oracle\product\11.2.0\dbhome_1
Central Inventory : C:\Program Files\Oracle\Inventory
from : n/a
OPatch version : 11.2.0.1.1
OUI version : 11.2.0.2.0
OUI location : C:\oracle\product\11.2.0\dbhome_1\oui
Log file location : C:\oracle\product\11.2.0\dbhome_1\cfgtoollogs\opatch\opatch2
012-05-21_15-28-52PM.log
Patch history file: C:\oracle\product\11.2.0\dbhome_1\cfgtoollogs\opatch\opatch_
history.txt
ApplySession applying interim patch '12375678' to OH 'C:\oracle\product\11.2.0\d
bhome_1'
Running prerequisite checks...
OPatch detected non-cluster Oracle Home from the inventory and will patch the lo
cal system only.
Backing up files and inventory (not for auto-rollback) for the Oracle Home
Backing up files affected by the patch '12375678' for restore. This might take a
while...
Backing up files affected by the patch '12375678' for rollback. This might take
a while...
Patching component oracle.rdbms, 11.2.0.2.0...
Copying file to "C:\oracle\product\11.2.0\dbhome_1\rdbms\xml\xsl\kuexttbl.xsl"
Patching component oracle.rdbms.dbscripts, 11.2.0.2.0...
Copying file to "C:\oracle\product\11.2.0\dbhome_1\rdbms\admin\prvtbpd.plb"
Copying file to "C:\oracle\product\11.2.0\dbhome_1\rdbms\admin\prvtbpw.plb"
ApplySession adding interim patch '12375678' to inventory
Interim Patch metadata parsing failure... 'Unable to parse the xml file.'
ApplySession failed: ApplySession failed in system modification phase... 'Unable
to create patchObject'
OPatch will attempt to restore the system...
Restoring the Oracle Home...
OPatch was able to restore your system. Look at log file and timestamp of each f
ile to make sure your system is in the state prior to applying the patch.
OPatch failed with error code = 73your actions.xml must not be able to be read.
open it in notepad yourself to see does it open, if so its not corrupt, if doesnt open download patch again.
More then likely will be fine so try locate the patch in a shorter home path, like c:\patches\12375678 and see does it install from there.
Only other thing I can think of is the main inventory.xml, usually c:\program files\oracle\inventory\inventory.xml
try notepad with that too. -
Error parsing the file--Camera Raw
"Unable to save the raw conversion settings. There was an error parsing the file."
This error message has begun to appear frequently when I've been working on old (3-4 yrs old) jpeg files. Some files in a folder are fine; others get this error. I see no obvious difference between the files. Is there some way to fix this problem when it occurs? I'd appreciate any ideas.What program are you using when you are working with the files? Re-post in that program's forum, a list if the forums is here.
-
Need some help with DNG and error parsing the files
Ok, so I found out that I can't open NEF files with CS2 from my Nikon D3100 - unless I upgrade to CS6, or use the DNG converter. I did download the DNG converter that came with the Camera RAW 3.7 (for CS2) in one of Adobe's links, but when I try to convert the NEF files, the DNG converter says "There is an error parsing the file". If it helps, I have Windows 7. Is there a different version of the DNG converter I should be using? Thanks!
A simple Google search will find it. For some reason it isn't on the Adobe website. If you upgrade to CS6 you'll find much improvement in your raw conversions.
http://blogs.adobe.com/lightroomjournal/2012/12/camera-raw-7-3-and-dng-converter-7-3-now-a vailable.html -
MissingResourceException: Error parsing jdbcdrivers.xml
java.io.IOException: Unable to resolve input source.
Error: writeDomain() failed. Do dumpStack() to see details.
Problem invoking WLST - Traceback (innermost last):
File "D:\release\7420WLS\SCPO\weblogic\config\weblogic\setup\createManuWLSDomain.py", line 222, in ?
File "C:\Documents and Settings\j1007353\Local Settings\Temp\WLSTOfflineIni2466.py", line 70, in writeDomain
com.bea.plateng.domain.script.jython.WLSTException: java.util.MissingResourceException: Error parsing jdbcdrivers.xml
at com.bea.plateng.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:51)
at com.bea.plateng.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:1373)
at com.bea.plateng.domain.script.jython.WLScriptContext.writeDomain(WLScriptContext.java:712)
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)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:160)
at org.python.core.PyMethod.__call__(PyMethod.java:96)
at org.python.core.PyObject.__call__(PyObject.java:270)
at org.python.core.PyInstance.invoke(PyInstance.java:261)
at org.python.pycode._pyx5.writeDomain$14(C:\Documents and Settings\j1007353\Local Settings\Temp\WLSTOfflineIni2466.py:70)
at org.python.pycode._pyx5.call_function(C:\Documents and Settings\j1007353\Local Settings\Temp\WLSTOfflineIni2466.py)
at org.python.core.PyTableCode.call(PyTableCode.java:208)
at org.python.core.PyTableCode.call(PyTableCode.java:267)
at org.python.core.PyFunction.__call__(PyFunction.java:172)
at org.python.pycode._pyx18.f$0(D:\release\7420WLS\SCPO\weblogic\config\weblogic\setup\createManuWLSDomain.py:222)
at org.python.pycode._pyx18.call_function(D:\release\7420WLS\SCPO\weblogic\config\weblogic\setup\createManuWLSDomain.py)
at org.python.core.PyTableCode.call(PyTableCode.java:208)
at org.python.core.PyCode.call(PyCode.java:14)
at org.python.core.Py.runCode(Py.java:1135)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:167)
at weblogic.management.scripting.WLST.main(WLST.java:106)
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)
at weblogic.WLST.main(WLST.java:29)
Caused by: java.util.MissingResourceException: Error parsing jdbcdrivers.xml
at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getGenericJDBCDriverInfo(JDBCAspectHelper.java:850)
at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getGenericJDBCDriverInfo(JDBCAspectHelper.java:223)
at com.bea.plateng.domain.aspect.XBeanJDBCConnectionPoolDriverNameConfigAspect.decompose(XBeanJDBCConnectionPoolDriverNameConfigAspect.java:56)
at com.bea.plateng.domain.aspect.AbstractConfigAspect.setDelegate(AbstractConfigAspect.java:550)
at com.bea.plateng.domain.aspect.FilteredConfigAspect.setDelegate(FilteredConfigAspect.java:333)
at com.bea.plateng.domain.aspect.XBeanConfigAspectBuilder.createJDBCConnectionPoolSimpleAspect(XBeanConfigAspectBuilder.java:300)
at com.bea.plateng.domain.aspect.AbstractConfigAspectBuilder.createJDBCConnectionPoolSimpleAspects(AbstractConfigAspectBuilder.java:288)
at com.bea.plateng.domain.operation.config.ConfigJDBCConnectionPool.createInitialSimpleAspects(ConfigJDBCConnectionPool.java:115)
at com.bea.plateng.domain.operation.HTableEditOperation.createSimpleTableModel(HTableEditOperation.java:784)
at com.bea.plateng.domain.operation.HTableEditOperation.getSimpleTableModel(HTableEditOperation.java:348)
at com.bea.plateng.domain.operation.HTableEditOperation.initSimpleTableModel(HTableEditOperation.java:654)
at com.bea.plateng.domain.DomainChecker.isOperationValid(DomainChecker.java:726)
at com.bea.plateng.domain.DomainChecker.getInvalidSection(DomainChecker.java:168)
at com.bea.plateng.domain.GeneratorHelper.validateConfig(GeneratorHelper.java:257)
at com.bea.plateng.domain.GeneratorHelper.validateDomainCreation(GeneratorHelper.java:235)
at com.bea.plateng.domain.script.ScriptExecutor.writeDomain(ScriptExecutor.java:580)
at com.bea.plateng.domain.script.jython.WLScriptContext.writeDomain(WLScriptContext.java:704)
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)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:160)
at org.python.core.PyMethod.__call__(PyMethod.java:96)
at org.python.core.PyObject.__call__(PyObject.java:270)
at org.python.core.PyInstance.invoke(PyInstance.java:261)
at org.python.pycode._pyx5.writeDomain$14(C:\Documents and Settings\j1007353\Local Settings\Temp\WLSTOfflineIni2466.py:70)
at org.python.pycode._pyx5.call_function(C:\Documents and Settings\j1007353\Local Settings\Temp\WLSTOfflineIni2466.py)
at org.python.core.PyTableCode.call(PyTableCode.java:208)
at org.python.core.PyTableCode.call(PyTableCode.java:267)
at org.python.core.PyFunction.__call__(PyFunction.java:172)
com.bea.plateng.domain.script.jython.WLSTException: com.bea.plateng.domain.script.jython.WLSTException: java.util.MissingResourceException: Error parsing jdbcdrivers.xml
The system cannot find the path specified.
0 file(s) copied.
Attempting to shutdown server ...
Checking JSP Precompilation ...
Thanksjava.io.IOException: Unable to resolve input source.
Error: writeDomain() failed. Do dumpStack() to see details.
Problem invoking WLST - Traceback (innermost last):
File "D:\release\7420WLS\SCPO\weblogic\config\weblogic\setup\createManuWLSDomain.py", line 222, in ?
File "C:\Documents and Settings\j1007353\Local Settings\Temp\WLSTOfflineIni2466.py", line 70, in writeDomain
com.bea.plateng.domain.script.jython.WLSTException: java.util.MissingResourceException: Error parsing jdbcdrivers.xml
at com.bea.plateng.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:51)
at com.bea.plateng.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:1373)
at com.bea.plateng.domain.script.jython.WLScriptContext.writeDomain(WLScriptContext.java:712)
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)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:160)
at org.python.core.PyMethod.__call__(PyMethod.java:96)
at org.python.core.PyObject.__call__(PyObject.java:270)
at org.python.core.PyInstance.invoke(PyInstance.java:261)
at org.python.pycode._pyx5.writeDomain$14(C:\Documents and Settings\j1007353\Local Settings\Temp\WLSTOfflineIni2466.py:70)
at org.python.pycode._pyx5.call_function(C:\Documents and Settings\j1007353\Local Settings\Temp\WLSTOfflineIni2466.py)
at org.python.core.PyTableCode.call(PyTableCode.java:208)
at org.python.core.PyTableCode.call(PyTableCode.java:267)
at org.python.core.PyFunction.__call__(PyFunction.java:172)
at org.python.pycode._pyx18.f$0(D:\release\7420WLS\SCPO\weblogic\config\weblogic\setup\createManuWLSDomain.py:222)
at org.python.pycode._pyx18.call_function(D:\release\7420WLS\SCPO\weblogic\config\weblogic\setup\createManuWLSDomain.py)
at org.python.core.PyTableCode.call(PyTableCode.java:208)
at org.python.core.PyCode.call(PyCode.java:14)
at org.python.core.Py.runCode(Py.java:1135)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:167)
at weblogic.management.scripting.WLST.main(WLST.java:106)
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)
at weblogic.WLST.main(WLST.java:29)
Caused by: java.util.MissingResourceException: Error parsing jdbcdrivers.xml
at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getGenericJDBCDriverInfo(JDBCAspectHelper.java:850)
at com.bea.plateng.domain.jdbc.JDBCAspectHelper.getGenericJDBCDriverInfo(JDBCAspectHelper.java:223)
at com.bea.plateng.domain.aspect.XBeanJDBCConnectionPoolDriverNameConfigAspect.decompose(XBeanJDBCConnectionPoolDriverNameConfigAspect.java:56)
at com.bea.plateng.domain.aspect.AbstractConfigAspect.setDelegate(AbstractConfigAspect.java:550)
at com.bea.plateng.domain.aspect.FilteredConfigAspect.setDelegate(FilteredConfigAspect.java:333)
at com.bea.plateng.domain.aspect.XBeanConfigAspectBuilder.createJDBCConnectionPoolSimpleAspect(XBeanConfigAspectBuilder.java:300)
at com.bea.plateng.domain.aspect.AbstractConfigAspectBuilder.createJDBCConnectionPoolSimpleAspects(AbstractConfigAspectBuilder.java:288)
at com.bea.plateng.domain.operation.config.ConfigJDBCConnectionPool.createInitialSimpleAspects(ConfigJDBCConnectionPool.java:115)
at com.bea.plateng.domain.operation.HTableEditOperation.createSimpleTableModel(HTableEditOperation.java:784)
at com.bea.plateng.domain.operation.HTableEditOperation.getSimpleTableModel(HTableEditOperation.java:348)
at com.bea.plateng.domain.operation.HTableEditOperation.initSimpleTableModel(HTableEditOperation.java:654)
at com.bea.plateng.domain.DomainChecker.isOperationValid(DomainChecker.java:726)
at com.bea.plateng.domain.DomainChecker.getInvalidSection(DomainChecker.java:168)
at com.bea.plateng.domain.GeneratorHelper.validateConfig(GeneratorHelper.java:257)
at com.bea.plateng.domain.GeneratorHelper.validateDomainCreation(GeneratorHelper.java:235)
at com.bea.plateng.domain.script.ScriptExecutor.writeDomain(ScriptExecutor.java:580)
at com.bea.plateng.domain.script.jython.WLScriptContext.writeDomain(WLScriptContext.java:704)
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)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:160)
at org.python.core.PyMethod.__call__(PyMethod.java:96)
at org.python.core.PyObject.__call__(PyObject.java:270)
at org.python.core.PyInstance.invoke(PyInstance.java:261)
at org.python.pycode._pyx5.writeDomain$14(C:\Documents and Settings\j1007353\Local Settings\Temp\WLSTOfflineIni2466.py:70)
at org.python.pycode._pyx5.call_function(C:\Documents and Settings\j1007353\Local Settings\Temp\WLSTOfflineIni2466.py)
at org.python.core.PyTableCode.call(PyTableCode.java:208)
at org.python.core.PyTableCode.call(PyTableCode.java:267)
at org.python.core.PyFunction.__call__(PyFunction.java:172)
com.bea.plateng.domain.script.jython.WLSTException: com.bea.plateng.domain.script.jython.WLSTException: java.util.MissingResourceException: Error parsing jdbcdrivers.xml
The system cannot find the path specified.
0 file(s) copied.
Attempting to shutdown server ...
Checking JSP Precompilation ...
Thanks -
Error when parsing the XML document
hi all.
i have the next problem.
the sender sistem send to XI an XML. some tags send a '#' caracter.
Sender Service send:
Torre B1 - B#Unimev
when Im traying to test XML inbound, XI show the next error:
Error when parsing the XML document (Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0x14(:main:, row:1, col:992))
XML:
<?xml version="1.0" encoding="UTF-8" ?>
- <ZDEBMAS6>
- <IDOC BEGIN="1">
- <EDI_DC40 SEGMENT="1">
<TABNAM>EDI_DC40</TABNAM>
<MANDT>300</MANDT>
<DOCNUM>0000000000339708</DOCNUM>
<DOCREL>640</DOCREL>
<STATUS>30</STATUS>
<DIRECT>1</DIRECT>
<OUTMOD>2</OUTMOD>
</EDI_DC40>
- <E1KNA1M SEGMENT="1">
<MSGFN>009</MSGFN>
<REGIO>07</REGIO>
<STCD1>20147972750</STCD1>
<FITYP>01</FITYP>
<STCDT>80</STCDT>
<STCD3>0</STCD3>
- <Z1KNA1M SEGMENT="1">
<MSGFN>009</MSGFN>
<KUNNR>0001000563</KUNNR>
<ZZSOCRCV>3100</ZZSOCRCV>
<ZZGBDAT>00000000</ZZGBDAT>
<b> <ZZAD_STREET_CO>Torre B1 - B Unimev</ZZAD_STREET_CO></b>
<ZZAD_ROOMNUM_CO>PB</ZZAD_ROOMNUM_CO>
<ZZAD_FLOOR_CO>E</ZZAD_FLOOR_CO>
<ZZAD_PSTCD1_CO>M5521AAR</ZZAD_PSTCD1_CO>
<ZZAD_CITY1_CO>Mendoza</ZZAD_CITY1_CO>
<ZZAD_REGIO_CO>07</ZZAD_REGIO_CO>
</Z1KNA1M>
<Z1ADRCM SEGMENT="1">
<MSGFN>009</MSGFN>
<KUNNR>0001000563</KUNNR>
<b><STREET>Torre B1 - B Unimev</STREET></b>
<FLOOR>PB</FLOOR>
<HOUSE_NUM2>E</HOUSE_NUM2>
<CITY1>Mendoza</CITY1>
<POST_CODE1>5521</POST_CODE1>
<COUNTRY>AR</COUNTRY>
<REGION>07</REGION>
<LANGU>S</LANGU>
</Z1ADRCM>
</E1KNA1M>
</IDOC>
</ZDEBMAS6>
Message was edited by: Rodrigo Pertierra
Message was edited by: Rodrigo PertierraHi Rodrigo,
Do you use a specific "encoding" like UTF-8 or ISO-8859-1 in your Sender CC.
Try changing the Transfer mode to Binary instead of Text.
Also go through these links:-
http://help.sap.com/saphelp_nw2004s/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
Invalid char in XML from inbound IDoc
Hope this provides a solution.
Regards.
Praveen -
VSphere Client VERSION 5 - error parsing clients.xml file
hi
i'm trying to connect my server via vsphere client VERSION 5! but i get that stupid error that was common in vsphere 4 "Error parsing the server "SERVER
IP" "clients.xml" file. Login will continue, contact your system administrator"
this error was in vsphere 4 but i get it in vsphere client 5 , any ideas?Hello Ali Salehi,
Thank you for posting in the TechNet forum.
Have you made any changes before this issue?
As this issue is related to VMware, to receive better support, it is recommended to contact the VMware support.
Additionally, if the program is Vista compatible, you can try Vista compatibility mode. If this isn’t Vista compatible, and you meet the hardware requirements, you can try using the XP Mode. You can find more information at the following link:
http://www.microsoft.com/windows/virtual-pc/get-started.aspx
Best regards,
Fangzhou CHEN
Fangzhou CHEN
TechNet Community Support -
Ignoring the DOCTYPE element while parsing the xml
I am using JAXB parser to read from and write into my xml file using java code. My xml file contains a DOCTYPE element pointing to a .dtd file which does not exist, due to which I get a FileNotFoundException when JAXB tries to read the xml file. Hence, after unmarshalling the xml file using jaxb, I use a SAXParser to get an XMLReader which removes this DOCTYPE element as given below -
SAXParserFactory parserFactory = SAXParserFactory.newInstance();
parserFactory.setValidating(false);
XMLReader reader = parserFactory.newSAXParser().getXMLReader();
reader.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
After making the required changes to the xml file and marshalling it back, I then use an XMLWriter to add the DOCTYPE element back to the xml file as given in the code snippet below -
SAXReader saxReader = new SAXReader();
Document document = saxReader.read(_file);
document.addDocType(rootElement, publicUri, systemUri);
XMLWriter output = new XMLWriter(new FileWriter( _file ));
output.write( document );
output.close();
Right now I am using both, the JAXB parser to read from and write into the xml file and SAXParser/SAXRader just to delete/add the DOCTYPE element. I want to avoid using two different parsers in my class and want to know if JAXB provides any mechanism to delete and then add this element while parsing the xml file.Standard answer for this FAQ: set an EntityResolver on your parser that sends an empty string instead of the DTD. The API docs have an example that you could modify to do that.
-
Code to parse the XML stored in a XMLTYPE field in database
Hi All,
Please can someone forward me the code to parse the XML retrieved from the oracle database. I want to parse the whole xml, any node any attribute and store the extracted values in database. For example:
<mail>
<mailing_list name="test1">
<mailing_list_users>
<user email="[email protected]" address="abcd" />
<user email="[email protected]" address="abcdef" />
</mailing_list_users>
</mailing_list>
<mailing_list name="test2">
<mailing_list_users>
<user email="[email protected]" address="abcd1" />
<user email="[email protected]" address="abcdef1" />
</mailing_list_users>
</mailing_list>
</mail>
In this example, i want to loop thru all the mailing lists to extract therir values and under each mailing lists i want to loop thru all the users and their details.
I require this urgently. Any help will be appreciated.I am not sure if this is the correct way to do it but I found such class from my old codes:
import java.util.*;
* class for parsing strange value of time to "normal" view
public class NumericToTime
GregorianCalendar gc = null;
StringTokenizer st = null;
int days, hours, minutes, seconds, milliseconds;
float fract;
public NumericToTime(String str)
try
gc = new GregorianCalendar(1900,0,0);
st = new StringTokenizer(str, ".");
days = Integer.parseInt(st.nextToken());
Float f = new Float("0." + st.nextToken());
fract = f.floatValue();
catch(NoSuchElementException e)
fract = 0.0f;
* method which calculate time
public void calculateTime()
float h, m, s;
gc.add(GregorianCalendar.DATE, days-1);//days-1 MS'i fenomeenil baseeruv "patch"
h = (float)(24.0*fract); hours = (int)h;
gc.set(GregorianCalendar.HOUR, hours);
m = (float)(60.0*(h - (float)hours)); minutes = (int)m;
gc.set(GregorianCalendar.MINUTE, minutes);
s = (float)(60.0*(m - (float)minutes)); seconds = (int)s;
gc.set(GregorianCalendar.SECOND, seconds);
milliseconds = (int)(1000.0*(s - (float)seconds));
gc.set(GregorianCalendar.MILLISECOND, milliseconds);
* method which return time value as Date object
public Date getTime() {
return gc.getTime();
Hope this is some help for You! -
Error: -1612 The installation source for this product is not available. Ver
Hi,
I am trying installing the FA in SAPB12005A SP01 PL36. and I received this error message:
Error: -1612 The installation source for this product is not available. Verify that the source exists and that you can access it.
How can I resolved this?
Regards,
IANI am getting the exact same error. How come anyone else did not get it?
The procedure I followed was :
Downloaded and installed the "download manager" first.
Then selected all product updates from BOXI3.1 Enterprise
It downloaded 58 items. After an inquiry I came to know that you need to install only the latest patch, i.e. Patch 1.7 will include all previous patches. So I was running 1.7 and getting this error constantly, and unable to install it at all.
I tried downloading it from different places and networks, same error persists. -
1.Some web pages give "XML Fetch Error. The XML file assigned in the configuration.xml is either wrong or corrupted".
2.Youtube gives, after pressing start button, message"An error occurred. Please try again later.
Opening same youtube page with IE, there is no problems.
3.Scrolling on Mozilla firefox pages works only with sidebar not with mouse wheel.
Other user accounts on this computer doesn't have these problems.
BR, JuhaThis can be caused by a recent Flash 11.3 update.
See:
*https://support.mozilla.org/kb/flash-113-doesnt-load-video-firefox
Maybe you are looking for
-
Hello Gurus, My requirement is to send the Adobe form via Email as attachment. Am using FM "FP_JOB_OPEN", Generated Adobe Form FM and FP_JOB_CLOSE. Here, am getting PDF format in "FPFORMOUTPUT-PDF". As "FPFORMOUTPUT-PDF" is in format of xstring, We
-
Pls help: I can't start my mac because I took too much space and now the disk doesn't mount
I am most certain that this is the case: foolishly, I didnt leave much free space and now the disk doesnt want to mount. I tried the single user mode, I also booted from DVD, they appear but the disk utility shows the disk but I cannot repair the dis
-
Problem in Creating new Essbase Connection in JDeveloper
I have formatted my machine and installed new JDeveloper in my machine. I am trying to create New Essbase Connection in my JDeveloper..I am giving all the server details and I can able to test the connection and the connection test will be success. A
-
Hi, I have change the depriciation key for some asset through BDC and assign new Depriciation key for those asset now i want to assign original key to same asset can i get the T.Code where should i get the old key & new key for all the asset and the
-
Details abuout upgration of 4.6B to ECC 6.0
Hi All, if any one worked on up gradation project, please help me in this. Don't give link to SAP Market Place. 1. What are the steps/procedure to be followed in up gradation? 2. What are the precautionary measures to be taken? 3. How can we do Data