java.lang.reflect.InvocationTargetException

Atlassian JIRA | Bogdan Dziedzic [Atlassian] | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    There are two separate scenarios where the problem can be observed *Scenario 1:* A remote JIRA user trying to upload a file to JIRA where (s)he doesn't have rw permissions to. # Create a file that is visible to the user accessing JIRA UI, but not readable (revoked r/w on the file). # Attempt to add a file to JIRA. # After some time the following is reported in UI: _Your session has timed out or you were logged out. Please save your work and reload the page_ !UploadScreen.png! In the same the following error is returned in the log file: {noformat} 2011-07-25 14:47:33,488 http-8080-1 ERROR kk 887x554x1 1dxua07 172.20.5.82 /secure/AttachTemporaryFile.jspa [webwork.multipart.MultiPartRequestWrapper] null java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at webwork.multipart.MultiPartRequestWrapper.<init>(MultiPartRequestWrapper.java:73) at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.wrapRequest(JiraWebworkActionDispatcher.java:399) at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:132) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.jira.web.filters.JiraLastFilter.doFilter(JiraLastFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) .... Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:751) at org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:781) at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:116) at org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:710) at org.apache.coyote.Request.doRead(Request.java:428) at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:304) at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:403) at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:327) {noformat} *Scenario 2:* Local JIRA OS user performing the above task. # JIRA is executed as unprivileged user. # Create a file that is visible to the user operating JIRA but not readable. # File is created with the following permissions: {noformat} bdziedzic@okocim:~/.tmp-scripts/atlassian-jira-4.3.4-standalone$ ls -l /tmp/anewfile -rw-r----- 1 root root 7 2011-07-21 14:19 /tmp/anewfile {noformat} # Some random data is entered into file. # When the attach file operation is attempted the following error is displayed: _andwfile does not exist or is zero bytes in size._ !att.png!

    Atlassian JIRA | 6 years ago | Bogdan Dziedzic [Atlassian]
    java.lang.reflect.InvocationTargetException
  2. 0

    There are two separate scenarios where the problem can be observed *Scenario 1:* A remote JIRA user trying to upload a file to JIRA where (s)he doesn't have rw permissions to. # Create a file that is visible to the user accessing JIRA UI, but not readable (revoked r/w on the file). # Attempt to add a file to JIRA. # After some time the following is reported in UI: _Your session has timed out or you were logged out. Please save your work and reload the page_ !UploadScreen.png! In the same the following error is returned in the log file: {noformat} 2011-07-25 14:47:33,488 http-8080-1 ERROR kk 887x554x1 1dxua07 172.20.5.82 /secure/AttachTemporaryFile.jspa [webwork.multipart.MultiPartRequestWrapper] null java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at webwork.multipart.MultiPartRequestWrapper.<init>(MultiPartRequestWrapper.java:73) at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.wrapRequest(JiraWebworkActionDispatcher.java:399) at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:132) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.jira.web.filters.JiraLastFilter.doFilter(JiraLastFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66) at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74) .... Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:751) at org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:781) at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:116) at org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:710) at org.apache.coyote.Request.doRead(Request.java:428) at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:304) at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:403) at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:327) {noformat} *Scenario 2:* Local JIRA OS user performing the above task. # JIRA is executed as unprivileged user. # Create a file that is visible to the user operating JIRA but not readable. # File is created with the following permissions: {noformat} bdziedzic@okocim:~/.tmp-scripts/atlassian-jira-4.3.4-standalone$ ls -l /tmp/anewfile -rw-r----- 1 root root 7 2011-07-21 14:19 /tmp/anewfile {noformat} # Some random data is entered into file. # When the attach file operation is attempted the following error is displayed: _andwfile does not exist or is zero bytes in size._ !att.png!

    Atlassian JIRA | 6 years ago | Bogdan Dziedzic [Atlassian]
    java.lang.reflect.InvocationTargetException
  3. 0

    I deployed aida on my server but occur a problem,can you help me?

    GitHub | 2 years ago | iehyxue
    java.lang.reflect.InvocationTargetException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Can't use Hive metastore database directly for Hive sources and sinks

    GitHub | 3 years ago | stephanh
    java.lang.Throwable: If you know what exactly caused this error, please consider contributing to GitHub via following link. https://github.com/twitter/scalding/wiki/Common-Exceptions-and-possible-reasons#javalangnullpointerexception
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.reflect.InvocationTargetException

    No message provided

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
  2. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    4 frames
  3. webwork.multipart
    MultiPartRequestWrapper.<init>
    1. webwork.multipart.MultiPartRequestWrapper.<init>(MultiPartRequestWrapper.java:73)
    1 frame
  4. com.atlassian.jira
    JiraWebworkActionDispatcher.service
    1. com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.wrapRequest(JiraWebworkActionDispatcher.java:399)
    2. com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:132)
    2 frames
  5. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    1 frame
  6. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames
  7. com.atlassian.jira
    JiraLastFilter.doFilter
    1. com.atlassian.jira.web.filters.JiraLastFilter.doFilter(JiraLastFilter.java:81)
    1 frame
  8. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames
  9. com.atlassian.core
    HeaderSanitisingFilter.doFilter
    1. com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44)
    1 frame
  10. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    2 frames
  11. com.atlassian.plugin
    DelegatingPluginFilter$1.doFilter
    1. com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)
    2. com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)
    2 frames
  12. com.atlassian.applinks
    ContextFilter.doFilter
    1. com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25)
    1 frame
  13. com.atlassian.plugin
    DelegatingPluginFilter.doFilter
    1. com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:74)
    1 frame