Current Position:Home > Unexpected exception: java.lang.reflect.InvocationTargetException Help!

Unexpected exception: java.lang.reflect.InvocationTargetException Help!

Update:11-30Source: network consolidation
What this error mean. Help! I dont understand. The program is running when I try to run it but when I try to deploy it using JNLP it wont work.
     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 com.sun.javaws.Launcher.executeApplication(Unknown Source)
     at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
     at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
     at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
     at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
     at Source)
     at Source)
Caused by: java.lang.NoClassDefFoundError: Cutout$1
     at Cutout.<init>(
     at Cutout.main(
     ... 11 more
It seems like the error is at line 45 of my code. My code starting from line 45 is this...
     capture.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                    try {
                         java.awt.Point pos = jFrame.getLocationOnScreen();
                         javax.imageio.ImageIO.write(shot.getSubimage(pos.x + 3, pos.y + 27, jFrame.getWidth() - 7, jFrame.getHeight() - 30), "jpg", new"image.jpg"));
                    } catch( ioe) {
     refresh = new javax.swing.JMenuItem("Refresh");
        refresh.addActionListener(new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
     exit = new javax.swing.JMenuItem("Exit");
        exit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
        addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
      , evt.getX(), evt.getY());
        });Is there something wrong with this one?

The Best Answer

I get the same error and i am not really sure what your explanation says... This problem below is the latest of a series of problems i started getting after i updated my BIRT version in Eclipse 3.3.1 and RAD 6.0... I troubleshooted and resolved most of them however i am not sure and it is not obvious to me what is required for this particular one below
In the problems tab there is nothing to give me a clue. The exception below appears in the Websphere console and also on the page when trying to access my jsp file normally. I am not sure what is causing it, but here it is:
JSP Processing Error
HTTP Error Code: 500
Error Message:JSPG0227E: Exception caught while translating /directory/init.jsp: java.lang.reflect.InvocationTargetException
Root JSPG0227E: Exception caught while translating /directory/init.jsp: java.lang.reflect.InvocationTargetException     at     at     at     at     at     at     at     at     at     at     at     at     at     at     at     at     at     at     at$     at$
One of the funny things here, is that this is happening only when i start websphere in debug mode!
Does anyone have any idea of what may be causing this or how we can find what's causing it or how to resolve it??
Thanks in advance
& Best Regards
Spiros P.