| Summary: | eglx.persistence.sql.SQLException No current connection with simple GET | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Will Smythe <smythew> |
| Component: | EDT | Assignee: | Project Inbox <edt.javagen-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jvincens, mheitz, svihovec, tww |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
The datasources were not being removed from the run unit on exit. fixed Looks good. |
I am getting the same exception with both a Derby and DB2 database when doing a simple "get" statement (using 10/24 build). Here is the EGL function: s SQLDataSource?{@Resource{bindingkey = "NewDerby"}}; customers Customer[]; get customers from s with #sql{select * from customer where state = 'NC' }; The customers array gets populated correctly (the exception does not cause the statement to fail), but an exception is displayed: No current connection.: [sqlstate:08003][sqlcode:40,000] eglx.persistence.sql.SQLException No current connection.: [sqlstate:08003][sqlcode:40,000] at eglx.lang.AnyException.fillInStackTrace(AnyException.java:187) at java.lang.Throwable.<init>(Throwable.java:181) at java.lang.Exception.<init>(Unknown Source) at java.lang.RuntimeException.<init>(Unknown Source) at eglx.lang.AnyException.<init>(AnyException.java:32) at eglx.persistence.sql.SQLException.<init>(SQLException.java:25) at org.eclipse.edt.javart.util.JavartUtil.makeEglException(JavartUtil.java:281) at eglx.persistence.sql.SQLDataSource.commit(SQLDataSource.java:94) at org.eclipse.edt.javart.resources.ResourceManager.commit(ResourceManager.java:63) at org.eclipse.edt.javart.resources.RunUnitBase.commit(RunUnitBase.java:218) at org.eclipse.edt.javart.resources.RunUnitBase.endRunUnit(RunUnitBase.java:282) at org.eclipse.edt.javart.services.servlet.JsonRpcInvoker.invokeEglService(JsonRpcInvoker.java:90) .. Caused by: java.sql.SQLNonTransientConnectionException: No current connection. at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source) at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source) at org.apache.derby.impl.jdbc.Util.noCurrentConnection(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection.checkIfClosed(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection.setupContextStack(Unknown Source) at org.apache.derby.impl.jdbc.EmbedConnection.commit(Unknown Source) at eglx.persistence.sql.SQLDataSource.commit(SQLDataSource.java:91) ... 24 more