Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
1 reply
Subscribers
8 subscribers
Views
967 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
#CustomSmartService Hello, I am creating a custom smart service
hrishikeshd
over 10 years ago
#CustomSmartService
Hello,
I am creating a custom smart service to convert .odt file to .pdf file.I am using xdocReport lib for that.
My code:
String inputFilename = cs.getInternalFilename(inputDocument);
FileInputStream in= new FileInputStream(new File(inputFilename));
OdfTextDocument document = OdfTextDocument.loadDocument(in); // getting error at this line
PdfOptions options = PdfOptions.create();
OutputStream out = new FileOutputStream(new File(outputFilename));
PdfConverter.getInstance().convert(document, out, options);
It works properly as a standalone java class but when I create a smart service it gives me error like:
ava.lang.VerifyError: (class: org/odftoolkit/odfdom/pkg/OdfPackage, method: getDom signature: (Ljava/lang/String;)Lorg/w3c/dom/Document;) Incompatible object argument for function call
2013-09-12 15:08:22,457 ERROR [STDERR] (WorkManager(2)-88) at org.odftoolkit.odfdom.doc.OdfDocument.loadDocument(OdfDocument.java:219)
it i...
OriginalPostID-81080
OriginalPostID-81080
Discussion posts and replies are publicly visible
Parents
0
hrishikeshd
over 10 years ago
...s giving error at loadDocument. I am passing the name of the file which is to be converted
and according to error Object type is wrong . so how to access the file on the apian in this scenario ?? or what should be done in this scenario ? Any suggestions ?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
hrishikeshd
over 10 years ago
...s giving error at loadDocument. I am passing the name of the file which is to be converted
and according to error Object type is wrong . so how to access the file on the apian in this scenario ?? or what should be done in this scenario ? Any suggestions ?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data