Null Constructor.

M

McGowan

Trying to run a java bean in JBeanStudio and it is giving me an error
saying there is something wrong with the null constructor. Can anyone
explain what this is as I dont believe my program has one (which may be
the problem.

I have a constructor:

public class ListenerBean extends JPanel implements
PropertyChangeListener, Serializable,
{
private JLabel jLabel1 = new JLabel();
......

public ListenerBean() {
try {
jbInit();
} catch (Exception e) {
e.printStackTrace();
}
}

and so on...

Any ideas?
 
H

Hendrik Maryns

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

McGowan schreef:
Trying to run a java bean in JBeanStudio and it is giving me an error
saying there is something wrong with the null constructor. Can anyone
explain what this is as I dont believe my program has one (which may be
the problem.

I have a constructor:

public class ListenerBean extends JPanel implements
PropertyChangeListener, Serializable,
{
private JLabel jLabel1 = new JLabel();
......

public ListenerBean() {
try {
jbInit();
} catch (Exception e) {
e.printStackTrace();
}
}

and so on...

Any ideas?

Stacktrace/error message please.

H.
- --
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFFbagfe+7xMGD3itQRAlb5AJ98m/8JckkXQoctD9yi5GxvWcScxwCfZ0QX
qtMY3oMEr4GDE4ipAmnx6c0=
=x4xW
-----END PGP SIGNATURE-----
 
T

Thomas Fritsch

McGowan said:
Trying to run a java bean in JBeanStudio and it is giving me an error
saying there is something wrong with the null constructor.
"something wrong" is somewhat vague. What /exactly/ does your JBeanStudio
say?
Can anyone
explain what this is as I dont believe my program has one (which may be
the problem).
A null constructor is a constructor which takes no arguments.
Java beans must have a public null constructor.
I have a constructor:

public class ListenerBean extends JPanel implements
PropertyChangeListener, Serializable,
{
private JLabel jLabel1 = new JLabel();
......
Here is your public null constructor, and for me it is OK:
 
M

McGowan

Error message is:

BeanItem.getTransferData(Dataflavor): Could not instantiate
listenerproject.ListenerBean.
There seems to be a problem in it's null-constructor.
Please contact the author(s) of listenerproject.ListenerBean.

The error isn't very helpful although the java console does the
following dump:

BeanStudio Java(TM) Console.
BeanItem.getTransferData(DafaFlavor) : could not instantiate
listenerproject.ListenerBean.
There seems to be a problem in its null-constructor.
Please contact the author(s) of listenerproject.ListenerBean.
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at listenerproject.ListenerBean.$init$(ListenerBean.java:72)
at listenerproject.ListenerBean.<init>(ListenerBean.java:48)
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 java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
net.jbeans.studio.component.beanmanagement.BeanItem.createBean(BeanItem.java:611)
at
net.jbeans.studio.component.beanmanagement.BeanItem.createBeanNode(BeanItem.java:556)
at
net.jbeans.studio.component.beanmanagement.BeanItem.getTransferData(BeanItem.java:528)
at sun.awt.dnd.SunDropTargetContextPeer.getTransferData(Unknown
Source)
at sun.awt.datatransfer.TransferableProxy.getTransferData(Unknown
Source)
at
java.awt.dnd.DropTargetContext$TransferableProxy.getTransferData(Unknown
Source)
at
net.jbeans.studio.component.project.ui.BoxPane.drop(BoxPane.java:165)
at java.awt.dnd.DropTarget.drop(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(Unknown
Source)
at sun.awt.dnd.SunDropTargetContextPeer.access$800(Unknown Source)
at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(Unknown
Source)
at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Unknown
Source)
at sun.awt.dnd.SunDropTargetEvent.dispatch(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processDropTargetEvent(Unknown
Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0"
java.awt.dnd.InvalidDnDOperationException: invalid rejectDrop()
at sun.awt.dnd.SunDropTargetContextPeer.rejectDrop(Unknown Source)
at java.awt.dnd.DropTargetContext.rejectDrop(Unknown Source)
at java.awt.dnd.DropTargetDropEvent.rejectDrop(Unknown Source)
at
net.jbeans.studio.component.project.ui.BoxPane.drop(BoxPane.java:181)
at java.awt.dnd.DropTarget.drop(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(Unknown
Source)
at sun.awt.dnd.SunDropTargetContextPeer.access$800(Unknown Source)
at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(Unknown
Source)
at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Unknown
Source)
at sun.awt.dnd.SunDropTargetEvent.dispatch(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processDropTargetEvent(Unknown
Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
BeanItem.getTransferData(DafaFlavor) : could not instantiate
listenerproject.ListenerBean.
There seems to be a problem in its null-constructor.
Please contact the author(s) of listenerproject.ListenerBean.
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at listenerproject.ListenerBean.$init$(ListenerBean.java:72)
at listenerproject.ListenerBean.<init>(ListenerBean.java:48)
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 java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
net.jbeans.studio.component.beanmanagement.BeanItem.createBean(BeanItem.java:611)
at
net.jbeans.studio.component.beanmanagement.BeanItem.createBeanNode(BeanItem.java:556)
at
net.jbeans.studio.component.beanmanagement.BeanItem.getTransferData(BeanItem.java:528)
at sun.awt.dnd.SunDropTargetContextPeer.getTransferData(Unknown
Source)
at sun.awt.datatransfer.TransferableProxy.getTransferData(Unknown
Source)
at
java.awt.dnd.DropTargetContext$TransferableProxy.getTransferData(Unknown
Source)
at
net.jbeans.studio.component.project.ui.BoxPane.drop(BoxPane.java:165)
at java.awt.dnd.DropTarget.drop(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(Unknown
Source)
at sun.awt.dnd.SunDropTargetContextPeer.access$800(Unknown Source)
at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(Unknown
Source)
at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Unknown
Source)
at sun.awt.dnd.SunDropTargetEvent.dispatch(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processDropTargetEvent(Unknown
Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0"
java.awt.dnd.InvalidDnDOperationException: invalid rejectDrop()
at sun.awt.dnd.SunDropTargetContextPeer.rejectDrop(Unknown Source)
at java.awt.dnd.DropTargetContext.rejectDrop(Unknown Source)
at java.awt.dnd.DropTargetDropEvent.rejectDrop(Unknown Source)
at
net.jbeans.studio.component.project.ui.BoxPane.drop(BoxPane.java:181)
at java.awt.dnd.DropTarget.drop(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(Unknown
Source)
at sun.awt.dnd.SunDropTargetContextPeer.access$800(Unknown Source)
at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(Unknown
Source)
at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Unknown
Source)
at sun.awt.dnd.SunDropTargetEvent.dispatch(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processDropTargetEvent(Unknown
Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
BeanItem.getTransferData(DafaFlavor) : could not instantiate
listenerproject.ListenerBean.
There seems to be a problem in its null-constructor.
Please contact the author(s) of listenerproject.ListenerBean.
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at listenerproject.ListenerBean.$init$(ListenerBean.java:72)
at listenerproject.ListenerBean.<init>(ListenerBean.java:48)
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 java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
net.jbeans.studio.component.beanmanagement.BeanItem.createBean(BeanItem.java:611)
at
net.jbeans.studio.component.beanmanagement.BeanItem.createBeanNode(BeanItem.java:556)
at
net.jbeans.studio.component.beanmanagement.BeanItem.getTransferData(BeanItem.java:528)
at sun.awt.dnd.SunDropTargetContextPeer.getTransferData(Unknown
Source)
at sun.awt.datatransfer.TransferableProxy.getTransferData(Unknown
Source)
at
java.awt.dnd.DropTargetContext$TransferableProxy.getTransferData(Unknown
Source)
at
net.jbeans.studio.component.project.ui.BoxPane.drop(BoxPane.java:165)
at java.awt.dnd.DropTarget.drop(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(Unknown
Source)
at sun.awt.dnd.SunDropTargetContextPeer.access$800(Unknown Source)
at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(Unknown
Source)
at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Unknown
Source)
at sun.awt.dnd.SunDropTargetEvent.dispatch(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processDropTargetEvent(Unknown
Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0"
java.awt.dnd.InvalidDnDOperationException: invalid rejectDrop()
at sun.awt.dnd.SunDropTargetContextPeer.rejectDrop(Unknown Source)
at java.awt.dnd.DropTargetContext.rejectDrop(Unknown Source)
at java.awt.dnd.DropTargetDropEvent.rejectDrop(Unknown Source)
at
net.jbeans.studio.component.project.ui.BoxPane.drop(BoxPane.java:181)
at java.awt.dnd.DropTarget.drop(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(Unknown
Source)
at sun.awt.dnd.SunDropTargetContextPeer.access$800(Unknown Source)
at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(Unknown
Source)
at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Unknown
Source)
at sun.awt.dnd.SunDropTargetEvent.dispatch(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processDropTargetEvent(Unknown
Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
BeanItem.getTransferData(DafaFlavor) : could not instantiate
listenerproject.ListenerBean.
There seems to be a problem in its null-constructor.
Please contact the author(s) of listenerproject.ListenerBean.
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at listenerproject.ListenerBean.$init$(ListenerBean.java:72)
at listenerproject.ListenerBean.<init>(ListenerBean.java:48)
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 java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
net.jbeans.studio.component.beanmanagement.BeanItem.createBean(BeanItem.java:611)
at
net.jbeans.studio.component.beanmanagement.BeanItem.createBeanNode(BeanItem.java:556)
at
net.jbeans.studio.component.beanmanagement.BeanItem.getTransferData(BeanItem.java:528)
at sun.awt.dnd.SunDropTargetContextPeer.getTransferData(Unknown
Source)
at sun.awt.datatransfer.TransferableProxy.getTransferData(Unknown
Source)
at
java.awt.dnd.DropTargetContext$TransferableProxy.getTransferData(Unknown
Source)
at
net.jbeans.studio.component.project.ui.BoxPane.drop(BoxPane.java:165)
at java.awt.dnd.DropTarget.drop(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(Unknown
Source)
at sun.awt.dnd.SunDropTargetContextPeer.access$800(Unknown Source)
at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(Unknown
Source)
at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Unknown
Source)
at sun.awt.dnd.SunDropTargetEvent.dispatch(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processDropTargetEvent(Unknown
Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0"
java.awt.dnd.InvalidDnDOperationException: invalid rejectDrop()
at sun.awt.dnd.SunDropTargetContextPeer.rejectDrop(Unknown Source)
at java.awt.dnd.DropTargetContext.rejectDrop(Unknown Source)
at java.awt.dnd.DropTargetDropEvent.rejectDrop(Unknown Source)
at
net.jbeans.studio.component.project.ui.BoxPane.drop(BoxPane.java:181)
at java.awt.dnd.DropTarget.drop(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(Unknown
Source)
at sun.awt.dnd.SunDropTargetContextPeer.access$800(Unknown Source)
at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(Unknown
Source)
at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Unknown
Source)
at sun.awt.dnd.SunDropTargetEvent.dispatch(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processDropTargetEvent(Unknown
Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
BeanItem.getTransferData(DafaFlavor) : could not instantiate
listenerproject.ListenerBean.
There seems to be a problem in its null-constructor.
Please contact the author(s) of listenerproject.ListenerBean.
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at listenerproject.ListenerBean.$init$(ListenerBean.java:72)
at listenerproject.ListenerBean.<init>(ListenerBean.java:48)
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 java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
net.jbeans.studio.component.beanmanagement.BeanItem.createBean(BeanItem.java:611)
at
net.jbeans.studio.component.beanmanagement.BeanItem.createBeanNode(BeanItem.java:556)
at
net.jbeans.studio.component.beanmanagement.BeanItem.getTransferData(BeanItem.java:528)
at sun.awt.dnd.SunDropTargetContextPeer.getTransferData(Unknown
Source)
at sun.awt.datatransfer.TransferableProxy.getTransferData(Unknown
Source)
at
java.awt.dnd.DropTargetContext$TransferableProxy.getTransferData(Unknown
Source)
at
net.jbeans.studio.component.project.ui.BoxPane.drop(BoxPane.java:165)
at java.awt.dnd.DropTarget.drop(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(Unknown
Source)
at sun.awt.dnd.SunDropTargetContextPeer.access$800(Unknown Source)
at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(Unknown
Source)
at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Unknown
Source)
at sun.awt.dnd.SunDropTargetEvent.dispatch(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processDropTargetEvent(Unknown
Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0"
java.awt.dnd.InvalidDnDOperationException: invalid rejectDrop()
at sun.awt.dnd.SunDropTargetContextPeer.rejectDrop(Unknown Source)
at java.awt.dnd.DropTargetContext.rejectDrop(Unknown Source)
at java.awt.dnd.DropTargetDropEvent.rejectDrop(Unknown Source)
at
net.jbeans.studio.component.project.ui.BoxPane.drop(BoxPane.java:181)
at java.awt.dnd.DropTarget.drop(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(Unknown
Source)
at sun.awt.dnd.SunDropTargetContextPeer.access$800(Unknown Source)
at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(Unknown
Source)
at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Unknown
Source)
at sun.awt.dnd.SunDropTargetEvent.dispatch(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processDropTargetEvent(Unknown
Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
 
P

Patricia Shanahan

McGowan wrote:
....
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at listenerproject.ListenerBean.$init$(ListenerBean.java:72)
at listenerproject.ListenerBean.<init>(ListenerBean.java:48)
....

I think this is the critical data. It claims that there was an
Integer.parseInt call on line 72 with the empty string as input.

Does that make sense?

Patricia
 
C

Chris Uppal

McGowan said:
at listenerproject.ListenerBean.$init$(ListenerBean.java:72)
at listenerproject.ListenerBean.<init>(ListenerBean.java:48)

What's the code around lines 72 and 48 of ListenerBean.java ?

-- chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,045
Latest member
DRCM

Latest Threads

Top