AnsweredAssumed Answered

To Import jaspersoft customization to another environment

Question asked by Agin on Jan 8, 2017
Latest reply on Feb 8, 2017 by Suman Pramanik

All,

 

I have successfully exported the jaspersoft from environment from server. But when trying to import the same to another environment, its not happening with the below command.

 admin jaspersoft import -orgName organization_1 -fileName /appl2/clarity/jaspersoft_bkup/test.zip -toUserName superuser -toPassword password  -toUrl http://hostname/reportservice   -silent

 

Usage of the command is showing like below.

jaspersoft import [-properties propertiesFile] -toUserName username
[-orgName orgId1,<orgId2>,..]] -toURL jsDsUrl -toPassword password
-fileName contentFile [-silent]

 

-properties. Could anyone please tell me what is this parameter? Do anyone have any example for this. That will be helpful.

 

Another thing, when i tried to export from our production environment, i am getting below error. But lower environment export is successful

 

Exporting.. java.lang.OutOfMemoryError: Java heap space at org.apache.http.util.ByteArrayBuffer.expand(ByteArrayBuffer.java:60)
at org.apache.http.util.ByteArrayBuffer.append(ByteArrayBuffer.java:90)
at org.apache.http.util.EntityUtils.toByteArray(EntityUtils.java:137)
at com.ca.jasper.restAdapter.services.ExportService.downloadExportedData(ExportService.java:210)
at com.niku.reporting.jasper.importexport.AbstractJasperCommand.downloadExportFile(AbstractJasperCommand.java:438)
at com.niku.reporting.jasper.importexport.AbstractJasperCommand.exportTenants(AbstractJasperCommand.java:217)
at com.niku.reporting.jasper.importexport.JasperExportCommand.execute(JasperExportCommand.java:47)
at com.niku.reporting.jasper.ClarityJasperAdmin.processCommand(ClarityJasperAdmin.java:3050)
at com.niku.nsa.service.AdminManager.invokeAction(AdminManager.java:322)
at com.niku.nsa.service.AdminManager.execute(AdminManager.java:188)
at com.niku.nsa.service.Admin.main(Admin.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
Internal error. See output above for more info.

 

We have already set the export JAVA_OPTS (setclasspath.sh file) like below earlier in jaspersoft tomcat/bin.

 

export JAVA_OPTS="$JAVA_OPTS -Xms1024m -Xmx4096m -XX:PermSize=32m"

export JAVA_OPTS="$JAVA_OPTS -XX:MaxPermSize=512m -Xss2m"

export JAVA_OPTS="$JAVA_OPTS -XX:+UseConcMarkSweepGC"

export JAVA_OPTS="$JAVA_OPTS -XX:+CMSClassUnloadingEnabled"

export JAVA_OPTS="$JAVA_OPTS -Doracle.jdbc.defaultNChar=true"

 

Do I have to change any further settings ? Please let me know?

 

Thanks,

Agin

Outcomes