Error starting org.neo4j.kernel.EmbeddedGraphDatabase, /home/manish/Softwares/neo4j-enterprise-2.1.6/data/graph.db
CausedBy: Component 'org.neo4j.kernel.impl.transaction.XaDataSourceManager#2a792260' was successfully initialized, but failed to start. Please see attached cause exception.
CausedBy: Component 'org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource#23d7c3d2' was successfully initialized, but failed to start. Please see attached cause exception.
CausedBy : No schema index provider org.neo4j.kernel.api.index.SchemaIndexProvider found. Kernel extensions available on classpath: Class path entries: /home/manish/NetBeansProjects/ClassLibOperations/store/ClassLibNeo4jOperations.jar /home/manish/NetBeansProjects/ClassLib2/store/2.jar /home/manish/NetBeansProjects/ClassLibB/store/3.jar /home/manish/NetBeansProjects/ExecuteJarFile/build/classes
I am getting the above exception while executing the line :
database = new GraphDatabaseFactory().newEmbeddedDatabase( DB_PATH );
The scenario is something like this :
I have a class library for operation with neo4j graph db named ClassLibNeo4jOperations. This class library has all the references required for working with neo4j.
Now I am packaging this ClassLibrary as ClassLibNeo4jOperations.jar and adding it as reference in a Console Application ExecuteJarFile.
Now when i am calling a method of this jar file this line
database = new GraphDatabaseFactory().newEmbeddedDatabase( DB_PATH ); is executed which throws the above mentioned exception.
The JAR (ClassLibNeo4jOperations.jar) is a fat jar ,created using the method mentioned at How to build fat jar
Make sure you have neo4j-lucene-index.jar on your classpath.
Related
I need desperate help to figure out the reason for the failure in creating the service.
My application is developed using Eclipse tool and it runs well there. It uses cxf-3.1.7 library collection. A console program that initializes the process to create the service to the API. Everything looks good and fine.
I am trying to deploy the code in another machine. I installed the necessary jre and other files. I created a batch file with all the necessary path and classpath settings. I need to run the batch file on a daily base, so that it pulls the data regularly. But, when I run the batch file, it fails to create the service with the above error message.
Can someone suggest me the reason if I am going wrong somewhere or any solution to get the service created. This is the batch file I have:
set path=C:\Program Files\Java\jdk1.8.0_91\bin
set classpath=cxf-core-3.1.7.jar;cxf-rt-frontend-simple-3.1.7.jar;sqljdbc42.jar;cxf-rt-frontend-jaxws-3.1.7.jar;wsdl4j-1.6.3.jar;cxf-rt-wsdl-3.1.7.jar;xmlschema-core-2.2.1.jar;lib*.jar;.
java com.strongmail.services.v2.MailingService_MailingServicePort_Client
pause
Thanks in advance.
I've created java classes from wsdl with org.apache.cxf.tools.wsdlto.WSDLToJava. While creating an instance of the service, I had exact same exception at runtime:
org.apache.cxf.service.factory.ServiceConstructionException: Failed to
create service
Previous code:
URL wsdlURL = new URL("http://example.com/my_service.asmx");
MyWS mailWS = new MyWS(wsdlURL); // Exception is thrown here
Solution was weird. I've just added ?wsdl next to service address:
URL wsdlURL = new URL("http://example.com/my_service.asmx?wsdl");
MyWS mailWS = new MyWS(wsdlURL);
We are using the owasp dependencyCheck plugin in our project.
Version used: 1.4.5
We are facing the following issue in our build jobs on Jenkins:
The build job fails intermittently saying " :dependencyCheck FAILED "
The stacktrace of the error is as follows:
:dependencyCheck
Verifying dependencies for project stock-service
Checking for updates and analyzing vulnerabilities for dependencies
Unable to update Cached Web DataSource, using local data instead. Results may not include recent vulnerabilities.
Exception occurred initializing CPE Analyzer.
Generating report for project stock-service
Found 0 vulnerabilities in project stock-service
:dependencyCheck FAILED
Caused by: org.owasp.dependencycheck.exception.ExceptionCollection: One or more exceptions occurred during dependency-check analysis
org.xml.sax.SAXException: Unable to get primary key for new cpe: cpe:/a:uchida_yoko_co._ltd:assetbase:8.0
org.owasp.dependencycheck.data.nvdcve.DatabaseException: Unable to get primary key for new cpe: cpe:/a:uchida_yoko_co._ltd:assetbase:8.0
An exception occurred accessing the database
at org.owasp.dependencycheck.Engine.analyzeDependencies(Engine.java:543)
at org.owasp.dependencycheck.Engine$analyzeDependencies$0.call(Unknown Source)
at org.owasp.dependencycheck.gradle.tasks.Check.check(Check.groovy:86)
... 66 more
If your code has multiple microservices, then all the services create a database locally on Jenkins and update it as part of owasp dependencyCheck task on the following location:
/{your jenkins
directory}/.gradle/caches/modules-2/files-2.1/org.owasp/dependency-check-utils/dependency-check-data/3.0/dc.h2.db
Since this file is shared by all the services, there are locking issues. If any one service fails during build, the lock that it created on the file is not removed and thus the other services would subsequently fail.
Following link describes the issue and suggests a solution:
https://github.com/jeremylong/DependencyCheck/issues/410
This solution was not usable as is, we had to change the "autoUpdate=true" so that the service creates a db file if it does not already exist.
After the above change ( i.e adding "data directory" configuration in dependencyCheck task [visit the above link for this config]),
the issue seems to have been fixed.
I need do start the derby server from my java application using "org.apache.derby.drda.NetworkServerControl" class.
When I try to start the server it throws an exception.
Code:
NetworkServerControl server = null;
server=new NetworkServerControl(InetAddress.getLocalHost(),1527,"user","123")
server.start(new PrintWriter(System.out));
Error:
Caused by: java.lang.SecurityException: sealing violation: package org.apache.derby.impl.store.raw.xact is sealed
Can anybody tell me the reason for this error?
You have probably Derby classes twice on your classpath. Look for Derby classes in some another jar archive and use them only once.
I was facing same problem. I was packaging my application using One Jar. One Jar has it's own class loader which could cause the issue. If you are using One Jar, Try packaging your app without One Jar and verify.
I has this problem in Squirrel. I tried to add a new Derby embedded driver and I had the error.
Then I closed Squirrel, removed derby**.jar from "c:\Program Files\squirrel-sql-3.5.0\lib\", started Squirrel and added the new driver successfully.
I have one documentum application , when i have created a jar of the project through eclipse by removing reference of config folder from eclipse ,
the jar is executable , in my classpath i have a value of DCTM.jar and config folder , when i was trying to run this jar through batch file ,i was getting following
exceptions
java.io.FileNotFoundException: dfc.properties
at com.documentum.fc.common.impl.preferences.PreferencesManager.locateMainPersistentStore(PreferencesManager.java:357)
at com.documentum.fc.common.impl.preferences.PreferencesManager.readPersistentProperties(PreferencesManager.java:311)
at com.documentum.fc.common.impl.preferences.PreferencesManager.<init>(PreferencesManager.java:37)
at com.documentum.fc.common.DfPreferences.initialize(DfPreferences.java:79)
at com.documentum.fc.common.DfPreferences.getInstance(DfPreferences.java:58)
at com.documentum.fc.impl.RuntimeContext.<clinit>(RuntimeContext.java:177)
at com.documentum.fc.client.DfClient.<clinit>(DfClient.java:700)
at com.documentum.com.DfClientX.getLocalClient(DfClientX.java:43)
at com.impact.qtl12.documentum.services.DocumentumHandler.setIdfClient(DocumentumHandler.java:123)
at com.impact.qtl12.documentum.services.DocumentumHandler.getDocumentumHandler(DocumentumHandler.java:154)
at com.impact.qtl12.imports.UI.CSVFile.QTL.<init>(QTL.java:115)
at com.impact.qtl12.imports.UI.CSVFile.QTL.main(QTL.java:599)
1422 [main] WARN com.documentum.fc.client.security.internal.RegistrationMgr - [DFC_SECURITY_GR_PUBLICATION_FAILED] Publication
of DFC instance with global registry failed
DfException:: THREAD: main; MSG: [DFC_BOF_GLOBAL_REGISTRY_NOT_CONFIGURED] A global registry is not configured; ERRORCODE: ff; NE
XT: null
at com.documentum.fc.client.security.impl.DfcIdentityPublisher.<init>(DfcIdentityPublisher.java:51)
at com.documentum.fc.client.security.internal.RegistrationMgr.register(RegistrationMgr.java:34)
at com.documentum.fc.impl.RuntimeContext.<clinit>(RuntimeContext.java:191)
at com.documentum.fc.client.DfClient.<clinit>(DfClient.java:700)
at com.documentum.com.DfClientX.getLocalClient(DfClientX.java:43)
at com.impact.qtl12.documentum.services.DocumentumHandler.setIdfClient(DocumentumHandler.java:123)
at com.impact.qtl12.documentum.services.DocumentumHandler.getDocumentumHandler(DocumentumHandler.java:154)
at com.impact.qtl12.imports.UI.CSVFile.QTL.<init>(QTL.java:115)
at com.impact.qtl12.imports.UI.CSVFile.QTL.main(QTL.java:599)
15:04:10,222 ERROR [main] Application - DfException Exception occurred while executing method getDocbaseList of DocumentumHandle
r class
15:04:10,222 ERROR [main] Application - [DM_DOCBROKER_E_NO_DOCBROKERS]error: "No DocBrokers are configured"
15:04:11,879 ERROR [main] Application - QTLConnectionException Exception occurred while executing method populateAvailableDocBas
eCombo of CSVImport class
15:04:11,879 ERROR [main] Application - [DM_DOCBROKER_E_NO_DOCBROKERS]error: "No DocBrokers are configured"
[DM_DOCBROKER_E_NO_DOCBROKERS]error: "No DocBrokers are configured"
at com.impact.qtl12.documentum.services.DocumentumHandler.getDocbaseList(DocumentumHandler.java:190)
at com.impact.qtl12.imports.UI.CSVFile.QTL.populateAvailableDocBaseCombo(QTL.java:627)
at com.impact.qtl12.imports.UI.CSVFile.QTL.addTargetGroup(QTL.java:264)
at com.impact.qtl12.imports.UI.CSVFile.QTL.createShell(QTL.java:565)
at com.impact.qtl12.imports.UI.CSVFile.QTL.launch(QTL.java:587)
at com.impact.qtl12.imports.UI.CSVFile.QTL.main(QTL.java:607)
But when i was trying to run the same application by specifying the address compiled main class with library folder in the same directory
the application was launched , so what is the difference between these two cases
The EMC Documentum DFC needs dfc.properties to find the avialable documentum docbrokers. The dfc.properties files should be on your classpath.
The exact lookup mechanism of this file is dependent of what version of DFC you are using. But placing this file on your classpath should work with all versions.
I need do start the derby server from my java application using "org.apache.derby.drda.NetworkServerControl" class.
When I try to start the server it throws an exception.
Code:
NetworkServerControl server = null;
server=new NetworkServerControl(InetAddress.getLocalHost(),1527,"user","123")
server.start(new PrintWriter(System.out));
Error:
Caused by: java.lang.SecurityException: sealing violation: package org.apache.derby.impl.store.raw.xact is sealed
Can anybody tell me the reason for this error?
You have probably Derby classes twice on your classpath. Look for Derby classes in some another jar archive and use them only once.
I was facing same problem. I was packaging my application using One Jar. One Jar has it's own class loader which could cause the issue. If you are using One Jar, Try packaging your app without One Jar and verify.
I has this problem in Squirrel. I tried to add a new Derby embedded driver and I had the error.
Then I closed Squirrel, removed derby**.jar from "c:\Program Files\squirrel-sql-3.5.0\lib\", started Squirrel and added the new driver successfully.