java.lang.NullPointerException when loading a project.
book
Article ID: KB0084580
calendar_today
Updated On:
TIBCO BusinessEvents Enterprise Edition
-
Not Applicable
-
Show More
Show Less
Description
Resolution: Description: ========= We recreate the EAR file in studio, when we run the debugger we get an error which prevents us from executing anything. Environment: ========== BusinessEvents 4.0.x Symptoms: ========= When starting the BE engine with the ear file from the command line, the engine gives the following java.lang.NullPointerException when loading the project: >>>>>>>>>>>>>> 2010 Jul 14 14:23:51:507 GMT -4 127.0.0.1 Info [main] - [runtime.session] Loading the project from: C:\Bruno\TIBCO\workspaces\be\TrackAndTrace\Archives\TrackAndTrace_2.ear 2010 Jul 14 14:23:53:179 GMT -4 127.0.0.1 Error [main] - [root] java.lang.NullPointerException 2010 Jul 14 14:23:53:180 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultComponent.shallowClone(DefaultComponent.java:416) 2010 Jul 14 14:23:53:180 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultNamedComponent.shallowClone(DefaultNamedComponent.java:215) 2010 Jul 14 14:23:53:181 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultDataComponent.shallowClone(DefaultDataComponent.java:61) 2010 Jul 14 14:23:53:181 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultElement.shallowClone(DefaultElement.java:46) 2010 Jul 14 14:23:53:182 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultComponent.resolveComponent(DefaultComponent.java:277) 2010 Jul 14 14:23:53:183 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultComponent.resolveAndCheckComponent(DefaultComponent.java:370) 2010 Jul 14 14:23:53:183 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultParticle.a(DefaultParticle.java:111) 2010 Jul 14 14:23:53:184 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultParticle.doCheckErrors(DefaultParticle.java:124) 2010 Jul 14 14:23:53:184 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultComponent.checkErrors(DefaultComponent.java:338) 2010 Jul 14 14:23:53:186 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultModelGroup.doCheckErrors(DefaultModelGroup.java:622) 2010 Jul 14 14:23:53:186 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultNamedComponent.checkErrors(DefaultNamedComponent.java:125) 2010 Jul 14 14:23:53:187 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultComponent.resolveAndCheckComponent(DefaultComponent.java:392) 2010 Jul 14 14:23:53:188 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultType.a(DefaultType.java:661) 2010 Jul 14 14:23:53:188 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultType.doCheckErrors(DefaultType.java:1100) 2010 Jul 14 14:23:53:189 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultNamedComponent.checkErrors(DefaultNamedComponent.java:125) 2010 Jul 14 14:23:53:189 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultComponent.resolveAndCheckComponent(DefaultComponent.java:392) 2010 Jul 14 14:23:53:190 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultElement.a(DefaultElement.java:286) 2010 Jul 14 14:23:53:190 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultSchemaFragment.checkErrors(DefaultSchemaFragment.java:443) 2010 Jul 14 14:23:53:191 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultSchemaFragment.resolveAndCheck(DefaultSchemaFragment.java:350) 2010 Jul 14 14:23:53:192 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.tns.impl.TnsFragmentStoreImpl.a(TnsFragmentStoreImpl.java:321) 2010 Jul 14 14:23:53:192 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.tns.impl.TnsFragmentStoreImpl.a(TnsFragmentStoreImpl.java:182) 2010 Jul 14 14:23:53:193 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.tns.impl.TargetNamespaceCache.resolveAndCheck(TargetNamespaceCache.java:115) 2010 Jul 14 14:23:53:193 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.tns.impl.TargetNamespaceCache.getLocations(TargetNamespaceCache.java:109) 2010 Jul 14 14:23:53:194 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.cep.repo.BEProject.cacheSmElements(BEProject.java:142) 2010 Jul 14 14:23:53:195 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.cep.repo.BEProject.load(BEProject.java:98) 2010 Jul 14 14:23:53:195 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.cep.studio.core.repo.emf.EMFProject.load(Unknown Source) 2010 Jul 14 14:23:53:196 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.cep.studio.core.repo.emf.DeployedEMFProject.load(Unknown Source) 2010 Jul 14 14:23:53:196 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.initProject(RuleServiceProviderImpl.java:1098) 2010 Jul 14 14:23:53:197 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.cep.container.standalone.BEMain.jumpStart(BEMain.java:131) 2010 Jul 14 14:23:53:197 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.cep.container.standalone.BEMain.main(BEMain.java:52) 2010 Jul 14 14:23:53:199 GMT -4 127.0.0.1 Error [main] - [root] java.lang.NullPointerException 2010 Jul 14 14:23:53:199 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultComponent.shallowClone(DefaultComponent.java:416) 2010 Jul 14 14:23:53:200 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultNamedComponent.shallowClone(DefaultNamedComponent.java:215) 2010 Jul 14 14:23:53:200 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultDataComponent.shallowClone(DefaultDataComponent.java:61) 2010 Jul 14 14:23:53:201 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultElement.shallowClone(DefaultElement.java:46) 2010 Jul 14 14:23:53:202 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultComponent.resolveComponent(DefaultComponent.java:277) 2010 Jul 14 14:23:53:202 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultComponent.resolveAndCheckComponent(DefaultComponent.java:370) 2010 Jul 14 14:23:53:203 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultParticle.a(DefaultParticle.java:111) 2010 Jul 14 14:23:53:203 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultParticle.doCheckErrors(DefaultParticle.java:124) 2010 Jul 14 14:23:53:208 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultComponent.checkErrors(DefaultComponent.java:338) 2010 Jul 14 14:23:53:209 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultModelGroup.doCheckErrors(DefaultModelGroup.java:622) 2010 Jul 14 14:23:53:210 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultNamedComponent.checkErrors(DefaultNamedComponent.java:125) 2010 Jul 14 14:23:53:210 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultComponent.resolveAndCheckComponent(DefaultComponent.java:392) 2010 Jul 14 14:23:53:211 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultType.a(DefaultType.java:661) 2010 Jul 14 14:23:53:216 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultType.doCheckErrors(DefaultType.java:1100) 2010 Jul 14 14:23:53:217 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultNamedComponent.checkErrors(DefaultNamedComponent.java:125) 2010 Jul 14 14:23:53:217 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultComponent.resolveAndCheckComponent(DefaultComponent.java:392) 2010 Jul 14 14:23:53:217 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultElement.a(DefaultElement.java:286) 2010 Jul 14 14:23:53:218 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultSchemaFragment.checkErrors(DefaultSchemaFragment.java:443) 2010 Jul 14 14:23:53:218 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.schema.impl.DefaultSchemaFragment.resolveAndCheck(DefaultSchemaFragment.java:350) 2010 Jul 14 14:23:53:218 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.tns.impl.TnsFragmentStoreImpl.a(TnsFragmentStoreImpl.java:321) 2010 Jul 14 14:23:53:219 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.tns.impl.TnsFragmentStoreImpl.a(TnsFragmentStoreImpl.java:182) 2010 Jul 14 14:23:53:219 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.tns.impl.TargetNamespaceCache.resolveAndCheck(TargetNamespaceCache.java:115) 2010 Jul 14 14:23:53:219 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.xml.tns.impl.TargetNamespaceCache.getLocations(TargetNamespaceCache.java:109) 2010 Jul 14 14:23:53:220 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.cep.repo.BEProject.cacheSmElements(BEProject.java:142) 2010 Jul 14 14:23:53:220 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.cep.repo.BEProject.load(BEProject.java:98) 2010 Jul 14 14:23:53:221 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.cep.studio.core.repo.emf.EMFProject.load(Unknown Source) 2010 Jul 14 14:23:53:221 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.cep.studio.core.repo.emf.DeployedEMFProject.load(Unknown Source) 2010 Jul 14 14:23:53:221 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.initProject(RuleServiceProviderImpl.java:1098) 2010 Jul 14 14:23:53:222 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.cep.container.standalone.BEMain.jumpStart(BEMain.java:131) 2010 Jul 14 14:23:53:222 GMT -4 127.0.0.1 Error [main] - [root] at com.tibco.cep.container.standalone.BEMain.main(BEMain.java:52) 2010 Jul 14 14:23:53:327 GMT -4 127.0.0.1 Info [main] - [runtime.session] Loaded the project successfully <<<<<<<<<<<<<< Cause: ====== The project has both xsd and wsdl in the project. The wsdl included the full definition of the xsd. The conflict is that the same element under same namespace has duplicate definitions in different files(locations). This leads to the runtime exception. Resolution: ========= Remove the duplicated definitions of one element. You can do one of the following: - Remove the seperated xsd file as it has completed contained in the WSDL. - When generating the WSDL, reference to the existing xsd instead of including it. After the modification, rebuild the ear.
Issue/Introduction
java.lang.NullPointerException when loading a project.
Feedback
thumb_up
Yes
thumb_down
No