• FEATURES
  • PRICING
  • MARKETPLACE
  • CASE STUDIES
  • BLOG
  • Error when deploying OpenSpecimen

    Hello,

    I have downloaded OpenSpecimen zip file from this link: https://github.com/krishagni/openspecimen
    When I am trying to do deploy_all, It is executing for 7-10min then at some point it is showing error and reason is java.lang.OutOfMemoryError PermGen space. But I have 8GB ram on my machine. I have increased the java heap to -Xms128m -Xmx1024m -XX:MaxPermSize=512m but it is delaying the error but not resolving. I am also attaching the error.

    [updateDatabase] INFO 12/12/14 2:20 PM:liquibase: Change set ./SQL/liquibase_xml
    /DBUpgrade_v40.xml::alter CATISSUE_EQUIPMENT table::ajaysamgir failed, but failO
    nError was false. Error: Error executing SQL ALTER TABLE CATISSUE_EQUIPMENT ADD
    ACTIVITY_STATUS VARCHAR2(20): ORA-01430: column being added already exists in t
    able
    [updateDatabase]
    [updateDatabase] INFO 12/12/14 2:20 PM:liquibase: ChangeSet ./SQL/liquibase_xml/
    DBUpgrade_v40.xml::CATISSUE_IMAGE table::ajaysamgir ran successfully in 158ms
    [updateDatabase] INFO 12/12/14 2:20 PM:liquibase: ChangeSet ./SQL/liquibase_xml/
    DBUpgrade_v40.xml::Table to track changes in default imported queries::vpawar ra
    n successfully in 47ms
    [updateDatabase] INFO 12/12/14 2:20 PM:liquibase: ChangeSet ./SQL/liquibase_xml/
    DBUpgrade_v40.xml::CP Coordinators view::mibrahim ran successfully in 105ms
    [updateDatabase] INFO 12/12/14 2:20 PM:liquibase: ChangeSet ./SQL/liquibase_xml/
    DBUpgrade_v40.xml::Specimen Hazard View::mibrahim ran successfully in 132ms
    [updateDatabase] INFO 12/12/14 2:20 PM:liquibase: ChangeSet ./SQL/liquibase_xml/
    DBUpgrade_v40.xml::Order site view::mibrahim ran successfully in 15ms
    [updateDatabase] INFO 12/12/14 2:20 PM:liquibase: ChangeSet ./SQL/liquibase_xml/
    DBUpgrade_v40.xml::Shipment view::mibrahim ran successfully in 61ms
    [updateDatabase] INFO 12/12/14 2:20 PM:liquibase: ChangeSet ./SQL/liquibase_xml/
    DBUpgrade_v40.xml::Specimen position view::mibrahim ran successfully in 23ms
    [updateDatabase] INFO 12/12/14 2:20 PM:liquibase: ChangeSet ./SQL/liquibase_xml/
    DBUpgrade_v40.xml::alter table catissue_biohazard::ajaysamgir ran successfully i
    n 28ms
    [updateDatabase] INFO 12/12/14 2:20 PM:liquibase: ChangeSet ./SQL/liquibase_xml/
    DBUpgrade_v40.xml::Column to specify a folder is shared with all users::vpawar r
    an successfully in 26ms
    [updateDatabase] INFO 12/12/14 2:20 PM:liquibase: Successfully released change l
    og lock
    [echo] Setting Global DRIVER and URL Property

    import_queries:
    [unwar] Expanding: C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk\catissu
    ecore.war into C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk\deploytempCatis
    suecore\catissuecore
    [echo] Setting Global DRIVER and URL Property

    setupClassExecutionEnvironment:
    [delete] Deleting directory C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk
    \detemp
    [mkdir] Created dir: C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk\detem
    p
    [mkdir] Created dir: C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk\detem
    p\temp
    [unzip] Expanding: C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk\dynamic
    extensions.zip into C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk\detemp
    [taskdef] Could not load definitions from resource net/sf/antcontrib/antcontri
    b.properties. It could not be found.
    [unjar] Expanding: C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk\detemp
    binaries\DynamicExtensionsInterface\DynamicExtensions.jar into C:\madhavi\OpenSp
    ecimen1.0_kit\openspecimen-trunk\detemp\temp
    [unjar] Expanding: C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk\WEB-INF
    \lib\dynamicextensions-legacy.jar into C:\madhavi\OpenSpecimen1.0_kit\openspecim
    en-trunk\detemp\temp\old
    [copy] Copying 1 file to C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk
    detemp\temp
    [copy] Copying 1 file to C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk
    detemp\temp
    [echo] Setting Global DRIVER and URL Property

    create_loggger_properties_file:
    [copy] Copying 1 file to C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk
    [java] ERROR getUserId, No active user with login name: ${username}
    [java] ERROR main, Invalid username: ${username}
    [echo] Setting Global DRIVER and URL Property

    migrate_forms:
    [unwar] Expanding: C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk\catissu
    ecore.war into C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk\deploytempCatis
    suecore\catissuecore
    [echo] Setting Global DRIVER and URL Property

    setupClassExecutionEnvironment:
    [delete] Deleting directory C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk
    \detemp
    [mkdir] Created dir: C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk\detem
    p
    [mkdir] Created dir: C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk\detem
    p\temp
    [unzip] Expanding: C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk\dynamic
    extensions.zip into C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk\detemp
    [taskdef] Could not load definitions from resource net/sf/antcontrib/antcontri
    b.properties. It could not be found.
    [unjar] Expanding: C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk\detemp
    binaries\DynamicExtensionsInterface\DynamicExtensions.jar into C:\madhavi\OpenSp
    ecimen1.0_kit\openspecimen-trunk\detemp\temp
    [unjar] Expanding: C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk\WEB-INF
    \lib\dynamicextensions-legacy.jar into C:\madhavi\OpenSpecimen1.0_kit\openspecim
    en-trunk\detemp\temp\old
    [copy] Copying 1 file to C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk
    detemp\temp
    [copy] Copying 1 file to C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk
    detemp\temp
    [echo] Setting Global DRIVER and URL Property

    create_loggger_properties_file:
    [copy] Copying 1 file to C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk
    [java] INFO main, No legacy forms table. Stopping forms migration!
    [echo] Setting Global DRIVER and URL Property

    upgrade_db_os_v1.1:
    [echo] Setting Global DRIVER and URL Property

    upgrade_de_db:
    [delete] Deleting directory C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk
    \deploytempCatissuecore\dynamicextensions
    [mkdir] Created dir: C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk\deplo
    ytempCatissuecore\dynamicextensions
    [unzip] Expanding: C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk\dynamic
    extensions.zip into C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk\deploytemp
    Catissuecore\dynamicextensions
    [updateDatabase] INFO 12/12/14 2:25 PM:liquibase: Successfully acquired change l
    og lock
    [updateDatabase] INFO 12/12/14 2:25 PM:liquibase: Reading from DATABASECHANGELOG

    [updateDatabase] INFO 12/12/14 2:25 PM:liquibase: Reading from DATABASECHANGELOG

    [updateDatabase] INFO 12/12/14 2:25 PM:liquibase: Successfully released change l
    og lock
    [updateDatabase] SEVERE 12/12/14 2:25 PM:liquibase: Cannot load class ‘liquibase
    /change/core/RawSQLChange.class’ in classloader: AntClassLoader[C:\madhavi\OpenS
    pecimen1.0_kit\openspecimen-trunk\lib\liquibase.jar]. Reason: java.lang.OutOfMe
    moryError: PermGen space
    [updateDatabase] java.lang.OutOfMemoryError: PermGen space

    BUILD FAILED
    C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk\deploy.xml:1066: The following
    error occurred while executing this line:
    C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk\deploy.xml:1723: The following
    error occurred while executing this line:
    C:\madhavi\OpenSpecimen1.0_kit\openspecimen-trunk\deploy.xml:1034: Could not cre
    ate type updateDatabase due to java.lang.OutOfMemoryError: PermGen space
    at java.lang.Throwable.getStackTraceElement(Native Method)
    at java.lang.Throwable.getOurStackTrace(Throwable.java:591)
    at java.lang.Throwable.printStackTrace(Throwable.java:462)
    at java.lang.Throwable.printStackTrace(Throwable.java:451)
    at liquibase.logging.core.DefaultLogger.severe(DefaultLogger.java:51)
    at liquibase.servicelocator.DefaultPackageScanClassResolver.addIfMatchin
    g(DefaultPackageScanClassResolver.java:376)
    at liquibase.servicelocator.DefaultPackageScanClassResolver.loadImplemen
    tationsInJar(DefaultPackageScanClassResolver.java:329)
    at liquibase.servicelocator.DefaultPackageScanClassResolver.find(Default
    PackageScanClassResolver.java:207)
    at liquibase.servicelocator.DefaultPackageScanClassResolver.find(Default
    PackageScanClassResolver.java:113)
    at liquibase.servicelocator.DefaultPackageScanClassResolver.findImplemen
    tations(DefaultPackageScanClassResolver.java:83)
    at liquibase.servicelocator.ServiceLocator.findClassesImpl(ServiceLocato
    r.java:170)
    at liquibase.servicelocator.ServiceLocator.findClasses(ServiceLocator.ja
    va:145)
    at liquibase.servicelocator.ServiceLocator.findClass(ServiceLocator.java
    :109)
    at liquibase.servicelocator.ServiceLocator.newInstance(ServiceLocator.ja
    va:158)
    at liquibase.logging.LogFactory.getLogger(LogFactory.java:17)
    at liquibase.logging.LogFactory.getLogger(LogFactory.java:30)
    at liquibase.integration.ant.BaseLiquibaseTask$LogRedirector.registerHan
    dler(BaseLiquibaseTask.java:287)
    at liquibase.integration.ant.BaseLiquibaseTask$LogRedirector.redirectLog
    ger(BaseLiquibaseTask.java:283)
    at liquibase.integration.ant.BaseLiquibaseTask.(BaseLiquibaseTask.
    java:57)
    at liquibase.integration.ant.DatabaseUpdateTask.(DatabaseUpdateTas
    k.java:12)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    

    orAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.apache.tools.ant.AntTypeDefinition.innerCreateAndSet(AntTypeDefin
    ition.java:328)
    at org.apache.tools.ant.AntTypeDefinition.createAndSet(AntTypeDefinition
    .java:274)
    at org.apache.tools.ant.AntTypeDefinition.icreate(AntTypeDefinition.java
    :219)
    at org.apache.tools.ant.AntTypeDefinition.create(AntTypeDefinition.java:
    206)
    at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.
    java:286)
    at org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.
    java:264)
    at org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:41
    7)
    at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.jav
    a:163)

    Total time: 10 minutes 31 seconds

    Can you please help me how to proceed further to make OpenSpecimen work?

    Any help regarding this issue is appreciated.

    Thanks & Regards,
    Madhavi Latha Patnala

    Madhavi,

    To download installer please fill up the form at: http://www.catissueplus.org/download.

    ~Sri

    Hi @MADHAVI_LATHA,

    To deploy OpenSpecimen from source code please refer How to deploy from sourcecode.
    Regarding the error you are facing, you need to set the JAVA_OPTS environment variable with the below value:
    JAVA_OPTS=-Xms128M -Xmx2048M -XX:MaxPermSize=1024M

    ~Nitesh

    Hello Nitesh_marwaha,

    Sorry for the late response.

    Thank you very much for your help.

    Regards,
    Madhavi Latha

    I have the same error and I added the JAVA_OPTS environment variable, but I still get the same thing. I rebooted and still get the OutOfMemory exception.

    I have set my JAVA_OPTS as shown above:

    C:\Programs\OpenSpecimen_v1.1_Installable>echo %JAVA_OPTS%
    -Xms128M -Xmx2048M -XX:MaxPermSize=1024M

    Could I need different settings? I’m installing on a Windows 7 (64 bit) PC with 8 GB of RAM.

    Peace …

    Bob

    Hello @bob_lange

    JAVA_OPTS is not a standard property that every Java program understands. It is mostly used by application servers or containers like JBoss and Tomcat to collect arguments from users to pass on to JVM.

    Similarly Ant has its own environment variable, ANT_OPTS, to collect parameters to pass to JVM.

    Please refer to forum post where this issue was discussed and resolved.

    Let us know how it goes.

    Thanks.

    That worked! Thanks for the help!