Issue Details (XML | Word | Printable)

Key: DERBY-3094
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Bryan Pendleton
Reporter: Peter Balon
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby

Grouping of expressions causes NullPointerException

Created: 02/Oct/07 08:12 AM   Updated: 02/Mar/08 04:16 PM
Return to search
Component/s: SQL
Affects Version/s: 10.3.1.4
Fix Version/s: 10.3.3.0, 10.4.1.3

Time Tracking:
Not Specified

File Attachments:
  Size
HTML File Licensed for inclusion in ASF works d3094_followup.htm 2008-02-22 06:33 PM A B 43 kB
File Licensed for inclusion in ASF works modifyVisitorDoesntWork.diff 2008-02-12 03:33 AM Bryan Pendleton 1 kB
HTML File Licensed for inclusion in ASF works notes.html 2008-02-22 03:39 PM Bryan Pendleton 20 kB
File Licensed for inclusion in ASF works sortExpressions.diff 2008-02-27 03:33 AM Bryan Pendleton 10 kB
File Licensed for inclusion in ASF works sortExpressionsFinal.diff 2008-02-29 04:22 AM Bryan Pendleton 11 kB
File Licensed for inclusion in ASF works twoPass.diff 2008-02-18 10:59 PM Bryan Pendleton 3 kB
File Licensed for inclusion in ASF works TwoPassForHavingClauseAlso.diff 2008-02-20 08:19 PM Bryan Pendleton 7 kB
File Licensed for inclusion in ASF works TwoPassVisitor.diff 2008-02-19 06:31 PM Bryan Pendleton 3 kB
File Licensed for inclusion in ASF works TwoPassVisitorWithCommentsAndTests.diff 2008-02-20 05:18 AM Bryan Pendleton 7 kB
Environment: Windows XP, Eclipse 3.2.2, java 1.5.0.11
Issue Links:
Blocker
 
Reference

Resolution Date: 02/Mar/08 04:16 PM


 Description  « Hide
Following steps to reproduce the bug:

create table xx (a double, b double);
insert into xx values (2, 3);

select a, a*(b/100.000000), count(*) from xx group by a, a*(b/100.000000);

Starting run

select a, a*(b/100.000000), count(*) from xx
group by a, a*(b/100.000000)

Run successful

SQL State = 38000 SQL Code = 20000 SQL Message = Bei der Auswertung eines Ausdrucks wurde die Ausnahme 'java.lang.NullPointerException' ausgelöst. Exception message = java.sql.SQLException: Bei der Auswertung eines Ausdrucks wurde die Ausnahme 'java.lang.NullPointerException' ausgelöst.

Work around:

select a, a*(b/100.000000), count(*) from xx group by a, b, a*(b/100.000000)

Stack trace from application:

java.sql.SQLException: Bei der Auswertung eines Ausdrucks wurde die Ausnahme 'java.lang.NullPointerException' ausgelöst.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedResultSet.closeOnTransactionError(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedResultSet.next(Unknown Source)
at de.arcor.billy.report.views.designer.ReportViewerView.setInput(ReportViewerView.java:255)
at de.arcor.billy.report.views.designer.ReportViewerView.createPartControl(ReportViewerView.java:113)
at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:332)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:197)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
at org.eclipse.ui.internal.Perspective.showView(Perspective.java:1675)
at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:987)
at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:968)
at org.eclipse.ui.internal.WorkbenchPage$13.run(WorkbenchPage.java:3514)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3511)
at de.arcor.billy.report.data.ReportDataAdvisor$2.perspectiveChanged(ReportDataAdvisor.java:268)
at de.arcor.billy.system.actions.AbstractOpenPerspectiveActionDelegate$1.run(AbstractOpenPerspectiveActionDelegate.java:66)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3325)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at de.arcor.billy.product.Billy.run(Billy.java:15)
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)
Caused by: java.sql.SQLException: Java-Ausnahme: ': java.lang.NullPointerException'.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.javaException(Unknown Source)
at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
... 42 more
Caused by: java.lang.NullPointerException
at org.apache.derby.exe.ac9b638174x0115x5f93x1332x0000046fd8a01b.e10(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.apache.derby.impl.services.reflect.ReflectMethod.invoke(Unknown Source)
at org.apache.derby.impl.sql.execute.ProjectRestrictResultSet.doProjection(Unknown Source)
at org.apache.derby.impl.sql.execute.ProjectRestrictResultSet.getNextRowCore(Unknown Source)
at org.apache.derby.impl.sql.execute.ScrollInsensitiveResultSet.getNextRowFromSource(Unknown Source)
at org.apache.derby.impl.sql.execute.ScrollInsensitiveResultSet.getNextRowCore(Unknown Source)
at org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.getNextRow(Unknown Source)
... 37 more

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Thomas Nielsen made changes - 21/Nov/07 08:52 AM
Field Original Value New Value
Link This issue relates to DERBY-3097 [ DERBY-3097 ]
Bryan Pendleton made changes - 09/Feb/08 04:46 PM
Assignee Bryan Pendleton [ bryanpendleton ]
Bryan Pendleton made changes - 12/Feb/08 03:33 AM
Attachment modifyVisitorDoesntWork.diff [ 12375303 ]
Bryan Pendleton made changes - 12/Feb/08 05:09 PM
Link This issue is related to DERBY-883 [ DERBY-883 ]
Bryan Pendleton made changes - 17/Feb/08 08:07 PM
Link This issue is related to DERBY-1624 [ DERBY-1624 ]
Bryan Pendleton made changes - 17/Feb/08 08:08 PM
Link This issue blocks DERBY-2457 [ DERBY-2457 ]
Bryan Pendleton made changes - 18/Feb/08 10:59 PM
Attachment twoPass.diff [ 12375866 ]
Bryan Pendleton made changes - 19/Feb/08 06:31 PM
Attachment TwoPassVisitor.diff [ 12375954 ]
Bryan Pendleton made changes - 20/Feb/08 05:18 AM
Attachment TwoPassVisitorWithCommentsAndTests.diff [ 12375996 ]
Bryan Pendleton made changes - 20/Feb/08 08:19 PM
Attachment TwoPassForHavingClauseAlso.diff [ 12376050 ]
Bryan Pendleton made changes - 22/Feb/08 03:39 PM
Attachment notes.html [ 12376236 ]
A B made changes - 22/Feb/08 06:33 PM
Attachment d3094_followup.htm [ 12376250 ]
Bryan Pendleton made changes - 27/Feb/08 03:33 AM
Attachment sortExpressions.diff [ 12376592 ]
Bryan Pendleton made changes - 28/Feb/08 02:50 PM
Derby Info [Patch Available]
Bryan Pendleton made changes - 29/Feb/08 04:22 AM
Attachment sortExpressionsFinal.diff [ 12376790 ]
Bryan Pendleton made changes - 02/Mar/08 04:16 PM
Derby Info [Patch Available]
Fix Version/s 10.3.2.2 [ 12312885 ]
Resolution Fixed [ 1 ]
Fix Version/s 10.4.0.0 [ 12312540 ]
Status Open [ 1 ] Resolved [ 5 ]