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



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/ -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(
at org.apache.http.util.ByteArrayBuffer.append(
at org.apache.http.util.EntityUtils.toByteArray(
at com.niku.reporting.jasper.importexport.AbstractJasperCommand.downloadExportFile(
at com.niku.reporting.jasper.importexport.AbstractJasperCommand.exportTenants(
at com.niku.reporting.jasper.importexport.JasperExportCommand.execute(
at com.niku.reporting.jasper.ClarityJasperAdmin.processCommand(
at com.niku.nsa.service.AdminManager.invokeAction(
at com.niku.nsa.service.AdminManager.execute(
at com.niku.nsa.service.Admin.main(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at com.werken.forehead.Forehead.main(
Internal error. See output above for more info.


We have already set the export JAVA_OPTS ( 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?