db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kathey Marsden (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-4105) NPE when the attached reproducible script is run using ij.
Date Sun, 22 Mar 2009 19:11:50 GMT

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

Kathey Marsden commented on DERBY-4105:
---------------------------------------

Hi Mamta,

I am having trouble reproducing this issue.  I tried using the latest on 10.1 with the Sun
jdk 1.4.2, IBM jdk 1.4.2, Sun 1.5 and IBM 1.5 and the script runs without error. Here are
the exact versions for reference.

java version "1.4.2_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_07-b05)
Java HotSpot(TM) Client VM (build 1.4.2_07-b05, mixed mode)

java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM Windows 32 build cn142-20061124 (SR7) (JIT enabled:
jitc))

java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05)
Java HotSpot(TM) Client VM (build 1.5.0_13-b05, mixed mode)

java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pwi32dev-20080315 (SR7))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223-20080315 (JIT enabled)
J9VM - 20080314_17962_lHdSMr
JIT  - 20080130_0718ifx2_r8
GC   - 200802_08)
JCL  - 20080314



> 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.


Mime
View raw message