Hi Friends,
I am trying to Integrate Jasper reports with Syclo, My Requirement is to Print the Objects/data from Syclo by using Jasper Reports.But am facing few issues that i listed below
I followed below steps in Both Agentry as well as Jasper Report.
1. Create an Edit Transaction for Service order object, that contains Item collection and Product Description
2. In Transaction update step, am calling a java steplet to fetch data from transaction and fill the data to jrxml [ jasper report] file
3. This Transaction has mapped under Action, This action will be executed when i click the Popup menu from UI
4. I have created a Jasper Report with Product Description field.
When i click the print button in Items screen and click transmit am getting following exception. But am able to fetch the [ Product Description ] data from CRM [ see below ],
java.awt.HeadlessException
ZACC_PrintJasperReport::Product Description isLABOUR |
ERROR#com.sap.mobile.platform.server.agentry.console##anonymous#Agentry Borusan Worker Thread###Exception: 17:53:52 03/16/2015 : 20 (Agentry3), JavaBackEndError (java.awt.HeadlessException)
I Searched through lot of websites and found that this exception is due to
HeadlessException
Thrown when code that is dependent on a keyboard, display, or mouse is called in an environment that does not support a keyboard, display, or mouse.
I tried following options, but still it is not resolved
1. Set following lines in props.ini [ smp Server Path ]
-Djava.awt.headless=true
2. Set following lines in Java Steplet
System.setProperty("java.awt.headless", "true");
log.info("Headless mode :"+java.awt.GraphicsEnvironment.isHeadless());
3. Set the environment variables in SMP Server [ setenv.bat ]
set JAVA_OPTS=”-Djava.awt.headless=true"
i appreciate and thankful if anybody give me an idea to resolve this issue.