shirish.nist Posted January 28, 2014 Share Posted January 28, 2014 jrxml 'image expression' - <imageExpression class="java.lang.String"><![CDATA["repo:Logo"]]></imageExpression><?xml version="1.0" encoding="UTF-8" standalone="yes"?><reportUnit><uri>/organizations/TestUser_SRS2/Reports/SugarCRMReportAddTest</uri><label>SugarCRMReportAddTest</label><version>0</version><permissionMask>1</permissionMask><description>Test Report unit</description><resources><resource><name>Logo</name><file><fileReference><uri>/organizations/TestUser_SRS2/Resources/Logo</uri></fileReference></file></resource></resources><dataSourceReference><uri>/organizations/TestUser_SRS2/Data_Sources/SugarCRMDS2</uri></dataSourceReference><jrxmlFileReference><uri>/organizations/TestUser_SRS2/Resources/SugarCRMJrxmlXML2</uri></jrxmlFileReference><alwaysPromptControls>false</alwaysPromptControls></reportUnit>[/code]I am submitting the following reportunit xml to my jasper server for the jrxml. I am uploading the Logo file as a resource first and adding it as resource to reportunit xml with resource name as 'Logo' and file uri to the same.Rest_v2 url - http://localhost:8080/jasperserver-pro/rest_v2/resources/organizations/TestUser_SRS2/Reports/SugarCRMReportAddTest?overwrite=trueAnd I am getting the following response. [java] DEBUG [com.ca.jasper.restAdapter.JasperRestAdapter] response status line: HTTP/1.1 500 Internal Server Error [java] DEBUG [com.ca.jasper.restAdapter.JasperRestAdapter] response: {"message":"Unexpected error","errorCode":"unexpected.error","parameters":["java.lang.NullPointerException"]} Can anyone guide me? Link to comment Share on other sites More sharing options...
bbaley Posted January 28, 2014 Share Posted January 28, 2014 Unless I am misunderstanding the question,I think your repo resource image shoudl look something like this;<imageExpression><![CDATA["repo:/Resources/Branding/Footer_txt_and_logo_long"]]></imageExpression> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now