Forum Discussion

FICO's avatar
FICO
Community Manager
4 years ago

"Could not initialize class" error when opening existing file based repository

Using Blaze Advisor 7.6.1, Eclipse 4.11, Java 1.8.321, and Windows 10. We have a BOM that is being converted from xmlBeans 3 to 5.0.3. When opening the repository with the new jar file, I get this error for all of my objects:

Could not initialize class

My teammate has gotten his system to work. I've pulled his updated repository and I'm still getting the same errors. If I go into the BOM and go to the settings, Blaze asks me to Remove All Failed Imports. If I try and add back one of the objects, I get the initialize error again.

5 Replies

  • FICO's avatar
    FICO
    Community Manager

    I'd suggest you check whether the same version of Java is being used between you and your teammate.

  • FICO's avatar
    FICO
    Community Manager

    We have the same version. That's controlled by corporate installs. The real question is why am I getting the initialize error.

  • FICO's avatar
    FICO
    Community Manager

    I need to know how to determine what is causing the error. Are there logs that would tell me what is causing the initialize error?

  • FICO's avatar
    FICO
    Community Manager

    Here's an error message being received when I open a project with the updated BOM. I know that it says NoClassDefFoundError, but the class is defined.

    I've even tried creating a new BOM. I can see the jar file and select a class. When I try and add the class, I get the initialize error.

    com.blazesoft.engines.rules.java.NdJavaClassImportResourceException: An exception occurred while adding the 'com.wellsfargo.service.provider.hcfg.entity.decision.financialProductDecision.x2010.MatrixResultsListType' Java class to the Java class provider resource.

    java.lang.NoClassDefFoundError: Could not initialize class com.wellsfargo.service.provider.hcfg.entity.decision.financialProductDecision.x2010.MatrixResultsListType

                  at java.lang.Class.forName0(Native Method)

                  at java.lang.Class.forName(Unknown Source)

                  at com.blazesoft.objects.java.java2.bANUzHWA.classForName(:47)

                  at com.blazesoft.objects.java2.bANUABQS.bANUABCE(:525)

                  at com.blazesoft.util.NdJavaExtensibleClassLoadingContext.classForName(:90)

                  at com.blazesoft.template.engine.NdProviderContext$bANUGGtG.classForName(:766)

                  at com.blazesoft.util.NdClassLoadingContextClassLoader.loadClass(:208)

                  at java.lang.ClassLoader.loadClass(Unknown Source)

                  at com.blazesoft.util.NdExtensibleClassLoader.loadClass(:260)

                  at java.lang.ClassLoader.loadClass(Unknown Source)

                  at java.lang.Class.forName0(Native Method)

                  at java.lang.Class.forName(Unknown Source)

                  at com.blazesoft.objects.java.java2.bANUzHWA.classForName(:47)

                  at com.blazesoft.objects.java2.bANUABQS.bANUABCE(:525)

                  at com.blazesoft.util.NdJavaExtensibleClassLoadingContext.classForName(:90)

                  at com.blazesoft.template.engine.NdProviderContext$bANUGGtG.classForName(:766)

                  at com.blazesoft.util.NdClassLoadingContextClassLoader.loadClass(:208)

                  at java.lang.ClassLoader.loadClass(Unknown Source)

                  at com.blazesoft.util.NdExtensibleClassLoader.loadClass(:260)

                  at java.lang.ClassLoader.loadClass(Unknown Source)

                  at java.lang.Class.forName0(Native Method)

                  at java.lang.Class.forName(Unknown Source)

                  at com.blazesoft.objects.java.java2.bANUzHWA.classForName(:47)

                  at com.blazesoft.objects.java2.bANUABQS.bANUABCE(:525)

                  at com.blazesoft.util.NdJavaExtensibleClassLoadingContext.classForName(:90)

                  at com.blazesoft.template.engine.NdProviderContext$bANUGGtG.classForName(:766)

                  at com.blazesoft.objects.java2.NdDefaultClassLoadingContext.classForName(:129)

                  at com.blazesoft.objects.java2.NdDefaultClassLoadingContext.classForName(:102)

                  at com.blazesoft.engines.rules.java.NdDefJavaClassProviderResource.bANUDobR(:467)

                  at com.blazesoft.engines.rules.java.NdDefJavaClassProviderResource.bANUDobX(:636)

                  at com.blazesoft.engines.rules.java.NdDefJavaClassProviderResource.bANUDobT(:499)

                  at com.blazesoft.engines.rules.java.NdDefJavaClassProviderResource.bANUDosQ(:2200)

                  at com.blazesoft.engines.rules.java.NdDefJavaClassProviderResource.initialize(:2324)

                  at com.blazesoft.template.repository.objects.bom.NdPromBomSupport.bANUFfOT(:1981)

                  at com.blazesoft.template.repository.objects.bom.NdPromBomSupport.bANUFfVA(:2331)

                  at com.blazesoft.template.repository.objects.bom.NdPromBomSupport.bANUFfRW(:2163)

                  at com.blazesoft.template.repository.objects.bom.NdPromBomSupport.bANUFfQV(:2104)

                  at com.blazesoft.template.repository.objects.bom.NdPromBomSupport.mergeProjectBoms(:2025)

                  at com.blazesoft.template.repository.objects.bom.NdPromBomSupport.init(:205)

                  at com.blazesoft.template.repository.impl.NdPromProjectImpl$bANUIdbD.init(:2261)

                  at com.blazesoft.template.repository.impl.NdPromProjectImpl.bANUItBS(:1344)

                  at com.blazesoft.template.repository.impl.NdPromProjectImpl.mergeBoms(:1318)

                  at com.blazesoft.template.repository.impl.NdPromProjectImpl.getBomSupport(:1700)

                  at com.blazesoft.template.repository.objects.bom.NdPromExternalBomContentImpl.getBom(:375)

                  at com.blazesoft.devtools.rules.NdDevExternalBomResource.bANUPdzC(:78)

                  at com.blazesoft.devtools.rules.NdDevExternalBomResource.bANUPdCF(:281)

                  at com.blazesoft.devtools.rules.NdDevProjectSupport.bANUMzvF(:224)

                  at com.blazesoft.builder.integration.bANUNgCR.notifyGlobalClasspathChanged(:2652)

                  at com.fairisaac.eclipse.repository.resources.bkCZymwM.bkCZymnD(:657)

                  at com.fairisaac.eclipse.repository.resources.bkCZymwM.access$300(:94)

                  at com.fairisaac.eclipse.repository.resources.bkCZymwM$4$1.runInWorkspace(:703)

                  at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:42)

                  at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

  • FICO's avatar
    FICO
    Community Manager

    Please contact FICO product support via the support portal at https://ficoitservices.service-now.com/support, so a support engineer can have a web session with you to troubleshoot this issue further and get it resolved.