Forum Discussion

FICO's avatar
FICO
Community Manager
16 years ago

Generic Template Issue

Generic Template Issue

Hi:

In my current project we are using Generic templates. We have many instances created out of this Generic Template. But suddenly I am facing an issue, when I am trying to create a new instance out of  the same Generic Template and add Rules  or create a variable in that Instance after it has been moved to a diferent location within the same Project it throws an exception at the time of generating ADB. If the created instance is placed at the same location where it was generated by default there are no issues even if we add rules or Create a variable.

 But there are no compilation errors in the builder.

Does anyone of you have ever faced this kind of Issue. Please suggest the solution to overcome this issue.

Thanks

Sandesh

6 Replies

  • FICO's avatar
    FICO
    Community Manager

    Hi,

    Could you provide the exception/error message you get when precompiling?

    Regards,

    Jostein

  • FICO's avatar
    FICO
    Community Manager

    Hi Jostein,

    Please find the error below.  Please suggest. I am unable to copy the entire stack trace as the allowed characters is 20K.

    Error while compiling and serializing the Advisor project

    java.lang.StackOverflowError Exception in thread "main" java.lang.StackOverflowError  at java.lang.ClassLoader.addClass(Unknown Source)  at java.lang.ClassLoader.defineClass1(Native Method)  at java.lang.ClassLoader.defineClassCond(Unknown Source)  at java.lang.ClassLoader.defineClass(Unknown Source)  at java.security.SecureClassLoader.defineClass(Unknown Source)  at java.net.URLClassLoader.defineClass(Unknown Source)  at java.net.URLClassLoader.access$000(Unknown Source)  at java.net.URLClassLoader$1.run(Unknown Source)  at java.security.AccessController.doPrivileged(Native Method)  at java.net.URLClassLoader.findClass(Unknown Source)  at java.lang.ClassLoader.loadClass(Unknown Source)  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)  at java.lang.ClassLoader.loadClass(Unknown Source)  at java.lang.ClassLoader.defineClass1(Native Method)  at java.lang.ClassLoader.defineClassCond(Unknown Source)  at java.lang.ClassLoader.defineClass(Unknown Source)  at java.security.SecureClassLoader.defineClass(Unknown Source)  at java.net.URLClassLoader.defineClass(Unknown Source)  at java.net.URLClassLoader.access$000(Unknown Source)  at java.net.URLClassLoader$1.run(Unknown Source)  at java.security.AccessController.doPrivileged(Native Method)  at java.net.URLClassLoader.findClass(Unknown Source)  at java.lang.ClassLoader.loadClass(Unknown Source)  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)  at java.lang.ClassLoader.loadClass(Unknown Source)  at java.lang.ClassLoader.defineClass1(Native Method)  at java.lang.ClassLoader.defineClassCond(Unknown Source)  at java.lang.ClassLoader.defineClass(Unknown Source)  at java.security.SecureClassLoader.defineClass(Unknown Source)  at java.net.URLClassLoader.defineClass(Unknown Source)  at java.net.URLClassLoader.access$000(Unknown Source)  at java.net.URLClassLoader$1.run(Unknown Source)  at java.security.AccessController.doPrivileged(Native Method)  at java.net.URLClassLoader.findClass(Unknown Source)  at java.lang.ClassLoader.loadClass(Unknown Source)  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)  at java.lang.ClassLoader.loadClass(Unknown Source)  at com.blazesoft.engines.rules.java.NdDefJavaClassProviderResource.WjHIFOV(:1033)  at com.blazesoft.engines.rules.java.NdDefJavaClassProviderResource.load(:1704)  at com.blazesoft.engines.rules.NdDefResource.WjHBVsN(:1105)  at com.blazesoft.engines.rules.NdDefResource.load(:785)  at com.blazesoft.engines.rules.NdDefClassProviderResource.WjHEHiC(:191)  at com.blazesoft.engines.rules.NdDefClassProviderResource.createLoadedClassProviderResource(:267)  at com.blazesoft.template.repository.objects.bom.NdPromBomSupport.getMergedClassProviderResourceForSection(:392)  at com.blazesoft.template.repository.objects.bom.NdPromBomSupport.WjIhiHP(:857)  at com.blazesoft.template.repository.objects.bom.NdPromBomSupport.WjIamrG(:1108)  at com.blazesoft.template.repository.objects.bom.NdPromBomSupport.WjIamnC(:971)  at com.blazesoft.template.repository.objects.bom.NdPromBomSupport.WjIeRKX(:947)  at com.blazesoft.template.repository.objects.bom.NdPromBomSupport.mergeProjectBoms(:904)  at com.blazesoft.template.repository.objects.bom.NdPromBomSupport.<init>(:148)  at com.blazesoft.template.repository.impl.NdPromProjectImpl$WjHOgpH.<init>(:967)  at com.blazesoft.template.repository.impl.NdPromProjectImpl.mergeBoms(:608)  at com.blazesoft.template.repository.impl.NdPromProjectImpl.getBomSupport(:707)  at com.blazesoft.template.repository.provider.NdPromSrlClassPropertyTypeProvider.getInstantiationValue(:79)  at com.blazesoft.template.engine.NdValuedInstance.WjHANRV(:331)  at com.blazesoft.template.engine.NdProviderDynamicSingleArg.WjHBEsZ(:61)  at com.blazesoft.template.engine.NdProviderDynamicArg.WjIaHHC(:292)  at com.blazesoft.template.engine.NdProviderDynamicArg.WjIaHHC(:273)  at com.blazesoft.template.engine.NdProviderDynamicArg.WjIaHGB(:165)  at com.blazesoft.template.engine.NdAbstractParameter.WjHBVFZ(:803)  at com.blazesoft.template.engine.NdAbstractParameter.WjHBCWS(:581)  at com.blazesoft.template.engine.NdValuedTemplate.generateArgs(:1365)  at com.blazesoft.template.engine.NdValuedTemplate.generateArgs(:1352)  at com.blazesoft.template.engine.NdValuedTemplate.WjIaaZP(:1028)  at com.blazesoft.template.engine.NdInstantiationInstance$WjHBCCX.generateContent(:214) ..................

    .................

  • FICO's avatar
    FICO
    Community Manager

    Hi,

    Are you moving the GT to a different location or moving the GT instance to a different location. As of i know if you move any instance of any template it will show you error in Blaze Advisor.

  • FICO's avatar
    FICO
    Community Manager

    Hi,

    Yes, Moving the instances to a different location will throw an error in the builder, but currently all of the existing instances (approximately 50+ instances) are already placed in the different location and are working fine. Generic template is not modified since a long time and now suddenly this issue is occuring. Compilation is error-free in the builder but precompile (ADB generation) is throwing the exception.

    Any possibilites of data/instance corruption (like format is corrupted or synchronization issues in the master & local repos) can cause this?

  • FICO's avatar
    FICO
    Community Manager

    Is this still an unsolved problem? It is a good idea to check (using textpad or other text editor) to see if the .innovator_attbs file has the right path for the instance file. I am not sure this will solve your case but I always update the location information in the attbs file when I move the instance files.

  • FICO's avatar
    FICO
    Community Manager

    Hi,

    At last I am able find a solution for this. Just wanted to share the same. Increase the Stack size and will work fine.

    Regards,

    >> Sandesh