Bug 128664 - Got exception on deleting deployed JMS resource from server
Got exception on deleting deployed JMS resource from server
Status: NEW
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9
6.x
Sun Solaris
: P4 (vote)
: 6.x
Assigned To: Vince Kraemer
issues@serverplugins
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-02-28 08:24 UTC by dpkumar
Modified: 2010-03-15 15:30 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
:


Attachments
successful undeploy of JMS resource - server.log (10.59 KB, text/plain)
2008-02-29 09:17 UTC, Nitya Doraisamy
Details
Admin GUI server log out put (40.08 KB, text/plain)
2008-03-05 09:45 UTC, dpkumar
Details
IDE server log out put (22.63 KB, text/plain)
2008-03-05 09:47 UTC, dpkumar
Details
IDE server log out put (22.63 KB, text/plain)
2008-03-05 09:49 UTC, dpkumar
Details
sun-resource.xml file for JMS resource (3.30 KB, text/plain)
2008-03-07 07:05 UTC, dpkumar
Details
New IDE server out out (25.72 KB, text/plain)
2008-03-07 07:08 UTC, dpkumar
Details
New Admin GUI server log out put (67.70 KB, text/plain)
2008-03-07 07:10 UTC, dpkumar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dpkumar 2008-02-28 08:24:24 UTC
Platform:Sun solaris sparc
Netbeans Build:IDE 6.1(200802040003)
Appserver Build :SJSAS 9.1.1- EE (14-Feb-2008).
JDK Build :jdk1.6

I ran into this exception while trying second time.

Steps to reproduce:
1.Install NB6.1 and start the IDE
2.Install Sun Java System Application Server 9.1.1.
3.Create a domain as part of this test using CLI-In my case i created domain(create-domain --user admin --adminport 9000
domain2 ).
3.Select Tools/Server from IDE menu.
4.In the dialog window "Add server Instances" select GlassFishV2
5.Give platform location for the SJSAS 9.1.1 and register local domain and select the created domain in the domain
folder selection.(In my case i selected domain2) and start the server.
7.Create a web application.
8.Right click on the project select New/Others/GlassFish/JMS Resource and add resource of type admin object(Queue and
Topic).
9.Do the above step to add resource of type Connector resource(QueueConnectionFactory,TopicConnectionFactory and
ConnectionFactory).
10.Right click on the project and select build/ undeploy & deploy application.
11.verify in Server/GlassFish/Resources/JMS Resources/Connection Factories and Destination resource
that these resources are added.
12.Right click on the deployed application and select Disable/Enable.
13 Delete Action on the deployed resources.

On deleting the deployed resourec from server got exception:

See the below server log out put

deployed with moduleid = WebApplication96
ADM1041:Sent the event to instance:[ModuleDeployEvent -- disable web/WebApplication96]
ADM1041:Sent the event to instance:[ModuleDeployEvent -- enable web/WebApplication96]
ADM1041:Sent the event to instance:[ResourceDeployEvent -- reference-removed null/jms/myQueueConnectionFactory]
CORE5006: Resource UnDeployed: [cr:jms/myQueueConnectionFactory].
ADM1041:Sent the event to instance:[ResourceDeployEvent -- reference-removed null/jms/myTopicConnectionFactory]
CORE5007: Error in resource un-deploy.
java.lang.NullPointerException
        at com.sun.enterprise.server.ResourceDeployerFactory.getResourceDeployer(ResourceDeployerFactory.java:149)
        at com.sun.enterprise.server.ResourceDeployerFactory.getResource(ResourceDeployerFactory.java:213)
        at com.sun.enterprise.server.ResourceManager.resourceUndeployed(ResourceManager.java:141)
        at com.sun.enterprise.server.ResourceManager.resourceReferenceRemoved(ResourceManager.java:238)
        at
com.sun.enterprise.admin.event.AdminEventMulticaster.invokeResourceDeployEventListener(AdminEventMulticaster.java:1063)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.handleResourceDeployEvent(AdminEventMulticaster.java:1038)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:473)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:182)
        at com.sun.enterprise.admin.server.core.AdminNotificationHelper.sendNotification(AdminNotificationHelper.java:141)
        at com.sun.enterprise.admin.server.core.ConfigInterceptor.postInvoke(ConfigInterceptor.java:117)
        at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:110)
        at $Proxy1.invoke(Unknown Source)
        at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
        at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
        at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:69)
        at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:155)
        at
com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:122)
        at
com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:193)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
        at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:276)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
        at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:309)
        at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:192)
        at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:404)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
        at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:75)
        at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:181)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:177)
        at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:196)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
        at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:75)
        at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:181)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:177)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
        at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
        at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
        at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
        at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
        at com.sun.enterprise.web.connector.grizzly.ssl.SSLReadTask.process(SSLReadTask.java:440)
        at com.sun.enterprise.web.connector.grizzly.ssl.SSLReadTask.doTask(SSLReadTask.java:228)
        at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
        at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
Comment 1 Vince Kraemer 2008-02-28 15:41:53 UTC
Note: if the resource is "gone" from the IDE view and it is gone from the server, we can probably lower this to p3.
Comment 2 Nitya Doraisamy 2008-02-29 09:17:59 UTC
Created attachment 57513 [details]
successful undeploy of JMS resource - server.log
Comment 3 Nitya Doraisamy 2008-02-29 09:18:43 UTC
Cannot reproduce. Tested with Sun Java System Application Server 9.1.1 (build b23-fcs) 

See server.log attached for all the registration and undeploy messages.
Comment 4 Nitya Doraisamy 2008-02-29 17:48:34 UTC
Forgot to mention, Could you retry with the latest server build.
Comment 5 dpkumar 2008-03-05 04:24:22 UTC
When you delete the resources, exception will generate and the resource is deleted
And the deleted resource won't appear in the resource tree  in the IDE as well as in Admin GUI.

Today i will try with the latest server build.
Comment 6 dpkumar 2008-03-05 09:45:37 UTC
Created attachment 57787 [details]
Admin GUI server log out put
Comment 7 dpkumar 2008-03-05 09:47:27 UTC
Created attachment 57788 [details]
IDE server log out put
Comment 8 dpkumar 2008-03-05 09:49:05 UTC
Created attachment 57789 [details]
IDE server log out put
Comment 9 dpkumar 2008-03-05 09:58:26 UTC
Platfrom:Sun Solaris Sprac
NetBeans Build:IDE(200803021202)
Appserver Build:SJSAS 9.1.1-EE(04 Mar 2008)

Still I could reproduce this issue from NetBeans IDE as well as from Admin GUI console.

Note:The deleted resource won't appear in the above both cases.
Comment 10 Nitya Doraisamy 2008-03-06 20:35:42 UTC
Lowering to P3 as the resource is successfully deleted though there is an exception in the server.log
Also, last comment indicates that the error happens when JMS resources are deleted from either the IDE or admin console.
Attempting to reproduce this. 

Kumar, could you attach the sun-resources.xml that contains these resources to help debug this.
Comment 11 Nitya Doraisamy 2008-03-06 20:46:53 UTC
Also, the exceptions are different for IDE delete vs Admin Gui delete, though they both seem to be failing for the same
resource - jms/myConnectionFActory
Comment 12 dpkumar 2008-03-07 06:13:23 UTC
I deleted that project.Today again I am trying.I will add the sun-resources.xml ones I complete testing.
Comment 13 dpkumar 2008-03-07 07:05:16 UTC
Created attachment 57943 [details]
sun-resource.xml file for JMS resource
Comment 14 dpkumar 2008-03-07 07:08:46 UTC
Created attachment 57944 [details]
New IDE server out out
Comment 15 dpkumar 2008-03-07 07:10:12 UTC
Created attachment 57945 [details]
New Admin GUI server log out put
Comment 16 Nitya Doraisamy 2008-03-20 18:47:49 UTC
Have been able to reproduce only once and cannot do it again. Investigating still.
Kumar, 
Can you reproduce this by using only the admin-gui for creating the deleting the resources?

Comment 17 dpkumar 2008-03-24 11:39:05 UTC
In the second attempt,I was able to reproduce this issue from admin GUI. I got exception on deleting resource
myTopicConnectionFactory.

NOTE:Just I tried to reproduce this issue from NB IDE and I got exception on deleting resource myConnectionFactory in
the second attempt.
Comment 18 Vince Kraemer 2008-04-26 05:11:22 UTC
this got missed
Comment 19 Nitya Doraisamy 2008-12-12 18:49:50 UTC
This seems to a server issue rather than related to the plugin's actions. I could not reproduce consistently, investigating.
Comment 20 Vince Kraemer 2009-09-16 23:55:41 UTC
Assigned engineer: please correct the tm value.  nb 6.7 has shipped, so a tm of
6.7  is invalid at this point
Comment 21 Vince Kraemer 2010-03-15 15:28:51 UTC
it looks like this issue is really on the server side.... I opened https://glassfish.dev.java.net/issues/show_bug.cgi?id=11680 to track it.

Lowering the priority on this issue, since it is really a tracking bug, not a 'direct' plugin issue


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo