[JBoss Tools] - TPTP profiling with JBoss Tools 3.2.0.Beta1 : " Fetching children of data collector" . java.lang.NullPointerException
by Damien Gombault
desintegr [http://community.jboss.org/people/desintegr] created the discussion
"TPTP profiling with JBoss Tools 3.2.0.Beta1 : "Fetching children of data collector". java.lang.NullPointerException"
To view the discussion, visit: http://community.jboss.org/message/567156#567156
--------------------------------------------------------------
Hi.
I want to profile a web application running on JBoss with Eclipse and TPTP.
I start the server in profiling mode, a new Profile On Server window is displayed but a Problem occured :
An internal error occurred during: "Fetching children of data collector". java.lang.NullPointerException
Then I can't configure the Profile Settings and must close the Profile On Server window.
Full log :
java.lang.NullPointerException
at org.eclipse.tptp.trace.ui.internal.launcher.core.DataCollectorTreeContentProvider$DeferredDataCollectorAdapter.fetchDeferredChildren(DataCollectorTreeContentProvider.java:322)
at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:235)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
org.eclipse.core.runtime.CoreException: Profile request is cancelled by user
at org.eclipse.tptp.platform.profile.server.wst.internal.TPTPServerProfilerDelegate.process(TPTPServerProfilerDelegate.java:196)
at org.eclipse.jst.server.core.internal.ServerProfiler.process(ServerProfiler.java:81)
at org.eclipse.jst.server.core.internal.JavaServerPlugin.configureProfiling(JavaServerPlugin.java:374)
at org.eclipse.jst.server.core.ServerProfilerDelegate.configureProfiling(ServerProfilerDelegate.java:60)
at org.jboss.ide.eclipse.as.core.server.internal.launch.AbstractJBossLaunchConfigType.actualLaunch(AbstractJBossLaunchConfigType.java:124)
at org.jboss.ide.eclipse.as.core.server.internal.launch.JBossServerStartupLaunchConfiguration.superActualLaunch(JBossServerStartupLaunchConfiguration.java:91)
at org.jboss.ide.eclipse.as.core.server.internal.launch.LocalJBossServerStartupLaunchUtil.actualLaunch(LocalJBossServerStartupLaunchUtil.java:318)
at org.jboss.ide.eclipse.as.core.server.internal.launch.JBossServerStartupLaunchConfiguration.actualLaunch(JBossServerStartupLaunchConfiguration.java:86)
at org.jboss.ide.eclipse.as.core.server.internal.launch.AbstractJBossLaunchConfigType.launch(AbstractJBossLaunchConfigType.java:70)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:702)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:695)
at org.eclipse.wst.server.core.internal.Server.startImpl2(Server.java:3209)
at org.eclipse.wst.server.core.internal.Server.startImpl(Server.java:3159)
at org.eclipse.wst.server.core.internal.Server$StartJob.run(Server.java:359)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
org.eclipse.core.runtime.CoreException: Profile request is cancelled by user
at org.eclipse.tptp.platform.profile.server.wst.internal.TPTPServerProfilerDelegate.process(TPTPServerProfilerDelegate.java:196)
at org.eclipse.jst.server.core.internal.ServerProfiler.process(ServerProfiler.java:81)
at org.eclipse.jst.server.core.internal.JavaServerPlugin.configureProfiling(JavaServerPlugin.java:374)
at org.eclipse.jst.server.core.ServerProfilerDelegate.configureProfiling(ServerProfilerDelegate.java:60)
at org.jboss.ide.eclipse.as.core.server.internal.launch.AbstractJBossLaunchConfigType.actualLaunch(AbstractJBossLaunchConfigType.java:124)
at org.jboss.ide.eclipse.as.core.server.internal.launch.JBossServerStartupLaunchConfiguration.superActualLaunch(JBossServerStartupLaunchConfiguration.java:91)
at org.jboss.ide.eclipse.as.core.server.internal.launch.LocalJBossServerStartupLaunchUtil.actualLaunch(LocalJBossServerStartupLaunchUtil.java:318)
at org.jboss.ide.eclipse.as.core.server.internal.launch.JBossServerStartupLaunchConfiguration.actualLaunch(JBossServerStartupLaunchConfiguration.java:86)
at org.jboss.ide.eclipse.as.core.server.internal.launch.AbstractJBossLaunchConfigType.launch(AbstractJBossLaunchConfigType.java:70)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:702)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:695)
at org.eclipse.wst.server.core.internal.Server.startImpl2(Server.java:3209)
at org.eclipse.wst.server.core.internal.Server.startImpl(Server.java:3159)
at org.eclipse.wst.server.core.internal.Server$StartJob.run(Server.java:359)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Any help would be welcome. Thanks.
*OS* : Windows 7 32 bits
*JDK* : Sun 1.6.0_21 32bits
*Server* : JBoss 4.2.3.GA-jdk6
*Eclipse* : Java EE IDE for Web Developers, Helios Service Release 1, 20100917-0705
Eclipse IDE for Java EE Developers 1.3.1.20100916-1202 epp.package.jee
*TPTP from Helios repo* :
TPTP Monitoring Tools Project 4.5.0.v201005271900-7T7X-7r1WNos_vYhsZicqkbMM org.eclipse.tptp.monitoring.runtime.feature.group
TPTP Platform Project 4.7.1.v201009092123-7u84778ksjNyo-bR8YTTJlR0rtM2 org.eclipse.tptp.platform.runtime.feature.group
TPTP Profile On JBoss Server 1.2.0.v20101016-0359-H111-Beta1 org.jboss.tools.tptp.feature.feature.group
TPTP Profiling for Web applications 4.5.1.v201009092123-54078I8G3BlG8C88d8eFHEH org.eclipse.tptp.wtp.feature.group
TPTP Project Examples 4.6.0.v201005032111-7D7D-8zC4F-8G7F9I7D4F938x423 org.eclipse.tptp.examples.feature.group
TPTP Reporting with BIRT 4.5.0.v201005032111-53-78A8A09t84644E4G6G44 org.eclipse.tptp.birt.feature.group
TPTP Test Framework and Tools Project. 4.5.100.v201009101627-7H7I8Z7VtKB2vQUp2lxNp10z0BoX org.eclipse.tptp.test.runtime.feature.group
TPTP Tracing and Profiling Tools Project 4.4.1.v201009092123-7H7C27XbL_K4E9NJSSdkZmWWE7 org.eclipse.tptp.trace.runtime.feature.group
*JBoss AS Tools* : 3.2.0.Beta1
JBossAS Tools 2.2.0.v20101016-0359-H111-Beta1 org.jboss.ide.eclipse.as.feature.feature.group
TPTP Profile On JBoss Server 1.2.0.v20101016-0359-H111-Beta1 org.jboss.tools.tptp.feature.feature.group
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/567156#567156]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month
[JNDI and Naming] - Failed to retrieve Naming interface for provider http://localhost:8080/invoker/JMXInvokerServlet
by Younes Yahyaoui
Younes Yahyaoui [http://community.jboss.org/people/ingedeut] created the discussion
"Failed to retrieve Naming interface for provider http://localhost:8080/invoker/JMXInvokerServlet"
To view the discussion, visit: http://community.jboss.org/message/567275#567275
--------------------------------------------------------------
Hello,
When trying to execute the quickstart load_generator under JBoss-soa-p 4.3.0 i become the following problem:
USER=admin PASSWORD=admin
20:57:52,310 ERROR [Thread-2][JMXAttributeFinder] Error:: Problem occured by JMXAttributeFinder.query()
javax.naming.NamingException: Failed to retrieve Naming interface for provider http://localhost:8080/invoker/JMXInvokerServlet [Root exception is java.net.ProtocolException: Server redirected too many times (20)]
at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:84)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at de.dlr.ts.tdp.fcd.jmx.JMXAttributeFinder.query(JMXAttributeFinder.java:96)
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.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
at de.dlr.ts.tdp.fcd.groovy.scripts.LoadUtil.getLongAttribute(LoadUtil.groovy:38)
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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:362)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:153)
at de.dlr.ts.tdp.fcd.groovy.scripts.LoadUtil$_getEsbServiceResponseTime_closure1.doCall(LoadUtil.groovy:50)
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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:273)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
at de.dlr.ts.tdp.fcd.groovy.scripts.LoadUtil$_getEsbServiceResponseTime_closure1.doCall(LoadUtil.groovy)
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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:273)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
at de.dlr.ts.tdp.fcd.groovy.scripts.LoadUtil.getEsbServiceResponseTime(LoadUtil.groovy:52)
at de.dlr.ts.tdp.fcd.groovy.scripts.LoadUtil$getEsbServiceResponseTime.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
at de.dlr.ts.tdp.fcd.groovy.scripts.LoadReport$_generateMetrics_closure1_closure3.doCall(LoadReport.groovy:73)
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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:273)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.Closure.call(Closure.java:276)
at groovy.lang.Closure.call(Closure.java:271)
at groovy.lang.Closure.run(Closure.java:354)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ProtocolException: Server redirected too many times (20)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingContextFactory.java:133)
at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:80)
... 71 more
Caused by: java.net.ProtocolException: Server redirected too many times (20)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
at java.net.URLConnection.getHeaderFieldInt(Unknown Source)
at java.net.URLConnection.getContentLength(Unknown Source)
at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingContextFactory.java:128)
... 72 more
javax.naming.NamingException: Failed to retrieve Naming interface for provider http://localhost:8080/invoker/JMXInvokerServlet [Root exception is java.net.ProtocolException: Server redirected too many times (20)]
at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:84)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at de.dlr.ts.tdp.fcd.jmx.JMXAttributeFinder.query(JMXAttributeFinder.java:96)
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.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
at de.dlr.ts.tdp.fcd.groovy.scripts.LoadUtil.getLongAttribute(LoadUtil.groovy:38)
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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:362)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:153)
at de.dlr.ts.tdp.fcd.groovy.scripts.LoadUtil$_getEsbServiceResponseTime_closure1.doCall(LoadUtil.groovy:50)
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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:273)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
at de.dlr.ts.tdp.fcd.groovy.scripts.LoadUtil$_getEsbServiceResponseTime_closure1.doCall(LoadUtil.groovy)
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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:273)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
at de.dlr.ts.tdp.fcd.groovy.scripts.LoadUtil.getEsbServiceResponseTime(LoadUtil.groovy:52)
at de.dlr.ts.tdp.fcd.groovy.scripts.LoadUtil$getEsbServiceResponseTime.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
at de.dlr.ts.tdp.fcd.groovy.scripts.LoadReport$_generateMetrics_closure1_closure3.doCall(LoadReport.groovy:73)
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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:273)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.Closure.call(Closure.java:276)
at groovy.lang.Closure.call(Closure.java:271)
at groovy.lang.Closure.run(Closure.java:354)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ProtocolException: Server redirected too many times (20)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingContextFactory.java:133)
at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:80)
... 71 more
Caused by: java.net.ProtocolException: Server redirected too many times (20)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
at java.net.URLConnection.getHeaderFieldInt(Unknown Source)
at java.net.URLConnection.getContentLength(Unknown Source)
at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingContextFactory.java:128)
... 72 more
Exception in thread "Thread-2" java.lang.NullPointerException
at de.dlr.ts.tdp.fcd.jmx.JMXAttributeFinder.query(JMXAttributeFinder.java:103)
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.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
at de.dlr.ts.tdp.fcd.groovy.scripts.LoadUtil.getLongAttribute(LoadUtil.groovy:38)
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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:362)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:153)
at de.dlr.ts.tdp.fcd.groovy.scripts.LoadUtil$_getEsbServiceResponseTime_closure1.doCall(LoadUtil.groovy:50)
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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:273)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
at de.dlr.ts.tdp.fcd.groovy.scripts.LoadUtil$_getEsbServiceResponseTime_closure1.doCall(LoadUtil.groovy)
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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:273)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
at de.dlr.ts.tdp.fcd.groovy.scripts.LoadUtil.getEsbServiceResponseTime(LoadUtil.groovy:52)
at de.dlr.ts.tdp.fcd.groovy.scripts.LoadUtil$getEsbServiceResponseTime.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
at de.dlr.ts.tdp.fcd.groovy.scripts.LoadReport$_generateMetrics_closure1_closure3.doCall(LoadReport.groovy:73)
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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:273)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.Closure.call(Closure.java:276)
at groovy.lang.Closure.call(Closure.java:271)
at groovy.lang.Closure.run(Closure.java:354)
at java.lang.Thread.run(Unknown Source)
can someone please help me?
--regards
younes
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/567275#567275]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month
[EJB 3.0] - Prepared statement needs to be re-prepared
by Agustin Sivoplás
Agustin Sivoplás [http://community.jboss.org/people/SpiritFox26] created the discussion
"Prepared statement needs to be re-prepared"
To view the discussion, visit: http://community.jboss.org/message/566526#566526
--------------------------------------------------------------
Hi everybody, i tired to search in web pages this error, but i not found a solution. I'm recieving this error in the log but i can't identify why.
Copy the log:
ERROR [org.hibernate.event.def.AbstractFlushingEventListener] Could not synchronize database state with session
org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:253)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:54)
at uy.com.its.itil.tasks.TicketTimeUpdaterTask.execute(TicketTimeUpdaterTask.java:77)
at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
Caused by: java.sql.BatchUpdateException: Prepared statement needs to be re-prepared
at com.mysql.jdbc.ServerPreparedStatement.executeBatch(ServerPreparedStatement.java:665)
at org.jboss.resource.adapter.jdbc.WrappedStatement.executeBatch(WrappedStatement.java:774)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246)
ERROR [org.hibernate.event.def.AbstractFlushingEventListener] Could not synchronize database state with session
org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:253)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:266)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:54)
at uy.com.its.itil.tasks.TicketTimeUpdaterTask.execute(TicketTimeUpdaterTask.java:77)
at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
Caused by: java.sql.BatchUpdateException: Prepared statement needs to be re-prepared
at com.mysql.jdbc.ServerPreparedStatement.executeBatch(ServerPreparedStatement.java:665)
at org.jboss.resource.adapter.jdbc.WrappedStatement.executeBatch(WrappedStatement.java:774)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246)
Regards
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/566526#566526]
Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month
[EJB 3.0] - Security question about DatabaseServerLoginModule and SOAPFaultException
by André Simões
André Simões [http://community.jboss.org/people/asimoes] created the discussion
"Security question about DatabaseServerLoginModule and SOAPFaultException"
To view the discussion, visit: http://community.jboss.org/message/567219#567219
--------------------------------------------------------------
Hi.
I want to know how can i solve the SOAPFaultException error that jboss send when a valid user try to access to a role that do not belong to it.
Example of code exception with a C# client
@WebContext(contextRoot = "/HeComm", transportGuarantee = "NONE", authMethod = "BASIC", secureWSDLAccess = false)
@SecurityDomain("DBLogin")
@PermitAll
@RolesAllowed({"admin", "ws"})
public class WebSecurityBean implements WebSecurity{
@WebMethod
@RolesAllowed({"admin"})
public String echoForAdministrator(String str) {
checkPrincipal();
log.debug(str);
return str;
}
@WebMethod
@PermitAll
public String echoForAll(String str) {
checkPrincipal();
log.debug(str);
return str;
}
@WebMethod
@DenyAll
public String echoForNobody(String str) {
checkPrincipal();
log.debug(str);
return str;
}
@WebMethod
@RolesAllowed({"ws"})
public String echoForUser(String str) {
checkPrincipal();
log.debug(str);
return str;
}
@WebMethod
@RolesAllowed({"ManageUsers"})
public String echoForManageUsers(String str) {
checkPrincipal();
log.debug(str);
return str;
}
}
If my C# client have invalid user or password, jboss sends a message telling that.
If my C# client hava valid user a password, jboss throws an exception in methods that are not allowed to my user role.
My user have role "ws" and if i call method echoForAdministrator or echoForNobody or echoForManageUsers I got an exception that starts like this:
ERROR [SOAPFaultHelperJAXWS] SOAP request exception
javax.ejb.EJBAccessException: Caller unauthorized
at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptorv2.invoke(RoleBasedAuthorizationInterceptorv2.java:199)
. . . .
In C# i got an exception that is ok, the user are not allowed to use this method, but why jboss receive an error exception from soap?
Can I do something to eliminate this exception?
I'm using JBOSS 5.10 and authentication on oracle db.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/567219#567219]
Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month
[JNDI and Naming] - Cannot Start NamingBeanImpl on Mac OSX 10.6.4
by Mark Hansen
Mark Hansen [http://community.jboss.org/people/khookguy12] created the discussion
"Cannot Start NamingBeanImpl on Mac OSX 10.6.4"
To view the discussion, visit: http://community.jboss.org/message/567197#567197
--------------------------------------------------------------
For unit testing, I need to start NamingBeanImpl as a standalone service (without starting my container - JBoss AS 5.1.0.GA). I cannot get it to work on my Mac OSX 10.6.4.
Specifically, I'm trying to implement unit tests (TestNG) with HornetQ standalone with Spring, and have followed various tutorials.
(e.g., http://www.javacodegeeks.com/2010/06/spring-3-hornetq-21-integration.html http://www.javacodegeeks.com/2010/06/spring-3-hornetq-21-integration.html)
I cannot get org.jnp.server.NamingBeanImpl to start. Gives me:
Caused by: javax.naming.CommunicationException: Failed to connect to server /127.0.0.1:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server /127.0.0.1:1099 [Root exception is java.net.ConnectException: Connection refused]]
However, if JBoss is running in a separate JVM, then I have no problems starting NamingBeanImpl
I have this in Spring:
<bean name="namingServerImpl" class="org.jnp.server.NamingBeanImpl"
init-method="start" destroy-method="stop"/>
I've also tried a basic test like this:
NamingBeanImpl jnpServer = new NamingBeanImpl();
jnpServer.start();
Again, when JBoss is running elsewhere, it works. Otherwise, I get the "Connection Refused" exception.
JNDI is set up with jndi.properties -
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=jnp://127.0.0.1:1099
I've also tried starting the rmiregistry in a separate JVM. (Since I seem to recall that sometimes on OS X, this is necessary). Then the NamingBeanImpl hangs. Do I also need to start something else on port 1098?
Any help would be much appreciated!!
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/567197#567197]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month
[Performance Tuning] - JBoss 4.2 high thread consumption
by Jean-Pierre saintagne
Jean-Pierre saintagne [http://community.jboss.org/people/isagarran] created the discussion
"JBoss 4.2 high thread consumption"
To view the discussion, visit: http://community.jboss.org/message/566894#566894
--------------------------------------------------------------
Hello,
I'm rather new on JBoss and I saw momething that i identified as a strange behaviour for JBoss ... and perhaps a malfunction.
JBoss is consuming when i follow the activeThreadCount an increasing number of threads hence i have no longer any activity in the JVM.
For example, i have an activity in the morning then at lunch, no one is working, and the number of threads is not going down. When the activity restart, the number of threads is raising.
I checked the JDBC connection pool and i have only the minimum pool settings that is connected to Oracle (15 connections . i checked them using lsof)
I issued the "kill -3 " command and i had 1850 threads and 1600 threads were RequestProcessor threads. I've no idea of what could be these kind of threads and why they are so numberous.
Could you help me and tell me if it is a corrct behaviour and tell me also where i should dig to remove this problem is it is ?
JBoss 4.2 - AIX - JDK 6 SR7 - Only EJB inside this instance, jdbc connection pool.
regards
isagarran
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/566894#566894]
Start a new discussion in Performance Tuning at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 1 month