Comments (10)
What version of Spring Boot did you use to create the JAR and version of java is running on your colleagues machine?
from spring-boot.
I used jdk 7, but my colleague has a lower version.
from spring-boot.
my colleague has a lower version
Could you be a bit more specific :)
What does the following show on their machine?
$ java -version
from spring-boot.
Jdk 6.3
Abhinav
from spring-boot.
What happens if you both use the same version of Java?
from spring-boot.
It works for jdk 7. Is jdk 6 not supported ?
from spring-boot.
Java 6 is supported by Spring and Spring Boot, as long as you don't use any Java 7 specific features. It works for me and I normally only use 1.6. Could you try again with a new snapshot?
from spring-boot.
I had the same issue. 0.5.0.M6 doesn't work on some of my boxes. Switching to 0.5.0.BUILD-SNAPSHOT works, so something between must have fixed it.
Exception in thread "main" java.lang.IllegalStateException: java.lang.NullPointerException
at org.springframework.boot.loader.ExecutableArchiveLauncher.<init>(ExecutableArchiveLauncher.java:47)
at org.springframework.boot.loader.JarLauncher.<init>(JarLauncher.java:29)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:42)
Caused by: java.lang.NullPointerException
at org.springframework.boot.loader.jar.RandomAccessDataJarInputStream.getPosition(RandomAccessDataJarInputStream.java:79)
at org.springframework.boot.loader.jar.RandomAccessDataJarInputStream.getNextEntry(RandomAccessDataJarInputStream.java:70)
at org.springframework.boot.loader.jar.RandomAccessDataJarInputStream.getNextEntry(RandomAccessDataJarInputStream.java:35)
at java.util.jar.JarInputStream.getNextJarEntry(JarInputStream.java:166)
at java.util.jar.JarInputStream.<init>(JarInputStream.java:90)
at java.util.jar.JarInputStream.<init>(JarInputStream.java:60)
at org.springframework.boot.loader.jar.RandomAccessDataJarInputStream.<init>(RandomAccessDataJarInputStream.java:59)
at org.springframework.boot.loader.jar.RandomAccessDataJarInputStream.<init>(RandomAccessDataJarInputStream.java:47)
at org.springframework.boot.loader.jar.RandomAccessJarFile.<init>(RandomAccessJarFile.java:120)
at org.springframework.boot.loader.jar.RandomAccessJarFile.<init>(RandomAccessJarFile.java:100)
at org.springframework.boot.loader.jar.RandomAccessJarFile.<init>(RandomAccessJarFile.java:89)
at org.springframework.boot.loader.archive.JarFileArchive.<init>(JarFileArchive.java:46)
at org.springframework.boot.loader.ExecutableArchiveLauncher.createArchive(ExecutableArchiveLauncher.java:64)
at org.springframework.boot.loader.ExecutableArchiveLauncher.<init>(ExecutableArchiveLauncher.java:44)
... 2 more
$ java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.14) (amazon-65.1.11.14.57.amzn1-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
from spring-boot.
If we can pin down a passing/failing test case based on versions, git bisect can then find the commit.
Sent from my iPhone
On Nov 19, 2013, at 1:05 PM, jonson [email protected] wrote:
I had the same issue. 0.5.0.M6 doesn't work on some of my boxes. Switching to 0.5.0.BUILD-SNAPSHOT works, so something between must have fixed it.
Exception in thread "main" java.lang.IllegalStateException: java.lang.NullPointerException
at org.springframework.boot.loader.ExecutableArchiveLauncher.(ExecutableArchiveLauncher.java:47)
at org.springframework.boot.loader.JarLauncher.(JarLauncher.java:29)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:42)
Caused by: java.lang.NullPointerException
at org.springframework.boot.loader.jar.RandomAccessDataJarInputStream.getPosition(RandomAccessDataJarInputStream.java:79)
at org.springframework.boot.loader.jar.RandomAccessDataJarInputStream.getNextEntry(RandomAccessDataJarInputStream.java:70)
at org.springframework.boot.loader.jar.RandomAccessDataJarInputStream.getNextEntry(RandomAccessDataJarInputStream.java:35)
at java.util.jar.JarInputStream.getNextJarEntry(JarInputStream.java:166)
at java.util.jar.JarInputStream.(JarInputStream.java:90)
at java.util.jar.JarInputStream.(JarInputStream.java:60)
at org.springframework.boot.loader.jar.RandomAccessDataJarInputStream.(RandomAccessDataJarInputStream.java:59)
at org.springframework.boot.loader.jar.RandomAccessDataJarInputStream.(RandomAccessDataJarInputStream.java:47)
at org.springframework.boot.loader.jar.RandomAccessJarFile.(RandomAccessJarFile.java:120)
at org.springframework.boot.loader.jar.RandomAccessJarFile.(RandomAccessJarFile.java:100)
at org.springframework.boot.loader.jar.RandomAccessJarFile.(RandomAccessJarFile.java:89)
at org.springframework.boot.loader.archive.JarFileArchive.(JarFileArchive.java:46)
at org.springframework.boot.loader.ExecutableArchiveLauncher.createArchive(ExecutableArchiveLauncher.java:64)
at org.springframework.boot.loader.ExecutableArchiveLauncher.(ExecutableArchiveLauncher.java:44)
... 2 more
$ java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.14) (amazon-65.1.11.14.57.amzn1-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
—
Reply to this email directly or view it on GitHub.
from spring-boot.
Almost certainly something in d2678e0 that fixed it. Thanks for testing with the SNAPSHOT.
from spring-boot.
Related Issues (20)
- When using Maven, configuring the spring-boot.excludes or spring-boot-includes user properties causes the build to fail with "Cannot find default setter"
- When using Maven, configuring the spring-boot.excludes or spring-boot-includes user properties causes the build to fail with "Cannot find default setter"
- flyway connection error for r2dbc in testcontainers in Spring boot versions >= 3.x.x HOT 3
- Log4j2LoggingSystem pollutes Log4j2's environment with a SpringEnvironmentPropertySource that is never removed
- Log4j2LoggingSystem pollutes Log4j2's environment with a SpringEnvironmentPropertySource that is never removed
- Flyway is looking for actual url while building the application HOT 1
- Spring hibernate is throwing java.lang.NoClassDefFoundError: javax/transaction/SystemException HOT 1
- ClientObservationConventionAdapter overwrites WebClient request attributes HOT 2
- Upgrade to Awaitility 4.2.1
- Upgrade to Brave 6.0.3
- Upgrade to Elasticsearch Client 8.13.2
- Upgrade to Infinispan 15.0.1.Final
- Upgrade to R2DBC Postgresql 1.0.5.RELEASE
- Upgrade to Spring HATEOAS 2.3.0-RC1
- Null id generated for entity ABC when using Spring Boot 3.2.4 and embedded id HOT 1
- Consider mentioning OpenTelemetry Spring Boot starter in reference manual
- Message not included in ErrorAttributes for non-RuntimeExceptions HOT 2
- Add a property for configuring additional livereload paths
- missing reflection data for `CGLIB$SET_THREAD_CALLBACKS` in configuration properties class HOT 3
- Configuration properties validation is propagated to non-@Valid fields
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-boot.