Friday, October 21, 2011

Proxy Generation Issue /Duplication of XSD's in OWSM “error: 'UNBType' is already defined”

Visit the Below Website to access unlimited exam questions for all IT vendors and Get Oracle Certifications for FREE
http://www.free-online-exams.com

Problem:    Proxy Generation Issue /Duplication of XSD's in OWSM “error: 'UNBType' is already defined”
When client is trying to create the Java Source required 
for the interface described by OWSM proxy URL having 
registered WSDL, It displays following error message.
On 10.1.3.4 in Production:
When attempting to generate web services proxy from WSDL URL secured by OWSM10.1.3.4, the following error occurs:

ERROR
-----------------------
Error while using wsimport tool:
error: 'UNBType' is already defined
line 63 of http://m2b2btest.dubaitrade.ae/gateway/services/
SID0003037/N21716673/SID0003037N947906590/OwsmImport.xsd
error: (related to above error) the first definition appears here
line 4 ofhttp://m2b2btest.dubaitrade.ae/gateway/services/SID0003037
/N21716673/SID0003037/P2059444629/SID0003037/P91224747/SID0003037/
N947906590/OwsmImport.xsd
error: 'UNZType' is already defined
line 93 ofhttp://m2b2btest.dubaitrade.ae/gateway/services/SID0003037/
N21716673/SID0003037/N947906590/OwsmImport.xsd
error: (related to above error) the first definition appears here
line 63 ofhttp://m2b2btest.dubaitrade.ae/gateway/services/SID0003037/
N21716673/SID0003037
/P2059444629/SID0003037/P91224747/SID0003037/N947906590/OwsmImport.xsd


 
Log files:
Log File
-----------

We found the below error in the log file "gateway.log":
2009-10-05 09:04:42,318 FINEST [Thread-119] configuration.PolicySetWatchdog - Checking Policy Manager
2009-10-05 09:04:42,589 WARNING [Thread-119] configuration.PolicySetWatchdog - Failed to retrieve policy set from policy manager with url http://m2b2btest.dubaitrade.ae/policymanager/services/RegistrationService: com.cfluent.policymanager.sdk.base.exception.ServerException: (404)Not Found
2009-10-05 09:04:42,596 FINEST [Thread-119] configuration.PolicySetWatchdog - Failed to retrieve policy set from policy manager with url http://m2b2btest.dubaitrade.ae/policymanager/services/RegistrationService
com.cfluent.policymanager.sdk.base.exception.ServerException: (404)Not Found
at com.cfluent.policymanager.sdk.client.soap.SoapComponentConfigurator.getPolicies(SoapComponentConfigurator.java:185)
at com.cfluent.agent.configuration.PolicySetWatchdog.getPolicySetFromPolicyManager(PolicySetWatchdog.java:166)
at com.cfluent.agent.configuration.PolicySetWatchdog.pollFromPolicyManager(PolicySetWatchdog.java:205)
at com.cfluent.agent.configuration.PolicySetWatchdog.run(PolicySetWatchdog.java:77)


We found the below error in the log file "coreman.log":
2009-10-05 08:48:03,136 WARNING [shutdownThread] util.CoremanInit - Taking Coreman down
2009-10-05 08:48:03,151 WARNING [shutdownThread] util.CoremanInit - Stopping threads for scheduled tasks (This can take up to 5 seconds)
2009-10-05 08:50:22,625 INFO [OC4J Launcher] mstore.JDBCMStore - Creating table: MEASUREMENT_AGGSTORE
2009-10-05 08:50:24,517 INFO [OC4J Launcher] rmi.RmiServer - Starting Confluent RMI Name Server
2009-10-05 08:50:26,130 INFO [OC4J Launcher] util.InitServlet - Confluent Monitor is initialized
2009-10-05 09:00:15,940 WARNING [DeployerRunnable Thread for coreman] util.CoremanInit - Taking Coreman down
2009-10-05 09:00:15,947 WARNING [DeployerRunnable Thread for coreman] util.CoremanInit - Stopping threads for scheduled tasks (This can take up to 5 seconds)
2009-10-05 09:00:21,101 WARNING [DeployerRunnable Thread for coreman] persistor.PersistTask - Could not start persist task : com.cfluent.coreman.measurement.persistor.PersistException: Could not schedule persist task
2009-10-05 09:00:21,109 SEVERE [DeployerRunnable Thread for coreman] processing.MStoreProcessing - Could not schedule store processing task : java.lang.IllegalStateException: Timer already cancelled.
2009-10-05 09:00:21,205 WARNING [DeployerRunnable Thread for coreman] persistor.PersistTask - Could not start persist task : com.cfluent.coreman.measurement.persistor.PersistException: Could not schedule persist task
2009-10-05 09:00:21,207 SEVERE [DeployerRunnable Thread for coreman] processing.MStoreProcessing - Could not schedule store processing task : java.lang.IllegalStateException: Timer already cancelled.
2009-10-05 09:00:21,208 SEVERE [DeployerRunnable Thread for coreman] mstore.MStoreConnectionPoolManager - Could not schedule cleaning task : java.lang.IllegalStateException: Timer already cancelled.
2009-10-05 09:00:21,221 SEVERE [DeployerRunnable Thread for coreman] mstore.MStoreConnectionPoolManager - Could not schedule cleaning task : java.lang.IllegalStateException: Timer already cancelled.
2009-10-05 09:00:21,229 SEVERE [DeployerRunnable Thread for coreman] processing.MStoreProcessing - Could not schedule store processing task : java.lang.IllegalStateException: Timer already cancelled.
2009-10-05 09:00:21,230 SEVERE [DeployerRunnable Thread for coreman] mstore.MStoreConnectionPoolManager - Could not schedule cleaning task : java.lang.IllegalStateException: Timer already cancelled.
2009-10-05 09:00:21,906 SEVERE [DeployerRunnable Thread for coreman] util.CoremanInit - Could not start main processing unit : com.cfluent.coreman.filter.FilterException: Could not schedule filter task
com.cfluent.coreman.filter.FilterException: Could not schedule filter task
at com.cfluent.coreman.filter.FilterAgent.schedule_task(FilterAgent.java:88)
at com.cfluent.coreman.filter.FilterAgent.<init>(FilterAgent.java:73)
at com.cfluent.coreman.filter.FilterEngine.addFilterAgent(FilterEngine.java:128)
at com.cfluent.coreman.util.CoremanInit.create_main_filter(CoremanInit.java:614)
at com.cfluent.coreman.util.CoremanInit.create_processing_units(CoremanInit.java:584)
at com.cfluent.coreman.util.CoremanInit.coreman_start(CoremanInit.java:226)
at com.cfluent.coreman.util.InitServlet.handleInit(InitServlet.java:54)
at com.cfluent.common.servlet.BaseServlet.init(BaseServlet.java:39)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at com.cfluent.common.servlet.BaseServlet.init(BaseServlet.java:72)
target exception:

java.lang.IllegalStateException: Timer already cancelled.
at java.util.Timer.sched(Timer.java:354)
at java.util.Timer.scheduleAtFixedRate(Timer.java:333)
at com.cfluent.ccore.util.scheduler.TaskScheduler.schedule(TaskScheduler.java:138)
at com.cfluent.coreman.filter.FilterAgent.schedule_task(FilterAgent.java:86)
at com.cfluent.coreman.filter.FilterAgent.<init>(FilterAgent.java:73)
at com.cfluent.coreman.filter.FilterEngine.addFilterAgent(FilterEngine.java:128)
at com.cfluent.coreman.util.CoremanInit.create_main_filter(CoremanInit.java:614)
at com.cfluent.coreman.util.CoremanInit.create_processing_units(CoremanInit.java:584)
at com.cfluent.coreman.util.CoremanInit.coreman_start(CoremanInit.java:226)
at com.cfluent.coreman.util.InitServlet.handleInit(InitServlet.java:54)
at com.cfluent.common.servlet.BaseServlet.init(BaseServlet.java:39)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at com.cfluent.common.servlet.BaseServlet.init(BaseServlet.java:72)

2009-10-05 09:00:21,908 SEVERE [DeployerRunnable Thread for coreman] pu.ProcessingUnit - Could not create processing unit : com.cfluent.coreman.util.pu.ProcessingUnitException: Could not schedule alarm_pu task
com.cfluent.coreman.util.pu.ProcessingUnitException: Could not schedule alarm_pu task
at com.cfluent.coreman.util.pu.ProcessingTask.schedule_task(ProcessingTask.java:85)
at com.cfluent.coreman.util.pu.ProcessingTask.<init>(ProcessingTask.java:72)
at com.cfluent.coreman.util.pu.ProcessingUnit.<init>(ProcessingUnit.java:36)
at com.cfluent.coreman.util.CoremanInit.create_processing_units(CoremanInit.java:588)
at com.cfluent.coreman.util.CoremanInit.coreman_start(CoremanInit.java:226)
at com.cfluent.coreman.util.InitServlet.handleInit(InitServlet.java:54)
at com.cfluent.common.servlet.BaseServlet.init(BaseServlet.java:39)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at com.cfluent.common.servlet.BaseServlet.init(BaseServlet.java:72)
at com.cfluent.common.servlet.BaseInitServlet.init(BaseInitServlet.java:30)
at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2379)
2009-10-05 09:00:21,910 SEVERE [DeployerRunnable Thread for coreman] pu.ProcessingUnit - Could not create processing unit : com.cfluent.coreman.util.pu.ProcessingUnitException: Could not schedule notification task
com.cfluent.coreman.util.pu.ProcessingUnitException: Could not schedule notification task
at com.cfluent.coreman.util.pu.ProcessingTask.schedule_task(ProcessingTask.java:85)
at com.cfluent.coreman.util.pu.ProcessingTask.<init>(ProcessingTask.java:72)
at com.cfluent.coreman.util.pu.ProcessingUnit.<init>(ProcessingUnit.java:36)
at com.cfluent.coreman.util.CoremanInit.create_processing_units(CoremanInit.java:588)
at com.cfluent.coreman.util.CoremanInit.coreman_start(CoremanInit.java:226)
at com.cfluent.coreman.util.InitServlet.handleInit(InitServlet.java:54)
at com.cfluent.common.servlet.BaseServlet.init(BaseServlet.java:39)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)


Error while using wsimport tool:
error: 'UNBType' is already defined
line 63 of http://m2b2btest/gateway/services/
SID0003037/N21716673/SID0003037N947906590/OwsmImport.xsd
error: (related to above error) the first definition appears here
line 4 ofhttp://m2b2btest/gateway/services/SID0003037
/N21716673/SID0003037/P2059444629/SID0003037/P91224747/SID0003037/
N947906590/OwsmImport.xsd
error: 'UNZType' is already defined
line 93 ofhttp://m2b2btest/gateway/services/SID0003037/
N21716673/SID0003037/N947906590/OwsmImport.xsd
error: (related to above error) the first definition appears here
line 63 ofhttp://m2b2btest/gateway/services/SID0003037/
N21716673/SID0003037
/P2059444629/SID0003037/P91224747/SID0003037/N947906590/OwsmImport.xsd
error: 'UNHType' is already defined
line 124 ofhttp://m2b2btest/gateway/services/SID0003037/N21716673/
SID0003037/N947906590/OwsmImport.xsd
error: (related to above error) the first definition appears here
line 93 ofhttp://m2b2btest/gateway/services/SID0003037
/N21716673/SID0003037/P2059444629/SID0003037/P91224747/SID0003037/
N947906590/OwsmImport.xsd
error: 'UTHType' is already defined
line 168 of http://m2b2btest/gateway/services/SID0003037/
N21716673/SID0003037/N947906590/OwsmImport.xsd
error: (related to above error) the first definition appears here
line 124 ofhttp://m2b2btest/gateway/services/SID0003037
/N21716673/SID0003037/P2059444629/SID0003037/P91224747/SID0003037/
N947906590/OwsmImport.xsd
error: 'ExceptionType' is already defined
line 174 ofhttp://m2b2btest/gateway/services/SID0003037/
N21716673/SID0003037/N94790/OwsmImport.xsd

During analysis and comparing the wsdl from original xsds and wsdl 
and the new generated OWSM xsds and wsdl, We noticed the error was 
occurring because the same xsd is duplicated and available at different locations (only for generated wsdl). 


Solution:


Upgrade to OWSM 10.1.3.5




Get Oracle Certifications for all Exams
Free Online Exams.com

No comments: