This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
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)
Note: if the resource is "gone" from the IDE view and it is gone from the server, we can probably lower this to p3.
Created attachment 57513 [details] successful undeploy of JMS resource - server.log
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.
Forgot to mention, Could you retry with the latest server build.
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.
Created attachment 57787 [details] Admin GUI server log out put
Created attachment 57788 [details] IDE server log out put
Created attachment 57789 [details] IDE server log out put
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.
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.
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
I deleted that project.Today again I am trying.I will add the sun-resources.xml ones I complete testing.
Created attachment 57943 [details] sun-resource.xml file for JMS resource
Created attachment 57944 [details] New IDE server out out
Created attachment 57945 [details] New Admin GUI server log out put
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?
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.
this got missed
This seems to a server issue rather than related to the plugin's actions. I could not reproduce consistently, investigating.
Assigned engineer: please correct the tm value. nb 6.7 has shipped, so a tm of 6.7 is invalid at this point
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