java.lang.NullPointerException: This exception has no message.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via strutstestcase by nobody
, 1 year ago
This exception has no message.
via Stack Overflow by user3279182
, 1 year ago
This exception has no message.
via ecyrd.com by Unknown author, 11 months ago
This exception has no message.
via ecyrd.com by Unknown author, 7 months ago
This exception has no message.
via Coderanch by Nagendra Batchu, 1 year ago
java.lang.NullPointerException:
at java.lang.System.arraycopy(Native Method)
at java.lang.AbstractStringBuilder.getChars(AbstractStringBuilder.java:331)
at java.lang.StringBuffer.getChars(StringBuffer.java:202)
at java.text.DateFormat.format(DateFormat.java:314)
at org.apache.log4j.helpers.PatternParser$DatePatternConverter.convert(PatternParser.java:436)
at org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:56)
at org.apache.log4j.PatternLayout.format(PatternLayout.java:495)
at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:292)
at org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:225)
at org.apache.log4j.WriterAppender.append(WriterAppender.java:150)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
at org.apache.log4j.Category.callAppenders(Category.java:194)
at org.apache.log4j.Category.forcedLog(Category.java:379)
at org.apache.log4j.Category.log(Category.java:844)
at org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResourcesFactory.java:176)
at org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:523)
at org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1045)
at javax.servlet.GenericServlet.init(GenericServlet.java:168)
at servletunit.struts.CactusStrutsTestCase.getActionServlet(CactusStrutsTestCase.java:477)
at servletunit.struts.CactusStrutsTestCase.actionPerform(CactusStrutsTestCase.java:536)
at cz.muni.cba.detlib.actions.TestActionLogin.testSuccessfullLogin(TestActionLogin.java:61)
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:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:153)
at org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:119)

Users with the same issue

Once, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 9 months ago
56 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.