Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException:

Hi I'm new to Java and I have problems with this code:

Here is the error
Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "3 "
     at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
     at java.lang.Integer.parseInt(Integer.java:492)
     at java.lang.Integer.parseInt(Integer.java:527)
     at NewJFrame.jButton_CalculateActionPerformed(NewJFrame.java:161)
     at NewJFrame.access$100(NewJFrame.java:10)
     at NewJFrame$2.actionPerformed(NewJFrame.java:61)
 
  private void jButton_CalculateActionPerformed(java.awt.event.ActionEvent evt) {                                                  
        // TODO add your handling code here:
          int numTables = Integer.parseInt(jTextField_NumberOfTables.getText());
        int numCalc = Integer.parseInt(jTextField_NumberOfCalculations.getText());
        String operator = jComboBox_Operation.getSelectedItem().toString();
        
        String table = ""; 
        
        if (operator.equalsIgnoreCase("powers")) {
               table = CalculateTables.powersTable(numTables, numCalc);
               jLabel_TableType.setText("powers");
        }
public class CalculateTables {
    
  public static String
           powersTable(int numTables, int numCalc) {
           
           //fill temArray with powers using nested for statements
           String output = "";
       for (int i =0; i <=  numTables; i++) {
          output += i + " Tables\r\n";      
                for (int j =0; j <= numCalc; j++) {
                    output += String.format("%s ^ %s = %.2f\r\n",i,j,Math.pow(i,j)); 
                }
    output += "\r\n";
}    
 return output;    
  }
It seems to me that the Integer.parseInt (jTextField_NumberOfTables.getText ());
does not work
This piece of code, I have a text obtained from the user and I need to convert to an integer
 
 int numTables = Integer.parseInt(jTextField_NumberOfTables.getText());
        int numCalc = Integer.parseInt(jTextField_NumberOfCalculations.getText());

int numTables = Integer.parseInt (jTextField_NumberOfTables.getText () .trim ());
int numCalc = Integer.parseInt (jTextField_NumberOfCalculations.getText () .trim ());

Because JTextBox you wrote 3 and space so method attempts to parse a string '3 '. so give this exception. Overall, watch the class trim String method.

Tags: Java

Similar Questions

  • Cannot use jar with icon files gif and self signed certificate files (Exception in thread "AWT-EventQueue-3" java.lang.NoClassDefFoundError: oracle/ewt/laf/basic/SelColorChange)

    Hi all.

    I use Forms 11 g 11.1.2.1 and updating JRE 7 45.

    I have create a jar file containing gif icons files using this procedure:

    (1) create the jar file:

    set path = % path %; C:\Oracle\Middleware\Oracle_FRHome1\jdk\bin (my ORACLE_HOME/jdk)

    jar - cvf webfigolos.jar *.gif

    (2) self sign the file:

    c:\Oracle\Middleware\asinst_1\bin > sign_webutil.bat c:\Oracle\Middleware\Oracle_FRHome1\forms\java\webfigoicons.jar

    Jars is signed but with a warning:

    Generate a signature key certificate aaosa2015 = auto...

    keytool error: java.lang.Exception: key pair not generated, al alias < aaosa2015 >

    loan is

    .

    There are errors or warnings while generating a self signed certificate. Pleas

    e revisiting.

    .

    Backup as c: C:\Oracle\Middleware\Oracle_FRHome1\forms\java\webfigoicons.jar

    \Oracle\Middleware\Oracle_FRHome1\forms\java\webfigoicons.jar.old...

    1 file (s) copied.

    Signature using ke c:\Oracle\Middleware\Oracle_FRHome1\forms\java\webfigoicons.jar

    y = aaosa2015...

    .. own made.

    But I can use this file. The application crashes and get this error from the java console:

    network: connection http://myluism-pc:7001/forms/lservlet; jsessionid = p98GTL5Fh6XnQcykySBhLWq2823HwHlPGZ16TYHVv93006N4mmdl!-947562687 with proxy = LIVE

    network: connection http://myluism-PC:7001 / with proxy = LIVE

    Exception in thread "AWT-EventQueue-3" java.lang.NoClassDefFoundError: oracle/ewt/laf/basic/SelColorChange

    at oracle.ewt.laf.oracle.OracleTreeUI.createItemPainter (unknown Source)

    at oracle.ewt.laf.basic.BasicTreeUI._getItemPainter (unknown Source)

    at oracle.ewt.laf.basic.BasicTreeUI.getItemPainter (unknown Source)

    at oracle.ewt.dTree.DTreeBaseItem.getSize (unknown Source)

    at oracle.ewt.dTree.DTree.paintCanvasInterior (unknown Source)

    at oracle.ewt.EwtComponent.paintInterior (unknown Source)

    at oracle.ewt.lwAWT.SharedPainter._paintInterior (unknown Source)

    at oracle.ewt.lwAWT.SharedPainter.paintExtents (unknown Source)

    at oracle.ewt.lwAWT.LWComponent._paintComponent (unknown Source)

    at oracle.ewt.lwAWT.LWComponent.paint (unknown Source)

    at oracle.ewt.EwtComponent.paint (unknown Source)

    at oracle.ewt.lwAWT.SharedPainter.paintExtents (unknown Source)

    at oracle.ewt.lwAWT.LWComponent._paintComponent (unknown Source)

    This used to be a very simple procedure, but it has stopped working...!

    Don't know if the jar file is well born, or if it is corrupt.

    I can't start my application.

    Help, please!

    Best regards, Luis.

    Try again with the JRE 7 10 update, I get a problem with the update of JRE 7 45, but when I tried the update of JRE 7 10, it works fine.

    For the objective test, disable the check

    Java Panel-> advance-> mixed Code-> disable verification (unchecked)

  • Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException

    some information
    Javaversion: 1.6.0_22
    OS: Windows 7 6.1


    The stack trace:
    Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException
         at javax.swing.plaf.basic.BasicTabbedPaneUI$ScrollableTabSupport.updateView(Unknown Source)
         at javax.swing.plaf.basic.BasicTabbedPaneUI$ScrollableTabSupport.stateChanged(Unknown Source)
         at javax.swing.JViewport.fireStateChanged(Unknown Source)
         at javax.swing.JViewport.reshape(Unknown Source)
         at java.awt.Component.setBounds(Unknown Source)
         at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneScrollLayout.layoutContainer(Unknown Source)
         at java.awt.Container.layout(Unknown Source)
         at java.awt.Container.doLayout(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validate(Unknown Source)
         at javax.swing.SwingUtilities.updateComponentTreeUI(Unknown Source)
         at javax.swing.plaf.metal.MetalLookAndFeel$AATextListener.updateWindowUI(Unknown Source)
         at javax.swing.plaf.metal.MetalLookAndFeel$AATextListener.updateAllUIs(Unknown Source)
         at javax.swing.plaf.metal.MetalLookAndFeel$AATextListener.access$200(Unknown Source)
         at javax.swing.plaf.metal.MetalLookAndFeel$AATextListener$1.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(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-2" java.lang.NullPointerException
         at javax.swing.plaf.basic.BasicTabbedPaneUI$ScrollableTabSupport.updateView(Unknown Source)
         at javax.swing.plaf.basic.BasicTabbedPaneUI$ScrollableTabSupport.stateChanged(Unknown Source)
         at javax.swing.JViewport.fireStateChanged(Unknown Source)
         at javax.swing.JViewport.setViewSize(Unknown Source)
         at javax.swing.ViewportLayout.layoutContainer(Unknown Source)
         at java.awt.Container.layout(Unknown Source)
         at java.awt.Container.doLayout(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validateTree(Unknown Source)
         at java.awt.Container.validate(Unknown Source)
         at javax.swing.RepaintManager.validateInvalidComponents(Unknown Source)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(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-2" java.lang.NullPointerException
         at javax.swing.plaf.basic.BasicTabbedPaneUI$ScrollableTabPanel.paintComponent(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JViewport.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JSplitPane.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JLayeredPane.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintToOffscreen(Unknown Source)
         at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
         at javax.swing.RepaintManager.paint(Unknown Source)
         at javax.swing.JComponent._paintImmediately(Unknown Source)
         at javax.swing.JComponent.paintImmediately(Unknown Source)
         at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
         at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
         at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(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-2" java.lang.NullPointerException
         at javax.swing.plaf.basic.BasicTabbedPaneUI$ScrollableTabSupport.updateView(Unknown Source)
         at javax.swing.plaf.basic.BasicTabbedPaneUI$ScrollableTabSupport.stateChanged(Unknown Source)
         at javax.swing.JViewport.fireStateChanged(Unknown Source)
         at javax.swing.JViewport$ViewListener.componentResized(Unknown Source)
         at java.awt.Component.processComponentEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(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.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(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-2" java.lang.NullPointerException
         at javax.swing.plaf.basic.BasicTabbedPaneUI$ScrollableTabPanel.paintComponent(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JViewport.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JSplitPane.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JLayeredPane.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paintToOffscreen(Unknown Source)
         at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
         at javax.swing.RepaintManager.paint(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
         at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
         at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
         at java.awt.Container.paint(Unknown Source)
         at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
         at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
         at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(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)
    The cause:

    There is a signed applied and it is to be embedded within an Internet explorere, once the page is iconified and after that maximized. The applet cannot be repained and the background color of the applet is black. This isn't a common occurrence; Sometimes.

    It would be great if I can get some thoughts on this problem.

    Any body has met with such a problem?

    Thank you

    user12130673 wrote:
    This isn't a common occurrence; Sometimes.

    You don't have to honor the single threaded swing rule. All methods of Swing [with a very few exceptions, such as repaint()] and constructors should be called in the EDT.
    http://docs.Oracle.com/javase/tutorial/uiswing/concurrency/index.html
    http://Java.Sun.com/products/JFC/TSC/articles/threads/threads1.html
    http://Java.Sun.com/products/JFC/TSC/articles/threads/threads3.html

    DB

  • Exception in thread "AWT-EventQueue-3" java.lang.NoClassDefFoundError: com

    Hi all.

    I'm using forms 11 g r2 and try to configure webutil, but I got the following error in the console.
    Please can someone help me regarding the following error.

    RegisterWebUtil - support WebUtil Version 11.1.2.0
    Forms Session ID is formsapp.44
    The proxy host is null, and the proxy port is 0.
    Native implementation of HTTP is used for the connection.
    The connection mode is HTTP.
    Applet Forms version is 11.1.2.0
    Exception in thread "AWT-EventQueue-3" java.lang.NoClassDefFoundError: com/com/jacob/ComFailException
    at java.lang.Class.forName0 (Native Method)
    at java.lang.Class.forName (unknown Source)
    at oracle.forms.handler.UICommon.instantiate (unknown Source)
    at oracle.forms.handler.UICommon.onCreate (unknown Source)
    at oracle.forms.handler.JavaContainer.onCreate (unknown Source)
    at oracle.forms.engine.Runform.onCreateHandler (unknown Source)
    at oracle.forms.engine.Runform.processMessage (unknown Source)
    at oracle.forms.engine.Runform.processSet (unknown Source)
    at oracle.forms.engine.Runform.onMessageReal (unknown Source)
    at oracle.forms.engine.Runform.onMessage (unknown Source)
    at oracle.forms.engine.Runform.processEventEnd (unknown Source)
    at oracle.ewt.lwAWT.LWComponent.redispatchEvent (unknown Source)
    at oracle.ewt.lwAWT.LWComponent.processEvent (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.processMouseEvent (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.dispatchEventImpl (unknown Source)
    to java.awt.EventQueue.access$ 000 (unknown Source)
    in java.awt.EventQueue$ 1.run (unknown Source)
    in java.awt.EventQueue$ 1.run (unknown Source)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege (unknown Source)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege (unknown Source)
    in java.awt.EventQueue$ 2.run (unknown Source)
    in java.awt.EventQueue$ 2.run (unknown Source)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege (unknown Source)
    at java.awt.EventQueue.dispatchEvent (unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters (unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter (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)
    Caused by: java.lang.ClassNotFoundException: com.jacob.com.ComFailException
    at sun.plugin2.applet.Applet2ClassLoader.findClass (unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0 (unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass (unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass (unknown Source)
    at java.lang.ClassLoader.loadClass (unknown Source)
    ... more than 40

    Hello

    If you use forms 11 g R2 then do something like that.
    change your default.env
    and in the classpath section add frmwebutil.jar and jacob.jar.

    hope this helps u.

    Sarah

  • Java: Exception in thread "AWT-EventQueue-0".

    Hello
    I created a little program in Java Swing & Oracle DB.
    The program is for a small business in the field of logistics, such as DHL...
    In a section, I select a table, a few columns containing a condition, that the content in a column to be: ENVELOPE, PACKAGE, or both.
    Now, when the condition is the request ENVELOPE is OK, even when both; but when the selection = PACKAGE I get the following error:

    P.S. I'm kinda big beginners to Java, then please explain what you say! Thank you.
    Moreover, the request is OK, because the result I put him in a Swing JTable, but also create a HTML file with the table, wich is OK.



    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    to OracleDB.Swing_JTable_Temp$ MyTableModel.getColumnClass (Swing_JTable_Temp.java:440)
    at javax.swing.JTable.getColumnClass (unknown Source)
    at javax.swing.JTable.getCellRenderer (unknown Source)
    at javax.swing.plaf.synth.SynthTableUI.paintCell (unknown Source)
    at javax.swing.plaf.synth.SynthTableUI.paintCells (unknown Source)
    at javax.swing.plaf.synth.SynthTableUI.paint (unknown Source)
    at javax.swing.plaf.synth.SynthTableUI.update (unknown Source)
    at javax.swing.JComponent.paintComponent (unknown Source)
    at javax.swing.JComponent.paint (unknown Source)
    at javax.swing.JComponent.paintChildren (unknown Source)
    at javax.swing.JComponent.paint (unknown Source)
    at javax.swing.JViewport.paint (unknown Source)
    at javax.swing.JComponent.paintChildren (unknown Source)
    at javax.swing.JComponent.paint (unknown Source)
    at javax.swing.JComponent.paintChildren (unknown Source)
    at javax.swing.JComponent.paint (unknown Source)
    at javax.swing.JComponent.paintToOffscreen (unknown Source)
    to javax.swing.RepaintManager$ PaintManager.paintDoubleBuffered (unknown Source)
    to javax.swing.RepaintManager$ PaintManager.paint (unknown Source)
    at javax.swing.RepaintManager.paint (unknown Source)
    at javax.swing.JComponent._paintImmediately (unknown Source)
    at javax.swing.JComponent.paintImmediately (unknown Source)
    at javax.swing.RepaintManager.paintDirtyRegions (unknown Source)
    at javax.swing.RepaintManager.paintDirtyRegions (unknown Source)
    at javax.swing.RepaintManager.seqPaintDirtyRegions (unknown Source)
    to javax.swing.SystemEventQueueUtilities$ ComponentWorkRequest.run (unknown Source)
    at java.awt.event.InvocationEvent.dispatch (unknown Source)
    at java.awt.EventQueue.dispatchEvent (unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters (unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter (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)

    for example, in the method:
    Public Class getColumnClass (int c)
    {
    Return getValueAt (0, c) .getClass ();
    }

    Replace this:
    Return getValueAt (0, c) .getClass ();

    with this:
    Object value = getValueAt (0, c);
    return value! = null? value.getClass (): String.class;

    or if you know which column of the table, what type of data should display, you can do the following:
    If (c == 0) {}
    Return Integer.class;
    } else if (c == 1) {}
    Return String.class;
    } else...

    A little explanation: getColumnClass() is typically implemented as in your case - access table with the values and returns the class of the 'c' in the first row column
    This must be done when you are sure that this table is not empty, and it seems that this has caused your problem (empty array with values).

    Hope that helps
    Ivaylo

  • Exception in thread "AWT-EventQueue-0" oracle.jbo.TooManyObjectsException: Houston-25013: too many objects correspond to the oracle.jbo.Key [4 primary key].

    Mr President

    I am able to add records with the following method but when I navigate through folders and then I get the above error.

    When you use this code in my doDML()

    package model;
    
    
    import java.sql.PreparedStatement;
    
    
    import oracle.jbo.Key;
    import oracle.jbo.domain.Number;
    import oracle.jbo.server.EntityDefImpl;
    import oracle.jbo.server.EntityImpl;
    import oracle.jbo.server.SequenceImpl;
    import oracle.jbo.server.TransactionEvent;
    // ---------------------------------------------------------------------
    // ---    File generated by Oracle ADF Business Components Design Time.
    // ---    Tue Nov 10 11:03:43 PKT 2015
    // ---    Custom code may be added to this class.
    // ---    Warning: Do not modify method signatures of generated methods.
    // ---------------------------------------------------------------------
    public class TableNameImpl extends EntityImpl {
        /**
         * AttributesEnum: generated enum for identifying attributes and accessors. DO NOT MODIFY.
         */
        public enum AttributesEnum {
            Column1,
            Column2,
            Column3,
            JoinColumn,
            HiddenColumn;
            private static AttributesEnum[] vals = null;
            private static final int firstIndex = 0;
    
    
            public int index() {
                return AttributesEnum.firstIndex() + ordinal();
            }
    
    
            public static final int firstIndex() {
                return firstIndex;
            }
    
    
            public static int count() {
                return AttributesEnum.firstIndex() + AttributesEnum.staticValues().length;
            }
    
    
            public static final AttributesEnum[] staticValues() {
                if (vals == null) {
                    vals = AttributesEnum.values();
                }
                return vals;
            }
        }
        public static final int COLUMN1 = AttributesEnum.Column1.index();
        public static final int COLUMN2 = AttributesEnum.Column2.index();
        public static final int COLUMN3 = AttributesEnum.Column3.index();
        public static final int JOINCOLUMN = AttributesEnum.JoinColumn.index();
        public static final int HIDDENCOLUMN = AttributesEnum.HiddenColumn.index();
    
    
        /**
         * This is the default constructor (do not remove).
         */
        public TableNameImpl() {
        }
    
    
        /**
         * Gets the attribute value for Column1, using the alias name Column1.
         * @return the value of Column1
         */
        public Number getColumn1() {
            return (Number) getAttributeInternal(COLUMN1);
        }
    
    
        /**
         * Sets <code>value</code> as the attribute value for Column1.
         * @param value value to set the Column1
         */
        public void setColumn1(Number value) {
            setAttributeInternal(COLUMN1, value);
        }
    
    
        /**
         * Gets the attribute value for Column2, using the alias name Column2.
         * @return the value of Column2
         */
        public Number getColumn2() {
            return (Number) getAttributeInternal(COLUMN2);
        }
    
    
        /**
         * Sets <code>value</code> as the attribute value for Column2.
         * @param value value to set the Column2
         */
        public void setColumn2(Number value) {
            setAttributeInternal(COLUMN2, value);
        }
    
    
        /**
         * Gets the attribute value for Column3, using the alias name Column3.
         * @return the value of Column3
         */
        public Number getColumn3() {
            return (Number) getAttributeInternal(COLUMN3);
        }
    
    
        /**
         * Sets <code>value</code> as the attribute value for Column3.
         * @param value value to set the Column3
         */
        public void setColumn3(Number value) {
            setAttributeInternal(COLUMN3, value);
        }
    
    
        /**
         * Gets the attribute value for JoinColumn, using the alias name JoinColumn.
         * @return the value of JoinColumn
         */
        public Number getJoinColumn() {
            return (Number) getAttributeInternal(JOINCOLUMN);
        }
    
    
        /**
         * Sets <code>value</code> as the attribute value for JoinColumn.
         * @param value value to set the JoinColumn
         */
        public void setJoinColumn(Number value) {
            setAttributeInternal(JOINCOLUMN, value);
        }
    
    
        /**
         * Gets the attribute value for HiddenColumn, using the alias name HiddenColumn.
         * @return the value of HiddenColumn
         */
        public Number getHiddenColumn() {
            return (Number) getAttributeInternal(HIDDENCOLUMN);
        }
    
    
        /**
         * Sets <code>value</code> as the attribute value for HiddenColumn.
         * @param value value to set the HiddenColumn
         */
        public void setHiddenColumn(Number value) {
            setAttributeInternal(HIDDENCOLUMN, value);
        }
    
    
        /**
         * @param column1 key constituent
    
    
         * @return a Key object based on given key constituents.
         */
        public static Key createPrimaryKey(Number column1) {
            return new Key(new Object[] { column1 });
        }
    
    
        /**
         * @return the definition object for this instance class.
         */
        public static synchronized EntityDefImpl getDefinitionObject() {
            return EntityDefImpl.findDefObject("model.TableName");
        }
    
    
        /**
         * Add locking logic here.
         */
        public void lock() {
            super.lock();
        }
    
    
        /**
         * Custom DML update/insert/delete logic here.
         * @param operation the operation type
         * @param e the transaction event
         */
        protected void doDML(int operation, TransactionEvent e) {
                if(operation == DML_INSERT)
                    {
                      SequenceImpl seq = new SequenceImpl("JOIN_SEQ", getDBTransaction());
                      oracle.jbo.domain.Number seqValue = seq.getSequenceNumber();
                      setJoinColumn(seqValue);
                      insertSecondRowInDatabase(getColumn1(), getColumn2(), getColumn3(), getJoinColumn());
                    }
                   
                    if(operation == DML_UPDATE)
                    {
                      updateSecondRowInDatabase(getColumn1(), getColumn2(), getColumn3(), getJoinColumn());
                    }
                super.doDML(operation, e);
            }
          
            private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
              {
                PreparedStatement stat = null;
                try
                {
                  String sql = "Insert into table_name (COLUMN_1,COLUMN_2,COLUMN_3,JOIN_COLUMN, HIDDEN_COLUMN) values ('" + value1 + "','" + value2 + "','" + value3 + "','" + joinColumn + "', 1)";
                  System.out.println("sql= " + sql);  
                  stat = getDBTransaction().createPreparedStatement(sql, 1);
                  stat.executeUpdate();
                }
                catch (Exception e)
                {
                  e.printStackTrace();
                }
                finally
                {
                  try
                  {
                    stat.close();
                  }
                  catch (Exception e)
                  {
                    e.printStackTrace();
                  }
                }
              }
            
              private void updateSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
              {
                PreparedStatement stat = null;
                try
                {
                  String sql = "update table_name set column_1='" + value1 + "', column_2='" + value2 + "', column_3='" + value3 + "' where JOIN_COLUMN='" + joinColumn + "'";
                  System.out.println("sql= " + sql);    
                  stat = getDBTransaction().createPreparedStatement(sql, 1);
                  stat.executeUpdate();
                }
                catch (Exception e)
                {
                  e.printStackTrace();
                }
                finally
                {
                  try
                  {
                    stat.close();
                  }
                  catch (Exception e)
                  {
                    e.printStackTrace();
                  }
                }
              }
        }
    
    
    

    To me the error.

    Exception in thread "AWT-EventQueue-0" oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[4 ].
      at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelectForAltKey(OracleSQLBuilderImpl.java:862)
      at oracle.jbo.server.BaseSQLBuilderImpl.doEntitySelect(BaseSQLBuilderImpl.java:555)
      at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:9089)
      at oracle.jbo.server.EntityImpl.populate(EntityImpl.java:7664)
      at oracle.jbo.server.EntityImpl.merge(EntityImpl.java:8008)
      at oracle.jbo.server.EntityCache.addForAltKey(EntityCache.java:1189)
      at oracle.jbo.server.EntityCache.add(EntityCache.java:579)
      at oracle.jbo.server.ViewRowStorage.entityCacheAdd(ViewRowStorage.java:3454)
      at oracle.jbo.server.ViewRowImpl.entityCacheAdd(ViewRowImpl.java:4062)
      at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:6351)
      at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:4145)
      at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:4000)
      at oracle.jbo.server.QueryCollection.get(QueryCollection.java:2491)
      at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:5540)
      at oracle.jbo.server.ViewRowSetIteratorImpl.getRowInternal(ViewRowSetIteratorImpl.java:3590)
      at oracle.jbo.server.ViewRowSetIteratorImpl.hasNext(ViewRowSetIteratorImpl.java:2007)
      at oracle.jbo.server.ViewRowSetImpl.hasNext(ViewRowSetImpl.java:3859)
      at oracle.jbo.server.ViewObjectImpl.hasNext(ViewObjectImpl.java:11845)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.isOperationEnabled(JUCtrlActionBinding.java:473)
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.isActionEnabled(JUCtrlActionBinding.java:300)
      at oracle.jbo.uicli.controls.JUNavigationBar._isEnabled(JUNavigationBar.java:1345)
      at oracle.jbo.uicli.controls.JUNavigationBar._updateButtonStates(JUNavigationBar.java:1334)
      at oracle.jbo.jbotester.app.NavigationBar._updateButtonStates(NavigationBar.java:123)
      at oracle.jbo.uicli.controls.JUNavigationBar$3.run(JUNavigationBar.java:1249)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
      at java.awt.EventQueue.access$500(EventQueue.java:97)
      at java.awt.EventQueue$3.run(EventQueue.java:709)
      at java.awt.EventQueue$3.run(EventQueue.java:703)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    
    
    

    Concerning

    You can't repeat the value of pharmacokinetics in several lines. try to follow this:

    1. in your database to create new sequence "PK_SEQ".

    2. in doDML write this

        if (operation == DML_INSERT)
        {
          SequenceImpl seq = new SequenceImpl("JOIN_SEQ", getDBTransaction());
          oracle.jbo.domain.Number seqValue = seq.getSequenceNumber();
          setJoinColumn(seqValue);
          setPKey(getPkSeqNextNumber())
          insertSecondRowInDatabase(getPkSeqNextNumber(), getColumn1(), getColumn2(), getColumn3(), getJoinColumn());
        }
    

    the getPkSeqNextNumber will be

    private Number getPkSeqNextNumber()
    {
      SequenceImpl pkSeq = new SequenceImpl("PK_SEQ", getDBTransaction());
      return pkSeq.getSequenceNumber();
    }
    

    or

    You can do a trigger in the database, this trigger Gets the value of the sequence and sets the pkey to insert before

  • Exception in thread "AWT-EventQueue-0" impossible

    Hello

    I get a StackOverflowError after about 13 recurrences in my application.

    I have a form for adding and after users add something I want autodisplay form to add it again. It is a recurrence which can go up to a few hundred.

    How can I fix?

    I don't want to treat recursively, can I break the recursion or is there another solution?

    Can I empty the program application stack?

    Thank you.

    New thread solved the problem

  • Exception occurred during the event dispatching: java.lang.NoSuchMethodError

    Hello

    We have upgraded to the latest Oracle Application Server version 10.1.2.3.0 and webutil version 1.0.6.

    But we are facing the following error while accessing the web link. Message captured from the Java Console.
    Please suggest if you have a solution/idea about this error. Thank you!

    Oracle JInitiator: Version 1.3.1.22
    Using JRE version 1.3.1.22- internal Java hotspot Client VM
    Maximum size: 50 MB
    Compression level: 0 -.
    c: clear console window
    f: finalize objects on the finalization queue
    g: garbage collection
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: Hide console
    S: dump system properties
    t: dump thread list
    x: delete the cache of class loaders
    0-5: set the level of trace to < n >
    ----------------------------------------------------
    Download http://si02938.in.irt.com:7778/forms/java/frmall_jinit.jar to JAR cacheDownloading http://si02938.in.irt.com:7778/forms/java/frmwebutil.jar to JAR cacheDownloading http://si02938.in.irt.com:7778/forms/java/jacob.jar to JAR cacheDownloading http://si02938.in.irt.com:7778/forms/java/FileInformation.jar to JAR cacheDownloading cacheproxyHost = nullproxyPort = 0connectMode = HTTP, native.
    Version forms cmdlet is: 10.1.2.3
    Exception occurred during the event dispatching: java.lang.NoSuchMethodError at oracle.forms.webutil.common.VBeanCommon.init(VBeanCommon.java:281) at oracle.forms.handler.UICommon.instantiate (Unknown Source) at oracle.forms.handler.UICommon.onCreate (Unknown Source) at oracle.forms.handler.JavaContainer.onCreate (Unknown Source) at oracle.forms.engine.Runform.onCreateHandler (Unknown Source) at oracle.forms.engine.Runform.processMessage(Unknown Source) at oracle.forms.engine.Runform.processSet(Unknown Source) at oracle.forms.engine.Runform.onMessageReal(Unknown Source) at oracle.forms.engine.Runform.onMessage(Unknown Source) at oracle.forms.engine.Runform.processEventEnd(Unknown Source) at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source) at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl (unknown Source) at java.awt.Container.dispatchEventImpl (unknown Source) at java.awt.Component.dispatchEvent (unknown Source) at the java.awt.EventQueue.dispatchEvent (Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy (unknown Source) at the java.awt.EventDispatchThread.pumpEventsForHierarchy (Unknown Source) at java.awt.EventDispatchThread.pumpEvents (unknown Source) at java.awt.EventDispatchThread.run (Unknown Source)

    Published by: user12233243 on November 16, 2009 22:28

    Published by: user12233243 on November 16, 2009 22:29

    Hello

    Your welcome, but you need to mark it as correct or relatively useful because other users will be able to solve their problems.

    Sarah

  • What is this java.lang.NumberFormatException: null

    Mr President.

    I'm trying to run a report with a button on a page jsff

    My button code is

    <af:button text="button 1" id="b1" destination="/printreportservlet?employeeId#{bindings.EmployeeId.inputValue}"/>
    

    My servlet code is

    package view;
    
    
    import java.io.IOException;
    import java.io.PrintWriter;
    
    
    import javax.servlet.*;
    import javax.servlet.annotation.WebServlet;
    import javax.servlet.http.*;
    import java.io.IOException;
    import java.io.InputStream;
    
    
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    
    
    import java.util.HashMap;
    import java.util.Locale;
    import java.util.Map;
    
    
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletException;
    import javax.servlet.annotation.WebServlet;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    
    
    
    
    import model.AppModuleImpl;
    
    
    import net.sf.jasperreports.engine.JasperCompileManager;
    import net.sf.jasperreports.engine.JasperExportManager;
    import net.sf.jasperreports.engine.JasperFillManager;
    import net.sf.jasperreports.engine.JasperPrint;
    import net.sf.jasperreports.engine.JasperReport;
    import net.sf.jasperreports.engine.design.JasperDesign;
    import net.sf.jasperreports.engine.xml.JRXmlLoader;
    
    
    import oracle.jbo.client.Configuration;
    
    
    @WebServlet(name = "PrintReportServlet", urlPatterns = { "/printreportservlet" })
    public class PrintReport1Servlet extends HttpServlet {
        private static final String CONTENT_TYPE = "text/html; charset=UTF-8";
    
    
        public void init(ServletConfig config) throws ServletException {
            super.init(config);
        }
        
        /**
                 * @return
                 */
                protected Connection getConnection() {
         
         
        //            System.out.println("getConnection--");
         
         
                    PreparedStatement st = null;
                    String amDef = "sa.gov.rgr.model.module.AppModuleAM";
                    String config = "AppModuleAMLocal";
                    AppModuleImpl am = (AppModuleImpl ) Configuration.createRootApplicationModule(amDef, config);
         
         
                    st = am.getDBTransaction().createPreparedStatement("select 1 from dual", 0);
                    Connection conn = null;
         
         
                    try {
                        conn = st.getConnection();
                        return conn;
                    } catch (SQLException e) {
                    }
         
         
                    return null;
                }
        /**
             * @param request
             * @param response
             * @throws ServletException
             * @throws IOException
             */    
    
    
        public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
            response.setContentType(CONTENT_TYPE);
            PrintWriter out = response.getWriter();
            out.println("<html>");
            out.println("<head><title>PrintReportServlet</title></head>");
            out.println("<body>");
            out.println("<p>The servlet has received a GET. This is the reply.</p>");
            out.println("</body></html>");
            out.close();
            
            String var0 = "";
                    try {
                        var0 = request.getParameter("employeeId");
                       
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                   
                    response.setContentType(CONTENT_TYPE);
                   
                    Map parameters = new HashMap();
                    parameters.put("format", "pdf");
                    parameters.put("WEBDIR", getServletContext().getRealPath("/"));
                    parameters.put("REPORT_LOCALE", new Locale("ar"));
             
             
                    parameters.put("employeeId", new Long(var0));
                    Connection conn = null;
                    InputStream is = null;
                    try
                    {
                      conn = getConnection();
                      is = getServletContext().getResourceAsStream("/WEB-INF/reports/Report.jrxml");
             
             
                      response.setContentType("application/pdf");
                      response.addHeader("Content-Disposition", "attachment; filename=report.pdf");
                       
                      JasperDesign jasperDesign = JRXmlLoader.load(is);
                      JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
             
             
                      JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, conn);
             
             
                      JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream());
                       
             
                      conn.close();
                    }
                    catch (Exception e) {
                      e.printStackTrace();
                    } finally {
                      closeConnection(conn);
                      try {
                          if(is !=null){
                              is.close();
                          }
                         
                         
                      } catch (Exception localException1)
                      {
                      }
                    }
                   
                }
        
        /**
             * @param conn
             */
            protected static void closeConnection(Connection conn) {
                try {
                    if(conn !=null){
                        conn.close();
                    }
                   
                } catch (Exception ex) {
                    //  System.out.println("Developer Msg : Exception in printReport1Servlet.closeConnection()");
                }
            }
        
    }
    

    The code of my report is

    <?xml version="1.0" encoding="UTF-8"?>
    <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Report" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="1100e657-82b6-466e-b6eb-58efd82952cb">
      <property name="ireport.zoom" value="1.0"/>
      <property name="ireport.x" value="0"/>
      <property name="ireport.y" value="0"/>
      <parameter name="employeeId" class="java.lang.String">
      <defaultValueExpression><![CDATA[]]></defaultValueExpression>
      </parameter>
      <queryString>
      <![CDATA[select * from employees
    WHERE EMPLOYEE_ID=to_number($P{employeeId})]]>
      </queryString>
      <field name="EMPLOYEE_ID" class="java.lang.Long"/>
      <field name="FIRST_NAME" class="java.lang.String"/>
      <field name="LAST_NAME" class="java.lang.String"/>
      <field name="EMAIL" class="java.lang.String"/>
      <field name="PHONE_NUMBER" class="java.lang.String"/>
      <field name="HIRE_DATE" class="java.sql.Timestamp"/>
      <field name="JOB_ID" class="java.lang.String"/>
      <field name="SALARY" class="java.math.BigDecimal"/>
      <field name="COMMISSION_PCT" class="java.math.BigDecimal"/>
      <field name="MANAGER_ID" class="java.math.BigDecimal"/>
      <field name="DEPARTMENT_ID" class="java.math.BigDecimal"/>
      <background>
      <band splitType="Stretch"/>
      </background>
      <title>
      <band height="79" splitType="Stretch"/>
      </title>
      <pageHeader>
      <band height="35" splitType="Stretch"/>
      </pageHeader>
      <columnHeader>
      <band height="61" splitType="Stretch">
      <staticText>
      <reportElement x="229" y="2" width="100" height="20" uuid="225ce4a1-d66e-4b64-bcb8-f35994d570ec"/>
      <text><![CDATA[EMPLOYEE_ID]]></text>
      </staticText>
      </band>
      </columnHeader>
      <detail>
      <band height="125" splitType="Stretch">
      <textField>
      <reportElement x="229" y="55" width="100" height="20" uuid="a8cd9d36-884a-4edf-8052-314b484e00c4"/>
      <textFieldExpression><![CDATA[$F{EMPLOYEE_ID}]]></textFieldExpression>
      </textField>
      </band>
      </detail>
      <columnFooter>
      <band height="45" splitType="Stretch"/>
      </columnFooter>
      <pageFooter>
      <band height="54" splitType="Stretch"/>
      </pageFooter>
      <summary>
      <band height="42" splitType="Stretch"/>
      </summary>
    </jasperReport>
    

    And my page jsff code is

    <?xml version='1.0' encoding='UTF-8'?>
    <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                    xmlns:f="http://java.sun.com/jsf/core">
      
      <af:button text="button 1" id="b1" destination="/printreportservlet?employeeId#{bindings.EmployeeId.inputValue}"/>
      <af:table value="#{bindings.EmployeesView1.collectionModel}" var="row" rows="#{bindings.EmployeesView1.rangeSize}"
                emptyText="#{bindings.EmployeesView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                rowBandingInterval="0" selectedRowKeys="#{bindings.EmployeesView1.collectionModel.selectedRow}"
                selectionListener="#{bindings.EmployeesView1.collectionModel.makeCurrent}" rowSelection="single"
                fetchSize="#{bindings.EmployeesView1.rangeSize}" id="t1">
        <af:column headerText="#{bindings.EmployeesView1.hints.EmployeeId.label}" id="c1">
          <af:outputText value="#{row.EmployeeId}" shortDesc="#{bindings.EmployeesView1.hints.EmployeeId.tooltip}" id="ot1">
            <af:convertNumber groupingUsed="false" pattern="#{bindings.EmployeesView1.hints.EmployeeId.format}"/>
          </af:outputText>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.FirstName.label}" id="c2">
          <af:outputText value="#{row.FirstName}" shortDesc="#{bindings.EmployeesView1.hints.FirstName.tooltip}" id="ot2"/>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.LastName.label}" id="c3">
          <af:outputText value="#{row.LastName}" shortDesc="#{bindings.EmployeesView1.hints.LastName.tooltip}" id="ot3"/>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.Email.label}" id="c4">
          <af:outputText value="#{row.Email}" shortDesc="#{bindings.EmployeesView1.hints.Email.tooltip}" id="ot4"/>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.PhoneNumber.label}" id="c5">
          <af:outputText value="#{row.PhoneNumber}" shortDesc="#{bindings.EmployeesView1.hints.PhoneNumber.tooltip}"
                         id="ot5"/>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.HireDate.label}" id="c6">
          <af:outputText value="#{row.HireDate}" shortDesc="#{bindings.EmployeesView1.hints.HireDate.tooltip}" id="ot6">
            <af:convertDateTime pattern="#{bindings.EmployeesView1.hints.HireDate.format}"/>
          </af:outputText>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.JobId.label}" id="c7">
          <af:outputText value="#{row.JobId}" shortDesc="#{bindings.EmployeesView1.hints.JobId.tooltip}" id="ot7"/>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.Salary.label}" id="c8">
          <af:outputText value="#{row.Salary}" shortDesc="#{bindings.EmployeesView1.hints.Salary.tooltip}" id="ot8">
            <af:convertNumber groupingUsed="false" pattern="#{bindings.EmployeesView1.hints.Salary.format}"/>
          </af:outputText>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.CommissionPct.label}" id="c9">
          <af:outputText value="#{row.CommissionPct}" shortDesc="#{bindings.EmployeesView1.hints.CommissionPct.tooltip}"
                         id="ot9">
            <af:convertNumber groupingUsed="false" pattern="#{bindings.EmployeesView1.hints.CommissionPct.format}"/>
          </af:outputText>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.ManagerId.label}" id="c10">
          <af:outputText value="#{row.ManagerId}" shortDesc="#{bindings.EmployeesView1.hints.ManagerId.tooltip}" id="ot10">
            <af:convertNumber groupingUsed="false" pattern="#{bindings.EmployeesView1.hints.ManagerId.format}"/>
          </af:outputText>
        </af:column>
        <af:column headerText="#{bindings.EmployeesView1.hints.DepartmentId.label}" id="c11">
          <af:outputText value="#{row.DepartmentId}" shortDesc="#{bindings.EmployeesView1.hints.DepartmentId.tooltip}"
                         id="ot11">
            <af:convertNumber groupingUsed="false" pattern="#{bindings.EmployeesView1.hints.DepartmentId.format}"/>
          </af:outputText>
        </af:column>
      </af:table>
    </ui:composition>
    

    The complete error code is

    java.lang.NumberFormatException: null
      at java.lang.Long.parseLong(Long.java:404)
      at java.lang.Long.<init>(Long.java:702)
      at view.PrintReport1Servlet.doGet(PrintReport1Servlet.java:113)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
      Truncated. see log file for complete stacktrace
    > 
    <Mar 27, 2015 10:03:46 AM PKT> <Notice> <Diagnostics> <BEA-320068> <Watch "UncheckedException" in module "Module-FMWDFW" with severity "Notice" on server "DefaultServer" has triggered at Mar 27, 2015 10:03:46 AM PKT. Notification details: 
    WatchRuleType: Log 
    WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'WL-101020') OR (MSGID = 'WL-101017') OR (MSGID = 'WL-000802') OR (MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802')) 
    WatchData: DATE = Mar 27, 2015 10:03:46 AM PKT SERVER = DefaultServer MESSAGE = [ServletContext@1295794488[app:JasperServletTester module:JasperServletTester-ViewController-context-root path:null spec-version:3.0]] Servlet failed with an Exception
    java.lang.NumberFormatException: null
      at java.lang.Long.parseLong(Long.java:404)
      at java.lang.Long.<init>(Long.java:702)
      at view.PrintReport1Servlet.doGet(PrintReport1Servlet.java:113)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:137)
      at java.security.AccessController.doPrivileged(Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
      at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:220)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3436)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3402)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
      at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)
      at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:255)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
     SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101020 MACHINE = TANVIR-PC TXID =  CONTEXTID = fd43f1ae-c573-4366-9924-18a1ab1a228f-0000008d TIMESTAMP = 1427432626062  
    WatchAlarmType: AutomaticReset 
    WatchAlarmResetPeriod: 30000 
    > 
    <oracle.dfw.impl.incident.DiagnosticsDataExtractorImpl> <DiagnosticsDataExtractorImpl> <createADRIncident> <incident 16 created with problem key "DFW-99998 [java.lang.NumberFormatException][oracle.security.jps.ee.http.JpsAbsFilter$1.run][JasperServletTester]"> 
    <oracle.adf.common> <AdfDiagnosticsJarsVersionDumpImpl> <executeDump> <Path of the jars version dump :C:\Users\TANVIR\AppData\Roaming\JDeveloper\system12.1.3.0.41.140521.1008\DefaultDomain\servers\DefaultServer\adr\diag\ofm\defaultdomain\defaultserver\incident\incdir_16/adf_DiagnosticsJarsVersionDump24_i16.txt> 
    

    For any help, I'll be very grateful

    Concerning

    Tender,

    As I mentioned in the other thread, the var0 comes null which causes this problem.

    Why var0 just null?

    You must change the property of destination as below:

    
    
    

    You must add "="

    See you soon

    AJ

  • I got error java.lang.NumberFormatException: for input string

    Using Jdeveloper 12 c, Oracle DB 12 c, Windows 8.1, this is my code to read the Excel file to DB.

    FileInputStream file = new FileInputStream

      (new File("E:/Company Mails.xlsx"));

      XSSFWorkbook workbook = new XSSFWorkbook(file);  

                XSSFSheet sheet = workbook.getSheetAt(0);   

                Iterator<Row> rowIterator = sheet.iterator();         

                DCBindingContainer bindings2 = (DCBindingContainer)

      BindingContext.getCurrent().getCurrentBindingsEntry();

                JUCtrlHierBinding obj = (JUCtrlHierBinding)

      bindings2.findCtrlBinding("CompanyMails1");

                ViewObject vo = obj.getViewObject();           

                BindingContainer bindings = BindingContext.

      getCurrent().getCurrentBindingsEntry();

                OperationBinding operationBinding = bindings.

      getOperationBinding("Commit");                           

                        while (rowIterator.hasNext()){                       

                            Row row = rowIterator.next();

                            Iterator<Cell> cellIterator = row.cellIterator();

                            oracle.jbo.Row r = vo.createRow();                       

                            while (cellIterator.hasNext()){

                                Cell cell = cellIterator.next();

                                r.setAttribute("No", row.getCell(0));

                                r.setAttribute("Mail", row.getCell(1));

                                r.setAttribute("Person", row.getCell(2));} }

                        file.close(); operationBinding.execute();}

                    catch (Exception e){e.printStackTrace(); }

            return null;}


    This is the message I get on the Jdev

    java.lang.NumberFormatException: for input string: 'No' to java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

    Untitled.png

    Please, format your code by using the Advanced Editor.

    As first, paste here stackTrace of jdev console and mark the line of code where the exception occurs.

    Then, just to check something, take a look to the while loop and add after the line of code:

    rowIterator.next(); // <-- AD THIS LINE OF CODE HERE !
    while (rowIterator.hasNext()){
                   Row row = rowIterator.next();
    

    try again and let me know what happens

  • How to solve error {java.lang.NumberFormatException: empty string}

    Mr President.

    I use the following code and get error submitted.


    {error} {
    java.lang.NumberFormatException: empty string
    at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1011)
    at java.lang.Double.parseDouble(Double.java:540)
    to the invoice. InvoiceController$ 4.changed(InvoiceController.java:192)
    } {error}

    and
    {
    
    //wt ,  sValExlSt1 and sPrice1 are numbers
    
    
     wt1.textProperty().addListener(new ChangeListener<String>() {
                    public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {
                        sValExlSt1.setText(String.valueOf(
                                Double.parseDouble(newValue)  * Double.parseDouble(sPrice1.getText())));
                    }
                });
            } catch (NumberFormatException e1) {
            }
    
    }
    Help, please.

    NewValue or sPrice1.getText () is empty. The error message says "empty string".

  • Exception in thread within the ACC "AWT-EventQueue-0".

    Hi all

    I created the catalog, categories only in the VAC without BCC, while for the catalogue of the ACC, I get the below error. Please help me as soon as POSSIBLE.

    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at javax.swing.ImageIcon. < init > (ImageIcon.java:190)
    at javax.swing.ImageIcon. < init > (ImageIcon.java:176)
    to sun.swing.WindowsPlacesBar. < init > (WindowsPlacesBar.java:82)
    at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.updateUseShellFolder(WindowsFileChooserUI.java:505)
    at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installComponents(WindowsFileChooserUI.java:196)
    at javax.swing.plaf.basic.BasicFileChooserUI.installUI(BasicFileChooserUI.java:136)
    at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installUI(WindowsFileChooserUI.java:129)
    at javax.swing.JComponent.setUI(JComponent.java:662)
    at javax.swing.JFileChooser.updateUI(JFileChooser.java:1763)
    at javax.swing.JFileChooser.setup(JFileChooser.java:360)
    in javax.swing.JFileChooser. < init > (JFileChooser.java:333)
    in javax.swing.JFileChooser. < init > (JFileChooser.java:286)
    to atg.ui.common.propeditor.ImageEditor. < init > (ImageEditor.java:66)
    to atg.ui.repository.MediaEditor. < init > (MediaEditor.java:150)
    to atg.ui.repository.MediaExternalEditor. < init > (MediaExternalEditor.java:28)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at atg.ui.builder.RepositoryAdminDefinition.parseBeanDisplays(RepositoryAdminDefinition.java:1236)
    at atg.ui.builder.RepositoryAdminDefinition.parseAdminElement(RepositoryAdminDefinition.java:1116)
    at atg.ui.builder.RepositoryAdminTask.getComponent(RepositoryAdminTask.java:491)
    at atg.ui.hub.TaskPanel.show(Hub.java:2557)
    at atg.ui.hub.Hub.taskSelected(Hub.java:1724)
    at atg.ui.hub.NavigationAction.actionPerformed(NavigationAction.java:104)
    at atg.ui.hub.MenuItem.fireSelectionEvent(MenuItem.java:100)
    at atg.ui.hub.MenuItem.select(MenuItem.java:87)
    at atg.ui.hub.HubMenu.selectMenu(HubMenu.java:690)
    at atg.ui.hub.HubMenu.addTask(HubMenu.java:306)
    at atg.ui.hub.task.TaskManager.fireTaskAddedEvent(TaskManager.java:157)
    at atg.ui.hub.task.TaskManager.addTransientTask(TaskManager.java:629)
    at atg.ui.builder.RepositoryAdminTask.launchTransientTask(RepositoryAdminTask.java:409)
    at atg.ui.repository.MultiRepositoryItemTable.fireRepositoryItemDetailEditorEvent(MultiRepositoryItemTable.java:463)
    to atg.ui.commerce.catalog.MultiCatalogTable$ SingleClickOpenAction.actionPerformed (MultiCatalogTable.java:164)
    at atg.ui.common.SingleClickTableAdapter.applyOpenAction(SingleClickTableAdapter.java:103)
    at atg.ui.common.SingleClickTableAdapter.mouseClicked(SingleClickTableAdapter.java:145)
    at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
    at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:252)
    at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:252)
    at java.awt.Component.processMouseEvent(Component.java:6291)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6053)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4651)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4481)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4247)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4481)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
    to java.awt.EventQueue.access$ 000 (EventQueue.java:84)
    in java.awt.EventQueue$ 1.run(EventQueue.java:602)
    in java.awt.EventQueue$ 1.run(EventQueue.java:600)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)
    in java.awt.EventQueue$ 2.run(EventQueue.java:616)
    in java.awt.EventQueue$ 2.run(EventQueue.java:614)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)


    Kind regards
    Jyothi.MJ

    Make sure you have the ATG-Class-Path and ATG-Client-Class-Path defined in your 'manifest '. MF.

    The best thing to do is to copy all entries from jar of ATG-Class-Path to ATG-Client-Class-Path.

    I hope this helps.

  • Reply to thread-&gt; java.lang.UnsatisfiedLinkError: com.sun.media.vfw.VFWCapture.cacheFieldIDs (Z)

    java.lang.UnsatisfiedLinkError: com.sun.media.vfw.VFWCapture.cacheFieldIDs (Z)

    This issue is no answer.

    2827163Newbie

    So I try to start with the java media framework (JMF). Ive installed the jmf 2.1.1e for windows and I am using eclipse IDE.

    I tried to add the jars for the projects generate path files and the DLLs for the path to the library, but I get this error when you try to run the project:

    java.lang.UnsatisfiedLinkError: com.sun.media.vfw.VFWCapture.cacheFieldIDs (Z)

    Here are the details of the full changelog:

    CaptureDeviceInfo: vfw:Microsoft WDM Image Capture (Win32): 0: vfw: / / 0

    YUV video format: = java.awt.Dimension size [width = 640, height = 480] [B yuvType = 32 StrideY = 1280 StrideUV = 1280 OffsetY = 0 OffsetU = 1 OffsetV = 3-MaxDataLength = 614400 DataType = class

    YUV video format: = java.awt.Dimension size [width = 160, height = 120] [B yuvType = 32 StrideY = 320 StrideUV = 320 OffsetY = 0 OffsetU = 1 OffsetV = 3-MaxDataLength = 38400 DataType = class

    YUV video format: = java.awt.Dimension size [width = 320, height = 240] MaxDataLength = 153600 DataType = class [B yuvType = 32 StrideY = 640 StrideUV 640 OffsetY = 0 OffsetU = 1 OffsetV = 3 =

    Exception in thread "Thread of VFW application" java.lang.UnsatisfiedLinkError: com.sun.media.vfw.VFWCapture.cacheFieldIDs (Z)

    at com.sun.media.vfw.VFWCapture.cacheFieldIDs (Native Method)

    to com.sun.media.vfw.VFWCapture. < clinit > (VFWCapture.java:27)

    at com.sun.media.protocol.vfw.VFWSourceStream.doConnect(VFWSourceStream.java:249)

    at com.sun.media.protocol.vfw.VFWSourceStream.run(VFWSourceStream.java:771)

    at java.lang.Thread.run(Thread.java:619)

    Can someone help me?

    Please place the dll files in appropriate locations. This error is generated when the Java class cannot find the required native library.

    Thank you

    Adil

  • java.lang.NullPointerException after upgrading to 10.1.3.5.5 ODI

    Hello

    I've recently updated 10.1.3.5.0 to 10.1.3.5.5 ODI by applying the update rollup (Version: 10.1.3.5.5 |) Date: December 3, 2009 | p9200535_101350_Generic).

    Planning interfaces are work well after you apply the hotfix, but are NOT the interfaces that use Essbase.

    I get the following error when I run and the Essbase interface against a local agent.

    org.apache.bsf.BSFException: exception of Jython:
    Traceback (innermost last):

    "< String >" file, line 79, inside?

    java.lang.NullPointerException
    at com.hyperion.odi.essbase.ODIEssbaseDataWriter.validateLoadOptions (unknown Source)
    at com.hyperion.odi.essbase.AbstractEssbaseWriter.beginLoad (unknown Source)
    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 org.python.core.PyReflectedFunction.__call__ (PyReflectedFunction.java)
    at org.python.core.PyMethod.__call__ (PyMethod.java)
    at org.python.core.PyObject.__call__ (PyObject.java)
    at org.python.core.PyInstance.invoke (PyInstance.java)
    to org.python.pycode._pyx0.f$ 0 (< string >: 79)
    to org.python.pycode._pyx0.call_function (< string >)
    at org.python.core.PyTableCode.call (PyTableCode.java)
    at org.python.core.PyCode.call (PyCode.java)
    at org.python.core.Py.runCode (Py.java)
    at org.python.core.Py.exec (Py.java)
    at org.python.util.PythonInterpreter.exec (PythonInterpreter.java)
    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)
    at com.sunopsis.dwg.codeinterpretor.k.a (k.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt (SnpSessTaskSqlI.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep (SnpSessStep.java)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession (SnpSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand (DwgCommandSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.execute (DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.j (e.java)
    at com.sunopsis.dwg.cmd.g.z (g.java)
    at com.sunopsis.dwg.cmd.e.run (e.java)
    at java.lang.Thread.run (unknown Source)

    java.lang.NullPointerException: java.lang.NullPointerException

    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
    at com.sunopsis.dwg.codeinterpretor.k.a (k.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt (SnpSessTaskSqlI.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep (SnpSessStep.java)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession (SnpSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand (DwgCommandSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.execute (DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.j (e.java)
    at com.sunopsis.dwg.cmd.g.z (g.java)
    at com.sunopsis.dwg.cmd.e.run (e.java)
    at java.lang.Thread.run (unknown Source)

    ************************************************************************************************

    But I get the following error when I run an Essbase interface against a Word with agent TST_AGENT_1, manually created as a windows service:

    org.apache.bsf.BSFException: exception of Jython:
    Traceback (innermost last):

    "< String >" file, line 79, inside?

    com.hyperion.odi.essbase.ODIEssbaseException: error occurred while running script maxl. Error message is:
    at com.hyperion.odi.essbase.ODIEssbaseConnection.executeMaxl (unknown Source)
    at com.hyperion.odi.essbase.AbstractEssbaseWriter.beginLoad (unknown Source)
    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 org.python.core.PyReflectedFunction.__call__ (PyReflectedFunction.java)
    at org.python.core.PyMethod.__call__ (PyMethod.java)
    at org.python.core.PyObject.__call__ (PyObject.java)
    at org.python.core.PyInstance.invoke (PyInstance.java)
    to org.python.pycode._pyx0.f$ 0 (< string >: 79)
    to org.python.pycode._pyx0.call_function (< string >)
    at org.python.core.PyTableCode.call (PyTableCode.java)
    at org.python.core.PyCode.call (PyCode.java)
    at org.python.core.Py.runCode (Py.java)
    at org.python.core.Py.exec (Py.java)
    at org.python.util.PythonInterpreter.exec (PythonInterpreter.java)
    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:144)
    at com.sunopsis.dwg.codeinterpretor.k.a (k.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt (SnpSessTaskSqlI.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep (SnpSessStep.java)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession (SnpSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand (DwgCommandSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.execute (DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.j (e.java)
    at com.sunopsis.dwg.cmd.h.z (h.java)
    at com.sunopsis.dwg.cmd.e.run (e.java)
    at java.lang.Thread.run (unknown Source)

    Caused by: com.essbase.api.base.EssException: error occurred while running script maxl. Error message is:

    at com.hyperion.odi.essbase.wrapper.EssbaseConnection.executeMaxl (unknown Source)

    ... more than 33

    com.hyperion.odi.essbase.ODIEssbaseException: com.hyperion.odi.essbase.ODIEssbaseException: error occurred while running script maxl. Error message is:

    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
    at com.sunopsis.dwg.codeinterpretor.k.a (k.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt (SnpSessTaskSqlI.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask (SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep (SnpSessStep.java)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession (SnpSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand (DwgCommandSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.execute (DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.j (e.java)
    at com.sunopsis.dwg.cmd.h.z (h.java)
    at com.sunopsis.dwg.cmd.e.run (e.java)
    at java.lang.Thread.run (unknown Source)


    The MAXL script works fine from the command line in the shell to essmsh. Environment variables have been set up correctly for essmsh. Essmsh shell called command line.


    To apply the patch, I just copied the contents of the oracledi file present in the patch on the top application of oracledi existing ODI record. Let me know if I missed a step.

    Indications will be useful.


    Thanks in advance!

    This means that you have not imported into the new KM for "IKM SQL for Hyperion Essbase (data)", you always use the original and it will fail because the new version has additional options.
    Right click the KM existing - import/replace, then navigate to SQL IKM for Essbase data.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • YES is not openinig.   Exception in thread "main" java.lang.NoClassDefFound

    Hello.


    while I try to install the oracle server, get the below error



    From Oracle Universal Installer...

    Check the Temp space: must be greater than 80 MB. Real 9277 MB passed
    Check the swap space: must be greater than 150 MB. Real 3529 MB passed
    Monitor: must be configured to display at least 256 colors
    > > > Could not execute auto check for display colors using command/usr/bin/xdpyinfo(1). Check if the DISPLAY variable is set. Failure of < < < <

    Audits of the requirement has failed. You must meet these conditions before

    continue with the installation,

    Continue? (y/n) [n] n

    Prerequisite required Ignoring failures. Persistence of...
    Preparations for the launch of Oracle Universal Installer from/tmp/OraInstall2012-09-27_02-55-33 AM. Please wait... [data satish@rac1] $ Exception in thread "main" java.lang.NoClassDefFoundError
    at java.lang.Class.forName0 (Native Method)
    at java.lang.Class.forName(Class.java:164)
    in java.awt.Toolkit$ 2.run(Toolkit.java:821)
    at java.security.AccessController.doPrivileged (Native Method)
    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)
    at com.jgoodies.looks.LookUtils.isLowResolution (unknown Source)
    to com.jgoodies.looks.LookUtils. < clinit >(Unknown Source)
    to com.jgoodies.looks.plastic.PlasticLookAndFeel. < clinit > (PlasticLookAndFeel.java:122)
    at java.lang.Class.forName0 (Native Method)
    at java.lang.Class.forName(Class.java:242)
    at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1783)
    at javax.swing.UIManager.setLookAndFeel(UIManager.java:480)
    at oracle.install.commons.util.Application.startup(Application.java:758)
    at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164)
    at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)
    at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:265)
    at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:114)
    at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:132)

    Details of the message of pl of the OS and database versions. PL see many previous discussions on this topic

    https://forums.Oracle.com/forums/search.jspa?threadID=&q=display+and+failed&objid=F64&DateRange=all&userid=&NumResults=15

    HTH
    Srini

Maybe you are looking for