Halo rekan-rekan,
Mungkin ada yang pernah mendapatkan keanehan ini, mohon di share solusinya.
Saya membuat aplikasi Java menggunakan Oracle ADF Swing dan ADF Business
Component. Didalam aplikasi tersebut saya membuat beberapa form yang
menampilkan data menggunakan JTable (JTable dibuat secara drag and drop
menggunakan ADF Business Component), dan beberapa form yang master detail
(master dalam bentuk form dan detailnya dalan JTable). Saat aplikasi
dijalankan dari JDeveloper ok-ok saja, JTable menampilkan data secara benar,
dll.
Namun saat saya mendeploy aplikasi dalam bentuk jar (semua library sudah
ikut di deploy) terjadi error saat aplikasi menampilkan form yang memuat
JTable, untuk form yang master detail hanya masternya saja yang muncul namun
detailnya yang dibuat menggunakan JTable tidak muncul. Setelah utak sana dan
utik sini, ternyata apabila syntax untuk memanggil jar yaitu: java -jar
aplikasi.jar diganti dengan: D:\Java\JDeveloper10.1.3.2\jdk\bin\java -jar
aplikasi.jar (menggunakan JDK bawaan JDeveloper) maka aplikasi berjalan
normal.
Tentunya tidak mungkin saya harus menginstall JDeveloper di setiap client yg
akan memakai aplikasi tersebut.
Mohon apabila ada yang pernah mendapatkan pencerahan untuk kasus yang sama,
mohon di share.
berikut detail error yang terjadi:
oracle.jbo.JboException: JBO-29000: Unexpected exception caught:
java.lang.NullPointerException, msg=null
at oracle.adf.model.binding.DCBindingContainer.reportException(
DCBindingContainer.java:228)
at oracle.adf.model.binding.DCBindingContainer.reportException(
DCBindingContainer.java:274)
at com.braveheart.myapp.view.window.ServerForm.setBindingContext(
ServerForm.java:227)
at com.braveheart.myapp.view.window.Application.runServer(
Application.java:1343)
at
com.braveheart.myapp.view.window.Application.tableServerMenuItem_actionPerformed
(Application.java:1362)
at
com.braveheart.myapp.view.window.Application.mav$tableServerMenuItem_actionPerformed
(Application.java:55)
at com.braveheart.myapp.view.window.Application$16.actionPerformed(
Application.java:377)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(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.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.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)
## Detail 0 ##
java.lang.NullPointerException
at javax.swing.JTable.getLeadingRow(Unknown Source)
at javax.swing.JTable.getScrollableUnitIncrement(Unknown Source)
at oracle.jbo.uicli.jui.JUTableBinding$JUTableModel.<init>(
JUTableBinding.java:947)
at oracle.jbo.uicli.jui.JUTableBinding.getModelImpl(JUTableBinding.java
:498)
at oracle.jbo.uicli.jui.JUTableBinding.setControl(JUTableBinding.java
:373)
at oracle.jbo.uicli.jui.JUTableBinding.getControlModel(
JUTableBinding.java:137)
at oracle.jbo.uicli.jui.JUPanelBinding.bindUIControl(JUPanelBinding.java
:791)
at com.braveheart.myapp.view.window.ServerForm.jbInit(ServerForm.java
:112)
at com.braveheart.myapp.view.window.ServerForm.setBindingContext(
ServerForm.java:224)
at com.braveheart.myapp.view.window.Application.runServer(
Application.java:1343)
at
com.braveheart.myapp.view.window.Application.tableServerMenuItem_actionPerformed
(Application.java:1362)
at
com.braveheart.myapp.view.window.Application.mav$tableServerMenuItem_actionPerformed
(Application.java:55)
at com.braveheart.myapp.view.window.Application$16.actionPerformed(
Application.java:377)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(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.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.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)
[Non-text portions of this message have been removed]