Comments (8)
I'll check it first thing in the morning.
from gs-spring-boot.
Thanks Greg, but there is no rush, I can just use the previous commit to try out the samples.
from gs-spring-boot.
If you can leave a demo of the version of Java you are running and a console output showing it crashing, that would help a lot.
from gs-spring-boot.
commit: b84d2a4
gs-spring-boot/complete$ ./gradlew -v
Gradle 1.8
Build time: 2013-09-24 07:32:33 UTC
Build number: none
Revision: 7970ec3503b4f5767ee1c1c69f8b4186c4763e3d
Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.9.2 compiled on July 8 2013
Ivy: 2.2.0
JVM: 1.6.0_27 (Sun Microsystems Inc. 20.0-b12)
OS: Linux 3.2.0-56-generic-pae i386
gs-spring-boot/complete$ ./gradlew build && java -jar build/libs/gs-spring-boot-0.1.0.jar
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:jar
:repackage
:assemble
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test UP-TO-DATE
:check UP-TO-DATE
:build
BUILD SUCCESSFUL
Total time: 9.439 secs
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
commit: 5aadeab
gs-spring-boot/complete$ ./gradlew -v
Gradle 1.8
Build time: 2013-09-24 07:32:33 UTC
Build number: none
Revision: 7970ec3503b4f5767ee1c1c69f8b4186c4763e3d
Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.9.2 compiled on July 8 2013
Ivy: 2.2.0
JVM: 1.6.0_27 (Sun Microsystems Inc. 20.0-b12)
OS: Linux 3.2.0-56-generic-pae i386
gs-spring-boot/complete$ ./gradlew build && java -jar build/libs/gs-spring-boot-0.1.0.jar
:compileJava
:processResources UP-TO-DATE
:classes
:jar
:repackage
:assemble
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test UP-TO-DATE
:check UP-TO-DATE
:build
BUILD SUCCESSFUL
Total time: 11.606 secs
. ____ _ __ _ _
/\ / ' __ _ ()_ __ __ _ \ \ \
( ( )_ | '_ | '| | ' / ` | \ \ \
/ )| |)| | | | | || (| | ) ) ) )
' || .**|| ||| |**, | / / / /
=========||==============|/=///_/
:: Spring Boot :: (v0.5.0.M5)
from gs-spring-boot.
Ah, switching to : JVM: 1.7.0_21 (Oracle Corporation 23.21-b01)
I am able to run commit: b84d2a4
from gs-spring-boot.
A) I Java 6, 7, and 8 installed (lots to support). My version of Java 6 is Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609) appears much more up-to-date than the one I saw you list. I can run the "complete" version with this version of Java 6. Not sure if that's the issue.
B) I also see that Spring Boot 0.5.0.M5 is on the tag line. We updated that guide recently to 0.5.0.M6. Perhaps if you delete your workspace and then refetch it, it will run smoother with your version of Java 6 (if 6 is a requirement for you).
from gs-spring-boot.
A) I have installed the latest version for the 1.6 SDK I could find. (You are right about this, ) I managed to get commit: b84d2a4 working. I will list the out put below.
B) Spring Boot 0.5.0.M5 appeared because I reverted to the previous commit (in order to run it successfully). Java 6 is not a requirement for me.
Output:
gs-spring-boot/complete$ ./gradlew -v
Gradle 1.8
Build time: 2013-09-24 07:32:33 UTC
Build number: none
Revision: 7970ec3503b4f5767ee1c1c69f8b4186c4763e3d
Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.9.2 compiled on July 8 2013
Ivy: 2.2.0
JVM: 1.6.0_45 (Sun Microsystems Inc. 20.45-b01) <<<<< UPDATED
OS: Linux 3.2.0-56-generic-pae i386
blitzkrieg@blitzkrieg-nb:~/data/gits/gs-spring-boot/complete$ ./gradlew build && java -jar build/libs/gs-spring-boot-0.1.0.jar
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:jar
:repackage
:assemble
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test UP-TO-DATE
:check UP-TO-DATE
:build
BUILD SUCCESSFUL
Total time: 8.606 secs
. ____ _ __ _ _
/\ / ' __ _ ()_ __ __ _ \ \ \
( ( )_ | '_ | '| | ' / ` | \ \ \
/ )| |)| | | | | || (| | ) ) ) )
' || .**|| ||| |**, | / / / /
=========||==============|/=///_/
:: Spring Boot :: (v0.5.0.M6)
from gs-spring-boot.
Given that it now works, I'll consider the bug was the older version of Java 6.
from gs-spring-boot.
Related Issues (20)
- HelloControllerIT doesn't run on windows when mvn tested. HOT 2
- All the code is gone HOT 1
- Improper sentence on MockMvc HOT 1
- Create spring HOT 1
- Miss space in mvnw script file HOT 1
- Update Spring Boot to the latest version HOT 1
- Getting Started is starting on HTTPS not HTTP.
- configure spring boot latest version with keycloak' SAML protocol HOT 1
- why not use .yml file? HOT 1
- adoc links to raw format which is illegible - link to the repo instead HOT 4
- Slight typo in "Check out the service." HOT 2
- Error: Unable to access jarfile build/libs/gs-spring-boot-0.1.0.jar
- Where to put the application.properties file
- Broken link? HOT 1
- Unable to run the application on Java 11 HOT 3
- how to add a jar file and build HOT 1
- this is a issues
- problems with spring boot project using gradle HOT 3
- Not Working HOT 1
- HelloControllerIT assertion is always returning true
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 gs-spring-boot.