You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Harro Lissenberg (JIRA)" <ji...@apache.org> on 2012/06/20 22:02:43 UTC

[jira] [Created] (TOMEE-249) NPE on DatatypeConverter

Harro Lissenberg created TOMEE-249:
--------------------------------------

             Summary: NPE on DatatypeConverter
                 Key: TOMEE-249
                 URL: https://issues.apache.org/jira/browse/TOMEE-249
             Project: TomEE
          Issue Type: New Feature
    Affects Versions: 1.0.0
         Environment: MacOS JDK 1.7.0_05 & Windows JDK 1.7.0_04
            Reporter: Harro Lissenberg


When using the method DatatypeConverter.printBase64Binary a NullPointerException occurs.

java.lang.NullPointerException
	javax.xml.bind.DatatypeConverter.printBase64Binary(DatatypeConverter.java:173)
	Servlet.doGet(Servlet.java:17)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

The following example servlet will throw the NPE:

@WebServlet("/npe")
public class Servlet extends HttpServlet {

    @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String s = DatatypeConverter.printBase64Binary("TomEE & JAXB!".getBytes(StandardCharsets.UTF_8));
        resp.getWriter().write(s);
    }
}


A workaround is to remove the JAXB jars from the lib & endorsed directories. My application seems to work fine but I have no idea what (hidden) problems this might cause.


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

        

[jira] [Resolved] (TOMEE-249) NPE on DatatypeConverter

Posted by "Jean-Louis MONTEIRO (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TOMEE-249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Louis MONTEIRO resolved TOMEE-249.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5.0
    
> NPE on DatatypeConverter
> ------------------------
>
>                 Key: TOMEE-249
>                 URL: https://issues.apache.org/jira/browse/TOMEE-249
>             Project: TomEE
>          Issue Type: New Feature
>    Affects Versions: 1.0.0
>         Environment: MacOS JDK 1.7.0_05 & Windows JDK 1.7.0_04
>            Reporter: Harro Lissenberg
>             Fix For: 1.5.0
>
>
> When using the method DatatypeConverter.printBase64Binary a NullPointerException occurs.
> java.lang.NullPointerException
> 	javax.xml.bind.DatatypeConverter.printBase64Binary(DatatypeConverter.java:173)
> 	Servlet.doGet(Servlet.java:17)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> The following example servlet will throw the NPE:
> @WebServlet("/npe")
> public class Servlet extends HttpServlet {
>     @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
>         String s = DatatypeConverter.printBase64Binary("TomEE & JAXB!".getBytes(StandardCharsets.UTF_8));
>         resp.getWriter().write(s);
>     }
> }
> A workaround is to remove the JAXB jars from the lib & endorsed directories. My application seems to work fine but I have no idea what (hidden) problems this might cause.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Closed] (TOMEE-249) NPE on DatatypeConverter

Posted by "David Blevins (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TOMEE-249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Blevins closed TOMEE-249.
-------------------------------

    Resolution: Fixed
    
> NPE on DatatypeConverter
> ------------------------
>
>                 Key: TOMEE-249
>                 URL: https://issues.apache.org/jira/browse/TOMEE-249
>             Project: TomEE
>          Issue Type: Bug
>    Affects Versions: 1.0.0
>         Environment: MacOS JDK 1.7.0_05 & Windows JDK 1.7.0_04
>            Reporter: Harro Lissenberg
>             Fix For: 1.5.0
>
>
> When using the method DatatypeConverter.printBase64Binary a NullPointerException occurs.
> java.lang.NullPointerException
> 	javax.xml.bind.DatatypeConverter.printBase64Binary(DatatypeConverter.java:173)
> 	Servlet.doGet(Servlet.java:17)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> The following example servlet will throw the NPE:
> @WebServlet("/npe")
> public class Servlet extends HttpServlet {
>     @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
>         String s = DatatypeConverter.printBase64Binary("TomEE & JAXB!".getBytes(StandardCharsets.UTF_8));
>         resp.getWriter().write(s);
>     }
> }
> A workaround is to remove the JAXB jars from the lib & endorsed directories. My application seems to work fine but I have no idea what (hidden) problems this might cause.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TOMEE-249) NPE on DatatypeConverter

Posted by "Romain Manni-Bucau (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TOMEE-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13433970#comment-13433970 ] 

Romain Manni-Bucau commented on TOMEE-249:
------------------------------------------

here: https://repository.apache.org/content/groups/snapshots/org/apache/openejb/apache-tomee/1.1.0-SNAPSHOT/

take the last one, today it should be the one ending by 106
                
> NPE on DatatypeConverter
> ------------------------
>
>                 Key: TOMEE-249
>                 URL: https://issues.apache.org/jira/browse/TOMEE-249
>             Project: TomEE
>          Issue Type: New Feature
>    Affects Versions: 1.0.0
>         Environment: MacOS JDK 1.7.0_05 & Windows JDK 1.7.0_04
>            Reporter: Harro Lissenberg
>
> When using the method DatatypeConverter.printBase64Binary a NullPointerException occurs.
> java.lang.NullPointerException
> 	javax.xml.bind.DatatypeConverter.printBase64Binary(DatatypeConverter.java:173)
> 	Servlet.doGet(Servlet.java:17)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> The following example servlet will throw the NPE:
> @WebServlet("/npe")
> public class Servlet extends HttpServlet {
>     @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
>         String s = DatatypeConverter.printBase64Binary("TomEE & JAXB!".getBytes(StandardCharsets.UTF_8));
>         resp.getWriter().write(s);
>     }
> }
> A workaround is to remove the JAXB jars from the lib & endorsed directories. My application seems to work fine but I have no idea what (hidden) problems this might cause.

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

        

[jira] [Commented] (TOMEE-249) NPE on DatatypeConverter

Posted by "Jonathan S Fisher (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TOMEE-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13433879#comment-13433879 ] 

Jonathan S Fisher commented on TOMEE-249:
-----------------------------------------

I'm able to reproduce this as well... Would updating the JAXB implementation fix the issue?
                
> NPE on DatatypeConverter
> ------------------------
>
>                 Key: TOMEE-249
>                 URL: https://issues.apache.org/jira/browse/TOMEE-249
>             Project: TomEE
>          Issue Type: New Feature
>    Affects Versions: 1.0.0
>         Environment: MacOS JDK 1.7.0_05 & Windows JDK 1.7.0_04
>            Reporter: Harro Lissenberg
>
> When using the method DatatypeConverter.printBase64Binary a NullPointerException occurs.
> java.lang.NullPointerException
> 	javax.xml.bind.DatatypeConverter.printBase64Binary(DatatypeConverter.java:173)
> 	Servlet.doGet(Servlet.java:17)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> The following example servlet will throw the NPE:
> @WebServlet("/npe")
> public class Servlet extends HttpServlet {
>     @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
>         String s = DatatypeConverter.printBase64Binary("TomEE & JAXB!".getBytes(StandardCharsets.UTF_8));
>         resp.getWriter().write(s);
>     }
> }
> A workaround is to remove the JAXB jars from the lib & endorsed directories. My application seems to work fine but I have no idea what (hidden) problems this might cause.

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

        

[jira] [Closed] (TOMEE-249) NPE on DatatypeConverter

Posted by "Jean-Louis MONTEIRO (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TOMEE-249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Louis MONTEIRO closed TOMEE-249.
-------------------------------------

    
> NPE on DatatypeConverter
> ------------------------
>
>                 Key: TOMEE-249
>                 URL: https://issues.apache.org/jira/browse/TOMEE-249
>             Project: TomEE
>          Issue Type: New Feature
>    Affects Versions: 1.0.0
>         Environment: MacOS JDK 1.7.0_05 & Windows JDK 1.7.0_04
>            Reporter: Harro Lissenberg
>             Fix For: 1.5.0
>
>
> When using the method DatatypeConverter.printBase64Binary a NullPointerException occurs.
> java.lang.NullPointerException
> 	javax.xml.bind.DatatypeConverter.printBase64Binary(DatatypeConverter.java:173)
> 	Servlet.doGet(Servlet.java:17)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> The following example servlet will throw the NPE:
> @WebServlet("/npe")
> public class Servlet extends HttpServlet {
>     @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
>         String s = DatatypeConverter.printBase64Binary("TomEE & JAXB!".getBytes(StandardCharsets.UTF_8));
>         resp.getWriter().write(s);
>     }
> }
> A workaround is to remove the JAXB jars from the lib & endorsed directories. My application seems to work fine but I have no idea what (hidden) problems this might cause.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TOMEE-249) NPE on DatatypeConverter

Posted by "Romain Manni-Bucau (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TOMEE-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13398475#comment-13398475 ] 

Romain Manni-Bucau commented on TOMEE-249:
------------------------------------------

guess you didnt have luck, it was quickly fixed this morning.

maybe try again after an update (mvn clean install -pl tomee/apache-tomee -am -Dmaven.test.skip=true)
                
> NPE on DatatypeConverter
> ------------------------
>
>                 Key: TOMEE-249
>                 URL: https://issues.apache.org/jira/browse/TOMEE-249
>             Project: TomEE
>          Issue Type: New Feature
>    Affects Versions: 1.0.0
>         Environment: MacOS JDK 1.7.0_05 & Windows JDK 1.7.0_04
>            Reporter: Harro Lissenberg
>
> When using the method DatatypeConverter.printBase64Binary a NullPointerException occurs.
> java.lang.NullPointerException
> 	javax.xml.bind.DatatypeConverter.printBase64Binary(DatatypeConverter.java:173)
> 	Servlet.doGet(Servlet.java:17)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> The following example servlet will throw the NPE:
> @WebServlet("/npe")
> public class Servlet extends HttpServlet {
>     @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
>         String s = DatatypeConverter.printBase64Binary("TomEE & JAXB!".getBytes(StandardCharsets.UTF_8));
>         resp.getWriter().write(s);
>     }
> }
> A workaround is to remove the JAXB jars from the lib & endorsed directories. My application seems to work fine but I have no idea what (hidden) problems this might cause.

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

        

[jira] [Updated] (TOMEE-249) NPE on DatatypeConverter

Posted by "David Blevins (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TOMEE-249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Blevins updated TOMEE-249:
--------------------------------

    Issue Type: Bug  (was: New Feature)
    
> NPE on DatatypeConverter
> ------------------------
>
>                 Key: TOMEE-249
>                 URL: https://issues.apache.org/jira/browse/TOMEE-249
>             Project: TomEE
>          Issue Type: Bug
>    Affects Versions: 1.0.0
>         Environment: MacOS JDK 1.7.0_05 & Windows JDK 1.7.0_04
>            Reporter: Harro Lissenberg
>             Fix For: 1.5.0
>
>
> When using the method DatatypeConverter.printBase64Binary a NullPointerException occurs.
> java.lang.NullPointerException
> 	javax.xml.bind.DatatypeConverter.printBase64Binary(DatatypeConverter.java:173)
> 	Servlet.doGet(Servlet.java:17)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> The following example servlet will throw the NPE:
> @WebServlet("/npe")
> public class Servlet extends HttpServlet {
>     @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
>         String s = DatatypeConverter.printBase64Binary("TomEE & JAXB!".getBytes(StandardCharsets.UTF_8));
>         resp.getWriter().write(s);
>     }
> }
> A workaround is to remove the JAXB jars from the lib & endorsed directories. My application seems to work fine but I have no idea what (hidden) problems this might cause.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TOMEE-249) NPE on DatatypeConverter

Posted by "Harro Lissenberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TOMEE-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13398500#comment-13398500 ] 

Harro Lissenberg commented on TOMEE-249:
----------------------------------------

Great timing ;) After an update of the sources I was able to build the 1.1 snapshot release of TomEE.
Unfortunately the error still exists.

                
> NPE on DatatypeConverter
> ------------------------
>
>                 Key: TOMEE-249
>                 URL: https://issues.apache.org/jira/browse/TOMEE-249
>             Project: TomEE
>          Issue Type: New Feature
>    Affects Versions: 1.0.0
>         Environment: MacOS JDK 1.7.0_05 & Windows JDK 1.7.0_04
>            Reporter: Harro Lissenberg
>
> When using the method DatatypeConverter.printBase64Binary a NullPointerException occurs.
> java.lang.NullPointerException
> 	javax.xml.bind.DatatypeConverter.printBase64Binary(DatatypeConverter.java:173)
> 	Servlet.doGet(Servlet.java:17)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> The following example servlet will throw the NPE:
> @WebServlet("/npe")
> public class Servlet extends HttpServlet {
>     @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
>         String s = DatatypeConverter.printBase64Binary("TomEE & JAXB!".getBytes(StandardCharsets.UTF_8));
>         resp.getWriter().write(s);
>     }
> }
> A workaround is to remove the JAXB jars from the lib & endorsed directories. My application seems to work fine but I have no idea what (hidden) problems this might cause.

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

        

[jira] [Commented] (TOMEE-249) NPE on DatatypeConverter

Posted by "Harro Lissenberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TOMEE-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13398467#comment-13398467 ] 

Harro Lissenberg commented on TOMEE-249:
----------------------------------------

I could not find any pre-build snapshots so I checkout the trunk an tried the instructions as found on http://openejb.apache.org/dev/source-code.html to build TomEE. Unfortunately the build failes with the message (tried with Oracle JDK 1.6 & 1.7):

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.4:compile (default-compile) on project openejb-core: Compilation failure: Compilation failure:
[ERROR] C:\projects\tomee\openejb\container\openejb-core\src\main\java\org\apache\openejb\assembler\classic\Assembler.java:[69,43] package com.sun.xml.internal.fastinfoset.sax does not exist
[ERROR] C:\projects\tomee\openejb\container\openejb-core\src\main\java\org\apache\openejb\assembler\classic\Assembler.java:[69,43] package com.sun.xml.internal.fastinfoset.sax does not exist


Are there pre-build binary images available of more recent versions?

                
> NPE on DatatypeConverter
> ------------------------
>
>                 Key: TOMEE-249
>                 URL: https://issues.apache.org/jira/browse/TOMEE-249
>             Project: TomEE
>          Issue Type: New Feature
>    Affects Versions: 1.0.0
>         Environment: MacOS JDK 1.7.0_05 & Windows JDK 1.7.0_04
>            Reporter: Harro Lissenberg
>
> When using the method DatatypeConverter.printBase64Binary a NullPointerException occurs.
> java.lang.NullPointerException
> 	javax.xml.bind.DatatypeConverter.printBase64Binary(DatatypeConverter.java:173)
> 	Servlet.doGet(Servlet.java:17)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> The following example servlet will throw the NPE:
> @WebServlet("/npe")
> public class Servlet extends HttpServlet {
>     @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
>         String s = DatatypeConverter.printBase64Binary("TomEE & JAXB!".getBytes(StandardCharsets.UTF_8));
>         resp.getWriter().write(s);
>     }
> }
> A workaround is to remove the JAXB jars from the lib & endorsed directories. My application seems to work fine but I have no idea what (hidden) problems this might cause.

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

        

[jira] [Commented] (TOMEE-249) NPE on DatatypeConverter

Posted by "Romain Manni-Bucau (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TOMEE-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13397878#comment-13397878 ] 

Romain Manni-Bucau commented on TOMEE-249:
------------------------------------------

Hi,


can you try the snapshot please?

if it is still here can you provide a sample reproducing the error please?
                
> NPE on DatatypeConverter
> ------------------------
>
>                 Key: TOMEE-249
>                 URL: https://issues.apache.org/jira/browse/TOMEE-249
>             Project: TomEE
>          Issue Type: New Feature
>    Affects Versions: 1.0.0
>         Environment: MacOS JDK 1.7.0_05 & Windows JDK 1.7.0_04
>            Reporter: Harro Lissenberg
>
> When using the method DatatypeConverter.printBase64Binary a NullPointerException occurs.
> java.lang.NullPointerException
> 	javax.xml.bind.DatatypeConverter.printBase64Binary(DatatypeConverter.java:173)
> 	Servlet.doGet(Servlet.java:17)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> The following example servlet will throw the NPE:
> @WebServlet("/npe")
> public class Servlet extends HttpServlet {
>     @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
>         String s = DatatypeConverter.printBase64Binary("TomEE & JAXB!".getBytes(StandardCharsets.UTF_8));
>         resp.getWriter().write(s);
>     }
> }
> A workaround is to remove the JAXB jars from the lib & endorsed directories. My application seems to work fine but I have no idea what (hidden) problems this might cause.

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

        

[jira] [Commented] (TOMEE-249) NPE on DatatypeConverter

Posted by "Romain Manni-Bucau (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TOMEE-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13433950#comment-13433950 ] 

Romain Manni-Bucau commented on TOMEE-249:
------------------------------------------

Hi,

i don't get it with the snapshot,

i'm under linux can it be the Mac JVM?

                
> NPE on DatatypeConverter
> ------------------------
>
>                 Key: TOMEE-249
>                 URL: https://issues.apache.org/jira/browse/TOMEE-249
>             Project: TomEE
>          Issue Type: New Feature
>    Affects Versions: 1.0.0
>         Environment: MacOS JDK 1.7.0_05 & Windows JDK 1.7.0_04
>            Reporter: Harro Lissenberg
>
> When using the method DatatypeConverter.printBase64Binary a NullPointerException occurs.
> java.lang.NullPointerException
> 	javax.xml.bind.DatatypeConverter.printBase64Binary(DatatypeConverter.java:173)
> 	Servlet.doGet(Servlet.java:17)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> The following example servlet will throw the NPE:
> @WebServlet("/npe")
> public class Servlet extends HttpServlet {
>     @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
>         String s = DatatypeConverter.printBase64Binary("TomEE & JAXB!".getBytes(StandardCharsets.UTF_8));
>         resp.getWriter().write(s);
>     }
> }
> A workaround is to remove the JAXB jars from the lib & endorsed directories. My application seems to work fine but I have no idea what (hidden) problems this might cause.

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

        

[jira] [Reopened] (TOMEE-249) NPE on DatatypeConverter

Posted by "David Blevins (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TOMEE-249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Blevins reopened TOMEE-249:
---------------------------------

    
> NPE on DatatypeConverter
> ------------------------
>
>                 Key: TOMEE-249
>                 URL: https://issues.apache.org/jira/browse/TOMEE-249
>             Project: TomEE
>          Issue Type: New Feature
>    Affects Versions: 1.0.0
>         Environment: MacOS JDK 1.7.0_05 & Windows JDK 1.7.0_04
>            Reporter: Harro Lissenberg
>             Fix For: 1.5.0
>
>
> When using the method DatatypeConverter.printBase64Binary a NullPointerException occurs.
> java.lang.NullPointerException
> 	javax.xml.bind.DatatypeConverter.printBase64Binary(DatatypeConverter.java:173)
> 	Servlet.doGet(Servlet.java:17)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> The following example servlet will throw the NPE:
> @WebServlet("/npe")
> public class Servlet extends HttpServlet {
>     @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
>         String s = DatatypeConverter.printBase64Binary("TomEE & JAXB!".getBytes(StandardCharsets.UTF_8));
>         resp.getWriter().write(s);
>     }
> }
> A workaround is to remove the JAXB jars from the lib & endorsed directories. My application seems to work fine but I have no idea what (hidden) problems this might cause.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TOMEE-249) NPE on DatatypeConverter

Posted by "Jonathan S Fisher (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/TOMEE-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13433966#comment-13433966 ] 

Jonathan S Fisher commented on TOMEE-249:
-----------------------------------------

Sorry for the confusion, I tried on 1.0.0.

Upgrading JAXB fixes the issue in the endorsed directory fixes the issue.

Dumb question, where can I download snapshot build?


                
> NPE on DatatypeConverter
> ------------------------
>
>                 Key: TOMEE-249
>                 URL: https://issues.apache.org/jira/browse/TOMEE-249
>             Project: TomEE
>          Issue Type: New Feature
>    Affects Versions: 1.0.0
>         Environment: MacOS JDK 1.7.0_05 & Windows JDK 1.7.0_04
>            Reporter: Harro Lissenberg
>
> When using the method DatatypeConverter.printBase64Binary a NullPointerException occurs.
> java.lang.NullPointerException
> 	javax.xml.bind.DatatypeConverter.printBase64Binary(DatatypeConverter.java:173)
> 	Servlet.doGet(Servlet.java:17)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
> The following example servlet will throw the NPE:
> @WebServlet("/npe")
> public class Servlet extends HttpServlet {
>     @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
>         String s = DatatypeConverter.printBase64Binary("TomEE & JAXB!".getBytes(StandardCharsets.UTF_8));
>         resp.getWriter().write(s);
>     }
> }
> A workaround is to remove the JAXB jars from the lib & endorsed directories. My application seems to work fine but I have no idea what (hidden) problems this might cause.

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