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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
- Stylus Studio Technical Forum (14621)
-> + DB to XML convertion (6)
-> + Converting: How to handle data... (2)
-> + Toss Character Exception (2)
-> + EDI conversion COM segment (5)
-> - SS passing invalid CALS table ... (1)
-> + Carrier Related EDI SAP questi... (2)
-> + How to generate 1 output XML f... (2)
-> + Urgent Eval: How2 w/ Possibly ... (4)
-> + Preview Problems (7)
-> + Mapping to EDIFACT ORDERS UNT0... (8)
-> + Deploying Conversion XML to ED... (2)
-> - Use EDI Adapter within Sap BC (3)
-> ->Use EDI Adapter within Sa...
-> ->Use EDI Adapter within Sa...
-> + Uninstall->instal entepr. 2007 (2)
-> - xml data to sql 2000 table (1)
-> - Convert from Oracle DB to XML ... (1)
-> + NTFShardlink broken (5)
-> + Can't get catalog to work (3)
-> + Only One of each EDI segment g... (3)
-> + convert (2)
-> + convert (4)
-- Previous [1861-1880] [1881-1900] [1901-1920] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
Julia PoplawskiSubject: Use EDI Adapter within Sap BC
Author: Julia Poplawski
Date: 08 Dec 2006 10:31 AM
Hello,

today I tried to create a java step within the SAP BC where I wanted to use the EDI Adapter.
I copied the sample code
------------------------
if (!StylusFileFactory.unlockAPI("xxxxxxxxx")) {
idc.insertAfter("error", tylusFileFactory.getUnlockAPIError());
return;
}
// From EDI to XML
Converter toXML = ConverterFactory.newInstance().newConvertToXML("adapter:EDI");
toXML.convert(new StreamSource(args[0]), new StreamResult(args[1]));
---------------------
and after compiling no error occurred. But every time I tried to run the flow I got a "NoClassDefFoundError" message.

The BC uses java version 1.3.1_07, maybe this is the cause?

Perhaps you have some suggestions how to solve the problem?

Thanks a lot for your help.

Regards,

Julia

Postnext
Ivan PedruzziSubject: Use EDI Adapter within Sap BC
Author: Ivan Pedruzzi
Date: 08 Dec 2006 10:44 AM
Hi Julia,

The EDI Adapter requires Java 1.4 or better.

Out of curiosity, which class is not found?
Could you please post the entire stacktrace?

Thank you for your help.
Ivan Pedruzzi
Stylus Studio Team

Posttop
Julia PoplawskiSubject: Use EDI Adapter within Sap BC
Author: Julia Poplawski
Date: 11 Dec 2006 01:38 AM
Hello,

thanks for your answer. As far as I know the BC does not run with java version higher than 1.3.

I get the following error information:

Could not run the service 'EdiToXml'.
java.lang.reflect.InvocationTargetException: NoClassDefFoundError

2006-12-11 07:32:35 CET java.lang.reflect.InvocationTargetException: java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError
at edi.EdiToXml(edi.java:60)
at java.lang.reflect.Method.invoke(Native Method)
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:281)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:709)
at com.wm.app.b2b.server.comm.DefaultServerRequestHandler.handleMessage(DefaultServerRequestHandler.java:89)
at com.wm.app.b2b.server.HTTPMessageHandler.process(HTTPMessageHandler.java:166)
at com.wm.app.b2b.server.HTTPDispatch.run(HTTPDispatch.java:446)
at com.wm.util.pool.PooledThread.run(PooledThread.java:109)
at java.lang.Thread.run(Thread.java:479)



Now I'll try to start a x.bat file in the BC that compiles and runs a java class like in the examples.

Julia


   
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!  
go

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.