RE: WOXMLDecoder, [java.net.MalformedURLException] no protocol: < model>
RE: WOXMLDecoder, [java.net.MalformedURLException] no protocol: < model>
- Subject: RE: WOXMLDecoder, [java.net.MalformedURLException] no protocol: < model>
- From: "Clark, Igor" <email@hidden>
- Date: Mon, 26 Jul 2004 11:14:28 +0100
I think maybe your mapping model is causing the problem - you have the
entity KeyWord as a child of entity Transaction - I don't think they should
be nested in the model.
i
-----Original Message-----
From: Baiss Eric Magnusson [mailto:email@hidden]
Sent: 21 July 2004 17:58
To: WebObjectsDev
Subject: WOXMLDecoder, [java.net.MalformedURLException] no protocol:
<model>
I need help with the following 2 lines of code:
mappingModelFile = new String(
application().resourceManager().bytesForResourceNamed(
"transactionMapping.xml", null, null ));
// this line throws
WOXMLDecoder xmlDecoder = WOXMLDecoder.decoderWithMapping(
mappingModelFile );
Throw: ( the "transactionMapping.xml" file is listed as part of the
throw )
com.webobjects.foundation.NSForwardException
[java.net.MalformedURLException] no protocol:
<model>
<entity name="Transaction" xmlTag="transaction">
<property name="formatAmt" xmlTag="amount"/>
<property name="vendor" xmlTag="vendor"/>
<property name="toCategory.catName" xmlTag="category"/>
<property name="toSubCategory.subCatName" xmlTag="subCategory"/>
<property name="formatDate" xmlTag="date"/>
<property name="numShares" xmlTag="shares"/>
<property name="toExpenseType.typeName" xmlTag="expenseType"/>
<property name="isBusiness" xmlTag="business"/>
<property name="personStr" xmlTag="person"/>
<property name="toAccount.accountName" xmlTag="account"/>
<property name="transDescr" xmlTag="description"/>
<entity name="KeyWord" xmlTag="keyWords">
<property name="key" xmlTag="keyWord"/>
</entity>
</entity>
</model>
: Error loading <model>
at java.net.URL.<init>(URL.java:537)
at java.net.URL.<init>(URL.java:434)
at java.net.URL.<init>(URL.java:383)
at
org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.jav
a:807)
at
.impl.XMLEntityManager.startDocumentEntity(XMLEntityManager.java:753)
at
.impl.XMLDocumentScannerImpl.setInputSource(XMLDocumentScannerImpl.java:
260)
at .parsers.DTDConfiguration.parse(DTDConfiguration.java:499)
at .parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
at .parsers.XMLParser.parse(XMLParser.java:152)
at .parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1114)
at ._MappingModel.mappingModelWithXMLFile(_MappingModel.java:405)
at ._WOXMLMappingDecoder.<init>(_WOXMLMappingDecoder.java:121)
at .WOXMLDecoder.decoderWithMapping(WOXMLDecoder.java:581)
at Special.importXML(Special.java:163)
----
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.