You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Adam Lally (JIRA)" <ui...@incubator.apache.org> on 2007/01/16 00:04:27 UTC

[jira] Created: (UIMA-193) PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2

PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2
------------------------------------------------------------------

                 Key: UIMA-193
                 URL: https://issues.apache.org/jira/browse/UIMA-193
             Project: UIMA
          Issue Type: Bug
          Components: Core Java Framework
         Environment: Sun Java 1.4.2_12
            Reporter: Adam Lally


java.lang.NullPointerException
	at org.apache.uima.pear.util.PearEncodingTest.testUTF8WithSignature(PearEncodingTest.java:54)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Re: [jira] Created: (UIMA-193) PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2

Posted by Lev Kozakov <le...@gmail.com>.
On 1/17/07, Adam Lally <al...@alum.rpi.edu> wrote:
>
> On 1/17/07, Lev Kozakov <le...@gmail.com> wrote:
> > I agree - documenting the limitation and workaround (using Xerces) is a
> good
> > idea.
> >
>
> I'll open a JIRA issue to update the documentation.
>
> > The 'isValidXmlFile' is used in PEAR installation to make sure the XML
> file
> > that requires 'adjustment/localization' is a valid XML file. Without
> this
> > checking the identification of XML file encoding may return incorrect
> > results. This method uses SAX parser to validate the input file. If this
> > method fails, UIMA XMLParser is likely to fail as well.
> >
>
> Then, we should not remove the call to isValidXmlFile().  That's the
> least of the user's worries if they are in this situation.
>
> So, I think we should change the unit test so that it skips the BOM
> checks when run with Sun Java 1.4.  Since we're deciding to live with
> (and document) this limitation we should make the unit tests pass.
>
> -Adam
>

I'll modify the test code.

-- Lev

Re: [jira] Created: (UIMA-193) PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2

Posted by Adam Lally <al...@alum.rpi.edu>.
On 1/17/07, Lev Kozakov <le...@gmail.com> wrote:
> I agree - documenting the limitation and workaround (using Xerces) is a good
> idea.
>

I'll open a JIRA issue to update the documentation.

> The 'isValidXmlFile' is used in PEAR installation to make sure the XML file
> that requires 'adjustment/localization' is a valid XML file. Without this
> checking the identification of XML file encoding may return incorrect
> results. This method uses SAX parser to validate the input file. If this
> method fails, UIMA XMLParser is likely to fail as well.
>

Then, we should not remove the call to isValidXmlFile().  That's the
least of the user's worries if they are in this situation.

So, I think we should change the unit test so that it skips the BOM
checks when run with Sun Java 1.4.  Since we're deciding to live with
(and document) this limitation we should make the unit tests pass.

-Adam

Re: [jira] Created: (UIMA-193) PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2

Posted by Lev Kozakov <le...@gmail.com>.
On 1/17/07, Adam Lally <al...@alum.rpi.edu> wrote:
>
> On 1/17/07, Lev Kozakov <le...@gmail.com> wrote:
> > Actually, we need to check both the Java version (java.version) and its
> > vendor (java.vendor), since IBM Java 1.4.x works fine with XML BOM.
> There is
> > no problem to skip the test, but real PEAR installation may fail, if one
> of
> > the descriptors contains BOM. The best solution, probably, is removing
> BOM
> > from XML descriptors when running under Sun's JVM 1.4.x, but this goes
> far
> > beyond the PEAR installation.
>
> Users can also install the Xerces parser, and then PEAR installation
> would work.  We could document this limitation and workaround.


I agree - documenting the limitation and workaround (using Xerces) is a good
idea.

> To make the PEAR installation (and all the
> > tests) work with all Java versions, I propose complete removal of XML
> > validation call (isValidXmlFile) from the 'detectXmlFileEncoding'
> method.
> > This is the call that leads to failures in Sun's Java 1.4.x with XML
> files
> > containing BOM.
> >
>
> Hmmm... if we remove the isValidXmlFile call what will happen when the
> user tries to later run their component?  Will it fail to parse the
> descriptor at that time due to the BOM?
>
> In any case, if we think there's value in this validation I'm
> reluctant to completely remove it just to support an older JRE.
>
> -Adam
>

The 'isValidXmlFile' is used in PEAR installation to make sure the XML file
that requires 'adjustment/localization' is a valid XML file. Without this
checking the identification of XML file encoding may return incorrect
results. This method uses SAX parser to validate the input file. If this
method fails, UIMA XMLParser is likely to fail as well.

-- Lev

Re: [jira] Created: (UIMA-193) PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2

Posted by Adam Lally <al...@alum.rpi.edu>.
On 1/17/07, Lev Kozakov <le...@gmail.com> wrote:
> Actually, we need to check both the Java version (java.version) and its
> vendor (java.vendor), since IBM Java 1.4.x works fine with XML BOM. There is
> no problem to skip the test, but real PEAR installation may fail, if one of
> the descriptors contains BOM. The best solution, probably, is removing BOM
> from XML descriptors when running under Sun's JVM 1.4.x, but this goes far
> beyond the PEAR installation.

Users can also install the Xerces parser, and then PEAR installation
would work.  We could document this limitation and workaround.


> To make the PEAR installation (and all the
> tests) work with all Java versions, I propose complete removal of XML
> validation call (isValidXmlFile) from the 'detectXmlFileEncoding' method.
> This is the call that leads to failures in Sun's Java 1.4.x with XML files
> containing BOM.
>

Hmmm... if we remove the isValidXmlFile call what will happen when the
user tries to later run their component?  Will it fail to parse the
descriptor at that time due to the BOM?

In any case, if we think there's value in this validation I'm
reluctant to completely remove it just to support an older JRE.

-Adam

Re: [jira] Created: (UIMA-193) PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2

Posted by Lev Kozakov <le...@gmail.com>.
On 1/16/07, Marshall Schor <ms...@schor.com> wrote:
>
> Lev Kozakov wrote:
> > <snip> So, should we just consider the XML encoding test not supported
> > and return
> > w/o a failure, if the returned 'encoding' string is 'null' ? The
> > problem is
> > that in the real case the PEAR installation may fail.
> >
>
>
> I suggest checking the "version" of Java, and if it is Java 1.4.x, skip
> the test.  Otherwise do the test.
> This way, we get a good test for Java 5 and onwards, and the failure on
> 1.4 doesn't block
> building.
>
>
> -Marshall
>

Actually, we need to check both the Java version (java.version) and its
vendor (java.vendor), since IBM Java 1.4.x works fine with XML BOM. There is
no problem to skip the test, but real PEAR installation may fail, if one of
the descriptors contains BOM. The best solution, probably, is removing BOM
from XML descriptors when running under Sun's JVM 1.4.x, but this goes far
beyond the PEAR installation. To make the PEAR installation (and all the
tests) work with all Java versions, I propose complete removal of XML
validation call (isValidXmlFile) from the 'detectXmlFileEncoding' method.
This is the call that leads to failures in Sun's Java 1.4.x with XML files
containing BOM.

-- Lev

Re: [jira] Created: (UIMA-193) PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2

Posted by Marshall Schor <ms...@schor.com>.
Lev Kozakov wrote:
> <snip> So, should we just consider the XML encoding test not supported 
> and return
> w/o a failure, if the returned 'encoding' string is 'null' ? The 
> problem is
> that in the real case the PEAR installation may fail.
>


I suggest checking the "version" of Java, and if it is Java 1.4.x, skip 
the test.  Otherwise do the test.
This way, we get a good test for Java 5 and onwards, and the failure on 
1.4 doesn't block
building.


-Marshall

Re: [jira] Created: (UIMA-193) PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2

Posted by Lev Kozakov <le...@gmail.com>.
On 1/16/07, Adam Lally <al...@alum.rpi.edu> wrote:
>
> On 1/16/07, Lev Kozakov <le...@gmail.com> wrote:
> > On 1/15/07, Adam Lally (JIRA) <ui...@incubator.apache.org> wrote:
> > >
> > > PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2
> >
> >
> > Yes, Sun Java 1.4.2 cannot process BOM at the beginning of XML files.
> The
> > test fails in the XMLUtil.isValidXmlFile() method, because Sun's SAX
> parser
> > cannot process the UTF-8 BOM (signature). I can modify the test code to
> > assert that returned 'ecoding' string is not 'null'.
> >
>
> Hm, what should we do here?  I had a similar problem with the parser
> Sun Java 1.4.2 not supporting XML schema validation, which we have a
> test case for.
>
> I changed that so the test detects that schema validation isn't
> supported and just returns without failing.  I figured it was better
> to not have our test suite fail on Sun Java 1.4.2 just because a few
> (rarely used) features don't work.
>
> -Adam
>

So, should we just consider the XML encoding test not supported and return
w/o a failure, if the returned 'encoding' string is 'null' ? The problem is
that in the real case the PEAR installation may fail.

-- Lev

Re: [jira] Created: (UIMA-193) PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2

Posted by Adam Lally <al...@alum.rpi.edu>.
On 1/16/07, Lev Kozakov <le...@gmail.com> wrote:
> On 1/15/07, Adam Lally (JIRA) <ui...@incubator.apache.org> wrote:
> >
> > PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2
>
>
> Yes, Sun Java 1.4.2 cannot process BOM at the beginning of XML files. The
> test fails in the XMLUtil.isValidXmlFile() method, because Sun's SAX parser
> cannot process the UTF-8 BOM (signature). I can modify the test code to
> assert that returned 'ecoding' string is not 'null'.
>

Hm, what should we do here?  I had a similar problem with the parser
Sun Java 1.4.2 not supporting XML schema validation, which we have a
test case for.

I changed that so the test detects that schema validation isn't
supported and just returns without failing.  I figured it was better
to not have our test suite fail on Sun Java 1.4.2 just because a few
(rarely used) features don't work.

-Adam

Re: [jira] Created: (UIMA-193) PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2

Posted by Lev Kozakov <le...@gmail.com>.
On 1/15/07, Adam Lally (JIRA) <ui...@incubator.apache.org> wrote:
>
> PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2


Yes, Sun Java 1.4.2 cannot process BOM at the beginning of XML files. The
test fails in the XMLUtil.isValidXmlFile() method, because Sun's SAX parser
cannot process the UTF-8 BOM (signature). I can modify the test code to
assert that returned 'ecoding' string is not 'null'.


> ------------------------------------------------------------------
>
>                 Key: UIMA-193
>                 URL: https://issues.apache.org/jira/browse/UIMA-193
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>         Environment: Sun Java 1.4.2_12
>            Reporter: Adam Lally
>
>
> java.lang.NullPointerException
>        at org.apache.uima.pear.util.PearEncodingTest.testUTF8WithSignature
> (PearEncodingTest.java:54)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:324)
>        at junit.framework.TestCase.runTest(TestCase.java:154)
>        at junit.framework.TestCase.runBare(TestCase.java:127)
>        at junit.framework.TestResult$1.protect(TestResult.java:106)
>        at junit.framework.TestResult.runProtected(TestResult.java:124)
>        at junit.framework.TestResult.run(TestResult.java:109)
>        at junit.framework.TestCase.run(TestCase.java:118)
>        at junit.framework.TestSuite.runTest(TestSuite.java:208)
>        at junit.framework.TestSuite.run(TestSuite.java:203)
>        at
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(
> JUnit3TestReference.java:128)
>        at org.eclipse.jdt.internal.junit.runner.TestExecution.run(
> TestExecution.java:38)
>        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
> RemoteTestRunner.java:460)
>        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
> RemoteTestRunner.java:673)
>        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(
> RemoteTestRunner.java:386)
>        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
> RemoteTestRunner.java:196)
>
>
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
> https://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>

[jira] Reopened: (UIMA-193) PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2

Posted by "Michael Baessler (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Baessler reopened UIMA-193:
-----------------------------------


When I now run the testcases I got the error below:

testUTF16NoSignature(org.apache.uima.pear.util.PearEncodingTest)  Time elapsed: 0 sec  <<< ERROR!
java.lang.NullPointerException
	at org.apache.uima.pear.util.PearEncodingTest.testUTF16NoSignature(PearEncodingTest.java:73)

and the same when running the test in eclipse. For both I use the SUN JVM 1.4.2_12. My understanding was that 
for this JVM no errors should occur, right?


> PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2
> ------------------------------------------------------------------
>
>                 Key: UIMA-193
>                 URL: https://issues.apache.org/jira/browse/UIMA-193
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>         Environment: Sun Java 1.4.2_12
>            Reporter: Adam Lally
>         Assigned To: Adam Lally
>             Fix For: 2.1
>
>         Attachments: PearEncodingTest.2.patch
>
>
> java.lang.NullPointerException
> 	at org.apache.uima.pear.util.PearEncodingTest.testUTF8WithSignature(PearEncodingTest.java:54)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:118)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
> 	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

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


[jira] Closed: (UIMA-193) PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2

Posted by "Adam Lally (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Lally closed UIMA-193.
---------------------------

    Resolution: Fixed

> PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2
> ------------------------------------------------------------------
>
>                 Key: UIMA-193
>                 URL: https://issues.apache.org/jira/browse/UIMA-193
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>         Environment: Sun Java 1.4.2_12
>            Reporter: Adam Lally
>         Assigned To: Adam Lally
>             Fix For: 2.1
>
>         Attachments: PearEncodingTest.2.patch
>
>
> java.lang.NullPointerException
> 	at org.apache.uima.pear.util.PearEncodingTest.testUTF8WithSignature(PearEncodingTest.java:54)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:118)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
> 	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (UIMA-193) PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2

Posted by "Adam Lally (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Lally updated UIMA-193:
----------------------------

    Fix Version/s: 2.1

> PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2
> ------------------------------------------------------------------
>
>                 Key: UIMA-193
>                 URL: https://issues.apache.org/jira/browse/UIMA-193
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>         Environment: Sun Java 1.4.2_12
>            Reporter: Adam Lally
>         Assigned To: Adam Lally
>             Fix For: 2.1
>
>         Attachments: PearEncodingTest.patch
>
>
> java.lang.NullPointerException
> 	at org.apache.uima.pear.util.PearEncodingTest.testUTF8WithSignature(PearEncodingTest.java:54)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:118)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
> 	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (UIMA-193) PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2

Posted by "Adam Lally (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466743 ] 

Adam Lally commented on UIMA-193:
---------------------------------

Get 1.4.2_13, and the test will succeed.  There appears to be some problem with the _12 level in particular.  IMO we can close this issue and require the use of _13.  Maybe a comment in the test case might be good, though, in case others encounter this issue.

> PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2
> ------------------------------------------------------------------
>
>                 Key: UIMA-193
>                 URL: https://issues.apache.org/jira/browse/UIMA-193
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>         Environment: Sun Java 1.4.2_12
>            Reporter: Adam Lally
>         Assigned To: Adam Lally
>             Fix For: 2.1
>
>         Attachments: PearEncodingTest.2.patch
>
>
> java.lang.NullPointerException
> 	at org.apache.uima.pear.util.PearEncodingTest.testUTF8WithSignature(PearEncodingTest.java:54)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:118)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
> 	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

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


[jira] Assigned: (UIMA-193) PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2

Posted by "Adam Lally (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Lally reassigned UIMA-193:
-------------------------------

    Assignee: Adam Lally

> PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2
> ------------------------------------------------------------------
>
>                 Key: UIMA-193
>                 URL: https://issues.apache.org/jira/browse/UIMA-193
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>         Environment: Sun Java 1.4.2_12
>            Reporter: Adam Lally
>         Assigned To: Adam Lally
>             Fix For: 2.1
>
>         Attachments: PearEncodingTest.patch
>
>
> java.lang.NullPointerException
> 	at org.apache.uima.pear.util.PearEncodingTest.testUTF8WithSignature(PearEncodingTest.java:54)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:118)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
> 	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (UIMA-193) PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2

Posted by "Adam Lally (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Lally updated UIMA-193:
----------------------------

    Attachment:     (was: PearEncodingTest.patch)

> PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2
> ------------------------------------------------------------------
>
>                 Key: UIMA-193
>                 URL: https://issues.apache.org/jira/browse/UIMA-193
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>         Environment: Sun Java 1.4.2_12
>            Reporter: Adam Lally
>         Assigned To: Adam Lally
>             Fix For: 2.1
>
>         Attachments: PearEncodingTest.2.patch
>
>
> java.lang.NullPointerException
> 	at org.apache.uima.pear.util.PearEncodingTest.testUTF8WithSignature(PearEncodingTest.java:54)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:118)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
> 	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (UIMA-193) PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2

Posted by "Lev Kozakov (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lev Kozakov updated UIMA-193:
-----------------------------

    Attachment: PearEncodingTest.patch

> PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2
> ------------------------------------------------------------------
>
>                 Key: UIMA-193
>                 URL: https://issues.apache.org/jira/browse/UIMA-193
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>         Environment: Sun Java 1.4.2_12
>            Reporter: Adam Lally
>         Attachments: PearEncodingTest.patch
>
>
> java.lang.NullPointerException
> 	at org.apache.uima.pear.util.PearEncodingTest.testUTF8WithSignature(PearEncodingTest.java:54)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:118)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
> 	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (UIMA-193) PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2

Posted by "Lev Kozakov (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lev Kozakov updated UIMA-193:
-----------------------------

    Attachment: PearEncodingTest.2.patch

> PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2
> ------------------------------------------------------------------
>
>                 Key: UIMA-193
>                 URL: https://issues.apache.org/jira/browse/UIMA-193
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>         Environment: Sun Java 1.4.2_12
>            Reporter: Adam Lally
>         Assigned To: Adam Lally
>             Fix For: 2.1
>
>         Attachments: PearEncodingTest.2.patch, PearEncodingTest.patch
>
>
> java.lang.NullPointerException
> 	at org.apache.uima.pear.util.PearEncodingTest.testUTF8WithSignature(PearEncodingTest.java:54)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:118)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
> 	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (UIMA-193) PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2

Posted by "Michael Baessler (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Baessler closed UIMA-193.
---------------------------------

    Resolution: Fixed

> PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2
> ------------------------------------------------------------------
>
>                 Key: UIMA-193
>                 URL: https://issues.apache.org/jira/browse/UIMA-193
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>         Environment: Sun Java 1.4.2_12
>            Reporter: Adam Lally
>         Assigned To: Adam Lally
>             Fix For: 2.1
>
>         Attachments: PearEncodingTest.2.patch
>
>
> java.lang.NullPointerException
> 	at org.apache.uima.pear.util.PearEncodingTest.testUTF8WithSignature(PearEncodingTest.java:54)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:118)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
> 	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

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


[jira] Commented: (UIMA-193) PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2

Posted by "Adam Lally (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466072 ] 

Adam Lally commented on UIMA-193:
---------------------------------

Lev,

The patch fixes testUTF8WithSignature.

However, testUTF16NoSignature is failing!  Intrestingly, testUTF16WithSignature has never had any problem, even before your patch.  What's going on?

At first I thought that the test files might just be swapped (so that the test named "NoSignature" was actually using the file that did have a signature, and vice versa).  But I checked and the test files seem OK.  

So what's going on?  Did you try this test case with Sun Java 1.4, and did it work for you?

> PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2
> ------------------------------------------------------------------
>
>                 Key: UIMA-193
>                 URL: https://issues.apache.org/jira/browse/UIMA-193
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>         Environment: Sun Java 1.4.2_12
>            Reporter: Adam Lally
>         Assigned To: Adam Lally
>             Fix For: 2.1
>
>         Attachments: PearEncodingTest.patch
>
>
> java.lang.NullPointerException
> 	at org.apache.uima.pear.util.PearEncodingTest.testUTF8WithSignature(PearEncodingTest.java:54)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:118)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
> 	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (UIMA-193) PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2

Posted by "Lev Kozakov (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466527 ] 

Lev Kozakov commented on UIMA-193:
----------------------------------

PearEncodingTest.2.patch replaces the old patch. This patch makes sure the 'testUTF8WithSignature' and 'testUTF16WithSignature' test cases are canceled for all Sun's Java versions before 1.5.x.

> PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2
> ------------------------------------------------------------------
>
>                 Key: UIMA-193
>                 URL: https://issues.apache.org/jira/browse/UIMA-193
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>         Environment: Sun Java 1.4.2_12
>            Reporter: Adam Lally
>         Assigned To: Adam Lally
>             Fix For: 2.1
>
>         Attachments: PearEncodingTest.2.patch, PearEncodingTest.patch
>
>
> java.lang.NullPointerException
> 	at org.apache.uima.pear.util.PearEncodingTest.testUTF8WithSignature(PearEncodingTest.java:54)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:118)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
> 	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (UIMA-193) PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2

Posted by "Lev Kozakov (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465854 ] 

Lev Kozakov commented on UIMA-193:
----------------------------------

I check 'java.vendor' and 'java.version' system properties and cancel 'BOM-enabled' tests for all Sun's JVM earlier than 1.5.x.

> PEAR Encoding Test gives NullPointerException under Sun Java 1.4.2
> ------------------------------------------------------------------
>
>                 Key: UIMA-193
>                 URL: https://issues.apache.org/jira/browse/UIMA-193
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>         Environment: Sun Java 1.4.2_12
>            Reporter: Adam Lally
>         Attachments: PearEncodingTest.patch
>
>
> java.lang.NullPointerException
> 	at org.apache.uima.pear.util.PearEncodingTest.testUTF8WithSignature(PearEncodingTest.java:54)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:324)
> 	at junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:118)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
> 	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira