mnimer / dphibernate

Automatically exported from code.google.com/p/dphibernate
0 stars 0 forks source link

BlazeDS: Cannot Run My Own Proxy When DPHibernate is Active #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I have dphibernate configured I cant use others BeanProxy registred 
through BlazeDS.

Means to reproduce:

I have a file attached that must used to Serialize Enum type that have a 
property named "descricao".

I've created a JPA object with a property mapping to a specific Enum. When I 
send this to Flex it will enter on Bean Proxy and create a map with all Enum 
properties. When I send it back to Java it will read the ASObjects properties 
and map back to the specific Enum.

When I have dpHibernate active it will occurs two errors:

The first is that the registered bean proxy (attached) is not called anymore.

The second is the following error that could be corrected easily:

java.lang.NullPointerException
    at net.digitalprimates.persistence.translators.hibernate.HibernateDeserializer.readBean(HibernateDeserializer.java:191)
    at net.digitalprimates.persistence.translators.hibernate.HibernateDeserializer.translate(HibernateDeserializer.java:119)
    at net.digitalprimates.persistence.translators.hibernate.HibernateDeserializer.readBean(HibernateDeserializer.java:190)

Original issue reported on code.google.com by pccam...@gmail.com on 10 Jun 2010 at 12:50

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed a while back.  dpHibernate plays nicely with Enums, and has been run 
along side the Enum support from Faratta Systems before:

http://flexblog.faratasystems.com/2007/09/16/adding-enum-support-to-flex-amf-pro
tocol

Original comment by martypit...@gtempaccount.com on 9 Jul 2010 at 3:10