[EJB 3.0] - Re: UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService *
by nanda_kishore
| JBoss Bootstrap Environment
|
| JBOSS_HOME: /var/jboss-5.0.0.Beta4
|
| JAVA: /usr/java/jdk1.5.0_16/bin/java
|
| JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx200m -XX:MaxPermSize=256m
| -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true
|
| CLASSPATH: /var/jboss-5.0.0.Beta4/bin/run.jar:/usr/java/jdk1.5.0_16/lib/tools.jar
|
| =========================================================================
|
| 05:46:20,615 INFO [ServerImpl] Starting JBoss (Microcontainer)...
| 05:46:20,616 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.Beta4 (build: SVNTag=JBoss_5_0_0_Beta4 date=200802091115)
| 05:46:20,617 INFO [ServerImpl] Home Dir: /var/jboss-5.0.0.Beta4
| 05:46:20,618 INFO [ServerImpl] Home URL: file:/var/jboss-5.0.0.Beta4/
| 05:46:20,618 INFO [ServerImpl] Library URL: file:/var/jboss-5.0.0.Beta4/lib/
| 05:46:20,618 INFO [ServerImpl] Patch URL: null
| 05:46:20,619 INFO [ServerImpl] Server Name: default
| 05:46:20,619 INFO [ServerImpl] Server Home Dir: /var/jboss-5.0.0.Beta4/server/default
| 05:46:20,619 INFO [ServerImpl] Server Home URL: file:/var/jboss-5.0.0.Beta4/server/default/
| 05:46:20,619 INFO [ServerImpl] Server Data Dir: /var/jboss-5.0.0.Beta4/server/default/data
| 05:46:20,619 INFO [ServerImpl] Server Temp Dir: /var/jboss-5.0.0.Beta4/server/default/tmp
| 05:46:20,619 INFO [ServerImpl] Server Config URL: file:/var/jboss-5.0.0.Beta4/server/default/conf/
| 05:46:20,620 INFO [ServerImpl] Server Library URL: file:/var/jboss-5.0.0.Beta4/server/default/lib/
| 05:46:20,620 INFO [ServerImpl] Root Deployment Filename: jboss-service.xml
| 05:46:21,292 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/var/jboss-5.0.0.Beta4/server/default/conf/bootstrap-beans.xml
| 05:46:22,688 INFO [ProfileImpl] Using profile root:/var/jboss-5.0.0.Beta4/server/default
| 05:46:23,722 INFO [ServerInfo] Java version: 1.5.0_16,Sun Microsystems Inc.
| 05:46:23,723 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_16-b02,Sun Microsystems Inc.
| 05:46:23,723 INFO [ServerInfo] OS-System: Linux 2.6.18-92.1.1.el5.028stab057.2ent,i386
| 05:46:23,812 INFO [JMXKernel] Legacy JMX core initialized
| 05:46:33,616 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
| 05:46:35,658 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
| 05:46:35,658 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
| 05:46:36,933 INFO [TransactionManagerService] Starting recovery manager
| 05:46:37,492 INFO [TransactionManagerService] Recovery manager started
| 05:46:37,492 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
| 05:47:02,356 INFO [PersistenceUnitParsingDeployer] Found persistence units [org.jboss.ejb3.metadata.jpa.spec.PersistenceUnitMetaData@1710374{name=iBlue-ejbPU}]
| 05:47:02,959 WARN [CollectionPropertyHandler] ClassInfo.getDeclaredConstructor(null) didn't work for org.jboss.metadata.ejb.spec.InterceptorClassesMetaData, found the default ctor in ClassInfo.getDeclaredConstructors()
| 05:47:05,520 INFO [AspectDeployer] Deploying xml into org.jboss.aop.AspectManager@25a311 for BaseClassLoader@18e95d9{vfsfile:/var/jboss-5.0.0.Beta4/server/default/deploy/ejb3-interceptors-aop.xml}
| 05:47:06,327 WARN [ReferenceMetaDataResolverDeployer] Unresolved references exist in JBossWebMetaData: [TemperatureFacadeLocal/ejb-local-ref/TemperatureFacade available: []]
| 05:47:08,635 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.5.0_16/jre/lib/i386/server:/usr/java/jdk1.5.0_16/jre/lib/i386:/usr/java/jdk1.5.0_16/jre/../lib/i386
| 05:47:08,920 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
| 05:47:08,921 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
| 05:47:08,921 INFO [Catalina] Initialization processed in 1019 ms
| 05:47:08,921 INFO [StandardService] Starting service jboss.web
| 05:47:08,925 INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.0.CR12
| 05:47:09,138 INFO [Catalina] Server startup in 216 ms
| 05:47:09,389 INFO [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
| 05:47:10,342 INFO [NativeServerConfig] JBoss Web Services - Native
| 05:47:10,342 INFO [NativeServerConfig] jbossws-native-2.0.3.GA (build=200801241020)
| 05:47:12,941 INFO [TomcatDeployment] deploy, ctxPath=/jbossws, vfsUrl=jbossws.sar/jbossws-context.war
| 05:47:14,299 INFO [TomcatDeployment] deploy, ctxPath=/, vfsUrl=ROOT.war
| 05:47:14,620 INFO [RARDeployment] Required license terms exist, view vfsfile:/var/jboss-5.0.0.Beta4/server/default/deploy/mail-ra.rar/META-INF/ra.xml
| 05:47:14,956 INFO [RARDeployment] Required license terms exist, view vfsfile:/var/jboss-5.0.0.Beta4/server/default/deploy/jms-ra.rar/META-INF/ra.xml
| 05:47:14,965 INFO [RARDeployment] Required license terms exist, view vfsfile:/var/jboss-5.0.0.Beta4/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
| 05:47:15,175 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
| 05:47:15,205 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
| 05:47:15,213 INFO [RAMJobStore] RAMJobStore initialized.
| 05:47:15,213 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
| 05:47:15,213 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
| 05:47:15,214 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
| 05:47:15,480 INFO [TomcatDeployment] deploy, ctxPath=/web-console, vfsUrl=management/console-mgr.sar/web-console.war
| 05:47:16,785 INFO [MailService] Mail Service bound to java:/Mail
| 05:47:16,871 INFO [TomcatDeployment] deploy, ctxPath=/invoker, vfsUrl=http-invoker.sar/invoker.war
| 05:47:17,108 INFO [RARDeployment] Required license terms exist, view vfsfile:/var/jboss-5.0.0.Beta4/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
| 05:47:17,239 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=iBlue' to JNDI name 'java:iBlue'
| 05:47:17,289 INFO [RARDeployment] Required license terms exist, view vfsfile:/var/jboss-5.0.0.Beta4/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
| 05:47:18,403 INFO [MCKernelAbstraction] installing bean: persistence.units:ear=iBlue.ear,jar=iBlue-ejb.jar,unitName=iBlue-ejbPU with dependencies:
| 05:47:18,403 INFO [MCKernelAbstraction] and demands:
| 05:47:18,404 INFO [MCKernelAbstraction] jboss.jca:name=iBlue,service=DataSourceBinding
| 05:47:18,404 INFO [MCKernelAbstraction] and supplies:
| 05:47:18,553 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.units:ear=iBlue.ear,jar=iBlue-ejb.jar,unitName=iBlue-ejbPU
| 05:47:18,600 INFO [Version] Hibernate Annotations 3.3.1.Beta1
| 05:47:18,618 INFO [Environment] Hibernate 3.2.4.sp1
| 05:47:18,625 INFO [Environment] hibernate.properties not found
| 05:47:18,627 INFO [Environment] Bytecode provider name : javassist
| 05:47:18,637 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
| 05:47:18,741 INFO [Version] Hibernate EntityManager 3.3.2.Beta3
| 05:47:18,837 WARN [Ejb3Configuration] Persistence provider caller does not implement the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null.
| 05:47:19,003 INFO [AnnotationBinder] Binding entity from annotated class: com.TemperatureEntityBeans.Temperature
| 05:47:19,030 INFO [QueryBinder] Binding Named query: Temperature.findByLoggerid => SELECT t FROM Temperature t WHERE t.loggerid = :loggerid
| 05:47:19,031 INFO [QueryBinder] Binding Named query: Temperature.findByDate => SELECT t FROM Temperature t WHERE t.date = :date
| 05:47:19,031 INFO [QueryBinder] Binding Named query: Temperature.findByTime => SELECT t FROM Temperature t WHERE t.time = :time
| 05:47:19,086 INFO [EntityBinder] Bind entity com.TemperatureEntityBeans.Temperature on table temperature
| 05:47:19,169 INFO [Version] Hibernate Validator 3.0.0.GA
| 05:47:19,366 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
| 05:47:19,371 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
| 05:47:20,253 INFO [SettingsFactory] RDBMS: MySQL, version: 5.0.45
| 05:47:20,254 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.5 ( Revision: ${svn.Revision} )
| 05:47:20,283 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
| 05:47:20,288 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
| 05:47:20,291 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
| 05:47:20,298 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
| 05:47:20,298 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
| 05:47:20,298 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
| 05:47:20,298 INFO [SettingsFactory] JDBC batch size: 15
| 05:47:20,298 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
| 05:47:20,299 INFO [SettingsFactory] Scrollable result sets: enabled
| 05:47:20,299 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
| 05:47:20,299 INFO [SettingsFactory] Connection release mode: auto
| 05:47:20,300 INFO [SettingsFactory] Maximum outer join fetch depth: 2
| 05:47:20,300 INFO [SettingsFactory] Default batch fetch size: 1
| 05:47:20,300 INFO [SettingsFactory] Generate SQL with comments: disabled
| 05:47:20,300 INFO [SettingsFactory] Order SQL updates by primary key: disabled
| 05:47:20,301 INFO [SettingsFactory] Order SQL inserts for batching: disabled
| 05:47:20,301 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
| 05:47:20,304 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
| 05:47:20,304 INFO [SettingsFactory] Query language substitutions: {}
| 05:47:20,304 INFO [SettingsFactory] JPA-QL strict compliance: enabled
| 05:47:20,304 INFO [SettingsFactory] Second-level cache: enabled
| 05:47:20,304 INFO [SettingsFactory] Query cache: disabled
| 05:47:20,304 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
| 05:47:20,306 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
| 05:47:20,306 INFO [SettingsFactory] Cache region prefix: iBlue_ear,iBlue-ejb_jar,iBlue-ejbPU
| 05:47:20,306 INFO [SettingsFactory] Structured second-level cache entries: disabled
| 05:47:20,312 INFO [SettingsFactory] Echoing all SQL to stdout
| 05:47:20,312 INFO [SettingsFactory] Statistics: disabled
| 05:47:20,312 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
| 05:47:20,318 INFO [SettingsFactory] Default entity-mode: pojo
| 05:47:20,318 INFO [SettingsFactory] Named query checking : enabled
| 05:47:20,362 INFO [SessionFactoryImpl] building session factory
| 05:47:20,679 INFO [SessionFactoryObjectFactory] Factory name: persistence.units:ear=iBlue.ear,jar=iBlue-ejb.jar,unitName=iBlue-ejbPU
| 05:47:20,681 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 05:47:20,687 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.units:ear=iBlue.ear,jar=iBlue-ejb.jar,unitName=iBlue-ejbPU
| 05:47:20,687 WARN [SessionFactoryObjectFactory] InitialContext did not implement EventContext
| 05:47:20,716 INFO [SchemaUpdate] Running hbm2ddl schema update
| 05:47:20,716 INFO [SchemaUpdate] fetching database metadata
| 05:47:20,722 INFO [SchemaUpdate] updating schema
| 05:47:20,810 INFO [TableMetadata] table found: iBlue.temperature
| 05:47:20,810 INFO [TableMetadata] columns: [temp_logger, text, loggerid, time, date]
| 05:47:20,810 INFO [TableMetadata] foreign keys: []
| 05:47:20,810 INFO [TableMetadata] indexes: []
| 05:47:20,811 INFO [SchemaUpdate] schema update complete
| 05:47:20,813 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 05:47:21,197 INFO [MCKernelAbstraction] installing bean: jboss.j2ee:ear=iBlue.ear,jar=iBlue-ejb.jar,name=TemperatureFacade,service=EJB3 with dependencies:
| 05:47:21,197 INFO [MCKernelAbstraction] and demands:
| 05:47:21,197 INFO [MCKernelAbstraction] persistence.units:ear=iBlue.ear,jar=iBlue-ejb.jar,unitName=iBlue-ejbPU
| 05:47:21,197 INFO [MCKernelAbstraction] jboss.ejb:service=EJBTimerService
| 05:47:21,197 INFO [MCKernelAbstraction] and supplies:
| 05:47:21,197 INFO [MCKernelAbstraction] Class:com.TemperatureSessionBeans.TemperatureFacadeLocal
| 05:47:21,291 INFO [TomcatDeployment] deploy, ctxPath=/iBlue-war, vfsUrl=iBlue.ear/iBlue-war.war
| 05:47:21,541 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console, vfsUrl=jmx-console.war
| 05:47:21,724 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
|
| *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
|
| jboss.j2ee:ear=iBlue.ear,jar=iBlue-ejb.jar,name=TemperatureFacade,service=EJB3
| -> <UNKNOWN>{Described:** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService **}
|
|
| *** CONTEXTS IN ERROR: Name -> Error
|
| <UNKNOWN> -> ** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService **
|
|
| 05:47:21,834 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
| 05:47:21,955 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
| 05:47:21,964 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.Beta4 (build: SVNTag=JBoss_5_0_0_Beta4 date=200802091115)] Started in 1m:1s:342ms
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185959#4185959
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185959
15 years, 7 months
[Management, JMX/JBoss] - Re: Can not load MBeanServerBuilderImpl
by zhamdi
I have the same problem under fedora 9 and JBoss developer studio 1.1 with its included JBoss as
anonymous wrote : [Server] Release ID: JBoss [EAP] 4.3.0.GA_CP01 (build: SVNTag=JBPAPP_4_3_0_GA_CP01 date=200804211657) :
I was runnung all under windows and everything was fine, now I installed a linux fedora 9 to be nearer to the deployement envirenment, everything is configured correctly but this error raises on server startup (under eclipse).
| 09:41:34,357 INFO [DerbyDatabase] starting derby jdbc:derby:/home/zied/Programs/JBoss/jboss-eap/jboss-as/server/default/data/derby/default;create=true
| 09:41:34,771 WARN [ServiceController] Problem starting service jboss:service=Derby
| java.lang.ExceptionInInitializerError
| at java.lang.Class.forName0(Native Method)
| at java.lang.Class.forName(Class.java:264)
| at org.jboss.jdbc.DerbyDatabase.getConnection(DerbyDatabase.java:222)
| at org.jboss.jdbc.DerbyDatabase.startService(DerbyDatabase.java:189)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| at java.lang.reflect.Method.invoke(Method.java:616)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| at java.lang.reflect.Method.invoke(Method.java:616)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| at java.lang.reflect.Method.invoke(Method.java:616)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy42.start(Unknown Source)
| at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:197)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| at java.lang.reflect.Method.invoke(Method.java:616)
|
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy9.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| at java.lang.reflect.Method.invoke(Method.java:616)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| at java.lang.reflect.Method.invoke(Method.java:616)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| at java.lang.reflect.Method.invoke(Method.java:616)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:636)
| Caused by: javax.management.JMRuntimeException: Failed to load MBeanServerBuilder class org.jboss.mx.server.MBeanServerBuilderImpl: java.lang.ClassNotFoundException: org/jboss/mx/server/MBeanServerBuilderImpl
| at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:498)
| at javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:534)
| at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:314)
| at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:229)
| at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:190)
| at sun.management.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:320)
| at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:521)
| at org.apache.derby.impl.services.jmx.JMXManagementService$3.run(Unknown Source)
| at org.apache.derby.impl.services.jmx.JMXManagementService$3.run(Unknown Source)
| at java.security.AccessController.doPrivileged(Native Method)
| at org.apache.derby.impl.services.jmx.JMXManagementService.findServer(Unknown Source)
| at org.apache.derby.impl.services.jmx.JMXManagementService.boot(Unknown Source)
| at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
| at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
| at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown Source)
| at org.apache.derby.iapi.services.monitor.Monitor.startSystemModule(Unknown Source)
| at org.apache.derby.impl.services.monitor.BaseMonitor.runWithState(Unknown Source)
| at org.apache.derby.impl.services.monitor.FileMonitor.<init>(Unknown Source)
| at org.apache.derby.iapi.services.monitor.Monitor.startMonitor(Unknown Source)
| at org.apache.derby.iapi.jdbc.JDBCBoot.boot(Unknown Source)
| at org.apache.derby.jdbc.EmbeddedDriver.boot(Unknown Source)
| at org.apache.derby.jdbc.EmbeddedDriver.<clinit>(Unknown Source)
| ... 110 more
| Caused by: java.lang.ClassNotFoundException: org/jboss/mx/server/MBeanServerBuilderImpl
| at java.lang.Class.forName0(Native Method)
| at java.lang.Class.forName(Class.java:186)
| at javax.management.MBeanServerFactory.loadBuilderClass(MBeanServerFactory.java:445)
| at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:483)
| ... 131 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185958#4185958
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185958
15 years, 7 months
[Javassist user questions] - Strange Exception: Register x contains wrong type
by kobevaliant
Hi
I think this is a bug of javassist.
| ClassPool pool = new ClassPool(true);
| CtClass ctc = pool.makeClass("my.Clazz");
| StringBuilder sb = new StringBuilder("public void test() {");
| for (int i = 0; i < 1000; i++) {
|
| sb.append("for(int i=0; i<10; i++) {}"); // line 1
| // sb.append("for(int i=0; i<10; i++) {int j=i;}"); // line 2
|
| }
|
| sb.append("}");
| ctc.addMethod(CtNewMethod.make(sb.toString(), ctc));
| ctc.toClass().newInstance();
|
the code above will throw an exception:
Exception in thread "main" java.lang.VerifyError: (class: my/Clazz, method: test signature: ()V) Register 0 contains wrong type
But if you comment the line 1 and uncomment the line 2, there will no exception at all.
It realy confuses me. Anyone who know the reason or workaround please tell me, this problem block the project I'm working onãÂÂ
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185953#4185953
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185953
15 years, 7 months