mnimer / dphibernate Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/dphibernate
Automatically exported from code.google.com/p/dphibernate
Can be configured to support dphibernate with JPA, persistence.xml and an
existing connection settings? thanks
Original issue reported on code.google.com by [email protected]
on 12 Jun 2009 at 4:12
This block in ProxyLoadService is incorrect:
if (id instanceof String)
{
@SuppressWarnings("unused")// For debugging...
String originalId = (String) id;
id = Integer.parseInt((String) id);
}
We shouldn't be blindly casting id's Int -> String, as many id's will be
Strings.
WORKAROUND:
Comment out this block ( 33 - 38 ).
Need to fix this.
I believe this was added because integer ID's were arriving at this method as
Strings. I need to either understand why they were being incorrectly cast as
Strings originally, or investgiate the daoClass param to understand which type
the ID is expecting.
Original issue reported on code.google.com by [email protected]
on 26 Jul 2010 at 2:41
It looks as though deserialized objects can
* incur unrequired trips to the db
* not honour updated properties sent from the client.
This needs investigation, as I don't know the deserializer code well enough ATM
to know for sure what the current / expected behaviour is.
Initial email conversation pasted below:
So, your method conceptually looks something like this?
public class SavePersonRequest()
{
var person:Person;
// Other stuff
}
This is not currently supported out-of-the-box, that I'm aware of. (I
haven't spent a great deal of time in the Deserializer, but I can take a
look).
I guess what the deserializer should do is grab the person instance out of
the hibernate cache (or, if it's been flushed, we'll need to re-load it),
and copy populated properties over from the instance received in the server
call.
I can see some challenges ahead in differentiating the meaning of null
values between that of a uninitialized proxy, and one where the value has
subsequently been set to null on the client.
I'll raise a ticket to track the discovery & dev of this feature.
Marty
--------------------------------------------------
From: "Lea, Isaac" <[email protected]>
Sent: Wednesday, July 28, 2010 2:44 PM
To: <[email protected]>
Subject: RE: Lazyload not working - problems in HibernateManaged.as
> Hi Marty, I need to be able to send back non entity objects which contain
> entities so I need to have custom save methods to pull out the various
> entities and save them. I've been able to hack the Deserializer to allow
> this (populates non initialized collections as empty collections rather
> than initialize all the children) but i'm not too fond of having to modify
> the code.
> Is there a way I can accomplish what i'm trying to do out of the box?
>
> ________________________________________
> From: [email protected] [[email protected]] On
> Behalf Of Marty Pitt [[email protected]]
> Sent: July-28-10 11:39 AM
> To: [email protected]
> Subject: Re: Lazyload not working - problems in HibernateManaged.as
>
> Hi Lea
>
> For persistence, I would reccommend using the dpHibernate persistence
> methods, rather than just sending back your own object.
>
> Basically, the pattern goes like this:
> // During app intialization:
> // initialize service to something on the server that implements
> IProxyUpdateService.
> // eg, DataAccessService.java
> HibernateManaged.defaultHibernateService = this.dataAccessService;
>
> // Before making the first change - only needs to be called once per
> entity.
> if (!StateRepository.contains(entity))
> {
> StateRepository.store( entity );
> }
>
> // When you're ready to persist:
> HibernateUpdater.save(entity, responder); // responder is optional.
>
>
> This way, dpHibernate sends a list of changed properties only back to the
> server, and not the entire entity itself. Serialization of the entity can
> be expensive, especially on non-initalized objects.
>
> There's an example of this pattern on the LazyOverflow project.
>
> Marty
>
>
> --------------------------------------------------
> From: "Lea, Isaac" <[email protected]>
> Sent: Wednesday, July 28, 2010 2:11 PM
> To: <[email protected]>
> Subject: RE: Lazyload not working - problems in HibernateManaged.as
>
>> Looks like it's happening in HibernateDeserializer in the following code.
>> It is performing the load if it isn't initialized on the way back to the
>> server. Is there a reason for this?
>>
>> else if (obj != null && obj instanceof IHibernateProxy &&
>> !((IHibernateProxy) obj).getProxyInitialized())
>> {
>> Object hibResult = readHibernateProxy(obj);
>>
>> //replace cache with initialized item
>> cache.put(obj, hibResult);
>>
>> return hibResult;
>> }
>>
>>
>> ________________________________________
>> From: [email protected] [[email protected]] On
>> Behalf Of Lea, Isaac
>> Sent: July-28-10 10:45 AM
>> To: [email protected]
>> Subject: RE: Lazyload not working - problems in HibernateManaged.as
>>
>> I've run into a couple of problems so far around persisting data.
>>
>> I am getting the Person object back and not initializing the child
>> Address
>> in Flex. That all works fine but when I save it for some reason
>> dpHibernate is initializing the Address on the way back to the server. I
>> need to leave the Address not initialized because it just adds database
>> query calls. I'm not referencing the address anywhere.
>>
>> This is the output:
>>
>> INFO
>> net.digitalprimates.persistence.hibernate.utils.services.ProxyLoadService
>> - loadByClass : ca.pensionsbc.rms.model.domain.AddressVw::22290
>>
>> Then it spits out the HQL as it queries the database.
>>
>> Why would it be trying to initialize the address if i'm not referencing
>> it?
>>
>> ----Notice Regarding Confidentiality----
>>
>> This email, including any and all attachments, (this “Email”) is intended
>> only for the party to whom it is addressed and may contain information
>> that is confidential or privileged. Sierra Systems Group Inc. and its
>> affiliates accept no responsibility for any loss or damage suffered by
>> any
>> person resulting from any unauthorized use of or reliance upon this
>> Email.
>> If you are not the intended recipient, you are hereby notified that any
>> dissemination, copying or other use of this Email is prohibited. Please
>> notify us of the error in communication by return email and destroy all
>> copies of this Email. Thank you.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "dpHibernate" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/dphibernate?hl=en.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "dpHibernate" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/dphibernate?hl=en.
>
> ----Notice Regarding Confidentiality----
>
> This email, including any and all attachments, (this “Email”) is intended
> only for the party to whom it is addressed and may contain information
> that is confidential or privileged. Sierra Systems Group Inc. and its
> affiliates accept no responsibility for any loss or damage suffered by any
> person resulting from any unauthorized use of or reliance upon this Email.
> If you are not the intended recipient, you are hereby notified that any
> dissemination, copying or other use of this Email is prohibited. Please
> notify us of the error in communication by return email and destroy all
> copies of this Email. Thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "dpHibernate" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/dphibernate?hl=en.
>
>
Original issue reported on code.google.com by [email protected]
on 28 Jul 2010 at 7:02
What steps will reproduce the problem?
1. Create a VO with a Set (HashSet) instead of an Array List
2. Try to persist the VO on the server-sode
What is the expected output? What do you see instead?
Should persist the Java VO.
Instead, get:
java.lang.IllegalArgumentException: argument type mismatch
What version of the product are you using? On what operating system?
1.0.17 Jar
Windows XP
Please provide any additional information below.
See
http://groups.google.com/group/dphibernate/browse_thread/thread/7e9e80dfe05e59f5
/aa25ab09237060ba
for more information including a possible solution
Original issue reported on code.google.com by [email protected]
on 6 Jan 2009 at 3:42
What steps will reproduce the problem?
1. define transient methods in hibernate entity (only setter or getter)
2. when object is transleting it,s thows NPE on line:
pd.getReadMethod().invoke();
^^^null.invoke();
(when entity contains only setter of property pd)
or
pd.getWriteMethod().invoke();
^^^null.invoke();
(when entity contains only getter of property pd)
error in classes:
HibernateSerializer - 189
HibernateDeserializer - 186,190
version:
dpHibernate1.0.13
Original issue reported on code.google.com by [email protected]
on 25 Jun 2008 at 4:03
What steps will reproduce the problem?
1. Create a new object
2. Set some variables inside
3. try to read one of the variables
getProperty(obj:IHibernateProxy, property:String, value:*):* {
var ro:IHibernateRPC;
var entry:HibernateManagedEntry = hibernateDictionary[ obj ] as
HibernateManagedEntry
ro = entry.ro; -- Throws -->
TypeError: Error #1009: Cannot access a property or method of a null object
reference.
Original issue reported on code.google.com by [email protected]
on 16 Apr 2008 at 9:46
What steps will reproduce the problem?
1. save bugs
2.
3.
when dpHibernate save pojo object,it will load all associated object.
Original issue reported on code.google.com by [email protected]
on 5 Jun 2008 at 1:34
I might be wrong. But there is no way to use the mxml to configure result
functions for each method. Like this:
<mx:RemoteObject id="srv" destination="service">
<mx:method name="login" result="onTryLoginResult(event)"/>
[...]
This would be very handy.
Original issue reported on code.google.com by [email protected]
on 15 Apr 2008 at 8:37
While trying to send an TS_Project object to Java, i get a Cannot invoke
method ''. Method '' not found error. The function is straightforward :
public TS_Projekt mergeProjekt(TS_Projekt P)
{
super.merge(P);
return P;
}
Here's the debug info:
[BlazeDS] [INFO] Channel endpoint my-amf received request.
[BlazeDS] [DEBUG] Deserializing AMF/HTTP request
Version: 3
(Message #0 targetURI=null, responseURI=/9)
(Array #0)
[0] = (Typed Object #0 'flex.messaging.messages.RemotingMessage')
operation = "mergeProjekt"
source = null
body = (Array #1)
[0] = (Typed Object #2 'TS.common.TS_Projekt')
stworzyciel = (Typed Object #3 'TS.common.TS_Osoba')
nazwisko = "xxx"
active = 1
id = 1
uid = "e8b39e39-46bc-4628-94b0-b926df40fd5d"
imie = "xxx"
password = "Xxx"
lastlogindate = null
email = "[email protected]"
security = (Typed Object #4 'TS.common.TS_Security')
id = 1
dodawanieDzialow = 1
uid = "0df3ec8b-f26d-48fb-bb58-69605065f71d"
usuwanieDoTylu = 1
tokenCreateDate = null
userid = 1
edycjaDoPrzodu = 1
sec_admin = 1
sec_login = 1
usuwanieDoPrzodu = 1
lastIp = "1"
obslugaUrlopow = 1
edycjaDoTylu = 1
token = "1"
proxyInitialized = true
proxyKey = null
alias = "Bak, Robert"
login = "BR"
proxyInitialized = true
proxyKey = null
planowanykoniec = Mon Apr 21 14:37:12 CEST 2008 Mon Apr 21
14:37:12 CEST 2008
osoby = (Externalizable Object #6
'flex.messaging.io.ArrayCollection')
(Array #7)
planowanypoczatek = (Ref #5) Mon Apr 21 14:37:12 CEST 2008
zadania = (Externalizable Object #8
'flex.messaging.io.ArrayCollection')
(Array #9)
[0] = (Typed Object #10 'TS.common.TS_Zadanie')
projekt_kolejnosc = 0
szacowany = 0
priorytet = 0
ojciec = 0
aktywne = 1
transtype = 0
id = 1
powtarzanieid = 0
poczatek = Mon Apr 21 00:00:00 CEST 2008
Mon Apr 21 00:00:00 CEST 2008
koniec = (Ref #11)
Mon Apr 21 00:00:00 CEST 2008
typograniczenia = 0
zbiorczy = 0
kalendarzid = 0
opis = null
czastrwania = 0
kodspp = null
createdate = Mon Apr 21 14:46:47 CEST 2008
Mon Apr 21 14:46:47 CEST 2008
alias = "axcz"
dataograniczenia = null
projekt = (Ref #2)
nazwa = "axcz"
wykonano = 7
status = 0
osoba = null
proxyInitialized = true
proxyKey = null
[1] = (Typed Object #13 'TS.common.TS_Zadanie')
projekt_kolejnosc = 1
szacowany = 0
priorytet = 0
ojciec = 0
aktywne = 1
transtype = 0
id = 2
powtarzanieid = 0
poczatek = (Ref #11)
Mon Apr 21 00:00:00 CEST 2008
koniec = (Ref #11)
Mon Apr 21 00:00:00 CEST 2008
typograniczenia = 0
zbiorczy = 0
kalendarzid = 0
opis = null
czastrwania = 0
kodspp = null
createdate = Mon Apr 21 14:47:14 CEST 2008
Mon Apr 21 14:47:14 CEST 2008
alias = "312"
dataograniczenia = null
projekt = (Ref #2)
nazwa = "312"
wykonano = 12
status = 0
osoba = null
proxyInitialized = true
proxyKey = null
[2] = (Typed Object #15 'TS.common.TS_Zadanie')
projekt_kolejnosc = 2
szacowany = 0
priorytet = 0
ojciec = 0
aktywne = 1
transtype = 0
id = 3
powtarzanieid = 0
poczatek = (Ref #11)
Mon Apr 21 00:00:00 CEST 2008
koniec = (Ref #11)
Mon Apr 21 00:00:00 CEST 2008
typograniczenia = 0
zbiorczy = 0
kalendarzid = 0
opis = null
czastrwania = 0
kodspp = null
createdate = Mon Apr 21 14:55:31 CEST 2008
Mon Apr 21 14:55:31 CEST 2008
alias = "xxx"
dataograniczenia = null
projekt = (Ref #2)
nazwa = "xxx"
wykonano = 11
status = 0
osoba = null
proxyInitialized = true
proxyKey = null
[3] = (Typed Object #17 'TS.common.TS_Zadanie')
projekt_kolejnosc = 3
szacowany = 0
priorytet = 0
ojciec = 0
aktywne = 1
transtype = 0
id = 5
powtarzanieid = 0
poczatek = (Ref #11)
Mon Apr 21 00:00:00 CEST 2008
koniec = (Ref #11)
Mon Apr 21 00:00:00 CEST 2008
typograniczenia = 0
zbiorczy = 0
kalendarzid = 0
opis = null
czastrwania = 0
kodspp = null
createdate = Mon Apr 21 15:04:06 CEST 2008
Mon Apr 21 15:04:06 CEST 2008
alias = "123"
dataograniczenia = null
projekt = (Ref #2)
nazwa = "123"
wykonano = 0
status = 0
osoba = (Ref #3)
proxyInitialized = true
proxyKey = null
manager = (Externalizable Object #19
'flex.messaging.io.ArrayCollection')
(Array #20)
[0] = (Typed Object #21 'TS.common.TS_Osoba')
nazwisko = null
active = 0
id = 0
uid = "f893f09f-0958-44d3-b1f1-83c84f37ec49"
imie = null
password = null
lastlogindate = null
email = null
security = null
alias = null
login = null
proxyInitialized = false
proxyKey = 1
opis = ""
createdate = (Ref #5)
Mon Apr 21 14:37:12 CEST 2008
alias = "Test"
id = 1
firma = null
ostatnieAkcje = (Externalizable Object #22
'flex.messaging.io.ArrayCollection')
(Array #23)
[0] = (Typed Object #24 'TS.common.TS_Akcja')
oddzial = null
opis = "sa"
plik = null
createDate = null
zadanie = (Ref #17)
id = 4
firma = null
poczatek = Mon Apr 21 15:00:00 CEST 2008
Mon Apr 21 15:00:00 CEST 2008
koniec = Mon Apr 21 16:00:00 CEST 2008
Mon Apr 21 16:00:00 CEST 2008
osoba = (Ref #3)
proxyInitialized = true
proxyKey = null
planowanyczas = 0
aktywny = 1
nazwa = "Test123"
proxyInitialized = true
proxyKey = null
headers = (Object #27)
DSEndpoint = "my-amf"
DSId = "1DCE3DA4-800F-9FD4-47E1-018E1D2EA0E0"
messageId = "64965209-10CC-B4F8-3043-716988173171"
clientId = "1DCE3E3E-4F0D-35B4-781A-A944D8163CC3"
destination = "projekt"
timeToLive = 0
timestamp = 0
flex.messaging.MessageException: Cannot invoke method ''. Method '' not found.
at
flex.messaging.util.MethodMatcher.methodNotFound(MethodMatcher.java:348)
at flex.messaging.util.MethodMatcher.getMethod(MethodMatcher.java:158)
at
flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:40
5)
at
net.digitalprimates.persistence.hibernate.HibernateAdapter.superInvoke(Hibernate
Adapter.java:100)
at
net.digitalprimates.persistence.translators.hibernate.HibernateDeserializer.invo
keLoad(HibernateDeserializer.java:144)
at
net.digitalprimates.persistence.translators.hibernate.HibernateDeserializer.read
HibernateProxy(HibernateDeserializer.java:194)
at
net.digitalprimates.persistence.translators.hibernate.HibernateDeserializer.tran
slate(HibernateDeserializer.java:87)
at
net.digitalprimates.persistence.translators.hibernate.HibernateDeserializer.read
Collection(HibernateDeserializer.java:184)
at
net.digitalprimates.persistence.translators.hibernate.HibernateDeserializer.tran
slate(HibernateDeserializer.java:92)
at
net.digitalprimates.persistence.translators.hibernate.HibernateDeserializer.read
Bean(HibernateDeserializer.java:162)
at
net.digitalprimates.persistence.translators.hibernate.HibernateDeserializer.tran
slate(HibernateDeserializer.java:96)
at
net.digitalprimates.persistence.translators.hibernate.HibernateDeserializer.read
Collection(HibernateDeserializer.java:184)
at
net.digitalprimates.persistence.translators.hibernate.HibernateDeserializer.tran
slate(HibernateDeserializer.java:92)
at
net.digitalprimates.persistence.translators.hibernate.HibernateDeserializer.tran
slate(HibernateDeserializer.java:63)
at
net.digitalprimates.persistence.hibernate.HibernateAdapter.invoke(HibernateAdapt
er.java:161)
at
flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183)
at
flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1417)
at
flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:8
78)
at
flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java
:121)
at
flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)
at
flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:49)
at
flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:6
7)
at
flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java
:146)
at
flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:274)
at
flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:377)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
at
TS.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.java:62)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
33)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1
75)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109
)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:852)
at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http1
1AprProtocol.java:584)
at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)
at java.lang.Thread.run(Thread.java:619)
java.lang.RuntimeException: flex.messaging.MessageException: Cannot invoke
method ''. Method '' not found.
at
net.digitalprimates.persistence.translators.hibernate.HibernateDeserializer.read
Bean(HibernateDeserializer.java:171)
at
net.digitalprimates.persistence.translators.hibernate.HibernateDeserializer.tran
slate(HibernateDeserializer.java:96)
at
net.digitalprimates.persistence.translators.hibernate.HibernateDeserializer.read
Collection(HibernateDeserializer.java:184)
at
net.digitalprimates.persistence.translators.hibernate.HibernateDeserializer.tran
slate(HibernateDeserializer.java:92)
at
net.digitalprimates.persistence.translators.hibernate.HibernateDeserializer.tran
slate(HibernateDeserializer.java:63)
at
net.digitalprimates.persistence.hibernate.HibernateAdapter.invoke(HibernateAdapt
er.java:161)
at
flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183)
at
flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1417)
at
flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:8
78)
at
flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java
:121)
at
flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)
at
flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:49)
at
flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:6
7)
at
flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java
:146)
at
flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:274)
at
flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:377)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
at
TS.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.java:62)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
33)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1
75)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109
)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:852)
at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http1
1AprProtocol.java:584)
at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)
at java.lang.Thread.run(Thread.java:619)
Caused by: flex.messaging.MessageException: Cannot invoke method ''. Method
'' not found.
at
flex.messaging.util.MethodMatcher.methodNotFound(MethodMatcher.java:348)
at flex.messaging.util.MethodMatcher.getMethod(MethodMatcher.java:158)
at
flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:40
5)
at
net.digitalprimates.persistence.hibernate.HibernateAdapter.superInvoke(Hibernate
Adapter.java:100)
at
net.digitalprimates.persistence.translators.hibernate.HibernateDeserializer.invo
keLoad(HibernateDeserializer.java:144)
at
net.digitalprimates.persistence.translators.hibernate.HibernateDeserializer.read
HibernateProxy(HibernateDeserializer.java:194)
at
net.digitalprimates.persistence.translators.hibernate.HibernateDeserializer.tran
slate(HibernateDeserializer.java:87)
at
net.digitalprimates.persistence.translators.hibernate.HibernateDeserializer.read
Collection(HibernateDeserializer.java:184)
at
net.digitalprimates.persistence.translators.hibernate.HibernateDeserializer.tran
slate(HibernateDeserializer.java:92)
at
net.digitalprimates.persistence.translators.hibernate.HibernateDeserializer.read
Bean(HibernateDeserializer.java:162)
... 31 more
[BlazeDS] [DEBUG] Serializing AMF/HTTP response
Version: 3
(Message #0 targetURI=/9/onStatus, responseURI=)
(Typed Object #0 'flex.messaging.messages.ErrorMessage')
headers = (Object #1)
rootCause = (Typed Object #2 'java.lang.RuntimeException')
message = "flex.messaging.MessageException: Cannot invoke method
''. Method '' not found."
localizedMessage = "flex.messaging.MessageException: Cannot invoke
method ''. Method '' not found."
cause = null
body = null
correlationId = "64965209-10CC-B4F8-3043-716988173171"
faultDetail = null
faultString = "flex.messaging.MessageException: Cannot invoke method
''. Method '' not found."
clientId = "1DCE3E3E-4F0D-35B4-781A-A944D8163CC3"
timeToLive = 0.0
destination = "projekt"
timestamp = 1.208788551765E12
extendedData = null
faultCode = "Server.Processing"
messageId = "1DE2A5D7-8508-63A9-86AA-D965C84D8D75"
Original issue reported on code.google.com by [email protected]
on 21 Apr 2008 at 2:44
Attachments:
What steps will reproduce the problem?
1. read entity, that have empty collections
2. on client instances of collections is idential
bugs: when puts objects in cache (clases HibernateSerializer and
HibernateDeserializer)
empty Lists or Sets have idential hashcode, => different instanses of empty
List or Sets are idential on HashMap.
solution:
use System.identityHashCode for idential objects but not hashcode.
Object key = new ObjHolder(getCacheKey(obj));
...
cache.put(key, list);
---
public class ObjHolder {
private Object obj;
public ObjHolder(Object obj) {
this.obj = obj;
}
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ObjHolder objHolder = (ObjHolder) o;
return !(obj != null ? !obj.equals(objHolder.obj) : objHolder.obj
!= null);
}
public int hashCode() {
return System.identityHashCode(obj);
}
}
version:
dpHibernate1.0.13
Original issue reported on code.google.com by [email protected]
on 26 Jun 2008 at 12:22
two bugs:
1. If i create new instance of hibernatebean's sub class,happen getter
exception.
2. When hibernate pojo has java.util.HashSet/Set,happen CastException
Original issue reported on code.google.com by [email protected]
on 13 Mar 2008 at 2:40
Hello!!
When table’s primary key isn’t String type(etc Long type),Lazy data sub
object is NaN.
dpHibernate isn’t support many-to-many
Original issue reported on code.google.com by [email protected]
on 7 Mar 2008 at 3:19
What steps will reproduce the problem?
1. why ActionScript don't use Hibernate lazy!!!!
example: var name:String=User.Department.name
when first time,name have not value!!
Original issue reported on code.google.com by [email protected]
on 17 Mar 2008 at 8:07
I have 2 Hibernate Pojo's named "Parent" and "Child". Parent lazily loads
its relationship to Child. When I retrieve a Parent in ActionScript the
object has a relationship to the Child proxy. If I change an attribute on
Parent and then attempt to perist the Parent object, I get a foreign-key
exception because the id of the Child object is 0 when the save is
attempted on the sever (correcsponding to the NaN value on the ActionScript
proxy). It appears that when the remote call to save the Parent is made,
an attempt to initialize/load it's Child object from the remote server is
made. However, prior to completing the initialization the call to the
Remote save method is made sending a Parent object with an uninitialized
Child. It seems like this might be a result of the fact that the remote
calls are asynchronous and are executing in parallel rather than serially.
Have you seen this before. Any insight would be helpful.
Thanks,
Dave
Original issue reported on code.google.com by [email protected]
on 25 Sep 2008 at 7:39
What steps will reproduce the problem?
1. when reading entity it's throws:
[CachedConnectionManager] Closing a connection for you. Please close them
yourself: org.jboss.resource.adapter.jdbc.Wrap
pedConnection@15b25a1
class HibernateSerializer contains native sql code on lines 431-453, that
is repeate fine code on lines upper in method.
deleting this code and uncomenting line 429 is resolving problem:
List hibernateResults = q2.list();
return hibernateResults;
version:
dpHibernate1.0.13
Original issue reported on code.google.com by [email protected]
on 25 Jun 2008 at 4:56
In
net.digitalprimates.persistence.hibernate.utils.filters.HibernateSessionServletF
ilter the
HibernateUtil from
net.digitalprimates.persistence.hibernate.utils.HibernateUtil is being used and
causing a new instance of Hibernate to start at every request.
Suggest providing an interface so that users can roll their own version
HibernateUtil (i.e. utilizing
Spring, etc.).
Original issue reported on code.google.com by [email protected]
on 29 Feb 2008 at 10:11
What steps will reproduce the problem?
1. Checking it out and run it
2. resetDB -> load carts -> click on cart -> click on Item
3. then modify the name of the shown item -> save Item
What is the expected output? What do you see instead?
after that the cart list loads again. If I click on the same cart the items
name did not change !
What version of the product are you using? On what operating system?
Windows XP, newest build of the dphibernate JAR.
Please provide any additional information below.
the method on the server to "merge" the modified item gets called.
everything right. if the item is refreshed from the client the old one
(still in the database gets passed forward).
the only solution I got so far is to call explicitly in the DAO
sessionTemplate.flush(). But if I modify a lot of objects the performance
would go down in that case.
Original issue reported on code.google.com by [email protected]
on 11 Jul 2009 at 4:50
I share my experience with "samples_springSample1". It works pretty well
but I got problem when I tried to save an item. I'm not sure if it the best
way to fix merge Item but it solves my issue.
IN
com.universalmind.hStore.data.ItemDAO : public Item merge(Item item)
ADD
getHibernateTemplate().flush();
SO
public Item merge(Item item){
Item _item = (Item) getHibernateTemplate().merge(item);
getHibernateTemplate().flush();
return _item;
}
Any idea why this issue? Maybe should not happen and then let me know some
reasons why I must do it ^^
Original issue reported on code.google.com by [email protected]
on 11 Aug 2009 at 8:15
Attachments:
What steps will reproduce the problem?
1. Having a Java entity class with a property of type java.util.Set (with
java.util.List it works fine)
Example:
public class Cart extends HibernateProxy implements Serializable {
private Set items = new HashSet(0);
}
2. In your flex application, call a service method which take this entity
as a parameter.
Example:
srv.createCart(new Cart());
What is the expected output? What do you see instead?
The Cart Object (and particularly the items property) is not well
deserialized and dpHibernate throws this exception:
java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
net.digitalprimates.persistence.translators.hibernate.HibernateDeserializer.read
Bean(HibernateDeserializer.java:214)
...
What version of the product are you using? On what operating system?
Spring 2.5, Hibernate 3.2, Ubuntu operating system
Please provide any additional information below.
I think the problem comes from the "readCollection" method of the
"HibernateDeserializer" class.
During the deserialization process, the property of type Set is processed
by the "readCollection" method (because the Set type is also of type
Collection).
In this method the property is transformed into an ArrayList which then
cause an error of "IllegalArgumentException" when the method try to cast
the translated property of type ArrayList in a Map type.
I resolved the problem by modifying the "readCollection" method like that:
for (Object o : (Collection) obj)
{
o = translate(o, type);
}
return obj;
Like this, the type of the property (of type Collection) is not changed and
the error don't occurred !
Hope this could help.
Bye.
Original issue reported on code.google.com by [email protected]
on 2 Dec 2008 at 12:23
As I explain on the google group the lazy loading doesn't seems to work as soon
as i put dphibernate, I'm not sure if it's a bug or a configuration problem.
For more details:
http://groups.google.com/group/dphibernate/browse_thread/thread/b670e86f51bd600f
Original issue reported on code.google.com by [email protected]
on 10 Aug 2010 at 2:19
What steps will reproduce the problem?
1. Open any existing dphibernate sample project
2. Add some spaces, tabs or new lines in <class>...</class> and/or
<getCurrentSessionMethod>...</getCurrentSessionMethod> just before and/or
after the text values.
3. Try call a HibernateRemoteObject.
What is the expected output? What do you see instead?
It will raise a ClassNotFound exception on the server side, saying that the
right Session Factory class you've configed in remoting-config.xml cannot
be found.
What version of the product are you using? On what operating system?
This happens in the current version on windows xp sp2 (which is my
platform). But obviously this will effect all platforms.
Please provide any additional information below.
I'm pretty sure this happens because dphibernate doesn't parse the
remoting-config.xml in a right way. It fetches the text node without
removing the leading and trailing spaces. I'm not saying having leading or
trailing spaces in xml text node is a good behavior. But this is a common
case if someone use a xml formatter in order to get a prettier look of
his/her xml files.
Original issue reported on code.google.com by [email protected]
on 23 May 2008 at 9:12
What steps will reproduce the problem?
1. Using auction site, lazy-loading of AuctionLot objects appears to be
returning only the first character of the GUID value in for the data being
retrieved from the database.
What is the expected output? What do you see instead?
Expected output is a 36-character guid value. Getting a 1-character
string instead.
What version of the product are you using? On what operating system?
Lastest dpHibernate build is being used on Windows Vista.
Please provide any additional information below.
Try replicating this issue with our video/chat application issuing the
GetAllCommand.
-Tyson
Original issue reported on code.google.com by [email protected]
on 6 May 2008 at 8:41
After converting to use dpHibernate, I am unable display png images of
ByteArray. My question is whether this data is supported i.e. java byte[]
-> AS3 ByteArray. Or I am missing something in my setup.
Thanks.
JT
Original issue reported on code.google.com by [email protected]
on 10 Feb 2010 at 9:03
What steps will reproduce the problem?
1. I'm trying to use HibernateAdapter as default adapter in my project with
spring+hibernate framework. Hibernate returns List<Object[]> from hql but
the hibernate adapter returns ArrayCollection<null> objects to AS.
What is the expected output? What do you see instead?
Expecting to see ArrayCollection<Arrays> but it returns ArrayCollection<null>
What version of the product are you using? On what operating system?
dpHibernate1.0.11.jar
Please provide any additional information below.
I modified the HibernateSerializer's translate method to check for
isArray() and write the array similar to collection with an additional
"writeArray" method.
The above modification works and the array is translated fine.
Attached is the modified HibernateSerializer.java file. Let me know if this
is fine.
Original issue reported on code.google.com by [email protected]
on 24 Jul 2008 at 7:09
Attachments:
What steps will reproduce the problem?
1. Add name
2. Add number for sku
3. Click save button
What is the expected output? What do you see instead?
Expected to save and round-trip to server. See only handshake.
What version of the product are you using? On what operating system?
Please provide any additional information below.
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at
net.digitalprimates.persistence.hibernate::HibernateManaged$/getProperty()[C:\Us
ers\mnimer\D
evelopment\development\dpHibernate\flexLibrary\flex-
src\net\digitalprimates\persistence\hibernate\HibernateManaged.as:148]
at
mx.data.utils::Managed$/getProperty()[C:\Users\mnimer\Development\development\dp
Hibernat
e\flexLibrary\flex-src\mx\data\utils\Managed.as:30]
at com.universalmind.hStore.model.vo::Item/get
added()[/UM/dpHibernate/DPHibernate/flex_src/com/universalmind/hStore/model/vo/I
tem.as:5
2]
at flash.net::NetConnection/invokeWithArgsArray()
at flash.net::NetConnection/call()
at
mx.messaging.channels::NetConnectionChannel/internalSend()[E:\dev\3.0.x\framewor
ks\project
s\rpc\src\mx\messaging\channels\NetConnectionChannel.as:220]
at
mx.messaging::Channel/send()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messagi
ng\Chan
nel.as:874]
at
mx.messaging.channels::PollingChannel/send()[E:\dev\3.0.x\frameworks\projects\rp
c\src\mx\
messaging\channels\PollingChannel.as:313]
at
mx.messaging::ChannelSet/send()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\mess
aging\Ch
annelSet.as:1099]
at
mx.messaging::ChannelSet/channelConnectHandler()[E:\dev\3.0.x\frameworks\project
s\rpc\src
\mx\messaging\ChannelSet.as:822]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.messaging::Channel/connectSuccess()[E:\dev\3.0.x\frameworks\projects\rpc\src\
mx\messa
ging\Channel.as:1036]
at
mx.messaging.channels::AMFChannel/resultHandler()[E:\dev\3.0.x\frameworks\projec
ts\rpc\src
\mx\messaging\channels\AMFChannel.as:465]
Original issue reported on code.google.com by [email protected]
on 26 Feb 2008 at 9:43
Attachments:
In net.digitalprimates.persistence.hibernate.HibernateManaged the
manageChildHibernateObjects function is checking for accessors in
describeType( object ), which misses out variables, which results in entry
becoming null in the getProperty function, if a variable is not a simple
object but a HibernateBean.
Workaroud: add accessors to variables.
Original issue reported on code.google.com by [email protected]
on 15 Apr 2008 at 9:05
Given a typical parent-child relationship, accessing parent.child() will
correctly lazy-load the child object from the server.
However, a subsequent call to child.parent() will trigger another load of
parent, despite it already being present on the client.
We should be smarter about this, and only load single instances of objects to
the client.
Original issue reported on code.google.com by [email protected]
on 6 Jul 2010 at 2:13
What steps will reproduce the problem?
1. Attempt to sort a lazy-loaded set utilizing an "order-by="columnName
asc"" directive in the hibernate mapping file.
What is the expected output? What do you see instead?
The expected output is that lazy-loaded object should be ordered based on
the order-by argument supplied for the <set> definition in hibernate.
Instead, it appears that the objects are not being sorted at all since they
are lazy-loaded and the property that sorting should be evaluating has not
been initialized.
What version of the product are you using? On what operating system?
dpHibernate1.0.9.jar
Original issue reported on code.google.com by [email protected]
on 21 May 2008 at 9:44
Currently pagination support is defined as a property on the
HibernateSerializer.
This is confusing, and makes having multiple pagination settings for a single
project difficult, if not impossible.
This should be moved to a setting on either the adapter or the destination, to
allow more fine-grained control over this setting
Original issue reported on code.google.com by [email protected]
on 30 Jun 2010 at 1:16
I downloaded your dpHibernate source and followed the config. The source
compiled fine. When i debug the app and put break points on the register user,
it dies on = new HibernateBean. It reports it as being missing / null
object. Let me know what i need to fix.
Original issue reported on code.google.com by [email protected]
on 31 Aug 2010 at 10:59
What steps will reproduce the problem?
1. On the HibernateService I call super.list(Entity.class);
2. The hibernate execute a simple query like this "select * from entity"
3. This entity have relation one-to-many
What is the expected output? What do you see instead?
The result is OK
What version of the product are you using? On what operating system?
dpHibernate1.0.13.jar. OS Windows XP.
Please provide any additional information below.
The result of the query is OK.
Original issue reported on code.google.com by [email protected]
on 9 Oct 2008 at 9:29
What steps will reproduce the problem?
1. create a java service method that returns array type to Flex
2. call this service method from flex and assign the results to
ArrayCollection.
3.
What is the expected output? What do you see instead?
Flex side ArrayCollection should be populated with the data from java
service, but it returns null value.
What version of the product are you using? On what operating system?
latest (1.0.17)
Please provide any additional information below.
HibernateSerializer doesn't validate the array type. Fix for this issue as
below...
Class: HibernateSerializer
Method: private Object translate(Object obj)
Change the following piece of code
===================================
else if (obj instanceof Object
&& (!isSimple(obj))
&& !(obj instanceof ASObject)
)
{
result = writeBean(obj, result, key);
}
===================================
to
==================================
else if (obj instanceof Object
&& (!isSimple(obj))
&& !(obj instanceof ASObject)
&& !isArrayType(obj.getClass()))
{
result = writeBean(obj, result, key);
}
==================================
Create a new method isArrayType
================================
private boolean isArrayType(Class desiredClass)
{
if (desiredClass.isArray())
{
return true;
}
else
{
return false;
}
}
================================
Original issue reported on code.google.com by [email protected]
on 11 May 2009 at 2:41
What steps will reproduce the problem?
I have used cxf to wrap some domain objects which inherit from
HibernateProxy, and found that cxf cannot start due to multiple instances
of the same property.
This can be modified by changing the members:
public Object proxyKey;
public Boolean proxyInitialized = true;
to private, and relying on accessors to modify them.
What version of the product are you using? On what operating system?
dpHibernate 1.0.17 (and recent svn) on mac os x
Please provide any additional information below.
This should be a relatively simple change, which will make the system
easier to integrate.
Original issue reported on code.google.com by [email protected]
on 24 Jun 2009 at 9:27
What steps will reproduce the problem?
1. Create hibernate VO that has a deep hierarchical structure. One object
has a list of many managed objects, which each have lists of many other
managed objects, etc.
2. Send the most senior VO (the one that has no parent objects) from Flex
to the Java data service manager.
What is the expected output? What do you see instead?
Objects are de-serialized and ready of use in the Java service manager. I
indeed see the objects there, but the de-serialization process takes a long
time (as seen from the dpHibernate de-serialization timer output).
What version of the product are you using? On what operating system?
dpHibernate1.0.17.jar
Windows XP
Please provide any additional information below.
Please see
http://groups.google.com/group/dphibernate/browse_thread/thread/b66240efa22e2d3d
for more information.
Original issue reported on code.google.com by [email protected]
on 21 Jan 2009 at 9:17
What steps will reproduce the problem?
1. use hibernate3.5
2.
3.
What is the expected output? What do you see instead?
in
hibernate3.5,org.hibernate.transform.PassThroughResultTransformer.PassThroughRes
ultTransformer()
is private;
but at
net.digitalprimates.persistence.translators.hibernate.HibernateSerializer.getPkI
ds(HibernateSerializer.java:450)
use "new PassThroughResultTransformer()" like this:
Query q2 = ((SessionImpl) session).createSQLQuery(sql).setParameter(0,
collection.getKey()).setResultTransformer(new PassThroughResultTransformer());
What version of the product are you using? On what operating system?
dpHibernate1.0.17 hiberbate3.5
Please provide any additional information below.
java.lang.IllegalAccessError: tried to access method
org.hibernate.transform.PassThroughResultTransformer.<init>()V from class
net.digitalprimates.persistence.translators.hibernate.HibernateSerializer
at
net.digitalprimates.persistence.translators.hibernate.HibernateSerializer.getPkI
ds(HibernateSerializer.java:450)
at
net.digitalprimates.persistence.translators.hibernate.HibernateSerializer.getCol
lectionProxies(HibernateSerializer.java:386)
at
net.digitalprimates.persistence.translators.hibernate.HibernateSerializer.writeA
bstractPersistentCollection(HibernateSerializer.java:268)
at
net.digitalprimates.persistence.translators.hibernate.HibernateSerializer.transl
ate(HibernateSerializer.java:117)
at
net.digitalprimates.persistence.translators.hibernate.HibernateSerializer.writeB
ean(HibernateSerializer.java:198)
at
net.digitalprimates.persistence.translators.hibernate.HibernateSerializer.transl
ate(HibernateSerializer.java:129)
at
net.digitalprimates.persistence.translators.hibernate.HibernateSerializer.writeB
ean(HibernateSerializer.java:198)
at
net.digitalprimates.persistence.translators.hibernate.HibernateSerializer.transl
ate(HibernateSerializer.java:129)
at
net.digitalprimates.persistence.translators.hibernate.HibernateSerializer.transl
ate(HibernateSerializer.java:88)
at
net.digitalprimates.persistence.hibernate.HibernateAdapter.invoke(HibernateAdapt
er.java:189)
at
flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183)
at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1400)
at
flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:1
005)
at
flex.messaging.endpoints.AbstractEndpoint$$FastClassByCGLIB$$1a3ef066.invoke(<ge
nerated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
at
org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoi
npoint(Cglib2AopProxy.java:692)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveM
ethodInvocation.java:150)
at
org.springframework.flex.core.MessageInterceptionAdvice.invoke(MessageIntercepti
onAdvice.java:66)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveM
ethodInvocation.java:172)
at
org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.invoke(ThrowsA
dviceInterceptor.java:124)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveM
ethodInvocation.java:172)
at
org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetIntercept
or.intercept(Cglib2AopProxy.java:576)
at
flex.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$607d2fc6.serviceMessage(<
generated>)
at
flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java
:103)
at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)
at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44)
at
flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:6
7)
at
flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java
:166)
at
flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:291)
at
flex.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$607d2fc6.service(<generat
ed>)
at
org.springframework.flex.servlet.MessageBrokerHandlerAdapter.handle(MessageBroke
rHandlerAdapter.java:101)
at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.j
ava:771)
at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.ja
va:716)
at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet
.java:644)
at
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:56
0)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
at
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInter
nal(OpenSessionInViewFilter.java:198)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilte
r.java:76)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
33)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1
91)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109
)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Pr
otocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
Original issue reported on code.google.com by [email protected]
on 31 May 2010 at 8:06
What steps will reproduce the problem?
1. Flex VOs use ListCollectionView instead of ArrayList
2. Do a Hibernate create() on the server side
What is the expected output? What do you see instead?
Expected to save to database
Get Exception:
Error: Unknown Property: 'prototype'. at
mx.collections::ListCollectionView/http://www.adobe.com/2006/actionscript/flash/
proxy::getProperty()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\collectio
ns\ListCollectionView.as:694]
at
net.digitalprimates.persistence.hibernate::HibernateManaged$/manageChildHibernat
eObjects()[C:\Users\mnimer\Development\development\dpHibernate
-
google\flexLibrary\flex-src\net\digitalprimates\persistence\hibernate\HibernateM
anaged.as:106]
What version of the product are you using? On what operating system?
dpHibernate1.0.1.swc
Please provide any additional information below.
In HibernateManaged.as:manageChildHibernateObjects() change ArrayCollection
to ListCollectionView
else if ( object is ArrayCollection ) {
for ( var i:int=0;i<object.length; i++ ) {
manageChildHibernateObjects( object[ i ], object, String( i ), ro )
}
Original issue reported on code.google.com by [email protected]
on 6 Jan 2009 at 5:22
Hello,
the first thing is to comment that I am sorry if my language is not quite
correct, since my level of English is not very good.
The problem comes when you run the tool profile of Flex and see that all the
classes that extends HibernateBean and [Managed], the GC is not able to remove,
and therefore, this error affects the performance.
Any solution?
Thanks for the reply and for developing the project.
Original issue reported on code.google.com by [email protected]
on 25 Jun 2010 at 1:35
What steps will reproduce the problem?
1. Just use HibernateRemoteObject to request a non hibernate data. In
exactly my case, a int value.
What is the expected output? What do you see instead?
I think the expected result some the the int value itself. Or if you
request a POJO (with none hibernate stuff), it should simply return the
POJO itself. But for now, HibernateRemoteObject will return an ObjectProxy
and the internal value of this returned object is null.
What version of the product are you using? On what operating system?
I'm using the current version with Fle 3 + Spring 2.5.3 + Hibernate Core
3.2.6 + Hibernate Annotation 3.3.1 on Window XP SP2.
Please provide any additional information below.
I think dphibernate's server side code should check if an object to be
returned is related to hibernate. If not, it should simply return the plain
object itself instead of a proxy object.
Original issue reported on code.google.com by [email protected]
on 24 May 2008 at 11:02
What steps will reproduce the problem?
1. define Set-based (not List-based) collections in hibernate entity
2. when object is deserializing it's throws error
error in class HibernateDeserializer:
private Object readCollection(Object obj, Class type)
{
//create always ArrayList
//type is ignored
List items = new ArrayList();
Iterator itr = ((Collection) obj).iterator();
while (itr.hasNext())
{
Object o = itr.next();
Object newVal = translate(o, type);
items.add(newVal);
}
return items;
}
Class of "items" must be class of variable "type"
version:
dpHibernate1.0.13
Original issue reported on code.google.com by [email protected]
on 25 Jun 2008 at 4:19
What steps will reproduce the problem?
1. Create a lazy class with a <list> element set to lazy=true
2. call from flex and watch the console
3.
What is the expected output? What do you see instead?
expected to see serialized output, but error produced is:
expected type: java.util.ArrayList, actual value:
org.hibernate.collection.PersistentList
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 27 Feb 2008 at 7:10
What steps will reproduce the problem?
1. Return a java Set object from a remote destination
2. Assign a to a flex variable
var testCollectionConversion:ArrayCollection = (event.result as
ArrayCollection);
What is the expected output? What do you see instead?
Expected testCollectionConversion to be populated with the items from the
Java set. I get a null value returned.
What version of the product are you using? On what operating system?
Windows XP
dpHibernate-1.0.17
Please provide any additional information below.
I use a work around of wrapping a list around the set before I return it
and it works fine. Shouldn't have to do that though. Set is just a list
with no duplications.
http://java.sun.com/javase/6/docs/api/java/util/ArrayList.html#ArrayList(java.ut
il.Collection)
Original issue reported on code.google.com by [email protected]
on 8 Jan 2009 at 3:34
Composite Keys are not currently supported.
This change is non-trivial, and we would need to consider the impact in several
places:
IHibernateProxy assumes the key is a single value
getPks() method of HibernateSerializer currently treats all keys as a single
value
Original issue reported on code.google.com by [email protected]
on 9 Jul 2010 at 3:12
Currently, support for custom serializers / deserializers is limited.
Because this is externalized through the spring context, we should support
users registering their own implementations.
Things to consider:
* Currently, the entity to serialize on the serializer is immutable. I don't want to change this.
Original issue reported on code.google.com by [email protected]
on 28 Jul 2010 at 7:23
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 [email protected]
on 10 Jun 2010 at 12:50
Attachments:
What steps will reproduce the problem?
1. Set up two tables (A and B) with a many-to-many relation between them
2. One of these tables (or both) must have a composite primary key (here A)
3. Try to lasy load the set of A from an entity B
What is the expected output? What do you see instead?
Instead of a set of A entity, for each call to the remote function
load(clazz=A.class, proxyKey=key) produce this kind of exception :
"org.hibernate.TypeMismatchException : Provided id of the wrong type
for class model.Ecoprocess. Expected: class model.EcoprocessId, got
class java.lang.Integer"
What version of the product are you using? On what operating system?
dpHibernate 1.0.17. Windows Vista 64.
Please provide any additional information below.
The problem seems to be in getPkIds from HibernateSerializer.java
Type t = persister.getKeyType();
PreparedStatement stmt =
((SessionImpl)session).connection().prepareStatement(sql);
if( t instanceof StringType ){
stmt.setString(1, collection.getKey().toString());
}
else {
stmt.setObject(1, new Integer(collection.getKey().toString()).intValue());
}
"t" is converted to an integer if it's not a String. What if it's an
composite key entity ?
Attached files : Category and Ecoprocess, my two concerned entities, and
the composite key EcoprocessId.
Original issue reported on code.google.com by [email protected]
on 31 Jul 2009 at 11:04
Attachments:
What steps will reproduce the problem?
1. Create server using Spring, Hibernate and any database.
2. Create client using Flex, Actionscript
3. On the server side create an entity User with different properties and a
property Role as well
4. Create on the server side the entity Role.
5. Make collection of Role in the entity User and set Lazy to it.
6. Configure the brige between the server and the client using dpHibernate (as
in the sample spring_sample1) and in the article "Get start".
7. Create a table where you'll be able to see the output and get user's role
list from the server.
8. Run your application.
9. At first touching loadDPProxy request would be initialized with Proxy object
Role ( as many requests will be initialized as big collection is)
What is the expected output? What do you see instead?
Expected to see the user's role collection, instead I see that a responce has
all filled entities. But my entity on the client side is still empty.
What version of the product are you using? On what operating system?
dpHibernate 1.0.17, Windows 7
Please provide any additional information below.
Looks like setProperties() method from HibernateManaged.as doesn't work
correctly with custom properties. I think so because "proxyKey" and
"proxyInitialized" fields are change there state after lazy-loading and it
works. I see the filled object in the responce.
Original issue reported on code.google.com by [email protected]
on 18 Aug 2010 at 2:08
Hi all,
First of all, thanks to everyone involved for the effort going into this
much needed project.
I'm not sure if I'm missing something or if this is indeed a bug: I'm
getting a NullPointerException during serialization in response to a call
to a Spring bean; otherwise, the call to the method in question appears to
be successful.
Attached is complete source code for a (small) Eclipse project designed to
test lazy loading with dpHibernate. The only changes required to run the
code are to modify the database settings (in
WEB-INF/spring/applicationContext-db.xml and hibernate/hibernate.cfg.xml)
and add a test record to the "Parent" table.
Please let me know if you have any questions.
Thanks,
James
Environment: Flex 3, dpHibernate 1.0.9, BlazeDS 3.0, Spring Framework
2.0.8, Hibernate 3.2.1, and JBoss 4.2.2 GA.
Log/stack trace:
20:18:12,664 INFO [STDOUT] [BlazeDS] FlexSession created with id
'9067E7720D96A6214AF2F33B2A3B708F' for an Http-based client connection.
20:18:12,671 INFO [STDOUT] [BlazeDS] Channel endpoint my-amf received request.
20:18:12,817 INFO [STDOUT] [BlazeDS] Deserializing AMF/HTTP request
Version: 3
(Message #0 targetURI=null, responseURI=/1)
(Array #0)
[0] = (Typed Object #0 'flex.messaging.messages.CommandMessage')
operation = 5
correlationId = ""
messageId = "CAC7F09E-73A1-93F2-B851-3730551D9AB5"
timeToLive = 0
timestamp = 0
body = (Object #1)
headers = (Object #2)
DSMessagingVersion = 1
DSId = "nil"
clientId = null
destination = ""
20:18:12,868 INFO [STDOUT] [BlazeDS] Serializing AMF/HTTP response
Version: 3
(Message #0 targetURI=/1/onResult, responseURI=)
(Externalizable Object #0 'DSK')
(Object #1)
DSId = "BD09134A-0E77-FFE8-35F7-6980B9F083FB"
DSMessagingVersion = 1.0
1.212106692843E12
(Byte Array #2, Length 16)
(Byte Array #3, Length 16)
(Byte Array #4, Length 16)
20:18:13,023 INFO [STDOUT] [BlazeDS] Channel endpoint my-amf received request.
20:18:13,045 INFO [STDOUT] [BlazeDS] Deserializing AMF/HTTP request
Version: 3
(Message #0 targetURI=null, responseURI=/2)
(Array #0)
[0] = (Typed Object #0 'flex.messaging.messages.RemotingMessage')
operation = "getParentById"
source = null
messageId = "596D8E73-0105-F098-4FFF-3730547F3A8C"
timeToLive = 0
timestamp = 0
body = (Array #1)
[0] = 1
headers = (Object #2)
DSEndpoint = "my-amf"
DSId = "BD09134A-0E77-FFE8-35F7-6980B9F083FB"
clientId = null
destination = "parentService"
20:18:13,175 INFO [STDOUT] Hibernate:
/* load test.model.Parent */ select
parent0_.id as id28_0_,
parent0_.name as name28_0_
from
Parent parent0_
where
parent0_.id=?
20:18:13,180 INFO [STDOUT] Parent name: test
20:18:13,303 ERROR [STDERR] java.lang.NullPointerException
20:18:13,304 ERROR [STDERR] at
net.digitalprimates.persistence.translators.hibernate.HibernateSerializer.writeB
ean(HibernateSerializer.java:183)
20:18:13,305 ERROR [STDERR] at
net.digitalprimates.persistence.translators.hibernate.HibernateSerializer.transl
ate(HibernateSerializer.java:124)
20:18:13,306 ERROR [STDERR] at
net.digitalprimates.persistence.translators.hibernate.HibernateSerializer.transl
ate(HibernateSerializer.java:87)
20:18:13,307 ERROR [STDERR] at
net.digitalprimates.persistence.hibernate.HibernateAdapter.invoke(HibernateAdapt
er.java:181)
20:18:13,307 ERROR [STDERR] at
flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183)
20:18:13,308 ERROR [STDERR] at
flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1417)
20:18:13,308 ERROR [STDERR] at
flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:8
78)
20:18:13,309 ERROR [STDERR] at
flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java
:121)
20:18:13,309 ERROR [STDERR] at
flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)
20:18:13,310 ERROR [STDERR] at
flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:49)
20:18:13,311 ERROR [STDERR] at
flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:6
7)
20:18:13,311 ERROR [STDERR] at
flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java
:146)
20:18:13,311 ERROR [STDERR] at
flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:274)
20:18:13,312 ERROR [STDERR] at
flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:377)
20:18:13,312 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
20:18:13,313 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:290)
20:18:13,313 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
20:18:13,313 ERROR [STDERR] at
net.digitalprimates.persistence.hibernate.utils.filters.HibernateSessionServletF
ilter.doFilter(HibernateSessionServletFilter.java:62)
20:18:13,314 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:235)
20:18:13,314 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
20:18:13,315 ERROR [STDERR] at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:9
6)
20:18:13,315 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:235)
20:18:13,315 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
20:18:13,316 ERROR [STDERR] at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
30)
20:18:13,316 ERROR [STDERR] at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1
75)
20:18:13,316 ERROR [STDERR] at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociatio
nValve.java:179)
20:18:13,317 ERROR [STDERR] at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
20:18:13,317 ERROR [STDERR] at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
20:18:13,318 ERROR [STDERR] at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
20:18:13,319 ERROR [STDERR] at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionVa
lve.java:157)
20:18:13,320 ERROR [STDERR] at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109
)
20:18:13,320 ERROR [STDERR] at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
20:18:13,321 ERROR [STDERR] at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
20:18:13,321 ERROR [STDERR] at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Pr
otocol.java:583)
20:18:13,322 ERROR [STDERR] at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
20:18:13,322 ERROR [STDERR] at java.lang.Thread.run(Thread.java:613)
20:18:13,324 INFO [STDOUT] [BlazeDS] Adapter 'hibernate-object' called
'parentService.getParentById(java.util.Arrays$ArrayList (Collection size:1)
[0] = 1
)'
20:18:13,325 INFO [STDOUT] [BlazeDS] Result: 'null'
20:18:13,328 INFO [STDOUT] [BlazeDS] Serializing AMF/HTTP response
Version: 3
(Message #0 targetURI=/2/onResult, responseURI=)
(Externalizable Object #0 'DSK')
1.212106693326E12
(Byte Array #1, Length 16)
(Byte Array #2, Length 16)
(Byte Array #3, Length 16)
20:48:53,982 INFO [STDOUT] [BlazeDS] FlexSession with id
'9067E7720D96A6214AF2F33B2A3B708F' for an Http-based client connection has
been invalidated.
Original issue reported on code.google.com by [email protected]
on 30 May 2008 at 2:03
Attachments:
What steps will reproduce the problem?
1. Created a hibernate VO with a transient method that doesn't follow
getter/setter method naming convention (e.g. public boolean isNewCustomer() )
2. Flex gets this vo and updates some information.
3. Flex tries to save this updated vo by calling service method
What is the expected output? What do you see instead?
I expected this method won't be invoked by readBean(Object obj) method in
HibernateDeserializer class.
What version of the product are you using? On what operating system?
1.0.9 on WindowsXP
Please provide any additional information below.
pd.getWriteMethod() returns null because there is no matching setter method
for this (isNewCustomer()) and null pointer validation is missing for statement
pd.getWriteMethod().invoke(obj, newVal);
Original issue reported on code.google.com by [email protected]
on 12 Mar 2009 at 2:41
error in proxyKey if it is null
please add
if ( __proxyKey != null )
in HibernateBean.as:38
-----
public function set proxyKey( value:Object ):void {
if ( __proxyKey != null )
StateRepository.removeFromNewEntityList( __proxyKey.toString() );
__proxyKey = value;
}
_____
Original issue reported on code.google.com by [email protected]
on 10 Jun 2010 at 3:59
What steps will reproduce the problem?
1.Populate AS3 VO
2.Send To Java
3.Deserialize in Java
I´ve populate my variable typed Date with "18/01/2010" and recieve in Java
"17/01/2010".
I saw in source code the function called populateBean and this function uses
.getTime(). I know that function in AS3 doesn´t work with a saving daylight
time and Java does. How can i get this problem solved?
What version of the product are you using? On what operating system?
Windows Server 2008 and TomCat 6
Adobe flex 3.5
Java 6
dpHibernate1.0.1.swc
dpHibernate1.0.17.jar
Please provide any additional information below.
ps: sorry about my bad english!!!
Original issue reported on code.google.com by [email protected]
on 22 Jul 2010 at 5:01
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.