The value 30000.1
is an invalid long value. You could parse the double value first:
lDurationMillis = (long)Double.parseDouble("30000.1");
More Related Contents:
- How do I fix a NoSuchMethodError?
- Why are arrays covariant but generics are invariant?
- How to perform mouseover function in Selenium WebDriver using Java?
- How do I use 3DES encryption/decryption in Java?
- java.sql.SQLException: Access denied for user ‘root’@’localhost’ (using password: YES)
- Map enum in JPA with fixed values?
- Android: how to change the color of the datepicker divider?
- Synchronization of non-final field
- Executors.newCachedThreadPool() versus Executors.newFixedThreadPool()
- How to monitor Java memory usage?
- Handling Java crypto exceptions
- Strange Java null behavior in Method Overloading [duplicate]
- Exception using HttpRequest.execute(): Invalid use of SingleClientConnManager: connection still allocated
- Running a java program as an exe in Windows without JRE installed
- Hibernate batch size confusion
- How can I listen for key presses (within Java Swing) across all components?
- What is the difference between canonical name, simple name and class name in Java Class?
- When NOT to use the static keyword in Java?
- How to avoid ‘the local variable may not have been initialized’?
- Parallel execution of directed acyclic graph of tasks
- In simplest terms, what is a factory?
- WatchService for Java 6 [closed]
- How can I detect when an Exception’s been thrown globally in Java?
- How Threadpool re-use Threads and how it works
- java.lang.VerifyError: Verifier rejected class on Lollipop when using release APK
- HttpClient.getParams() deprecated. What should I use instead?
- How to create a Script Mapper in Keycloak?
- java.io.FileNotFoundException in eclipse
- Is there a workaround for Java’s poor performance on walking huge directories?
- ActionListener on JLabel or JTable cell