Clarity

  • 1.  To Import jaspersoft customization to another environment

    Posted Jan 08, 2017 12:20 PM

    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



  • 2.  Re: To Import jaspersoft customization to another environment

    Broadcom Employee
    Posted Jan 09, 2017 12:50 AM

    Hi Agin,

     

    You export is not correct, it broke with JAVA HEAP error, which means you need to more JVM inoder to perform the export.

     

    Foe import export, please take a look at our documentations 

     

    Upgrade Jaspersoft and Advanced Reporting Content - CA PPM - 15.1 - CA Technologies Documentation 

     

     

    Regards
    Suman Pramanik 



  • 3.  Re: To Import jaspersoft customization to another environment

    Posted Jan 17, 2017 09:40 AM

    Hi Suman,

     

    Thanks for your quick reply and sorry for my late response.

     

    Here our server have 16GB ram and tomcat JVM is 4GB. Do we increase the tomcat JVM/ or server RAM. please let me know.

     

    Thanks in advance

    Agin



  • 4.  Re: To Import jaspersoft customization to another environment

    Broadcom Employee
    Posted Jan 17, 2017 10:03 AM

    Hi Agin,

     

    The JVM allocation needs to be increased and not the server. You will be able to perform by looking into this article https://www.ca.com/us/services-support/ca-support/ca-support-online/knowledge-base-articles.tec1114126.html 

     

    Regards
    Suman Pramanik 



  • 5.  Re: To Import jaspersoft customization to another environment

    Posted Jan 24, 2017 09:18 AM

    Hi Suman,

     

    Thanks Suman

     

     our current heap size is 4GB. Please find the JAVA_OPTS below.

     

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

     

    I have increased to 8GB and then to 10GB then export but all my test fails!!!. Any solution for this?

     

    Thanks

    Agin



  • 6.  Re: To Import jaspersoft customization to another environment

    Broadcom Employee
    Posted Jan 25, 2017 04:35 AM

    Did it failed with same heap error, as I understand you have plenty of folder and I have already told before that lot of folder do create lot of problem so the only way i see to increase JVM if you get heap errors 



  • 7.  Re: To Import jaspersoft customization to another environment

    Posted Jan 27, 2017 04:49 AM

    Thanks Suman, 

     

    Are you suggesting to increase the Server RAM (currently 16GB) and then to increase tomcat JVM (Tested till 10GB) ?

     

    Thanks,

    Agin



  • 8.  Re: To Import jaspersoft customization to another environment

    Broadcom Employee
    Posted Jan 27, 2017 08:55 AM

    Hi Agin,

     

    There is no direct answer for this, you need to see at what JVM level it is getting exported with those folders.

     

    Regards

    Suman Pramanik 



  • 9.  Re: To Import jaspersoft customization to another environment

    Broadcom Employee
    Posted Feb 08, 2017 08:41 AM

    Hi Agin,

     

    I missed out a point, the heap error is coming at PPM as admin command is executed at PPM server so do the below

     

    We need to update admin.bat or admin.sh file in bin folder.

     

    set PROGRAM_ARGS=-Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8 -Xmx512m

     

    Set to 4 GB and try the export.

     

    Regards

    Suman Pramanik