XML mapping error after packaging

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

XML mapping error after packaging

Postby alienali » Wed Oct 06, 2010 9:34 pm

Hi,
I am trying to de-serialize and XML doc into a Smalltalk class object. I have created the mapping specs and the corresponding class in smalltalk.
The Smalltalk class I created has an interface spec created through the Visualage organizer.
When I run the code through my image, everything runs fine and I am able to de-serialize, but once I package I get this error
....portion of the walkback.log file....
AbtXmlMappingError(SgmlSyntaxError)>>#signalException
receiver = XML mapping error ##NoMappingForElement: 'A class/element mapping does not exist for element ''ExcelDataToCB'' in namespace nil'
AbtXmlMappingError>>#signalExceptionIfEnabled
receiver = XML mapping error ##NoMappingForElement: 'A class/element mapping does not exist for element ''ExcelDataToCB'' in namespace nil'
AbtDOMElement>>#mapUsing:
receiver = <ExcelDataToCB>
arg1 = an AbtXmlMappingSpec
temp1 = an AbtXmlMappingSpec
temp2 = nil
temp3 = nil
temp4 = OrderedCollection()
AbtDOMDocument>>#mapUsing:
receiver = an AbtDOMDocument
arg1 = an AbtXmlMappingSpec
temp1 = <ExcelDataToCB>

Did I leave out something to package?
Are the interface specs of the class not available in the packaged image?
How do I ensure that the interface specs (which are private class methods) gets packaged in the image
Please help !
Thanks
alienali
 
Posts: 4
Joined: Thu Oct 29, 2009 9:28 pm
Location: Gurgaon, India

Re: XML mapping error after packaging

Postby marten » Wed Oct 06, 2010 10:08 pm

alienali wrote:Hi,
I am trying to de-serialize and XML doc into a Smalltalk class object.

Did I leave out something to package?
Are the interface specs of the class not available in the packaged image?
How do I ensure that the interface specs (which are private class methods) gets packaged in the image
Please help !
Thanks


You may add a class method (or only the rule seen below - if you have already the method) in the application you have problems with:

Code: Select all
packagingRulesFor: aPackagedImage
" Nearly all classes in this application can be created dynamically via an XML file.  Therefore,
   do not reduce the contents of this application "

   aPackagedImage doNotReduceSubApplicationNamed: self symbol. 
Marten Feldtmann, Principal Smalltalk User, Private
SkypeMe callto://marten.feldtmann
marten
[|]
 
Posts: 641
Joined: Sat Oct 14, 2006 7:10 am
Location: Hamburg - Germany


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: No registered users and 1 guest

cron