java.lang.NumberFormatException: For input string: "7.5"

Atlassian JIRA | Dieter Freismuth | 6 years ago
  1. 0

    description: the field RemoteConfiguration.timeTrackingHoursPerDay within the soap wsdl is of type 'int' but it is possible to enter double values like '7.5' within Global Settings/Time Tracking/Hours per day. This will lead to a NumberFormatException to reproduce: 1. Go to Global Settings/Time Tracking and enable it 2. Change the 'Hours per day' value to '7.5' (decimal is important!) 3. click Activate 4. build a soap client and request JiraSoapService.getServerInfo(<token>) this will lead to the following exception: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.lang.NumberFormatException: For input string: &quot;7.5&quot; faultActor: faultNode: faultDetail: {}faultData:null {http://xml.apache.org/axis/}hostname:blackbook.local java.lang.NumberFormatException: For input string: "7.5" at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222) at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at onepoint.project.team.modules.jira.generated.JirasoapserviceV2SoapBindingStub.getConfiguration(JirasoapserviceV2SoapBindingStub.java:4130) at onepoint.project.team.modules.jira.OpJiraUpdater.updateTimeTrackingSettings(OpJiraUpdater.java:746) at onepoint.project.team.modules.jira.OpJiraUpdater.getWorkHoursPerDay(OpJiraUpdater.java:768) at onepoint.project.team.modules.jira.OpJiraServiceImpl.getEffort(OpJiraServiceImpl.java:399) at onepoint.project.team.modules.jira.OpJiraServiceImpl.updateRequirementSettings(OpJiraServiceImpl.java:360) at onepoint.project.team.modules.jira.OpJiraServiceImpl.requirementAdded(OpJiraServiceImpl.java:178) at onepoint.project.team.modules.jira.OpJiraUpdater.addRequirement(OpJiraUpdater.java:317) at onepoint.project.team.modules.jira.OpJiraUpdater.updateProject(OpJiraUpdater.java:279) at onepoint.project.team.modules.jira.OpJiraUpdater.updateProject(OpJiraUpdater.java:230) at onepoint.project.team.modules.jira.OpJiraUpdater.updateProject(OpJiraUpdater.java:159) at onepoint.project.team.modules.product.OpProductAdvancedService.insertOrUpdateProduct(OpProductAdvancedService.java:164) 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:597) at onepoint.service.server.XService.callJavaMethod(XService.java:93) at onepoint.project.OpProjectService.callJavaMethod(OpProjectService.java:220) at onepoint.service.server.XService.invokeMethod(XService.java:49) at onepoint.service.server.XSession.invokeMethod(XSession.java:128) at onepoint.express.server.XExpressSession.invokeMethod(XExpressSession.java:79) at onepoint.service.server.XBinaryServlet.processRequest(XBinaryServlet.java:189) at onepoint.project.servlet.OpOpenServlet.processRequest(OpOpenServlet.java:602) at onepoint.service.server.XBinaryServlet.doPost(XBinaryServlet.java:139) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at onepoint.project.servlet.OpOpenServlet.service(OpOpenServlet.java:152) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:842) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) solution: change timeTrackingHoursPerDay to be of type double

    Atlassian JIRA | 6 years ago | Dieter Freismuth
    java.lang.NumberFormatException: For input string: "7.5"
  2. 0

    description: the field RemoteConfiguration.timeTrackingHoursPerDay within the soap wsdl is of type 'int' but it is possible to enter double values like '7.5' within Global Settings/Time Tracking/Hours per day. This will lead to a NumberFormatException to reproduce: 1. Go to Global Settings/Time Tracking and enable it 2. Change the 'Hours per day' value to '7.5' (decimal is important!) 3. click Activate 4. build a soap client and request JiraSoapService.getServerInfo(<token>) this will lead to the following exception: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.lang.NumberFormatException: For input string: &quot;7.5&quot; faultActor: faultNode: faultDetail: {}faultData:null {http://xml.apache.org/axis/}hostname:blackbook.local java.lang.NumberFormatException: For input string: "7.5" at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222) at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) at onepoint.project.team.modules.jira.generated.JirasoapserviceV2SoapBindingStub.getConfiguration(JirasoapserviceV2SoapBindingStub.java:4130) at onepoint.project.team.modules.jira.OpJiraUpdater.updateTimeTrackingSettings(OpJiraUpdater.java:746) at onepoint.project.team.modules.jira.OpJiraUpdater.getWorkHoursPerDay(OpJiraUpdater.java:768) at onepoint.project.team.modules.jira.OpJiraServiceImpl.getEffort(OpJiraServiceImpl.java:399) at onepoint.project.team.modules.jira.OpJiraServiceImpl.updateRequirementSettings(OpJiraServiceImpl.java:360) at onepoint.project.team.modules.jira.OpJiraServiceImpl.requirementAdded(OpJiraServiceImpl.java:178) at onepoint.project.team.modules.jira.OpJiraUpdater.addRequirement(OpJiraUpdater.java:317) at onepoint.project.team.modules.jira.OpJiraUpdater.updateProject(OpJiraUpdater.java:279) at onepoint.project.team.modules.jira.OpJiraUpdater.updateProject(OpJiraUpdater.java:230) at onepoint.project.team.modules.jira.OpJiraUpdater.updateProject(OpJiraUpdater.java:159) at onepoint.project.team.modules.product.OpProductAdvancedService.insertOrUpdateProduct(OpProductAdvancedService.java:164) 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:597) at onepoint.service.server.XService.callJavaMethod(XService.java:93) at onepoint.project.OpProjectService.callJavaMethod(OpProjectService.java:220) at onepoint.service.server.XService.invokeMethod(XService.java:49) at onepoint.service.server.XSession.invokeMethod(XSession.java:128) at onepoint.express.server.XExpressSession.invokeMethod(XExpressSession.java:79) at onepoint.service.server.XBinaryServlet.processRequest(XBinaryServlet.java:189) at onepoint.project.servlet.OpOpenServlet.processRequest(OpOpenServlet.java:602) at onepoint.service.server.XBinaryServlet.doPost(XBinaryServlet.java:139) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at onepoint.project.servlet.OpOpenServlet.service(OpOpenServlet.java:152) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:842) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) solution: change timeTrackingHoursPerDay to be of type double

    Atlassian JIRA | 6 years ago | Dieter Freismuth
    java.lang.NumberFormatException: For input string: "7.5"
  3. 0

    Deserialization error

    apache.org | 1 year ago
    java.lang.NumberFormatException: For input string: &quot;&quot;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Axis serialization error:Number Format Exception

    Stack Overflow | 3 years ago | Abhiram
    java.lang.NumberFormatException: For input string: &quot;&quot;
  6. 0

    DIIClient error

    Oracle Community | 1 decade ago | 843833
    java.lang.NumberFormatException: For input string: ""

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

      For input string: "7.5"

      at org.apache.axis.message.SOAPFaultBuilder.createFault()
    2. Axis Web Services
      DeserializationContext.endElement
      1. org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
      2. org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
      3. org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
      3 frames
    3. Xerces2-j
      SAXParserImpl$JAXPSAXParser.parse
      1. org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
      2. org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
      3. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      4. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      5. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      6. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      7. org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      8. org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      9. org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      9 frames
    4. Java RT
      SAXParser.parse
      1. javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
      1 frame
    5. Axis Web Services
      Call.invoke
      1. org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
      2. org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
      3. org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
      4. org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
      5. org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
      6. org.apache.axis.client.Call.invokeEngine(Call.java:2784)
      7. org.apache.axis.client.Call.invoke(Call.java:2767)
      8. org.apache.axis.client.Call.invoke(Call.java:2443)
      9. org.apache.axis.client.Call.invoke(Call.java:2366)
      10. org.apache.axis.client.Call.invoke(Call.java:1812)
      10 frames
    6. onepoint.project.team
      OpProductAdvancedService.insertOrUpdateProduct
      1. onepoint.project.team.modules.jira.generated.JirasoapserviceV2SoapBindingStub.getConfiguration(JirasoapserviceV2SoapBindingStub.java:4130)
      2. onepoint.project.team.modules.jira.OpJiraUpdater.updateTimeTrackingSettings(OpJiraUpdater.java:746)
      3. onepoint.project.team.modules.jira.OpJiraUpdater.getWorkHoursPerDay(OpJiraUpdater.java:768)
      4. onepoint.project.team.modules.jira.OpJiraServiceImpl.getEffort(OpJiraServiceImpl.java:399)
      5. onepoint.project.team.modules.jira.OpJiraServiceImpl.updateRequirementSettings(OpJiraServiceImpl.java:360)
      6. onepoint.project.team.modules.jira.OpJiraServiceImpl.requirementAdded(OpJiraServiceImpl.java:178)
      7. onepoint.project.team.modules.jira.OpJiraUpdater.addRequirement(OpJiraUpdater.java:317)
      8. onepoint.project.team.modules.jira.OpJiraUpdater.updateProject(OpJiraUpdater.java:279)
      9. onepoint.project.team.modules.jira.OpJiraUpdater.updateProject(OpJiraUpdater.java:230)
      10. onepoint.project.team.modules.jira.OpJiraUpdater.updateProject(OpJiraUpdater.java:159)
      11. onepoint.project.team.modules.product.OpProductAdvancedService.insertOrUpdateProduct(OpProductAdvancedService.java:164)
      11 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    8. onepoint.service.server
      XService.callJavaMethod
      1. onepoint.service.server.XService.callJavaMethod(XService.java:93)
      1 frame
    9. onepoint.project
      OpProjectService.callJavaMethod
      1. onepoint.project.OpProjectService.callJavaMethod(OpProjectService.java:220)
      1 frame
    10. onepoint.service.server
      XSession.invokeMethod
      1. onepoint.service.server.XService.invokeMethod(XService.java:49)
      2. onepoint.service.server.XSession.invokeMethod(XSession.java:128)
      2 frames
    11. onepoint.express.server
      XExpressSession.invokeMethod
      1. onepoint.express.server.XExpressSession.invokeMethod(XExpressSession.java:79)
      1 frame
    12. onepoint.service.server
      XBinaryServlet.processRequest
      1. onepoint.service.server.XBinaryServlet.processRequest(XBinaryServlet.java:189)
      1 frame
    13. onepoint.project.servlet
      OpOpenServlet.processRequest
      1. onepoint.project.servlet.OpOpenServlet.processRequest(OpOpenServlet.java:602)
      1 frame
    14. onepoint.service.server
      XBinaryServlet.doPost
      1. onepoint.service.server.XBinaryServlet.doPost(XBinaryServlet.java:139)
      1 frame
    15. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
      1 frame
    16. onepoint.project.servlet
      OpOpenServlet.service
      1. onepoint.project.servlet.OpOpenServlet.service(OpOpenServlet.java:152)
      1 frame
    17. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      1 frame
    18. Jetty Server
      SocketConnector$Connection.run
      1. org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      2. org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
      3. org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      4. org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      5. org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      6. org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      7. org.mortbay.jetty.Server.handle(Server.java:326)
      8. org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
      9. org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
      10. org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:842)
      11. org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
      12. org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      13. org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
      13 frames
    19. Jetty Util
      QueuedThreadPool$PoolThread.run
      1. org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
      1 frame