Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

spring-data-orient-samples does not run #76

Open
coolksrini opened this issue Sep 10, 2017 · 3 comments
Open

spring-data-orient-samples does not run #76

coolksrini opened this issue Sep 10, 2017 · 3 comments
Assignees

Comments

@coolksrini
Copy link

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

@robfrank
Copy link
Contributor

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 robfrank self-assigned this Sep 11, 2017
@coolksrini
Copy link
Author

coolksrini commented Sep 11, 2017 via email

@coolksrini
Copy link
Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants