You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Mamta A. Satoor (JIRA)" <ji...@apache.org> on 2009/03/22 01:05:50 UTC

[jira] Commented: (DERBY-4105) NPE when the attached reproducible script is run using ij.

    [ https://issues.apache.org/jira/browse/DERBY-4105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12688084#action_12688084 ] 

Mamta A. Satoor commented on DERBY-4105:
----------------------------------------

When I ran the same script on trunk and 10.2 codeline, I didn't see the npe. Haven't checked 10,3 and 10.4

> NPE when the attached reproducible script is run using ij.
> ----------------------------------------------------------
>
>                 Key: DERBY-4105
>                 URL: https://issues.apache.org/jira/browse/DERBY-4105
>             Project: Derby
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 10.1.3.2
>            Reporter: Mamta A. Satoor
>         Attachments: script1.sql
>
>
> I am running the attached script in ij as shown below
> $ java -Dij.exceptionTrace=true org.apache.derby.tools.ij
> ij version 10.1
> ij> connect 'jdbc:derby:testDB;create=true';
> ij> run 'script1.sql';
> After running quite a bit of sql in the script, it gives following NPE
> ij> UPDATE table2 SET value='true' WHERE id=2147483649 AND name='has_address';
> ERROR XJ001: Java exception: ': java.lang.NullPointerException'.
> java.lang.NullPointerException
>         at org.apache.derby.impl.sql.compile.TypeCompilerFactoryImpl.getAnInstance(TypeCompilerFactoryImpl.java:318)
>         at org.apache.derby.impl.sql.compile.TypeCompilerFactoryImpl.staticGetTypeCompiler(TypeCompilerFactoryImpl.java:248)
>         at org.apache.derby.impl.sql.compile.TypeCompilerFactoryImpl.getTypeCompiler(TypeCompilerFactoryImpl.java:81)
>         at org.apache.derby.impl.sql.compile.QueryTreeNode.getTypeCompiler(QueryTreeNode.java:739)
>         at org.apache.derby.impl.sql.compile.ValueNode.getTypeCompiler(ValueNode.java:223)
>         at org.apache.derby.impl.sql.compile.ResultColumn.checkStorableExpression(ResultColumn.java:876)
>         at org.apache.derby.impl.sql.compile.ResultColumnList.checkStorableExpressions(ResultColumnList.java:922)
>         at org.apache.derby.impl.sql.compile.UpdateNode.bind(UpdateNode.java:531)
>         at org.apache.derby.impl.sql.GenericStatement.prepMinion(GenericStatement.java:332)
>         at org.apache.derby.impl.sql.GenericStatement.prepare(GenericStatement.java:107)
>         at org.apache.derby.impl.sql.conn.GenericLanguageConnectionContext.prepareInternalStatement(GenericLanguageConnectionContext.java:704)
>         at org.apache.derby.impl.jdbc.EmbedStatement.execute(EmbedStatement.java:513)
>         at org.apache.derby.impl.jdbc.EmbedStatement.execute(EmbedStatement.java:487)
>         at org.apache.derby.impl.tools.ij.ij.executeImmediate(ij.java:313)
>         at org.apache.derby.impl.tools.ij.utilMain.doCatch(utilMain.java:433)
>         at org.apache.derby.impl.tools.ij.utilMain.go(utilMain.java:310)
>         at org.apache.derby.impl.tools.ij.Main.go(Main.java:203)
>         at org.apache.derby.impl.tools.ij.Main.mainCore(Main.java:169)
>         at org.apache.derby.impl.tools.ij.Main14.main(Main14.java:55)
>         at org.apache.derby.tools.ij.main(ij.java:60)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.