dboyd6868
asked on
cachedRowSet SQLException
Hey all,
I know i have asked this question in this forum before but i kinda of need a soultion so though i would see if some fresh eyes would know.
I am using a cachedRowSet
And I am just wondering when I execute an acceptChanges(con) command that causes a jdbc error to occur e.g insert nulls into columns that don’t allow nulls.
Is there any way to get the jdbc error message?
I get this exception printed to the command line by the cachedRowSetImp
java.sql.SQLException: Cannot insert the value NULL into column ‘ratio’, table 'Tuning.dbo.PROPERTY'; column does not allow nulls. INSERT fails.
And this exception thrown
javax.sql.rowset.spi.SyncP roviderExc eption: 5 conflicts while synchronizing
I really want to catch the first exception or at least be able to get the errorCode /error message
Does anyone know if is/is not possible to get this error because from what I have seen it is not possible
if there is no soultion which i assume there isn't as i have looked. I am wondering if another imp of cached row set would be ok
anyone have any other impl of cachedRowSet that they know works?
I am using Suns java 5 update 6 version
I know i have asked this question in this forum before but i kinda of need a soultion so though i would see if some fresh eyes would know.
I am using a cachedRowSet
And I am just wondering when I execute an acceptChanges(con) command that causes a jdbc error to occur e.g insert nulls into columns that don’t allow nulls.
Is there any way to get the jdbc error message?
I get this exception printed to the command line by the cachedRowSetImp
java.sql.SQLException: Cannot insert the value NULL into column ‘ratio’, table 'Tuning.dbo.PROPERTY'; column does not allow nulls. INSERT fails.
And this exception thrown
javax.sql.rowset.spi.SyncP
I really want to catch the first exception or at least be able to get the errorCode /error message
Does anyone know if is/is not possible to get this error because from what I have seen it is not possible
if there is no soultion which i assume there isn't as i have looked. I am wondering if another imp of cached row set would be ok
anyone have any other impl of cachedRowSet that they know works?
I am using Suns java 5 update 6 version
using the try catch block you can take the exception.
I think your error is given out when you use:
crs.updateRow()
encapsulate is in a try catch block like following:
try{
crs.updateRow();
}catch (Exception ex){
//in ex object there are all information about the exception.
}
Hope this could help you.
Bye, Giant.
crs.updateRow()
encapsulate is in a try catch block like following:
try{
crs.updateRow();
}catch (Exception ex){
//in ex object there are all information about the exception.
}
Hope this could help you.
Bye, Giant.
P.S. even with crs.InsertRow() method.
ASKER
Problem is it doesn't work like that there is no exception details
this is my code
public void updateChanges()throws SQLException,SyncProviderE xception
{
Connection con = null;
try
{
con = BeanFactory.getConnectionF actory().c reateConne ction();
super.acceptChanges(con);
super.execute();
con.close();
}
catch (SQLException e)
{
System.out.println("ERROR" );
e.printStackTrace();
con.close();
super.execute();
throw e;
}
catch(Exception ej)
{
System.out.println("ERROR2 ");
}
}
this is the stack trace i want to try to get the first SQLException that cachedRowSet seems to print the stacktrace of but not throw it
java.sql.SQLException: Cannot insert the value NULL into column 'altModulusOfElasticity', table 'Tuning.dbo.PROPERTY'; column does not allow nulls. INSERT fails.
at net.sourceforge.jtds.jdbc. SQLDiagnos tic.addDia gnostic(SQ LDiagnosti c.java:365 )
at net.sourceforge.jtds.jdbc. TdsCore.td sErrorToke n(TdsCore. java:2781)
at net.sourceforge.jtds.jdbc. TdsCore.ne xtToken(Td sCore.java :2224)
at net.sourceforge.jtds.jdbc. TdsCore.ge tMoreResul ts(TdsCore .java:628)
at net.sourceforge.jtds.jdbc. JtdsStatem ent.proces sResults(J tdsStateme nt.java:52 5)
at net.sourceforge.jtds.jdbc. JtdsStatem ent.execut eSQL(JtdsS tatement.j ava:487)
at net.sourceforge.jtds.jdbc. JtdsPrepar edStatemen t.executeU pdate(Jtds PreparedSt atement.ja va:421)
at com.sun.rowset.internal.Ca chedRowSet Writer.upd ateOrigina lRow(Cache dRowSetWri ter.java:6 93)
at com.sun.rowset.internal.Ca chedRowSet Writer.wri teData(Cac hedRowSetW riter.java :331)
at com.sun.rowset.CachedRowSe tImpl.acce ptChanges( CachedRowS etImpl.jav a:859)
at com.sun.rowset.CachedRowSe tImpl.acce ptChanges( CachedRowS etImpl.jav a:919)
at com.indauto.util.IASCached RowSet.upd ateChanges (IASCached RowSet.jav a:59)
at materialGradeMaintenance.M aterialPro pertyData. saveMateri alProperty (MaterialP ropertyDat a.java:315 )
at sun.reflect.NativeMethodAc cessorImpl .invoke0(N ative Method)
at sun.reflect.NativeMethodAc cessorImpl .invoke(Na tiveMethod AccessorIm pl.java:39 )
at sun.reflect.DelegatingMeth odAccessor Impl.invok e(Delegati ngMethodAc cessorImpl .java:25)
at java.lang.reflect.Method.i nvoke(Meth od.java:58 5)
at com.sun.faces.el.MethodBin dingImpl.i nvoke(Meth odBindingI mpl.java:1 26)
at com.sun.faces.application. ActionList enerImpl.p rocessActi on(ActionL istenerImp l.java:72)
at javax.faces.component.UICo mmand.broa dcast(UICo mmand.java :312)
at javax.faces.component.UIVi ewRoot.bro adcastEven ts(UIViewR oot.java:2 67)
at javax.faces.component.UIVi ewRoot.pro cessApplic ation(UIVi ewRoot.jav a:381)
at com.sun.faces.lifecycle.In vokeApplic ationPhase .execute(I nvokeAppli cationPhas e.java:75)
at com.sun.faces.lifecycle.Li fecycleImp l.phase(Li fecycleImp l.java:200 )
at com.sun.faces.lifecycle.Li fecycleImp l.execute( LifecycleI mpl.java:9 0)
at javax.faces.webapp.FacesSe rvlet.serv ice(FacesS ervlet.jav a:197)
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:252 )
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 73)
at org.ajaxanywhere.AAFilter. doFilter(A AFilter.ja va:55)
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:202 )
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 73)
at org.apache.myfaces.compone nt.html.ut il.Extensi onsFilter. doFilter(E xtensionsF ilter.java :122)
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:202 )
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 73)
at org.apache.catalina.core.S tandardWra pperValve. invoke(Sta ndardWrapp erValve.ja va:213)
at org.apache.catalina.core.S tandardCon textValve. invoke(Sta ndardConte xtValve.ja va:178)
at org.apache.catalina.core.S tandardHos tValve.inv oke(Standa rdHostValv e.java:126 )
at org.apache.catalina.valves .ErrorRepo rtValve.in voke(Error ReportValv e.java:105 )
at org.apache.catalina.core.S tandardEng ineValve.i nvoke(Stan dardEngine Valve.java :107)
at org.apache.catalina.connec tor.Coyote Adapter.se rvice(Coyo teAdapter. java:148)
at org.apache.coyote.http11.H ttp11Proce ssor.proce ss(Http11P rocessor.j ava:868)
at org.apache.coyote.http11.H ttp11BaseP rotocol$Ht tp11Connec tionHandle r.processC onnection( Http11Base Protocol.j ava:663)
at org.apache.tomcat.util.net .PoolTcpEn dpoint.pro cessSocket (PoolTcpEn dpoint.jav a:527)
at org.apache.tomcat.util.net .LeaderFol lowerWorke rThread.ru nIt(Leader FollowerWo rkerThread .java:80)
at org.apache.tomcat.util.thr eads.Threa dPool$Cont rolRunnabl e.run(Thre adPool.jav a:684)
at java.lang.Thread.run(Threa d.java:595 )
//SQL EXCEPTION CAUGHT
ERROR
javax.sql.rowset.spi.SyncP roviderExc eption: 4 conflicts while synchronizing
at com.sun.rowset.internal.Ca chedRowSet Writer.wri teData(Cac hedRowSetW riter.java :382)
at com.sun.rowset.CachedRowSe tImpl.acce ptChanges( CachedRowS etImpl.jav a:859)
at com.sun.rowset.CachedRowSe tImpl.acce ptChanges( CachedRowS etImpl.jav a:919)
at com.indauto.util.IASCached RowSet.upd ateChanges (IASCached RowSet.jav a:59)
at materialGradeMaintenance.M aterialPro pertyData. saveMateri alProperty (MaterialP ropertyDat a.java:315 )
at sun.reflect.NativeMethodAc cessorImpl .invoke0(N ative Method)
at sun.reflect.NativeMethodAc cessorImpl .invoke(Na tiveMethod AccessorIm pl.java:39 )
at sun.reflect.DelegatingMeth odAccessor Impl.invok e(Delegati ngMethodAc cessorImpl .java:25)
at java.lang.reflect.Method.i nvoke(Meth od.java:58 5)
at com.sun.faces.el.MethodBin dingImpl.i nvoke(Meth odBindingI mpl.java:1 26)
at com.sun.faces.application. ActionList enerImpl.p rocessActi on(ActionL istenerImp l.java:72)
at javax.faces.component.UICo mmand.broa dcast(UICo mmand.java :312)
at javax.faces.component.UIVi ewRoot.bro adcastEven ts(UIViewR oot.java:2 67)
at javax.faces.component.UIVi ewRoot.pro cessApplic ation(UIVi ewRoot.jav a:381)
at com.sun.faces.lifecycle.In vokeApplic ationPhase .execute(I nvokeAppli cationPhas e.java:75)
at com.sun.faces.lifecycle.Li fecycleImp l.phase(Li fecycleImp l.java:200 )
at com.sun.faces.lifecycle.Li fecycleImp l.execute( LifecycleI mpl.java:9 0)
at javax.faces.webapp.FacesSe rvlet.serv ice(FacesS ervlet.jav a:197)
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:252 )
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 73)
at org.ajaxanywhere.AAFilter. doFilter(A AFilter.ja va:55)
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:202 )
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 73)
at org.apache.myfaces.compone nt.html.ut il.Extensi onsFilter. doFilter(E xtensionsF ilter.java :122)
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:202 )
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 73)
at org.apache.catalina.core.S tandardWra pperValve. invoke(Sta ndardWrapp erValve.ja va:213)
at org.apache.catalina.core.S tandardCon textValve. invoke(Sta ndardConte xtValve.ja va:178)
at org.apache.catalina.core.S tandardHos tValve.inv oke(Standa rdHostValv e.java:126 )
at org.apache.catalina.valves .ErrorRepo rtValve.in voke(Error ReportValv e.java:105 )
at org.apache.catalina.core.S tandardEng ineValve.i nvoke(Stan dardEngine Valve.java :107)
at org.apache.catalina.connec tor.Coyote Adapter.se rvice(Coyo teAdapter. java:148)
at org.apache.coyote.http11.H ttp11Proce ssor.proce ss(Http11P rocessor.j ava:868)
at org.apache.coyote.http11.H ttp11BaseP rotocol$Ht tp11Connec tionHandle r.processC onnection( Http11Base Protocol.j ava:663)
at org.apache.tomcat.util.net .PoolTcpEn dpoint.pro cessSocket (PoolTcpEn dpoint.jav a:527)
at org.apache.tomcat.util.net .LeaderFol lowerWorke rThread.ru nIt(Leader FollowerWo rkerThread .java:80)
at org.apache.tomcat.util.thr eads.Threa dPool$Cont rolRunnabl e.run(Thre adPool.jav a:684)
at java.lang.Thread.run(Threa d.java:595 )
javax.sql.rowset.spi.SyncP roviderExc eption: 4 conflicts while synchronizing
at com.sun.rowset.internal.Ca chedRowSet Writer.wri teData(Cac hedRowSetW riter.java :382)
at com.sun.rowset.CachedRowSe tImpl.acce ptChanges( CachedRowS etImpl.jav a:859)
at com.sun.rowset.CachedRowSe tImpl.acce ptChanges( CachedRowS etImpl.jav a:919)
at com.indauto.util.IASCached RowSet.upd ateChanges (IASCached RowSet.jav a:59)
at materialGradeMaintenance.M aterialPro pertyData. saveMateri alProperty (MaterialP ropertyDat a.java:315 )
at sun.reflect.NativeMethodAc cessorImpl .invoke0(N ative Method)
at sun.reflect.NativeMethodAc cessorImpl .invoke(Na tiveMethod AccessorIm pl.java:39 )
at sun.reflect.DelegatingMeth odAccessor Impl.invok e(Delegati ngMethodAc cessorImpl .java:25)
at java.lang.reflect.Method.i nvoke(Meth od.java:58 5)
at com.sun.faces.el.MethodBin dingImpl.i nvoke(Meth odBindingI mpl.java:1 26)
at com.sun.faces.application. ActionList enerImpl.p rocessActi on(ActionL istenerImp l.java:72)
at javax.faces.component.UICo mmand.broa dcast(UICo mmand.java :312)
at javax.faces.component.UIVi ewRoot.bro adcastEven ts(UIViewR oot.java:2 67)
at javax.faces.component.UIVi ewRoot.pro cessApplic ation(UIVi ewRoot.jav a:381)
at com.sun.faces.lifecycle.In vokeApplic ationPhase .execute(I nvokeAppli cationPhas e.java:75)
at com.sun.faces.lifecycle.Li fecycleImp l.phase(Li fecycleImp l.java:200 )
at com.sun.faces.lifecycle.Li fecycleImp l.execute( LifecycleI mpl.java:9 0)
at javax.faces.webapp.FacesSe rvlet.serv ice(FacesS ervlet.jav a:197)
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:252 )
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 73)
at org.ajaxanywhere.AAFilter. doFilter(A AFilter.ja va:55)
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:202 )
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 73)
at org.apache.myfaces.compone nt.html.ut il.Extensi onsFilter. doFilter(E xtensionsF ilter.java :122)
at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:202 )
at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 73)
at org.apache.catalina.core.S tandardWra pperValve. invoke(Sta ndardWrapp erValve.ja va:213)
at org.apache.catalina.core.S tandardCon textValve. invoke(Sta ndardConte xtValve.ja va:178)
at org.apache.catalina.core.S tandardHos tValve.inv oke(Standa rdHostValv e.java:126 )
at org.apache.catalina.valves .ErrorRepo rtValve.in voke(Error ReportValv e.java:105 )
at org.apache.catalina.core.S tandardEng ineValve.i nvoke(Stan dardEngine Valve.java :107)
at org.apache.catalina.connec tor.Coyote Adapter.se rvice(Coyo teAdapter. java:148)
at org.apache.coyote.http11.H ttp11Proce ssor.proce ss(Http11P rocessor.j ava:868)
at org.apache.coyote.http11.H ttp11BaseP rotocol$Ht tp11Connec tionHandle r.processC onnection( Http11Base Protocol.j ava:663)
at org.apache.tomcat.util.net .PoolTcpEn dpoint.pro cessSocket (PoolTcpEn dpoint.jav a:527)
at org.apache.tomcat.util.net .LeaderFol lowerWorke rThread.ru nIt(Leader FollowerWo rkerThread .java:80)
at org.apache.tomcat.util.thr eads.Threa dPool$Cont rolRunnabl e.run(Thre adPool.jav a:684)
at java.lang.Thread.run(Threa d.java:595 )
this is my code
public void updateChanges()throws SQLException,SyncProviderE
{
Connection con = null;
try
{
con = BeanFactory.getConnectionF
super.acceptChanges(con);
super.execute();
con.close();
}
catch (SQLException e)
{
System.out.println("ERROR"
e.printStackTrace();
con.close();
super.execute();
throw e;
}
catch(Exception ej)
{
System.out.println("ERROR2
}
}
this is the stack trace i want to try to get the first SQLException that cachedRowSet seems to print the stacktrace of but not throw it
java.sql.SQLException: Cannot insert the value NULL into column 'altModulusOfElasticity', table 'Tuning.dbo.PROPERTY'; column does not allow nulls. INSERT fails.
at net.sourceforge.jtds.jdbc.
at net.sourceforge.jtds.jdbc.
at net.sourceforge.jtds.jdbc.
at net.sourceforge.jtds.jdbc.
at net.sourceforge.jtds.jdbc.
at net.sourceforge.jtds.jdbc.
at net.sourceforge.jtds.jdbc.
at com.sun.rowset.internal.Ca
at com.sun.rowset.internal.Ca
at com.sun.rowset.CachedRowSe
at com.sun.rowset.CachedRowSe
at com.indauto.util.IASCached
at materialGradeMaintenance.M
at sun.reflect.NativeMethodAc
at sun.reflect.NativeMethodAc
at sun.reflect.DelegatingMeth
at java.lang.reflect.Method.i
at com.sun.faces.el.MethodBin
at com.sun.faces.application.
at javax.faces.component.UICo
at javax.faces.component.UIVi
at javax.faces.component.UIVi
at com.sun.faces.lifecycle.In
at com.sun.faces.lifecycle.Li
at com.sun.faces.lifecycle.Li
at javax.faces.webapp.FacesSe
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.ajaxanywhere.AAFilter.
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.apache.myfaces.compone
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.valves
at org.apache.catalina.core.S
at org.apache.catalina.connec
at org.apache.coyote.http11.H
at org.apache.coyote.http11.H
at org.apache.tomcat.util.net
at org.apache.tomcat.util.net
at org.apache.tomcat.util.thr
at java.lang.Thread.run(Threa
//SQL EXCEPTION CAUGHT
ERROR
javax.sql.rowset.spi.SyncP
at com.sun.rowset.internal.Ca
at com.sun.rowset.CachedRowSe
at com.sun.rowset.CachedRowSe
at com.indauto.util.IASCached
at materialGradeMaintenance.M
at sun.reflect.NativeMethodAc
at sun.reflect.NativeMethodAc
at sun.reflect.DelegatingMeth
at java.lang.reflect.Method.i
at com.sun.faces.el.MethodBin
at com.sun.faces.application.
at javax.faces.component.UICo
at javax.faces.component.UIVi
at javax.faces.component.UIVi
at com.sun.faces.lifecycle.In
at com.sun.faces.lifecycle.Li
at com.sun.faces.lifecycle.Li
at javax.faces.webapp.FacesSe
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.ajaxanywhere.AAFilter.
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.apache.myfaces.compone
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.valves
at org.apache.catalina.core.S
at org.apache.catalina.connec
at org.apache.coyote.http11.H
at org.apache.coyote.http11.H
at org.apache.tomcat.util.net
at org.apache.tomcat.util.net
at org.apache.tomcat.util.thr
at java.lang.Thread.run(Threa
javax.sql.rowset.spi.SyncP
at com.sun.rowset.internal.Ca
at com.sun.rowset.CachedRowSe
at com.sun.rowset.CachedRowSe
at com.indauto.util.IASCached
at materialGradeMaintenance.M
at sun.reflect.NativeMethodAc
at sun.reflect.NativeMethodAc
at sun.reflect.DelegatingMeth
at java.lang.reflect.Method.i
at com.sun.faces.el.MethodBin
at com.sun.faces.application.
at javax.faces.component.UICo
at javax.faces.component.UIVi
at javax.faces.component.UIVi
at com.sun.faces.lifecycle.In
at com.sun.faces.lifecycle.Li
at com.sun.faces.lifecycle.Li
at javax.faces.webapp.FacesSe
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.ajaxanywhere.AAFilter.
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.apache.myfaces.compone
at org.apache.catalina.core.A
at org.apache.catalina.core.A
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.core.S
at org.apache.catalina.valves
at org.apache.catalina.core.S
at org.apache.catalina.connec
at org.apache.coyote.http11.H
at org.apache.coyote.http11.H
at org.apache.tomcat.util.net
at org.apache.tomcat.util.net
at org.apache.tomcat.util.thr
at java.lang.Thread.run(Threa
ASKER
that method i have is a method in a class i have that extends CachedRowSetImpl (just needed some extra features the standard imp doens't have)
you put this code in a try catch block.
con = BeanFactory.getConnectionF actory().c reateConne ction();
super.acceptChanges(con);
super.execute();
con.close();
in the super class methods you call (acceptChanges(con) and execute()) are there try catch block?
con = BeanFactory.getConnectionF
super.acceptChanges(con);
super.execute();
con.close();
in the super class methods you call (acceptChanges(con) and execute()) are there try catch block?
ASKER
the super class is the java CachedRowSetImpl (which is the implementaion of the CachedRowSet
i.e no source no idea.
the only reason i extended it is that CachedRowSet does not define behaviour for the rowSet method getRowCount()
i just needed to implement this method thats all
i.e no source no idea.
the only reason i extended it is that CachedRowSet does not define behaviour for the rowSet method getRowCount()
i just needed to implement this method thats all
You can see where is the message catched taking the .class you suspect and decompile it.
In this manner you can see the method generate the exception and you can extends only that.
In this manner you can see the method generate the exception and you can extends only that.
>method getRowCount()
there is the size() method.
int size() Returns the number of rows in this CachedRowSet object.
Returns:
number of rows in the rowset
there is the size() method.
int size() Returns the number of rows in this CachedRowSet object.
Returns:
number of rows in the rowset
ASKER
already decompiled it but the code i get is somewhat funky i.e it wont recompile
i ddint see the excpetion stored anywhere and the method is the writeData() which is the main method for saving information if i want to extend this i may as well write my own rowSetWriter class
seems silly and if the code was easy to follow i could understand it but it uses some interesting no document java features
i ddint see the excpetion stored anywhere and the method is the writeData() which is the main method for saving information if i want to extend this i may as well write my own rowSetWriter class
seems silly and if the code was easy to follow i could understand it but it uses some interesting no document java features
>the method is the writeData()
In the code you decompiled do you have seen something about debugging? (debug on/off)
In the code you decompiled do you have seen something about debugging? (debug on/off)
nah no debug options
its the CachedRowSet writer class ( writeData() ) that i think the problem occurs in but if you decompile that class there seems to be alot of jibberish there no sure if its my decompiler cavaj
its the CachedRowSet writer class ( writeData() ) that i think the problem occurs in but if you decompile that class there seems to be alot of jibberish there no sure if its my decompiler cavaj
ASKER
sorry college had their account loged in on this machine above post was mine
So in the writeData() method you see something like:
try{
}catch Exception e{
e.printStackTrace();
}
?
try{
}catch Exception e{
e.printStackTrace();
}
?
ASKER
actually i see some crazy code ( it doesn't recompile after it is decompiled )
it is something like this (note this is the only printStackTrace() in the code from CachedRowSetWriter
private boolean updateOriginalRow(CachedRo wSet cachedrowset)
throws SQLException
{
//other code +
k = preparedstatement1.execute Update();
return false;
return true;
SQLException sqlexception;
sqlexception;
sqlexception.printStackTra ce();
crsResolve.moveToInsertRow ();
for(int l = 1; l <= callerColumnCount; l++)
{
crsResolve.updateNull(l);
}
crsResolve.insertRow();
crsResolve.moveToCurrentRo w();
return true;
}
it is something like this (note this is the only printStackTrace() in the code from CachedRowSetWriter
private boolean updateOriginalRow(CachedRo
throws SQLException
{
//other code +
k = preparedstatement1.execute
return false;
return true;
SQLException sqlexception;
sqlexception;
sqlexception.printStackTra
crsResolve.moveToInsertRow
for(int l = 1; l <= callerColumnCount; l++)
{
crsResolve.updateNull(l);
}
crsResolve.insertRow();
crsResolve.moveToCurrentRo
return true;
}
It seems not good decompiled.
When you decompile the class you add the full package in the decompiler classpath? In this manner you decompile correctly the class and after you can recompile.
k = preparedstatement1.execute Update();/ /OK
return false;//???
return true;//???
SQLException sqlexception;//OK
sqlexception;//???
From the code you posted it's clear the decompiler didn't a correct decompiling.
I try to find the class you say (CachedRowSetWriter) and see what my decompiler told.
When you decompile the class you add the full package in the decompiler classpath? In this manner you decompile correctly the class and after you can recompile.
k = preparedstatement1.execute
return false;//???
return true;//???
SQLException sqlexception;//OK
sqlexception;//???
From the code you posted it's clear the decompiler didn't a correct decompiling.
I try to find the class you say (CachedRowSetWriter) and see what my decompiler told.
Yes.
It's really really different.
Try to use this decompiler:
DJ Java Decompiler 3.9.9.91
available at:
http://members.fortunecity.com/neshkov/dj.html#New39
It can help you decompiling correctly.
Bye, Giant.
It's really really different.
Try to use this decompiler:
DJ Java Decompiler 3.9.9.91
available at:
http://members.fortunecity.com/neshkov/dj.html#New39
It can help you decompiling correctly.
Bye, Giant.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
never found a soultion,
actually found out this is a bug in the implementaion but could never get it correctly decompiled found workarounds for my application.
actually found out this is a bug in the implementaion but could never get it correctly decompiled found workarounds for my application.