[Installation, Configuration & Deployment] - IllegalStateException: ClassLoadingTask.loadedTask is null
by youngkin
I'm having intermittent problems during initialization of an application deployed as a .sar. I'm getting the error mentioned in the subject line. When the error occurs it usually moves around - i.e,. the stack trace location and offending class changes from occurrence to occurrence.
The context:
1. JBoss 4.0.3 SP1
| 2. There are several other applications deployed in the same JBoss instance - other .sars as well as an .ear that includes a .war.
| 3. JMX is used by the .sar to start other internal services.
|
|
| Attached below is a partial stack trace. Thanks in advance.
|
| Rich
|
| java.lang.IllegalStateException: ClassLoadingTask.loadedTask is null, name: javax.xml.rpc.handler.HandlerRegistry
| | at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:516)
| | at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:377)
| | at java.lang.ClassLoader.loadClass(Unknown Source)
| | at java.lang.ClassLoader.loadClassInternal(Unknown Source)
| | at example.MyClass.foo(MyClass.java:72)
| | at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
| | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| | at org.jboss.system.server.jmx.LazyMBeanServer.invoke(LazyMBeanServer.java:225)
| | at com.avaya.ccr.jmx.JmxUtil.invoke(JmxUtil.java:69)
| | at example.MyService.start(MyService.java:48)
| | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| | at java.lang.reflect.Method.invoke(Unknown Source)
| | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| | at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
| | at java.util.concurrent.FutureTask.run(Unknown Source)
| | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
| | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
| | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
| | at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
| | at java.lang.Thread.run(Unknown Source)
| |
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010272#4010272
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4010272
19Â years, 2Â months
[JBossWS] - Mapping file generation & parameter unwrapping issues
by sbivol
We have a .NET sample Web Service (see wsdl at the very bottom), and we?re trying to invoke it from an SLSB in jboss 4.0.5.GA. We tried to get it working with jboss 1.0.3, 1.0.4, and 1.2.0, but did not succeed.
With 1.0.3, we could generate the mapping file, but then when invoking the service it would fail finding operation metadata, similar to http://www.jboss.com/index.html?module=bb&op=viewtopic&t=91101, we upgraded to 1.0.4, where this issue doesn't seem to come up.
With 1.0.4, using the artifacts generated with 1.0.3, when invoking the service, it would fail as described in http://jira.jboss.org/jira/browse/JBWS-1260 (Scenarios E, F, I, and L). Any attempts to generate the mapping file with 1.0.4 would result in same error during generation of the file.
Then I pulled down jbossws 1.2.0.CR2 source, where the above jira issue is supposed to be fixed, but it still cannot generate the mapping file, getting a different error now (see exception stack below).
So, am I doing something wrong? Can anyone try generating the artifacts based on wsdl further down, or suggest a workaround?
Appreciate your help.
Regards
Sergiu
-------------------------------------
The error i'm getting with 1.2.0.CR2 is:
| Exception in thread "main" org.jboss.ws.WSException: String passed is null
| at org.jboss.ws.metadata.wsdl.WSDLUtils.firstLetterUpperCase(WSDLUtils.java:453)
| at org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:137)
| at org.jboss.ws.tools.XSDTypeToJava.createJavaFile(XSDTypeToJava.java:113)
| at org.jboss.ws.tools.WSDLToJava.generateJavaSource(WSDLToJava.java:716)
| at org.jboss.ws.tools.WSDLToJava.generateJavaSource(WSDLToJava.java:709)
| at org.jboss.ws.tools.WSDLToJava.unwrapRequest(WSDLToJava.java:285)
| at org.jboss.ws.tools.WSDLToJava.appendDocParameters(WSDLToJava.java:494)
| at org.jboss.ws.tools.WSDLToJava.appendMethods(WSDLToJava.java:394)
| at org.jboss.ws.tools.WSDLToJava.createSEIFile(WSDLToJava.java:570)
| at org.jboss.ws.tools.WSDLToJava.createSEI(WSDLToJava.java:602)
| at org.jboss.ws.tools.WSDLToJava.generateSEI(WSDLToJava.java:187)
| at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:304)
| at org.jboss.ws.tools.WSTools.process(WSTools.java:138)
| at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
| at org.jboss.ws.tools.WSTools.main(WSTools.java:61)
|
-----------------------------------------
The .NET Web Service WSDL file:
| <?xml version="1.0" encoding="utf-8"?>
| <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
| xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
| xmlns:tns="http://tempuri.org/TitanWebServices/TitanService" xmlns:s="http://www.w3.org/2001/XMLSchema"
| xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
| targetNamespace="http://tempuri.org/TitanWebServices/TitanService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
| <wsdl:types>
| <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/TitanWebServices/TitanService">
| <s:element name="TitanRunNavision">
| <s:complexType>
| <s:sequence>
| <s:element minOccurs="0" maxOccurs="1" name="FunctionName" type="s:string" />
| <s:element minOccurs="0" maxOccurs="1" name="ParameterList" type="s:string" />
| </s:sequence>
| </s:complexType>
| </s:element>
| <s:element name="TitanRunNavisionResponse">
| <s:complexType>
| <s:sequence>
| <s:element minOccurs="0" maxOccurs="1" name="TitanRunNavisionResult">
| <s:complexType>
| <s:sequence>
| <s:any />
| </s:sequence>
| </s:complexType>
| </s:element>
| </s:sequence>
| </s:complexType>
| </s:element>
| </s:schema>
| </wsdl:types>
| <wsdl:message name="TitanRunNavisionSoapIn">
| <wsdl:part name="parameters" element="tns:TitanRunNavision" />
| </wsdl:message>
| <wsdl:message name="TitanRunNavisionSoapOut">
| <wsdl:part name="parameters" element="tns:TitanRunNavisionResponse" />
| </wsdl:message>
| <wsdl:portType name="TitanServiceSoap">
| <wsdl:operation name="TitanRunNavision">
| <wsdl:input message="tns:TitanRunNavisionSoapIn" />
| <wsdl:output message="tns:TitanRunNavisionSoapOut" />
| </wsdl:operation>
| </wsdl:portType>
| <wsdl:binding name="TitanServiceSoap" type="tns:TitanServiceSoap">
| <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
| <wsdl:operation name="TitanRunNavision">
| <soap:operation soapAction="http://tempuri.org/TitanWebServices/TitanService/TitanRunNavision" style="document" />
| <wsdl:input>
| <soap:body use="literal" />
| </wsdl:input>
| <wsdl:output>
| <soap:body use="literal" />
| </wsdl:output>
| </wsdl:operation>
| </wsdl:binding>
| <wsdl:binding name="TitanServiceSoap12" type="tns:TitanServiceSoap">
| <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
| <wsdl:operation name="TitanRunNavision">
| <soap12:operation soapAction="http://tempuri.org/TitanWebServices/TitanService/TitanRunNavision" style="document" />
| <wsdl:input>
| <soap12:body use="literal" />
| </wsdl:input>
| <wsdl:output>
| <soap12:body use="literal" />
| </wsdl:output>
| </wsdl:operation>
| </wsdl:binding>
| <wsdl:service name="TitanService">
| <wsdl:port name="TitanServiceSoap" binding="tns:TitanServiceSoap">
| <soap:address location="http://dev4/titanwebservices/service.asmx" />
| </wsdl:port>
| <wsdl:port name="TitanServiceSoap12" binding="tns:TitanServiceSoap12">
| <soap12:address location="http://dev4/titanwebservices/service.asmx" />
| </wsdl:port>
| </wsdl:service>
| </wsdl:definitions>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010262#4010262
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4010262
19Â years, 2Â months
[JBoss Seam] - Simple issue getting started
by saeediqbal1
Hi Guys,
I am not very familiar with jboss/seam/hibernate. So therefore I would like some help getting started.
First i got the createTablesOnStartup error that i changed to false.
Now here are the errors that i'm getting
anonymous wrote : 2007-02-02 13:51:17,359 DEBUG [org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory] Executing SQL: select HIGHVALUES from HILOSEQUENCES where SEQUENCENAME='general'
| 2007-02-02 13:51:17,375 DEBUG [org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory] Started jboss:service=KeyGeneratorFactory,type=HiLo
| 2007-02-02 13:51:17,375 DEBUG [org.jboss.ejb3.timerservice.quartz.jmx.EJB3TimerService] Starting jboss.ejb:service=EJB3TimerService
| 2007-02-02 13:51:17,390 DEBUG [org.jboss.ejb3.timerservice.quartz.QuartzTimerServiceFactory] properties = {org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread=true, org.quartz.jobStore.dataSource=myDS, org.quartz.scheduler.rmi.proxy=false, org.quartz.scheduler.rmi.export=false, org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.HSQLDBDelegate, org.quartz.jobStore.misfireThreshold=60000, org.quartz.jobStore.selectWithLockSQL=SELECT * FROM qrtz_locks WHERE lock_name = ?, org.quartz.threadPool.threadCount=10, org.quartz.jobStore.nonManagedTXDataSource=myDS, org.quartz.scheduler.instanceName=JBossEJB3QuartzScheduler, org.quartz.scheduler.wrapJobExecutionInUserTransaction=false, org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool, org.quartz.jobStore.tablePrefix=QRTZ_, org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreCMT, org.quartz.threadPool.threadPriority=5}
| 2007-02-02 13:51:17,453 WARN [org.jboss.ejb3.timerservice.quartz.QuartzTimerServiceFactory] sql failed: CREATE TABLE qrtz_job_details(JOB_NAME VARCHAR(80) NOT NULL, JOB_GROUP VARCHAR(80) NOT NULL, DESCRIPTION VARCHAR(120) NULL, JOB_CLASS_NAME VARCHAR(128) NOT NULL, IS_DURABLE VARCHAR(1) NOT NULL, IS_VOLATILE VARCHAR(1) NOT NULL, IS_STATEFUL VARCHAR(1) NOT NULL, REQUESTS_RECOVERY VARCHAR(1) NOT NULL, JOB_DATA BINARY NULL, PRIMARY KEY (JOB_NAME,JOB_GROUP))
| 2007-02-02 13:51:17,468 DEBUG [org.jboss.ejb3.timerservice.quartz.QuartzTimerServiceFactory] sql failed: CREATE TABLE qrtz_job_details(JOB_NAME VARCHAR(80) NOT NULL, JOB_GROUP VARCHAR(80) NOT NULL, DESCRIPTION VARCHAR(120) NULL, JOB_CLASS_NAME VARCHAR(128) NOT NULL, IS_DURABLE VARCHAR(1) NOT NULL, IS_VOLATILE VARCHAR(1) NOT NULL, IS_STATEFUL VARCHAR(1) NOT NULL, REQUESTS_RECOVERY VARCHAR(1) NOT NULL, JOB_DATA BINARY NULL, PRIMARY KEY (JOB_NAME,JOB_GROUP))
| java.sql.SQLException: Table already exists: QRTZ_JOB_DETAILS in statement [CREATE TABLE qrtz_job_details]
| at org.hsqldb.jdbc.Util.throwError(Unknown Source)
|
and
anonymous wrote : 2007-02-02 13:51:17,687 WARN [org.jboss.messaging.core.plugin.JDBCPersistenceManager]
|
| JBoss Messaging Warning: DataSource connection transaction isolation should be READ_COMMITTED, but it is currently NONE.
| Using an isolation level less strict than READ_COMMITTED may lead to data consistency problems.
| Using an isolation level more strict than READ_COMMITTED may lead to deadlock.
|
| 2007-02-02 13:51:17,703 DEBUG [org.jboss.messaging.core.plugin.JDBCPersistenceManager] JDBCPersistenceManager[154ec5] started
|
and
anonymous wrote : 007-02-02 13:51:19,093 DEBUG [org.jboss.web.tomcat.tc6.deployers.TomcatDeployment] Using session cookies default setting
| 2007-02-02 13:51:19,109 DEBUG [org.jboss.web.tomcat.tc6.WebAppLoader] injectionContainer enabled and processing beginning with Tomcat WebAppLoader
| 2007-02-02 13:51:19,156 ERROR [org.apache.tomcat.util.modeler.BaseModelMBean] Exception invoking method addChild
| java.lang.RuntimeException: could not find listener class in classpath
| at org.jboss.web.tomcat.tc6.TomcatInjectionContainer.processMetadata(TomcatInjectionContainer.java:339)
|
|
|
| ...
| ...
|
| Caused by: java.lang.ClassNotFoundException: org.apache.myfaces.webapp.StartupServletContextListener
| at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1355)
| at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)
| at org.jboss.web.tomcat.tc6.TomcatInjectionContainer.processMetadata(TomcatInjectionContainer.java:333)
| ... 65 more
| 20
I am pretty sure somewhat that its classpath related error because the same setup works at my other computer at work. doesn't work at home. I do most development at work ofcourse.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010259#4010259
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4010259
19Â years, 2Â months
[JBoss Seam] - Re: Accessing generated PDFs
by petemuir
So, for emails, this is my suggestion as to how you should be able to attach PDFs to the email:
<m:message>
| ...
| <m:attachment>
| <p:document>
| ...
| </p:document>
| </m:attachment>
| </m:message>
Of curse with this you would be able to use all the standard facelets templating stuff (ui:include being the one that springs to mind).
As for implementation I would guess something like:
UIAttachment
| encodeBegin() {
| // If the attachment element contains a document element
| documentComponent.setRedirect(false);
| }
|
| encodeEnd() {
| // If the attachment element contains a document element
| InputStream is = documentComponent.getPdf();
| String name = documentComponent.getName();
| // Deal with attaching the InputStream
| }
I write this tho' with no idea of the feasability of doing that with the jboss-seam-pdf ;)
There are some other problems with embedding/attaching images to emails (generally you want to display them inline as part of your html body than attach them).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010258#4010258
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4010258
19Â years, 2Â months
[Management, JMX/JBoss] - Re: EJB runtime statistics through web-console throws Except
by dudlo
I think Scott misunderstood the nature of this problem. This is not an "I can't look up my MBean" user error, this is a bug in web-console. Most of the web-console statistics displayed for an EJB is not available because of the bug.
It is easy to replicate even with the "JBoss AS Getting Started Guide" tutorial example. Just follow the example and deploy it to a 4.0.4.GA or 4.0.5.GA or 3.2.8.SP1 server. Then open web-console (http://localhost/web-console and navigate to J2EE Domains -> Manager -> JBoss -> JBossDukeBank.ear -> bank-ejb.jar -> MyAccountController. You'll get the error (MBeanProxyCreationException).
The error does not happen in 3.2.7 or 4.0.3SP1 releases. I noticed that the JSPs of the web-console have been touched after these releases. But it is the left sidenavigation applet that is causing the error (passing wrong JMX name into the JSP).
In most cases (as reported above), it can be worked around by using simple JNDI names (local and global) like MyEJB, instead of com/acme/MyEJB. When I use the fully qualified JNDI name, it shows correctly in the old web-console (under the jar, it shows as com/acme/MyEJB). In the buggy one, the name is stripped and only the last node name (MyEJB) is shown. However, as you can see in the tutorial example, even using simple names does not work all the time.
Again, please treat this as web-console internal error.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010247#4010247
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4010247
19Â years, 2Â months