- This topic has 18 replies, 3 voices, and was last updated 18 years ago by Haris Peco.
-
AuthorPosts
-
jayjaybeeMemberHello,
I use MyEclipse 5.0 + Eclipse 3.2 + Oracle 9i for database (classes12.jar for jdbc).
When i try “Edit Data” of a table in MyEclipse Database Explorer perspective, it doesn’t work.
More precisely, it opens a view named Edit table “SCHEMA_NAME”.”TABLE_NAME”. Though, at the bottom of it, an error message is written : Error: Cannot edit: null. This message always appears whatever the where condition i give (even it is left empty).
In “Write your where condition” textfield, i then try to type a wrong syntax, the error message is different (Not Valid sql statement, of course).
Last but not least, here is the stack trace associated to this problem :
!ENTRY com.genuitec.eclipse.sqlexplorer 4 4 2006-08-22 18:02:27.984
!MESSAGE Error opening edit view
!STACK 0
java.lang.NullPointerException
at java.io.Reader.<init>(Reader.java:61)
at java.io.InputStreamReader.<init>(InputStreamReader.java:80)
at java.util.Properties.load(Properties.java:269)
at java.util.PropertyResourceBundle.<init>(PropertyResourceBundle.java:96)
at com.sun.rowset.JdbcRowSetResourceBundle.<init>()V(Unknown Source)
at com.sun.rowset.JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle()Lcom.sun.rowset.JdbcRowSetResourceBundle;(Unknown Source)
at com.sun.rowset.JdbcRowSetImpl.<init>(Ljava.sql.ResultSet;)V(Unknown Source)
at com.genuitec.eclipse.sqlexplorer.views.EditDataView.getRowSet(EditDataView.java:260)
at com.genuitec.eclipse.sqlexplorer.views.EditDataView$1.run(EditDataView.java:114)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at com.genuitec.eclipse.sqlexplorer.views.EditDataView.createEditArea(EditDataView.java:110)
at com.genuitec.eclipse.sqlexplorer.actions.TableDirectEditInView.run(TableDirectEditInView.java:72)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at jrockit.reflect.InitialMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)Any Ideas ? 🙂
Thanks
Haris PecoMemberjayjaybee,
You have bad driver.You can try download jdbc for oracle9 (or oracle10 – it will work with oracle9 ) from
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.htmlchoose ojdbc14.jar and add to your driver profile
Best
Peco
jayjaybeeMemberHello,
I replaced classes12.jar by ojdbc14.jar. Then, i restarted eclipse and tried again.
I Still have the same error message and edit data does not work.
Any other idea ?
Thank by in advance.
JJB
Haris PecoMemberJJB,
It is strange – I suppose that you have drivers or permissions problems
Please, send me (if it is possible)
– ddl for your table (right click on table and call Generate-DDL)Have you downloaded ojdbc14.jar from oracle site or use one from your distribution ?
Please, check double if you have old jar included (it is better for test that you make new connection with ojdbc14.jar)
Thanks
Peco
Tony HerstellParticipantI get this now.
Was there a solution you found for this.
I have removed and reattached the oracle driver file.
Tony HerstellParticipantAnyone?
Was there a solution found for this?
Tony HerstellParticipantIt happens with all the tables…
Haris PecoMemberHello,
Please send your jdbc version and ddl scipt for table
Thanks
Tony HerstellParticipantcreate table “X”.”CMR_UNIT”(
“CMR_UNIT_ID” NUMBER not null,
“CMR_UNIT_NAME” VARCHAR2(20) not null,
constraint “SYS_C008923” primary key (“CMR_UNIT_ID”)
);create unique index “X”.”SYS_C008923″ on “X”.”CMR_UNIT”(“CMR_UNIT_ID”);
Oracle JDBC Driver
9.2.0.3.0
jdbc:oracle:thin:@ etc.Database is Oracle 9i Enterprise Edition Release 9.2.0.6.0
Tony HerstellParticipanthope this helps
Haris PecoMemberbalanceofpower ,
I can edit this table.Please, can you send error log (Windows-Show View-Other-PDE Runtime-Error Log view)
Note : oracle jdbc driver (all versions) have bug for blob column , but this table work fine.
You can’t insert new row with MyEclipse (for now) – you can only change/edit existing row.Best
Peco
Tony HerstellParticipantjava.lang.NullPointerException
at java.io.Reader.<init>(Unknown Source)
at java.io.InputStreamReader.<init>(Unknown Source)
at java.util.Properties.load(Unknown Source)
at java.util.PropertyResourceBundle.<init>(Unknown Source)
at com.sun.rowset.JdbcRowSetResourceBundle.<init>(Unknown Source)
at com.sun.rowset.JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle(Unknown Source)
at com.sun.rowset.JdbcRowSetImpl.<init>(Unknown Source)
at com.genuitec.eclipse.sqlexplorer.views.EditDataView.getRowSet(EditDataView.java:260)
at com.genuitec.eclipse.sqlexplorer.views.EditDataView$1.run(EditDataView.java:114)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at com.genuitec.eclipse.sqlexplorer.views.EditDataView.createEditArea(EditDataView.java:110)
at com.genuitec.eclipse.sqlexplorer.actions.TableDirectEditInView.run(TableDirectEditInView.java:72)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
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.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)eclipse.buildId=M20060629-1905
java.version=1.4.2_03
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_NZ
Framework arguments: -product com.genuitec.myeclipse.product.ide
Command-line arguments: -os win32 -ws win32 -arch x86 -product com.genuitec.myeclipse.product.ide
This is a continuation of log file C:\X\workspace\.metadata\.bak_0.log
Created Time: 2006-09-19 18:35:50.981
Haris PecoMemberI have tested with oracle jdbc 9.2.0.5 and 10.2.0.2 (latest oracle 10 driver) and your table work fine.
However, based on your log, it looks like oracle jdbc bug.Oracle jdbc drivers have bug with DatabaseMetadata#getPrecision and DatabaseMetadata#getAutoIncrement (sometime oracle return wrong type for this methods, sometime throw exception …)
You can try latest oracle driver ( http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html ) .It works better (for some tables), but
have bugs, too.There is our PR about this problem and we will try make workaround for next release.
Sorry for your inconvenience caused
Best
Peco
Tony HerstellParticipantDriver : Oracle Database 10g Release 2 (10.2.0.2) JDBC Drivers is the most up to date I found…
ojdbc14.jar (1,540,457 bytes) – classes for use with JDK 1.4 and 1.5
Thanks for helping anyhow.Error
Wed Oct 04 14:31:23 NZDT 2006
Error opening edit viewjava.lang.NullPointerException
at java.io.Reader.<init>(Unknown Source)
at java.io.InputStreamReader.<init>(Unknown Source)
at java.util.Properties.load(Unknown Source)
at java.util.PropertyResourceBundle.<init>(Unknown Source)
at com.sun.rowset.JdbcRowSetResourceBundle.<init>(Unknown Source)
at com.sun.rowset.JdbcRowSetResourceBundle.getJdbcRowSetResourceBundle(Unknown Source)
at com.sun.rowset.JdbcRowSetImpl.<init>(Unknown Source)
at com.genuitec.eclipse.sqlexplorer.views.EditDataView.getRowSet(EditDataView.java:260)
at com.genuitec.eclipse.sqlexplorer.views.EditDataView$1.run(EditDataView.java:114)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at com.genuitec.eclipse.sqlexplorer.views.EditDataView.createEditArea(EditDataView.java:110)
at com.genuitec.eclipse.sqlexplorer.actions.TableDirectEditInView.run(TableDirectEditInView.java:72)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
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.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Haris PecoMemberIt is strange that it work for me.I know this jdbc bug and I can reproduce it with table which content blob column.
Please, can you send me output from ‘Advanced ddl’ action and try to create same table (with other name) and call ‘edit data’.Best
-
AuthorPosts