GithubHelp home page GithubHelp logo

Comments (8)

gregturn avatar gregturn commented on June 12, 2024

I'll check it first thing in the morning.

from gs-spring-boot.

Muzamri avatar Muzamri commented on June 12, 2024

Thanks Greg, but there is no rush, I can just use the previous commit to try out the samples.

from gs-spring-boot.

gregturn avatar gregturn commented on June 12, 2024

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.

Muzamri avatar Muzamri commented on June 12, 2024

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.

Muzamri avatar Muzamri commented on June 12, 2024

Ah, switching to : JVM: 1.7.0_21 (Oracle Corporation 23.21-b01)

I am able to run commit: b84d2a4

from gs-spring-boot.

gregturn avatar gregturn commented on June 12, 2024

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.

Muzamri avatar Muzamri commented on June 12, 2024

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.

gregturn avatar gregturn commented on June 12, 2024

Given that it now works, I'll consider the bug was the older version of Java 6.

from gs-spring-boot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.