spring-data-orientdb icon indicating copy to clipboard operation
spring-data-orientdb copied to clipboard

spring-data-orient-samples does not run

Open coolksrini opened this issue 8 years ago • 3 comments

The sample code does not run and exits without any error.

2017-09-10 20:17:02.041 INFO 6884 --- [ main] o.s.b.orientdb.hello.HelloApplication : Starting HelloApplication on srinivas-OMEN-HP-Laptop with PID 6884 (/home/srinivas/Downloads/spring-data-orientdb-2.2.x/spring-data-orientdb-samples/spring-boot-orientdb-hello/target/classes started by srinivas in /home/srinivas/Downloads/spring-data-orientdb-2.2.x/spring-data-orientdb-samples/spring-boot-orientdb-hello) 2017-09-10 20:17:02.044 INFO 6884 --- [ main] o.s.b.orientdb.hello.HelloApplication : No active profile set, falling back to default profiles: default 2017-09-10 20:17:02.101 INFO 6884 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@530612ba: startup date [Sun Sep 10 20:17:02 IST 2017]; root of context hierarchy 2017-09-10 20:17:02.996 INFO 6884 --- [ main] emoryAndLocalPaginatedEnginesInitializer : OrientDB auto-config DISKCACHE=3,541MB (heap=3,541MB direct=3,541MB os=15,930MB), assuming maximum direct memory size equals to maximum JVM heap size 2017-09-10 20:17:02.997 WARN 6884 --- [ main] c.orientechnologies.common.util.OMemory : MaxDirectMemorySize JVM option is not set or has invalid value, that may cause out of memory errors. Please set the -XX:MaxDirectMemorySize=15930m option when you start the JVM. 2017-09-10 20:17:04.459 INFO 6884 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup 2017-09-10 20:17:04.596 INFO 6884 --- [ main] o.s.b.orientdb.hello.HelloApplication : Started HelloApplication in 2.771 seconds (JVM running for 3.061) 2017-09-10 20:17:04.597 INFO 6884 --- [ Thread-5] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@530612ba: startup date [Sun Sep 10 20:17:02 IST 2017]; root of context hierarchy 2017-09-10 20:17:04.598 INFO 6884 --- [ Thread-5] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans on shutdown

coolksrini avatar Sep 10 '17 15:09 coolksrini

On branch 2.2.x, after installing all spring-data-orientdb modules (mvn clean install -DskipTests) from the root of the project, I just started the sample hello word:

mvn spring-boot:run

Then, in a browser:

http://localhost:8080/persons

that gives:

[
{
id: "#33:0",
firstName: "Graham",
lastName: "Jacobson",
age: 25
},
{
id: "#34:0",
firstName: "Ebony",
lastName: "Irwin",
age: 21
},
{
id: "#35:0",
firstName: "Benedict",
lastName: "Preston",
age: 25
},
{
id: "#36:0",
firstName: "Zorita",
lastName: "Clements",
age: 23
},
{
id: "#37:0",
firstName: "Kaitlin",
lastName: "Walter",
age: 22
}
]

robfrank avatar Sep 11 '17 10:09 robfrank

I followed the instructions to the T but it still doesn't run. srinivas@srinivas-OMEN-HP-Laptop:~/Downloads/spring-data-orientdb-2.2.x/spring-data-orientdb-samples/spring-boot-orientdb-hello$ mvn spring-boot:run [INFO] Scanning for projects... [INFO]                                                                         [INFO] ------------------------------------------------------------------------ [INFO] Building Sample - Spring Boot OrientDB Hello 0.15-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> spring-boot-maven-plugin:1.2.0.RELEASE:run (default-cli) > test-compile @ spring-boot-orientdb-hello >>> [INFO] [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce) @ spring-boot-orientdb-hello --- [INFO] [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ spring-boot-orientdb-hello --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ spring-boot-orientdb-hello --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ spring-boot-orientdb-hello --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/srinivas/Downloads/spring-data-orientdb-2.2.x/spring-data-orientdb-samples/spring-boot-orientdb-hello/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ spring-boot-orientdb-hello --- [INFO] No sources to compile [INFO] [INFO] <<< spring-boot-maven-plugin:1.2.0.RELEASE:run (default-cli) < test-compile @ spring-boot-orientdb-hello <<< [INFO] [INFO] --- spring-boot-maven-plugin:1.2.0.RELEASE:run (default-cli) @ spring-boot-orientdb-hello ---

  .   ____          _            __ _ _  /\ / ' __ _ () __  __ _ \ \ \
( ( )_
_ | '_ | '| | ' / ` | \ \ \
 \/  )| |)| | | | | || (| |  ) ) ) )   '  |
| .__|| ||| |_, | / / / /  =========||==============|/=////  :: Spring Boot ::        (v1.5.3.RELEASE)

2017-09-11 21:38:15.330  INFO 3024 --- [lication.main()] o.s.b.orientdb.hello.HelloApplication    : Starting HelloApplication on srinivas-OMEN-HP-Laptop with PID 3024 (/home/srinivas/Downloads/spring-data-orientdb-2.2.x/spring-data-orientdb-samples/spring-boot-orientdb-hello/target/classes started by srinivas in /home/srinivas/Downloads/spring-data-orientdb-2.2.x/spring-data-orientdb-samples/spring-boot-orientdb-hello) 2017-09-11 21:38:15.332  INFO 3024 --- [lication.main()] o.s.b.orientdb.hello.HelloApplication    : No active profile set, falling back to default profiles: default 2017-09-11 21:38:15.375  INFO 3024 --- [lication.main()] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@302102cd: startup date [Mon Sep 11 21:38:15 IST 2017]; root of context hierarchy 2017-09-11 21:38:16.229  INFO 3024 --- [lication.main()] emoryAndLocalPaginatedEnginesInitializer : OrientDB auto-config DISKCACHE=3,541MB (heap=3,541MB direct=3,541MB os=15,930MB), assuming maximum direct memory size equals to maximum JVM heap size 2017-09-11 21:38:16.229  WARN 3024 --- [lication.main()] c.orientechnologies.common.util.OMemory  : MaxDirectMemorySize JVM option is not set or has invalid value, that may cause out of memory errors. Please set the -XX:MaxDirectMemorySize=15930m option when you start the JVM. 2017-09-11 21:38:17.536  INFO 3024 --- [lication.main()] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup 2017-09-11 21:38:17.599  INFO 3024 --- [lication.main()] o.s.b.orientdb.hello.HelloApplication    : Started HelloApplication in 2.473 seconds (JVM running for 5.722) [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.818 s [INFO] Finished at: 2017-09-11T21:38:17+05:30 [INFO] Final Memory: 56M/923M [INFO] ------------------------------------------------------------------------ 2017-09-11 21:38:17.740  INFO 3024 --- [       Thread-5] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@302102cd: startup date [Mon Sep 11 21:38:15 IST 2017]; root of context hierarchy 2017-09-11 21:38:17.741  INFO 3024 --- [       Thread-3] c.orientechnologies.orient.core.Orient   : Orient Engine is shutting down... 2017-09-11 21:38:17.742  INFO 3024 --- [       Thread-5] o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans on shutdown

On Monday, September 11, 2017 3:30 PM, Roberto Franchini <[email protected]> wrote:

On branch 2.2.x, after installing all spring-data-orientdb modules (mvn clean install -DskipTests) from the root of the project, I just started the sample hello word:mvn spring-boot:runThen, in a browser:http://localhost:8080/personsthat gives:[ { id: "#33:0", firstName: "Graham", lastName: "Jacobson", age: 25 }, { id: "#34:0", firstName: "Ebony", lastName: "Irwin", age: 21 }, { id: "#35:0", firstName: "Benedict", lastName: "Preston", age: 25 }, { id: "#36:0", firstName: "Zorita", lastName: "Clements", age: 23 }, { id: "#37:0", firstName: "Kaitlin", lastName: "Walter", age: 22 } ] — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

coolksrini avatar Sep 11 '17 16:09 coolksrini

I followed the same instructions on Windows and it worked. For some reason, it did not work on my Ubuntu environment. Not sure what the issue is with Ubuntu/Linux.

coolksrini avatar Sep 14 '17 21:09 coolksrini