Unable to initialize class com.sun.xml.internal.ws.util.xml.XmlUtil

Unable to initialize class com.sun.xml.internal.ws.util.xml.XmlUtil

book

Article ID: KB0087677

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
==========
Unable to initialize class com.sun.xml.internal.ws.util.xml.XmlUtil

Environment:
==========
TIBCO BusinessEvents 5.1.x
All Operating Systems

Symptoms:
=========
java.lang.RuntimeException: java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.internal.ws.util.xml.XmlUtil  
        at com.tibco.cep.kernel.core.rete.BeTransaction.execute(SourceFile:122)  
        at com.tibco.cep.kernel.core.rete.ReteWM.executeRules(SourceFile:1392)  
        at com.tibco.cep.runtime.session.impl.RuleSessionImpl$4.doTxnWork(RuleSessionImpl.java:1081)  
        at com.tibco.cep.kernel.core.rete.BeTransaction.run(SourceFile:140)  
        at com.tibco.cep.kernel.core.rete.BeTransaction.execute(SourceFile:100)  
        at com.tibco.cep.runtime.session.impl.RuleSessionImpl.preprocessPassthru(RuleSessionImpl.java:1060)  
        at com.tibco.cep.runtime.service.cluster.ClusterTaskController$1.doTxnWork(ClusterTaskController.java:82)  
        at com.tibco.cep.kernel.core.rete.BeTransaction$1.run(SourceFile:178)  
        at com.tibco.xp.runtime.TransactionService$RunToCompletion.run(TransactionService.java:193)  
        at com.kabira.platform.Transaction.execute(Transaction.java:457)  
        at com.tibco.xp.runtime.TransactionService.txnWork(TransactionService.java:142)  
        at com.tibco.cep.kernel.core.rete.BeTransaction.run(SourceFile:182)  
        at com.tibco.cep.kernel.core.rete.BeTransaction.execute(SourceFile:100)  
        at com.tibco.cep.runtime.service.cluster.ClusterTaskController.executeTask(ClusterTaskController.java:69)  
        at com.tibco.cep.runtime.scheduler.impl.WorkerBasedControllerV2$WorkerTask.run(WorkerBasedControllerV2.java:466)  
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
        at com.tibco.cep.runtime.util.CustomBEManagedThread.run(CustomBEManagedThread.java:24)  
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.internal.ws.util.xml.XmlUtil  
        at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(Unknown Source)  
        at com.sun.xml.internal.ws.client.WSServiceDelegate.&ltinit>(Unknown Source)  
        at com.sun.xml.internal.ws.client.WSServiceDelegate.&ltinit>(Unknown Source)  
        at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(Unknown Source)  
        at javax.xml.ws.Service.&ltinit>(Unknown Source)  
        at radracer.datalayer.realtimetransactionprocessor.RealTimeTransactionProcessor.&ltinit>(RealTimeTransactionProcessor.java:42)  
        at radracer.datalayer.AwardPersister.sendEventQualificationAwardResult(AwardPersister.java:441)  
        at radracer.datalayer.AwardPersister.SaveEventQualificationAwardResult(AwardPersister.java:420)  
        at radracer.datalayer.AwardPersister.SaveEventAward(AwardPersister.java:330)  
        at radracer.internal.radracer.datalayer._AwardPersister_2117.SaveEventAward(_AwardPersister_2117.java:125)  
        at be.gen.Rules.SendCreateEventInstanceResponse$SendCreateEventInstanceResponse_a.execute(SendCreateEventInstanceResponse.java:39)  
        at com.tibco.cep.kernel.core.rete.ReteWM.resolveConflict(SourceFile:322)  
        at com.tibco.cep.kernel.core.rete.ReteWM$7.doTxnWork(SourceFile:1485)  
        at com.tibco.cep.kernel.core.rete.BeTransaction.run(SourceFile:140)  
        at com.tibco.cep.kernel.core.rete.BeTransaction.execute(SourceFile:100)  
        ... 17 more  

Resolution:
=========
Verify if these lines are not modofied or overwritten in the .tra file :
#
# Sets the SAX and DOM JAXP factories to use
#
java.property.javax.xml.parsers.SAXParserFactory org.apache.xerces.jaxp.SAXParserFactoryImpl
java.property.javax.xml.parsers.DocumentBuilderFactory org.apache.xerces.jaxp.DocumentBuilderFactoryImpl

Upgarde environment to JDK 1.7 .

Another workaround is to put in the cdd file the property
    com.tibco.xml.parsers.disabled="true"

Note that the above property does not enforce certain security checks on data parsing and makes data susceptible to outside attacks .

Issue/Introduction

Unable to initialize class com.sun.xml.internal.ws.util.xml.XmlUtil