Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Error invoking a custom component in a Process.

Avatar

20-05-2008

Hi,



I've build a custom component that uses Output ES services.

If i run it as a Java app all runs well, he generates the output pdf files and output report .xml file.



If i import it as a component into Livecycle ES and use it in a process i get the following error:



2008-05-20 11:35:52,390 INFO [STDOUT] com.adobe.livecycle.output.exception.OutputException: java.lang.ClassCastException: com.adobe.livecycle.output.client.OutputResult



2008-05-20 11:35:52,390 INFO [STDOUT] at com.adobe.livecycle.output.client.OutputClient.generatePDFOutput(OutputClient.java:138)



2008-05-20 11:35:52,390 INFO [STDOUT] at outputfactory.Output.outputFromXML(Output.java:55)



2008-05-20 11:35:52,390 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)



2008-05-20 11:35:52,390 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)



2008-05-20 11:35:52,390 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

.

.

.

2008-05-20 11:35:52,390 INFO [STDOUT] Caused by: java.lang.ClassCastException: com.adobe.livecycle.output.client.OutputResult



2008-05-20 11:35:52,390 INFO [STDOUT] at com.adobe.livecycle.output.client.OutputClient.generatePDFOutput(OutputClient.java:122)



I deploy it with th adobe-output-client.jar in my component jar and the reference for it in the component.xml file (also in my component.jar).



How can i solve this problem? thanks

Replies

Avatar

Avatar
Boost 5
Level 9
HowardTreisman
Level 9

Likes

5 likes

Total Posts

936 posts

Correct Reply

9 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile

Avatar
Boost 5
Level 9
HowardTreisman
Level 9

Likes

5 likes

Total Posts

936 posts

Correct Reply

9 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile
HowardTreisman
Level 9

15-06-2008

Hi Rui

Very difficult to know from your description.

It's a class-cast exception - try to find the line in your code that's doing the cast, and find out what the actual object is.

It could also be a jar versioning problem, or a class-loader problem.

Sorry, very difficult to help without doing some detailed debugging.

Howard

http://www.avoka.com