I am facing a serious problem with hibernate-Enver(auditing). My hibernate-5.0.0-final was working perfactly fine. Now I need to add auditing feature to my entities , so I added the #Audited annotation to my entities. When I deployed it on karaf OSGI. i am getting hibernate session null with the exception :
org.hibernate.service.UnknownServiceException: Unknown service requested [org.hibernate.envers.boot.internal.EnversService]
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:184)
at org.hibernate.envers.boot.internal.TypeContributorImpl.contribute(TypeContributorImpl.java:22)
at org.hibernate.boot.internal.MetadataBuilderImpl.applyTypes(MetadataBuilderImpl.java:280)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.populate(EntityManagerFactoryBuilderImpl.java:798)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:187)
at org.hibernate.jpa.boot.spi.Bootstrap.getEntityManagerFactoryBuilder(Bootstrap.java:34)
at org.hibernate.jpa.HibernatePersistenceProvider.getEntityManagerFactoryBuilder(HibernatePersistenceProvider.java:165)
at org.hibernate.jpa.HibernatePersistenceProvider.getEntityManagerFactoryBuilderOrNull(HibernatePersistenceProvider.java:114)
at org.hibernate.osgi.OsgiPersistenceProvider.createEntityManagerFactory(OsgiPersistenceProvider.java:78)
I install feature of Hibernate Enver also :
feature:install hibernate-orm
feature:install hibernate-envers
I am stuck with it.. Can anyOne help me out ?
Issue Resoved when Update the Hibernate from Hibernate-5.0.0.Final to Hibernate-5.2.0
helping link: https://hibernate.atlassian.net/browse/HHH-10365
Related
How can i fix this bug
Entity 'undefined' entity was not discovered, please make sure to provide it in 'entities' array when initializing the ORM
I faced the same issue in a nestjs project with mikro-orm.
Using entities array instead of entitiesDirs in the configuration (as mentioned by Martin), and stopping the dev server and deleting the /temp and /dist folders before restarting fixed the issue for me.
I have ASP.Net MVC 6 application, I have brought some changes in model
when I run:
dnx ef database update
I get bellow error:
There is already an object named 'myTableName' in the database
How are you initializing your context?
I think the default initializer is "CreateDatabaseIfNotExists". If you changed this somewhow, or have a custom initializer, then you may have the reason for your problem there.
Are you using code migrations in Entity Framework or something else?
I need to add web reference to ASP.NET project, but unfortunately I got error:
There was an error downloading 'http://isapi.somehost.com/soapclient/soapclient.php?URL=http://isapi.mekashron.com/SmartHD/MekashronTV.dll%2Fwsdl%2FISmartHD/_vti_bin/ListData.svc/$metadata'.
The request failed with the error message:
--
object(SoapFault)#3 (9) {
["message":protected]=>
strin
Is there any ways to fix it?
Can you post the exact exception you got to help you further.
But couple of initial thoughts.
ASP.NEt is not able to get the WSDL to generate a proxy class. You ight need to check permissions.
If it is WCF service try to add service reference.
Thanks
I have been trying to follow this example from propel to configure a custom security provider
http://www.propelorm.org/cookbook/symfony2/the-symfony2-security-component-and-propel.html
however I always get this error
ServiceNotFoundException: The service "security.authentication.manager" has a dependency on a non-existent service "acme.secured.security.provider"
It appears not to be loading the services.xml but I cannot be sure. Has anyone else come across a similar issue? Im new to symfony2, can anyone suggest the best place to start debugging this?
So import it. In your app/config.yml:
imports:
acme_bundle:
resource: "#AcmeSecuredBundle/Resources/config/services.xml"
You can read more about importing services in the documentation.
I am using Flex builder 3, BlazeDS, and Java with Spring and Hibernate framework. I using the remote object to load a string from spring's configuration files. But in testing, I found this fault event like this:
RPC Fault
faultString="java.lang.NullPointerException"
faultCode="Server.Processing"
faultDetail="null"
I have checked the configuration in remote-config.xml and services-config.xml. But it looks good. Some people have talked about this problem around the Internet and I think you can help me and them.
I am using these environment:
Flex Builder 3
BlazeDS 3.2.0
JBoss server
Full stacktrace:
[RPC Fault faultString="java.lang.NullPointerException" faultCode="Server.Processing" faultDetail="null"]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:220]
at mx.rpc::Responder/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:53]
at mx.rpc::AsyncRequest/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103]
at NetConnectionMessageResponder/statusHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\channels\NetConnectionChannel.as:569]
at mx.messaging::MessageResponder/status()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\MessageResponder.as:222]
The java.lang.NullPointerException indicates an error being thrown on the server. To debug this, active debug logging on BlazeDS in the services-config.xml file. You should see detailed debug information in the server console.
When using the BlazeDS/Spring integration take care that you will need to use a custom exception translator in order to obtain meaningful exceptions. Please read this document http://static.springsource.org/spring-flex/docs/1.0.x/reference/html/ch02s08.html
In your case the error is not related to some configuration problems, it seems that is thrown inside your java method. Use a debugger in order to diagnose properly.