Note that there are some explanatory texts on larger screens.

plurals
  1. POjava.lang.NumberFormatException: For input string: "20110328094108069414"
    text
    copied!<p>Am trying to convert a String value to long, and am getting : <code>java.lang.NumberFormatException: For input string: "20110328094108069414"</code></p> <p>My code :</p> <pre><code> String buyId = "PSFT_20110328114728073793"; long bookId = Long.parseLong(buyId .replaceAll("PSFT_","")); </code></pre> <p>Error:</p> <pre><code>10:12:10,522 ERROR [STDERR] java.lang.NumberFormatException: For input string: "20110328094108069414" 10:12:10,522 ERROR [STDERR] at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) 10:12:10,522 ERROR [STDERR] at java.lang.Long.parseLong(Long.java:415) 10:12:10,522 ERROR [STDERR] at java.lang.Long.parseLong(Long.java:461) 10:12:10,522 ERROR [STDERR] at unilog.com.user.ejb.userDAOORCL.checkCWSUserReg(userDAOORCL.java:363) 10:12:10,522 ERROR [STDERR] at unilog.com.user.ejb.userEJBBean.checkCWSUserReg(userEJBBean.java:141) 10:12:10,522 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 10:12:10,523 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 10:12:10,523 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 10:12:10,523 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) 10:12:10,523 ERROR [STDERR] at org.jboss.invocation.Invocation.performCall(Invocation.java:359) 10:12:10,523 ERROR [STDERR] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237) 10:12:10,523 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158) </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload