XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Heber LazcanoSubject: Problem transform EDI to XML (URGENT)
Author: Heber Lazcano
Date: 08 Feb 2007 06:56 PM
Originally Posted: 08 Feb 2007 06:41 PM
Actualy we buy the license, but i have a problems with your framework

I have the next code in the Class with name Demo:

InputStream is = new FileInputStream("aperak.txt");
OutputStream os = new FileOutputStream("aperak.xml");

StreamSource input = new StreamSource(is);
StreamResult output = new StreamResult(os);


ConverterFactory factory = ConverterFactory.newInstance();

String prop = System.getProperty("com.stylusstudio.bindir");
System.out.println("com.stylusstudio.bindir = " + prop);

Converter toXML = factory.newConvertToXML("adapter:EDI:tbl=no");
toXML.convert(input, output);

My error is:

java.io.IOException: Error in Converter adapter:
com.stylusstudio.converter.ConverterException: Error during conversion:
at com.stylusstudio.converter.ConverterImpl.wrapAsConverterException(ConverterImpl.java:1363)
at com.stylusstudio.converter.ConverterImpl.access$1900(ConverterImpl.java:52)
at com.stylusstudio.converter.ConverterImpl$Job$PullPush.go(ConverterImpl.java:561)
at com.stylusstudio.converter.ConverterImpl$Job.<init>(ConverterImpl.java:537)
at com.stylusstudio.converter.ConverterImpl$Job.<init>(ConverterImpl.java:464)
at com.stylusstudio.converter.ConverterImpl.convert(ConverterImpl.java:124)
at Demo.main(Demo.java:44)
Caused by: java.io.IOException: Error in Converter adapter:
at com.stylusstudio.converter.ConverterImpl$Job.startAdapter(ConverterImpl.java:918)
at com.stylusstudio.converter.ConverterImpl$Job.access$1800(ConverterImpl.java:464)
at com.stylusstudio.converter.ConverterImpl$Job$PullPush.go(ConverterImpl.java:558)
... 4 more
Caused by: java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Properties.java:365)
at java.util.Properties.load(Properties.java:293)
at com.stylusstudio.adapter.edi.Dialect.getResource(Dialect.java:182)
at com.stylusstudio.adapter.edi.Dialect.getResource(Dialect.java:113)
at com.stylusstudio.adapter.edi.EDIFACT.getResource(EDIFACT.java:142)
at com.stylusstudio.adapter.edi.EDIFACT.sniffVersion(EDIFACT.java:576)
at com.stylusstudio.adapter.edi.Parser.readSegment(Parser.java:306)
at com.stylusstudio.adapter.edi.EDI.toXML(EDI.java:385)
at com.stylusstudio.adapter.AdapterBase.toXML(AdapterBase.java:182)
at com.stylusstudio.converter.ConverterImpl$Job.startAdapter(ConverterImpl.java:911)
... 6 more

Any solution???????????? I think the problem is your framework, i wait that not.

I have Java 1.5.0_06 and Ubuntu Drapper
In the directory /home/test/Libraries/STYLUS are

Thanks for your help

Tony LavinioSubject: Problem transform EDI to XML (URGENT)
Author: Tony Lavinio
Date: 09 Feb 2007 01:17 PM
Answered off-line.

Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.