Bug 134914 - java.lang.NumberFormatException: null
java.lang.NumberFormatException: null
Status: NEW
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9
6.x
Sun Windows XP
: P4 (vote)
: TBD
Assigned To: Nitya Doraisamy
issues@serverplugins
:
: 134913 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-05-13 06:47 UTC by dpkumar
Modified: 2010-04-28 18:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dpkumar 2008-05-13 06:47:30 UTC
NB Build:NetBeans IDE Build 200805030003
Appeserver Build
:glassfish-installer-v2.1-b31-windows(https://glassfish.dev.java.net/public/alldownloads.html#Promoted_binary_builds)
JDK Build :jdk1.5.0_13

Steps to reproduce:

1.Install NB and GF2.1
2.Start IDE and register GF2.1
3.Start GF2.1
4.Create web application (webapplication1)
5.Right click on the web application select New/Other/GF/JDBC Resource
6.Select create new JDBC Connection Pool select Next>Next>Next>Next>Finish.
7.Right click on the web application select Build/Undeploy & Deploy
8.Right click on the deployed resource select Properties and set MaxConnectionUsageCount value to
null(server/GF2.1/Resources/JDBC/Connection pool)

On setting MaxConnectionUsageCount value to null exception occured:

CORE5009: Error in resource re-deploy.
java.lang.NumberFormatException: null
        at java.lang.Integer.parseInt(Integer.java:415)
        at java.lang.Integer.parseInt(Integer.java:497)
        at com.sun.enterprise.resource.AbstractResourcePool.setAdvancedPoolConfiguration(AbstractResourcePool.java:1699)
        at com.sun.enterprise.resource.AbstractResourcePool.reconfigPoolProperties(AbstractResourcePool.java:1628)
        at com.sun.enterprise.resource.PoolManagerImpl.reconfigPoolProperties(PoolManagerImpl.java:659)
        at
com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.updateMCFAndPoolAttributes(ConnectorConnectionPoolAdminServiceImpl.java:805)
        at
com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.reconfigureConnectorConnectionPool(ConnectorConnectionPoolAdminServiceImpl.java:724)
        at com.sun.enterprise.connectors.ConnectorRuntime.reconfigureConnectorConnectionPool(ConnectorRuntime.java:646)
        at com.sun.enterprise.resource.JdbcConnectionPoolDeployer.redeployResource(JdbcConnectionPoolDeployer.java:218)
        at com.sun.enterprise.server.ResourceManager.resourceRedeployed(ResourceManager.java:170)
        at
com.sun.enterprise.admin.event.AdminEventMulticaster.invokeResourceDeployEventListener(AdminEventMulticaster.java:1055)
        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.event.PEEventDispatcher.dispatch(PEEventDispatcher.java:58)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:207)
        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.setAttribute(Unknown Source)
        at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.setAttribute(SunoneInterceptor.java:329)
        at com.sun.enterprise.interceptor.DynamicInterceptor.setAttribute(DynamicInterceptor.java:212)
        at com.sun.enterprise.management.support.DelegateToMBeanDelegate.setAttribute(DelegateToMBeanDelegate.java:149)
        at com.sun.enterprise.management.support.MappedDelegate.setAttribute(MappedDelegate.java:264)
        at com.sun.enterprise.management.support.AMXImplBase.setAttributeInternal(AMXImplBase.java:1342)
        at com.sun.enterprise.management.support.AMXImplBase.setAttribute(AMXImplBase.java:1280)
        at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.setAttribute(DynamicMetaDataImpl.java:180)
        at com.sun.jmx.mbeanserver.MetaDataImpl.setAttribute(MetaDataImpl.java:206)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.setAttribute(DefaultMBeanServerInterceptor.java:737)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.setAttribute(JmxMBeanServer.java:722)
        at com.sun.enterprise.interceptor.DynamicInterceptor.setAttribute(DynamicInterceptor.java:216)
        at com.sun.enterprise.admin.jmx.remote.server.callers.SetAttributeCaller.call(SetAttributeCaller.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:754)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
        at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
        at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:196)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:304)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
        at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
        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.DefaultReadTask.doTask(DefaultReadTask.java:263)
        at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
        at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
        at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)
com.sun.enterprise.admin.event.AdminEventListenerException: null
        at com.sun.enterprise.server.ResourceManager.resourceRedeployed(ResourceManager.java:179)
        at
com.sun.enterprise.admin.event.AdminEventMulticaster.invokeResourceDeployEventListener(AdminEventMulticaster.java:1055)
        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.event.PEEventDispatcher.dispatch(PEEventDispatcher.java:58)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:207)
        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.setAttribute(Unknown Source)
        at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.setAttribute(SunoneInterceptor.java:329)
        at com.sun.enterprise.interceptor.DynamicInterceptor.setAttribute(DynamicInterceptor.java:212)
        at com.sun.enterprise.management.support.DelegateToMBeanDelegate.setAttribute(DelegateToMBeanDelegate.java:149)
        at com.sun.enterprise.management.support.MappedDelegate.setAttribute(MappedDelegate.java:264)
        at com.sun.enterprise.management.support.AMXImplBase.setAttributeInternal(AMXImplBase.java:1342)
        at com.sun.enterprise.management.support.AMXImplBase.setAttribute(AMXImplBase.java:1280)
        at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.setAttribute(DynamicMetaDataImpl.java:180)
        at com.sun.jmx.mbeanserver.MetaDataImpl.setAttribute(MetaDataImpl.java:206)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.setAttribute(DefaultMBeanServerInterceptor.java:737)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.setAttribute(JmxMBeanServer.java:722)
        at com.sun.enterprise.interceptor.DynamicInterceptor.setAttribute(DynamicInterceptor.java:216)
        at com.sun.enterprise.admin.jmx.remote.server.callers.SetAttributeCaller.call(SetAttributeCaller.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:754)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
        at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
        at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:196)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:304)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
        at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
        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.DefaultReadTask.doTask(DefaultReadTask.java:263)
        at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
        at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
        at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)
ADM5603:Event listener error [null]
Comment 1 Nitya Doraisamy 2008-07-15 05:15:59 UTC
Cannot reproduce. On trying to set a null value to MaxConnectionUsageCount,
there is a validation error in server log and the value defaults to the previous valid value.

Validation error: [ADMVAL1043: Attribute(max-connection-usage-count=null) : null Invalid integer]

The plugin should extend it's property editor to check for numeric input, so as to provide an error msg to the user.
Comment 2 Nitya Doraisamy 2008-07-15 05:16:30 UTC
*** Issue 134913 has been marked as a duplicate of this issue. ***
Comment 3 dpkumar 2008-07-30 11:46:01 UTC
NB Build:NetBeans IDE Build 200807291401
GF2.1:glassfish-installer-v2.1-b43
JDK:jdk1.5.0_13
OS :Microsoft Windows XP [Version 5.1.2600]

I am still able to reproduce this issue on the latest builds
Initial value of the MaxConnectionUsageCount is "ZERO". Just remove the value and you will see the
java.lang.NumberFormatException: null.
Comment 4 Nitya Doraisamy 2008-12-12 19:34:28 UTC
I am still unable to reproduce the NumberFormatException, all I see is an error message in the server.log,
Validation error: [ADMVAL1043: Attribute(max-connection-usage-count=null) : null Invalid integer]

But it is a good idea for the propery editor to validate that the input matches the expected data type. Will fix.
Comment 5 Vince Kraemer 2009-09-16 23:55:37 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 6 Nitya Doraisamy 2009-09-26 17:51:51 UTC
Will fix for 6.8
Comment 7 Vince Kraemer 2010-04-28 18:30:20 UTC
these properties are not available for editing in the GF 3 server.  v2.1 doesn't ship with 6.9. lowering priority


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