cd C:\Users\cf\Documents\NetBeansProjects\neo4j_jdbc_driver; "JAVA_HOME=D:\\Program Files\\Java\\jdk1.8.0_25" cmd /c "\"\"D:\\Program Files\\NetBeans 8.0.2\\java\\maven\\bin\\mvn.bat\" -Dtest=org.neo4j.jdbc.Neo4jCaseStatementTest -Dmaven.ext.class.path=\"D:\\Program Files\\NetBeans 8.0.2\\java\\maven-nblib\\netbeans-eventspy.jar\" surefire:test\"" Running NetBeans Compile On Save execution. Phase execution is skipped and output directories of dependency projects (with Compile on Save turned on) will be used instead of their jar artifacts. Scanning for projects... ------------------------------------------------------------------------ Building Neo4j JDBC Driver 2.2-SNAPSHOT ------------------------------------------------------------------------ --- maven-surefire-plugin:2.15:test (default-cli) @ neo4j-jdbc --- Surefire report directory: C:\Users\cf\Documents\NetBeansProjects\neo4j_jdbc_driver\target\surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.neo4j.jdbc.Neo4jCaseStatementTest 10:46:31.877 [main] INFO org.eclipse.jetty.util.log - Logging initialized @3430ms 10:46:32.049 [main] INFO org.eclipse.jetty.server.Server - jetty-9.2.4.v20141103 10:46:32.080 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.h.MovedContextHandler@1e1e9ef3{/,null,AVAILABLE} 五月 13, 2015 10:46:32 上午 com.sun.jersey.server.impl.application.WebApplicationImpl _initiate 信息: Initiating Jersey application, version 'Jersey: 1.18.1 02/19/2014 03:28 AM' 10:46:32.551 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@76e9f00b{/db/manage,null,AVAILABLE} 五月 13, 2015 10:46:32 上午 com.sun.jersey.server.impl.application.WebApplicationImpl _initiate 信息: Initiating Jersey application, version 'Jersey: 1.18.1 02/19/2014 03:28 AM' 10:46:32.692 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@20eaeaf8{/db/data,null,AVAILABLE} 10:46:32.755 [main] INFO o.e.j.w.StandardDescriptorProcessor - NO JSP Support for /browser, did not find org.apache.jasper.servlet.JspServlet 10:46:32.755 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.w.WebAppContext@4eaa375c{/browser,jar:file:/C:/Users/cf/.m2/repository/org/neo4j/app/neo4j-browser/2.2.1/neo4j-browser-2.2.1.jar!/browser,AVAILABLE} 五月 13, 2015 10:46:32 上午 com.sun.jersey.server.impl.application.WebApplicationImpl _initiate 信息: Initiating Jersey application, version 'Jersey: 1.18.1 02/19/2014 03:28 AM' 10:46:32.849 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@2dbc408c{/,null,AVAILABLE} 10:46:32.880 [main] INFO o.e.jetty.server.ServerConnector - Started ServerConnector@4116f66a{HTTP/1.1}{localhost:7474} 10:46:32.880 [main] INFO org.eclipse.jetty.server.Server - Started @4712ms Couldn't find any helper support the HTTP_None challenge scheme. 10:46:38.137 [main] INFO o.e.jetty.server.ServerConnector - Stopped ServerConnector@4116f66a{HTTP/1.1}{localhost:7474} 10:46:38.137 [main] INFO o.e.j.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@2dbc408c{/,null,UNAVAILABLE} 10:46:38.137 [main] INFO o.e.j.server.handler.ContextHandler - Stopped o.e.j.w.WebAppContext@4eaa375c{/browser,jar:file:/C:/Users/cf/.m2/repository/org/neo4j/app/neo4j-browser/2.2.1/neo4j-browser-2.2.1.jar!/browser,UNAVAILABLE} 10:46:38.137 [main] INFO o.e.j.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@20eaeaf8{/db/data,null,UNAVAILABLE} 10:46:38.137 [main] INFO o.e.j.server.handler.ContextHandler - Stopped o.e.j.s.ServletContextHandler@76e9f00b{/db/manage,null,UNAVAILABLE} 10:46:38.137 [main] INFO o.e.j.server.handler.ContextHandler - Stopped o.e.j.s.h.MovedContextHandler@1e1e9ef3{/,null,UNAVAILABLE} Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 9.829 sec <<< FAILURE! - in org.neo4j.jdbc.Neo4jCaseStatementTest testExecuteStatement[0](org.neo4j.jdbc.Neo4jCaseStatementTest) Time elapsed: 0.016 sec <<< ERROR! org.restlet.resource.ResourceException: Unauthorized at org.restlet.resource.ClientResource.doError(ClientResource.java:599) at org.restlet.resource.ClientResource.handleInbound(ClientResource.java:1165) at org.restlet.resource.ClientResource.handle(ClientResource.java:1060) at org.restlet.resource.ClientResource.handle(ClientResource.java:1035) at org.restlet.resource.ClientResource.handle(ClientResource.java:937) at org.restlet.resource.ClientResource.get(ClientResource.java:645) at org.neo4j.jdbc.rest.Resources.readJsonFrom(Resources.java:144) at org.neo4j.jdbc.rest.Resources$DiscoveryClientResource.readInformation(Resources.java:217) at org.neo4j.jdbc.rest.Resources.getDiscoveryResource(Resources.java:102) at org.neo4j.jdbc.Neo4jConnection.createExecutor(Neo4jConnection.java:133) at org.neo4j.jdbc.Neo4jConnection.<init>(Neo4jConnection.java:81) at org.neo4j.jdbc.Connections$4.doCreate(Connections.java:64) at org.neo4j.jdbc.Connections.create(Connections.java:79) at org.neo4j.jdbc.Driver.connect(Driver.java:76) at org.neo4j.jdbc.Neo4jJdbcTest.connect(Neo4jJdbcTest.java:128) at org.neo4j.jdbc.Neo4jJdbcTest.<init>(Neo4jJdbcTest.java:103) at org.neo4j.jdbc.Neo4jCaseStatementTest.<init>(Neo4jCaseStatementTest.java:47) Results : Tests in error: Neo4jCaseStatementTest.<init>:47->Neo4jJdbcTest.<init>:103->Neo4jJdbcTest.connect:128 ? Resource Tests run: 1, Failures: 0, Errors: 1, Skipped: 0 ------------------------------------------------------------------------ BUILD FAILURE ------------------------------------------------------------------------ Total time: 11.837s Finished at: Wed May 13 10:46:38 CST 2015 Final Memory: 10M/155M ------------------------------------------------------------------------ Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test (default-cli) on project neo4j-jdbc: There are test failures. Please refer to C:\Users\cf\Documents\NetBeansProjects\neo4j_jdbc_driver\target\surefire-reports for the individual test results. -> [Help 1] To see the full stack trace of the errors, re-run Maven with the -e switch. Re-run Maven using the -X switch to enable full debug logging. For more information about the errors and possible solutions, please read the following articles: [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
相关推荐
3. **建立连接**:通过`DriverManager.getConnection()`方法创建一个到Neo4j服务器的连接,提供URL、用户名和密码作为参数。 4. **执行查询**:创建`Statement`或`PreparedStatement`对象,然后调用其`executeQuery...
2. **JDBC连接Neo4j**:配置Neo4j的JDBC驱动,建立Java程序到数据库的连接。这通常涉及到设置URL、用户名和密码。 3. **数据导入**:通过JDBC API,将Excel数据插入到Neo4j数据库中。这可能涉及创建节点、定义关系...
在Java应用中,我们需要合适的JDBC驱动程序来连接特定类型的数据库。以下是关于"java连接数据库的jdbc的各钟架包"的详细知识点: 1. **JDBC驱动程序类型**: - 类型1:JDBC-ODBC桥接驱动。它依赖于本地ODBC驱动,...
接着,在`application.properties`文件中配置 Neo4j数据库的URL、用户名和密码。 2. **实体映射**:Spring Data Neo4j允许我们通过注解将Java类映射为Neo4j中的节点或关系。例如,使用`@NodeEntity`注解表示一个...
在Java中,你可以使用官方的Neo4j JDBC驱动或Neo4j Java Driver来连接和操作数据库。创建节点和关系,以及执行Cypher查询是主要任务。 4. **ECharts**:ECharts是百度开源的一个JavaScript图表库,支持丰富的图表...
2. **配置文件**:如`neo4j.properties`或`application.properties`,用于设置数据库连接参数,如URL、用户名和密码。 3. **示例查询**:可能有Cypher查询语句,展示了如何在Java代码中执行这些查询。 4. **构建文件...
在Neo4j中使用MySQL Connector/J,你需要配置相应的连接参数,如数据库URL、用户名和密码。这些可以在Neo4j的配置文件`neo4j.conf`中设置,通过`dbms.connector.jdbc.url`、`dbms.connector.jdbc.user`和`dbms....
通过JDBC驱动,OrientDB能够被任何支持JDBC的应用程序,如PDI,所访问和操作,这样就扩大了其在企业级应用中的使用范围。 “多模型NoSQL存储”是指OrientDB不仅支持文档型数据库(如MongoDB)、图数据库(如Neo4j)...
同时,我们也需要安装MySQL的JDBC驱动程序,以便在Java程序中连接到MySQL数据库。 其次,我们需要使用Protege 4.3构建一个面向作战文书理解的军事领域本体,并主动生成OWL本体文件。在这里,我们使用Protege 4.3来...