• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
WOXMLDecoder, [java.net.MalformedURLException] no protocol: <model>
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WOXMLDecoder, [java.net.MalformedURLException] no protocol: <model>


  • Subject: WOXMLDecoder, [java.net.MalformedURLException] no protocol: <model>
  • From: Baiss Eric Magnusson <email@hidden>
  • Date: Wed, 21 Jul 2004 09:58:14 -0700

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.


  • Prev by Date: Re: [OT] WO Books for Uni Students
  • Next by Date: WOBatchNavigationBar - newbie question
  • Previous by thread: Re: Using pageWithName method problem
  • Next by thread: WOBatchNavigationBar - newbie question
  • Index(es):
    • Date
    • Thread