on 03-01-2010 11:54 AM
Hi,
I have a problem with creating a SAX Parser on the PI 7.1 server. I get the following error in the log when I test the code in the repository and in the message flow.
com.sap.aii.ib.server.mapping.execution.jaxpfactories.MappingTransformerFactory:sap.com/com.sap.xi.repository[AT]com.sap.engine.boot.loader.ResourceMultiParentClassLoader[AT]42c4e790[AT]alive incompatible with class javax.xml.transform.sax.SAXTransformerFactory:null
[AT]= @
When I run the code on my local computer I dont get any problems. Does anybody know how I set up a SAX parser.
I currently use the following code.
public void execute(InputStream is, OutputStream out)
throws StreamTransformationException {
try{
//setup output handler
SAXTransformerFactory factory =
(SAXTransformerFactory) SAXTransformerFactory.newInstance();
th = factory.newTransformerHandler();
Result r = new StreamResult(out);
th.setResult(r);
// create parser
DefaultHandler handler = this;
SAXParserFactory parserFactory = SAXParserFactory.newInstance();
SAXParser saxParser = parserFactory.newSAXParser();
saxParser.parse(is, handler);
}catch(Exception e){
trace.addWarning(e.toString());
}
}
Best regards
Daniel Graversen.
[Figaf|http://figaf.com]
It seems like will work on PI 7.31 systems.
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
factoryParser = new com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, I am facing the same problem. I use java 1.5 settings in NWDS and no sapxmltookit library. Can you tell me how you solved the problem?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Converted to use XSLT instead.
I'll have to figure how to use the standard JAva sax parsers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you using any third party SAX parser jars.
Its problem with class loader...........
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.