Hi All,
I am looking into bug number 82409 which is asking for better error reporting in ORM. While I agree that there is room for improvement in this area and we have done a few already, I am looking for more specific pointers on this.
Could you please let us know those specific errors so that I can focus on them and get those fixed.
We have tried to report those errors that can be figured out with the CFC definition. The only area where we are kind of helpless is when the error is thrown by Hibernate.
Regards,
Rupesh
-- You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
Hi All,
We are still waiting to hear on this. Could you please take some time
out, think about it and let us know the specific issues before it is
too late?
Rupesh
-- You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
This is quite ironical. Seeing 17 votes on this bug, I was hoping to
get a huge amount of response to this but there is literally none.
Here is the last chance for you. If there is still no response by
tomorrow, I will assume that there is no real issue as such and will
close the bug.
- Rupesh
On May 2, 8:49 pm, Rupesh <ruku...@adobe.com> wrote:
> Hi All,
> We are still waiting to hear on this. Could you please take some time
> out, think about it and let us know the specific issues before it is
> too late?
> Rupesh
> --
> You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
> To post to this group, send email to cf-orm-dev@googlegroups.com.
> To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/cf-orm-dev?hl=en.
-- You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
The real problem is that Hibernate generates crappy error messages,
especially around mapping issues. If you guys are willing to roll
your own Hibernate (and can deal with the LGPL), a couple minor tweaks
to the error messages (to include entity/property names) would go a
long way in that regard. I haven't done it with CF9, but when I was
doing Hibernate dev a couple years ago we kept an internal vendor
branch for just this reason.
On Thu, May 6, 2010 at 10:26 AM, Rupesh <ruku...@adobe.com> wrote:
> This is quite ironical. Seeing 17 votes on this bug, I was hoping to
> get a huge amount of response to this but there is literally none.
> Here is the last chance for you. If there is still no response by
> tomorrow, I will assume that there is no real issue as such and will
> close the bug.
> - Rupesh
> On May 2, 8:49 pm, Rupesh <ruku...@adobe.com> wrote:
>> Hi All,
>> We are still waiting to hear on this. Could you please take some time
>> out, think about it and let us know the specific issues before it is
>> too late?
>> Rupesh
>> --
>> You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
>> To post to this group, send email to cf-orm-dev@googlegroups.com.
>> To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
>> For more options, visit this group athttp://groups.google.com/group/cf-orm-dev?hl=en.
> --
> You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
> To post to this group, send email to cf-orm-dev@googlegroups.com.
> To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
-- You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
I think what is causing frustration is that normally ColdFusion gives
awesome error messages with the exact line, and sometimes character, where
an error occurs.
ORM errors do not provide this. For instance I just forced an error by
doing this:
Which is significantly less information than we are used to. Now, as Barney
mentions, this may be all that you get from Hibernate then fair enough but
it would be great to know which CFC and property declaration is causing this
error.
With DDL errors I've also found that I can sometimes pull something out of
the stack trace to help. In the error I forced above it was:
Caused by: java.sql.SQLSyntaxErrorException: Syntax error: Encountered
"," at line 1, column 35.
On Thu, May 6, 2010 at 1:26 PM, Rupesh <ruku...@adobe.com> wrote:
> This is quite ironical. Seeing 17 votes on this bug, I was hoping to
> get a huge amount of response to this but there is literally none.
> Here is the last chance for you. If there is still no response by
> tomorrow, I will assume that there is no real issue as such and will
> close the bug.
> - Rupesh
> On May 2, 8:49 pm, Rupesh <ruku...@adobe.com> wrote:
> > Hi All,
> > We are still waiting to hear on this. Could you please take some time
> > out, think about it and let us know the specific issues before it is
> > too late?
> > Rupesh
> > --
> > You received this message because you are subscribed to the Google Groups
> "cf-orm-dev" group.
> > To post to this group, send email to cf-orm-dev@googlegroups.com.
> > To unsubscribe from this group, send email to
> cf-orm-dev+unsubscribe@googlegroups.com<cf-orm-dev%2Bunsubscribe@googlegrou ps.com>
> .
> > For more options, visit this group athttp://
> groups.google.com/group/cf-orm-dev?hl=en.
> --
> You received this message because you are subscribed to the Google Groups
> "cf-orm-dev" group.
> To post to this group, send email to cf-orm-dev@googlegroups.com.
> To unsubscribe from this group, send email to
> cf-orm-dev+unsubscribe@googlegroups.com<cf-orm-dev%2Bunsubscribe@googlegrou ps.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/cf-orm-dev?hl=en.
-- You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
Rupesh, I think that folks will all agree this is a problem - but if
we don't have the bugs right now it's hard to debug. I can tell you
that I'm responding to a person on email now who is getting "Error in
generating Hibernate configuration" when he runs ormReload. He has no
idea what's wrong.
On Thu, May 6, 2010 at 12:26 PM, Rupesh <ruku...@adobe.com> wrote:
> This is quite ironical. Seeing 17 votes on this bug, I was hoping to
> get a huge amount of response to this but there is literally none.
> Here is the last chance for you. If there is still no response by
> tomorrow, I will assume that there is no real issue as such and will
> close the bug.
> - Rupesh
> On May 2, 8:49 pm, Rupesh <ruku...@adobe.com> wrote:
>> Hi All,
>> We are still waiting to hear on this. Could you please take some time
>> out, think about it and let us know the specific issues before it is
>> too late?
>> Rupesh
>> --
>> You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
>> To post to this group, send email to cf-orm-dev@googlegroups.com.
>> To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
>> For more options, visit this group athttp://groups.google.com/group/cf-orm-dev?hl=en.
> --
> You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
> To post to this group, send email to cf-orm-dev@googlegroups.com.
> To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
-- ===========================================================================
Raymond Camden, ColdFusion Jedi Master
-- You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
I found it incredible painful to get an error like 'dll error' when
something went wrong during entity definitions. That's not what you're
used to by working with CF. More helpful error messages especially
during table creation would be a big help and time saver for people
new to hibernate.
Another useless message appears when try to delete entities with with
a foreignkey relationship.
Daniel
On 6 Mai, 19:26, Rupesh <ruku...@adobe.com> wrote:
> This is quite ironical. Seeing 17 votes on this bug, I was hoping to
> get a huge amount of response to this but there is literally none.
> Here is the last chance for you. If there is still no response by
> tomorrow, I will assume that there is no real issue as such and will
> close the bug.
> - Rupesh
> On May 2, 8:49 pm, Rupesh <ruku...@adobe.com> wrote:
> > Hi All,
> > We are still waiting to hear on this. Could you please take some time
> > out, think about it and let us know the specific issues before it is
> > too late?
> > Rupesh
> > --
> > You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
> > To post to this group, send email to cf-orm-dev@googlegroups.com.
> > To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/cf-orm-dev?hl=en.
> --
> You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
> To post to this group, send email to cf-orm-dev@googlegroups.com.
> To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/cf-orm-dev?hl=en.
-- You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
I completely agree with all of you. There are times when you get some error and it is difficult to find the reason from the error. The problem is - most of such errors are thrown by Hibernate and the error message does not provide enough information to be of much help. As Barney said, we cannot change Hibernate code to improve error messages because of licensing issues. In most of the cases, we cannot even throw any pre-emptive errors.
The only way to debug such issues would be to enable a detailed error logging by Hibernate. We will try to see how we can make this better.
However, we have done quite a few things to improve error reporting. Some of the important ones are - If there is any CFC which has compilation errors, we will throw the error upfront. We were skipping those cfc earlier, which used to cause some other Hibernate error later in the application making it difficult to debug.
- In case the associated CFC (cfc in relation) is missing, we used to throw an error "Error in loading component XXX". This did not give any indication as in where this CFC is being used. We will now clearly say that in the error.
- During schema generation, if the 'drop' failed because of some reason, 'create' also fails but the error would just include 'create' errors. The error details would now include all the errors during schema generation if the 'create' fails. It would have been even more helpful if the SQL could be included along with the errors here but Hibernate does not provide that. The only way to debug that would be to enable DDL logging for errors.
- Error will be thrown if the sqlscript file specified does not exist
- Entityreload() will throw an exception if the object being passed is not a valid entity or if it is transient
What we are looking here is to collect all such errors so that we can improve the developer experience. If at all we cannot provide a fix for certain issues, at least we can document them or guide people so that they don't spend hours struggling with them.
Regards,
Rupesh
-- You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
Rupesh, those first 2 fixes there are incredible (and in fact, going
to blog it to help spread the word). Thank you. (Or, if you blog, let
me know. Not everyone subscribes to this group.)
On Fri, May 7, 2010 at 3:52 AM, Rupesh Kumar <ruku...@adobe.com> wrote:
> I completely agree with all of you. There are times when you get some error and it is difficult to find the reason from the error. The problem is - most of such errors are thrown by Hibernate and the error message does not provide enough information to be of much help. As Barney said, we cannot change Hibernate code to improve error messages because of licensing issues. In most of the cases, we cannot even throw any pre-emptive errors.
> The only way to debug such issues would be to enable a detailed error logging by Hibernate. We will try to see how we can make this better.
-- You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
One thing I noticed is that when defining an Entity in CF, simple mistakes
in your code, like forgetting a semicolon, can throw misleading, obtuse
Hibernate errors. As others have said, I'm used to CF throwing errors that I
can interpret. The other thing that tended to throw these errors are
relationship configuration mistakes. There are so many attributes that can
be used, and it is unclear which go together and which don't. If you get
wrong, the Hibernate error isn't indicative of what the problem is.
One of the difficulties for me has been that the obtuse errors combined with
somewhat sparse documentation that included only dumbed down examples left
me almost completely in the dark. I found myself just guessing, as if I was
trying to learn a new language without a reference. Next time I need to go
back to defining entities, I will be in the same boat, having forgotten most
of the quirks that I encountered and somehow solved through lots of
guesswork. It's not a task that most developers will work at on a daily
basis.
I fully realize that Hibernate integration is a significant challenge, and
your comments help me to see the limitations you are working under. It's an
awesome feature to have in the language. Whatever you can do to make it
easier for us to get through the task of configuring entities and their
relationships with less guesswork would be greatly appreciated.
On Fri, May 7, 2010 at 3:36 PM, Raymond Camden <rcam...@gmail.com> wrote:
> Rupesh, those first 2 fixes there are incredible (and in fact, going
> to blog it to help spread the word). Thank you. (Or, if you blog, let
> me know. Not everyone subscribes to this group.)
> On Fri, May 7, 2010 at 3:52 AM, Rupesh Kumar <ruku...@adobe.com> wrote:
> > I completely agree with all of you. There are times when you get some
> error and it is difficult to find the reason from the error. The problem is
> - most of such errors are thrown by Hibernate and the error message does not
> provide enough information to be of much help. As Barney said, we cannot
> change Hibernate code to improve error messages because of licensing issues.
> In most of the cases, we cannot even throw any pre-emptive errors.
> > The only way to debug such issues would be to enable a detailed error
> logging by Hibernate. We will try to see how we can make this better.
> --
> You received this message because you are subscribed to the Google Groups
> "cf-orm-dev" group.
> To post to this group, send email to cf-orm-dev@googlegroups.com.
> To unsubscribe from this group, send email to
> cf-orm-dev+unsubscribe@googlegroups.com<cf-orm-dev%2Bunsubscribe@googlegrou ps.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/cf-orm-dev?hl=en.
-- Nando M. Breiter
The CarbonZero Project
CP 234
6934 Bioggio
Switzerland
-- You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
Oh, one more thing. I don't know what time pressure you are under to close
this bug, but I think we would need a focused effort and some months time
to collect these errors for you at a designated collection point. I can
understand why you didn't get much feedback. I only work on
coding entities once every several months. We would need more time to get
you this information.
On Fri, May 7, 2010 at 4:11 PM, Nando <d.na...@gmail.com> wrote:
> Rupesh,
> One thing I noticed is that when defining an Entity in CF, simple mistakes
> in your code, like forgetting a semicolon, can throw misleading, obtuse
> Hibernate errors. As others have said, I'm used to CF throwing errors that I
> can interpret. The other thing that tended to throw these errors are
> relationship configuration mistakes. There are so many attributes that can
> be used, and it is unclear which go together and which don't. If you get
> wrong, the Hibernate error isn't indicative of what the problem is.
> One of the difficulties for me has been that the obtuse errors combined
> with somewhat sparse documentation that included only dumbed down examples
> left me almost completely in the dark. I found myself just guessing, as if I
> was trying to learn a new language without a reference. Next time I need to
> go back to defining entities, I will be in the same boat, having forgotten
> most of the quirks that I encountered and somehow solved through lots of
> guesswork. It's not a task that most developers will work at on a daily
> basis.
> I fully realize that Hibernate integration is a significant challenge, and
> your comments help me to see the limitations you are working under. It's an
> awesome feature to have in the language. Whatever you can do to make it
> easier for us to get through the task of configuring entities and their
> relationships with less guesswork would be greatly appreciated.
> Kind regards,
> Nando
> On Fri, May 7, 2010 at 3:36 PM, Raymond Camden <rcam...@gmail.com> wrote:
>> Rupesh, those first 2 fixes there are incredible (and in fact, going
>> to blog it to help spread the word). Thank you. (Or, if you blog, let
>> me know. Not everyone subscribes to this group.)
>> On Fri, May 7, 2010 at 3:52 AM, Rupesh Kumar <ruku...@adobe.com> wrote:
>> > I completely agree with all of you. There are times when you get some
>> error and it is difficult to find the reason from the error. The problem is
>> - most of such errors are thrown by Hibernate and the error message does not
>> provide enough information to be of much help. As Barney said, we cannot
>> change Hibernate code to improve error messages because of licensing issues.
>> In most of the cases, we cannot even throw any pre-emptive errors.
>> > The only way to debug such issues would be to enable a detailed error
>> logging by Hibernate. We will try to see how we can make this better.
>> --
>> You received this message because you are subscribed to the Google Groups
>> "cf-orm-dev" group.
>> To post to this group, send email to cf-orm-dev@googlegroups.com.
>> To unsubscribe from this group, send email to
>> cf-orm-dev+unsubscribe@googlegroups.com<cf-orm-dev%2Bunsubscribe@googlegrou ps.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/cf-orm-dev?hl=en.
> --
> Nando M. Breiter
> The CarbonZero Project
> CP 234
> 6934 Bioggio
> Switzerland
-- You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
What about those wierd FK Constraint errors during schema update? Some,
details from hibernate show up in the stack trace but the error detail is
blank (or vague i don't remember what it says exactly) regarding the
component and constraint throwing the error.. I haven't personally created
one of these errors recently but I remember they are tough to track down,
most of the time I had to drop the tables i was trying to update.... Would
there be any way to show the hibernate error details from the stack in the
error detail message?
Regards,
Adam D.
-- You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
I ran into those when moving the application from the development to
production environment. I *think* I solved it by deleting the constraints on
the database itself and letting hibernate recreate them. Dropping the tables
wasn't a good option, as a significant amount of data had already been
entered.
On Fri, May 7, 2010 at 4:22 PM, adam drew <epne...@gmail.com> wrote:
> Hey Rupesh,
> What about those wierd FK Constraint errors during schema update? Some,
> details from hibernate show up in the stack trace but the error detail is
> blank (or vague i don't remember what it says exactly) regarding the
> component and constraint throwing the error.. I haven't personally created
> one of these errors recently but I remember they are tough to track down,
> most of the time I had to drop the tables i was trying to update.... Would
> there be any way to show the hibernate error details from the stack in the
> error detail message?
> Regards,
> Adam D.
> --
> You received this message because you are subscribed to the Google Groups
> "cf-orm-dev" group.
> To post to this group, send email to cf-orm-dev@googlegroups.com.
> To unsubscribe from this group, send email to
> cf-orm-dev+unsubscribe@googlegroups.com<cf-orm-dev%2Bunsubscribe@googlegrou ps.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/cf-orm-dev?hl=en.
-- Nando M. Breiter
The CarbonZero Project
CP 234
6934 Bioggio
Switzerland
-- You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
If you can't change Hybernate's error messages, maybe you could capture
(when the developer has enabled robust error handling or hit some other
hibernate specific setting in the admin) the request before it goes to
hibernate and check it for syntax and or other types of errors and return a
message stating "possible errors in your cform calls" with the possibly
offending code?
Mark
From: cf-orm-dev@googlegroups.com [mailto:cf-orm-dev@googlegroups.com] On
Behalf Of Nando
Sent: Friday, May 07, 2010 10:12 AM
To: cf-orm-dev@googlegroups.com
Subject: Re: [cf-orm-dev] Re: Need your inputs on ORM Error reporting
Rupesh,
One thing I noticed is that when defining an Entity in CF, simple mistakes
in your code, like forgetting a semicolon, can throw misleading, obtuse
Hibernate errors. As others have said, I'm used to CF throwing errors that I
can interpret. The other thing that tended to throw these errors are
relationship configuration mistakes. There are so many attributes that can
be used, and it is unclear which go together and which don't. If you get
wrong, the Hibernate error isn't indicative of what the problem is.
One of the difficulties for me has been that the obtuse errors combined with
somewhat sparse documentation that included only dumbed down examples left
me almost completely in the dark. I found myself just guessing, as if I was
trying to learn a new language without a reference. Next time I need to go
back to defining entities, I will be in the same boat, having forgotten most
of the quirks that I encountered and somehow solved through lots of
guesswork. It's not a task that most developers will work at on a daily
basis.
I fully realize that Hibernate integration is a significant challenge, and
your comments help me to see the limitations you are working under. It's an
awesome feature to have in the language. Whatever you can do to make it
easier for us to get through the task of configuring entities and their
relationships with less guesswork would be greatly appreciated.
Kind regards,
Nando
On Fri, May 7, 2010 at 3:36 PM, Raymond Camden <rcam...@gmail.com> wrote:
Rupesh, those first 2 fixes there are incredible (and in fact, going
to blog it to help spread the word). Thank you. (Or, if you blog, let
me know. Not everyone subscribes to this group.)
On Fri, May 7, 2010 at 3:52 AM, Rupesh Kumar <ruku...@adobe.com> wrote:
> I completely agree with all of you. There are times when you get some
error and it is difficult to find the reason from the error. The problem is
- most of such errors are thrown by Hibernate and the error message does not
provide enough information to be of much help. As Barney said, we cannot
change Hibernate code to improve error messages because of licensing issues.
In most of the cases, we cannot even throw any pre-emptive errors.
> The only way to debug such issues would be to enable a detailed error
logging by Hibernate. We will try to see how we can make this better.
--
You received this message because you are subscribed to the Google Groups
"cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to
cf-orm-dev+unsubscribe@googlegroups.com
<mailto:cf-orm-dev%2Bunsubscribe@googlegroups.com> .
For more options, visit this group at
http://groups.google.com/group/cf-orm-dev?hl=en.
-- Nando M. Breiter
The CarbonZero Project
CP 234
6934 Bioggio
Switzerland
-- You received this message because you are subscribed to the Google Groups
"cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to
cf-orm-dev+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cf-orm-dev?hl=en.
-- You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
I don't think that would work, since it really takes Hibernate actually
trying to execute the code to determine that something is wrong, especially
at the database level. I'd also be somewhat concerned about the overhead
that some sort of CF-side "validation pre-processor" would add.
Unfortunately, I think they're really limited to working with the exceptions
that Hibernate throws and doing their best to make them more clear.
On Fri, May 7, 2010 at 10:28 AM, mark <m...@mdprofinish.com> wrote:
> Rupesh,
> If you can’t change Hybernate’s error messages, maybe you could capture
> (when the developer has enabled robust error handling or hit some other
> hibernate specific setting in the admin) the request before it goes to
> hibernate and check it for syntax and or other types of errors and return a
> message stating “possible errors in your cform calls” with the possibly
> offending code?
> Mark
> *From:* cf-orm-dev@googlegroups.com [mailto:cf-orm-dev@googlegroups.com] *On
> Behalf Of *Nando
> *Sent:* Friday, May 07, 2010 10:12 AM
> *To:* cf-orm-dev@googlegroups.com
> *Subject:* Re: [cf-orm-dev] Re: Need your inputs on ORM Error reporting
> Rupesh,
> One thing I noticed is that when defining an Entity in CF, simple mistakes
> in your code, like forgetting a semicolon, can throw misleading, obtuse
> Hibernate errors. As others have said, I'm used to CF throwing errors that I
> can interpret. The other thing that tended to throw these errors are
> relationship configuration mistakes. There are so many attributes that can
> be used, and it is unclear which go together and which don't. If you get
> wrong, the Hibernate error isn't indicative of what the problem is.
> One of the difficulties for me has been that the obtuse errors combined
> with somewhat sparse documentation that included only dumbed down examples
> left me almost completely in the dark. I found myself just guessing, as if I
> was trying to learn a new language without a reference. Next time I need to
> go back to defining entities, I will be in the same boat, having forgotten
> most of the quirks that I encountered and somehow solved through lots of
> guesswork. It's not a task that most developers will work at on a daily
> basis.
> I fully realize that Hibernate integration is a significant challenge, and
> your comments help me to see the limitations you are working under. It's an
> awesome feature to have in the language. Whatever you can do to make it
> easier for us to get through the task of configuring entities and their
> relationships with less guesswork would be greatly appreciated.
> Kind regards,
> Nando
> On Fri, May 7, 2010 at 3:36 PM, Raymond Camden <rcam...@gmail.com> wrote:
> Rupesh, those first 2 fixes there are incredible (and in fact, going
> to blog it to help spread the word). Thank you. (Or, if you blog, let
> me know. Not everyone subscribes to this group.)
> On Fri, May 7, 2010 at 3:52 AM, Rupesh Kumar <ruku...@adobe.com> wrote:
> > I completely agree with all of you. There are times when you get some
> error and it is difficult to find the reason from the error. The problem is
> - most of such errors are thrown by Hibernate and the error message does not
> provide enough information to be of much help. As Barney said, we cannot
> change Hibernate code to improve error messages because of licensing issues.
> In most of the cases, we cannot even throw any pre-emptive errors.
> > The only way to debug such issues would be to enable a detailed error
> logging by Hibernate. We will try to see how we can make this better.
> --
> You received this message because you are subscribed to the Google Groups
> "cf-orm-dev" group.
> To post to this group, send email to cf-orm-dev@googlegroups.com.
> To unsubscribe from this group, send email to
> cf-orm-dev+unsubscribe@googlegroups.com<cf-orm-dev%2Bunsubscribe@googlegrou ps.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/cf-orm-dev?hl=en.
> --
> Nando M. Breiter
> The CarbonZero Project
> CP 234
> 6934 Bioggio
> Switzerland
> --
> You received this message because you are subscribed to the Google Groups
> "cf-orm-dev" group.
> To post to this group, send email to cf-orm-dev@googlegroups.com.
> To unsubscribe from this group, send email to
> cf-orm-dev+unsubscribe@googlegroups.com<cf-orm-dev%2Bunsubscribe@googlegrou ps.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/cf-orm-dev?hl=en.
> --
> You received this message because you are subscribed to the Google Groups
> "cf-orm-dev" group.
> To post to this group, send email to cf-orm-dev@googlegroups.com.
> To unsubscribe from this group, send email to
> cf-orm-dev+unsubscribe@googlegroups.com<cf-orm-dev%2Bunsubscribe@googlegrou ps.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/cf-orm-dev?hl=en.
-- You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
Thinking out loud a bit. As a catch all what about if the debugging is on
and ormReload() is called:
- Temporarily saving the current .HBMXML file(s)
- Running the new code
- If they fail, and other errors can't be deduced, then compare the new
and the old HBMXML files and based on differences giving a list of possible
problem areas?
On Fri, May 7, 2010 at 10:37 AM, Brian Kotek <brian...@gmail.com> wrote:
> I don't think that would work, since it really takes Hibernate actually
> trying to execute the code to determine that something is wrong, especially
> at the database level. I'd also be somewhat concerned about the overhead
> that some sort of CF-side "validation pre-processor" would add.
> Unfortunately, I think they're really limited to working with the exceptions
> that Hibernate throws and doing their best to make them more clear.
> On Fri, May 7, 2010 at 10:28 AM, mark <m...@mdprofinish.com> wrote:
>> Rupesh,
>> If you can’t change Hybernate’s error messages, maybe you could capture
>> (when the developer has enabled robust error handling or hit some other
>> hibernate specific setting in the admin) the request before it goes to
>> hibernate and check it for syntax and or other types of errors and return a
>> message stating “possible errors in your cform calls” with the possibly
>> offending code?
>> Mark
>> *From:* cf-orm-dev@googlegroups.com [mailto:cf-orm-dev@googlegroups.com]
>> *On Behalf Of *Nando
>> *Sent:* Friday, May 07, 2010 10:12 AM
>> *To:* cf-orm-dev@googlegroups.com
>> *Subject:* Re: [cf-orm-dev] Re: Need your inputs on ORM Error reporting
>> Rupesh,
>> One thing I noticed is that when defining an Entity in CF, simple mistakes
>> in your code, like forgetting a semicolon, can throw misleading, obtuse
>> Hibernate errors. As others have said, I'm used to CF throwing errors that I
>> can interpret. The other thing that tended to throw these errors are
>> relationship configuration mistakes. There are so many attributes that can
>> be used, and it is unclear which go together and which don't. If you get
>> wrong, the Hibernate error isn't indicative of what the problem is.
>> One of the difficulties for me has been that the obtuse errors combined
>> with somewhat sparse documentation that included only dumbed down examples
>> left me almost completely in the dark. I found myself just guessing, as if I
>> was trying to learn a new language without a reference. Next time I need to
>> go back to defining entities, I will be in the same boat, having forgotten
>> most of the quirks that I encountered and somehow solved through lots of
>> guesswork. It's not a task that most developers will work at on a daily
>> basis.
>> I fully realize that Hibernate integration is a significant challenge, and
>> your comments help me to see the limitations you are working under. It's an
>> awesome feature to have in the language. Whatever you can do to make it
>> easier for us to get through the task of configuring entities and their
>> relationships with less guesswork would be greatly appreciated.
>> Kind regards,
>> Nando
>> On Fri, May 7, 2010 at 3:36 PM, Raymond Camden <rcam...@gmail.com> wrote:
>> Rupesh, those first 2 fixes there are incredible (and in fact, going
>> to blog it to help spread the word). Thank you. (Or, if you blog, let
>> me know. Not everyone subscribes to this group.)
>> On Fri, May 7, 2010 at 3:52 AM, Rupesh Kumar <ruku...@adobe.com> wrote:
>> > I completely agree with all of you. There are times when you get some
>> error and it is difficult to find the reason from the error. The problem is
>> - most of such errors are thrown by Hibernate and the error message does not
>> provide enough information to be of much help. As Barney said, we cannot
>> change Hibernate code to improve error messages because of licensing issues.
>> In most of the cases, we cannot even throw any pre-emptive errors.
>> > The only way to debug such issues would be to enable a detailed error
>> logging by Hibernate. We will try to see how we can make this better.
>> --
>> You received this message because you are subscribed to the Google Groups
>> "cf-orm-dev" group.
>> To post to this group, send email to cf-orm-dev@googlegroups.com.
>> To unsubscribe from this group, send email to
>> cf-orm-dev+unsubscribe@googlegroups.com<cf-orm-dev%2Bunsubscribe@googlegrou ps.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/cf-orm-dev?hl=en.
>> --
>> Nando M. Breiter
>> The CarbonZero Project
>> CP 234
>> 6934 Bioggio
>> Switzerland
>> --
>> You received this message because you are subscribed to the Google Groups
>> "cf-orm-dev" group.
>> To post to this group, send email to cf-orm-dev@googlegroups.com.
>> To unsubscribe from this group, send email to
>> cf-orm-dev+unsubscribe@googlegroups.com<cf-orm-dev%2Bunsubscribe@googlegrou ps.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/cf-orm-dev?hl=en.
>> --
>> You received this message because you are subscribed to the Google Groups
>> "cf-orm-dev" group.
>> To post to this group, send email to cf-orm-dev@googlegroups.com.
>> To unsubscribe from this group, send email to
>> cf-orm-dev+unsubscribe@googlegroups.com<cf-orm-dev%2Bunsubscribe@googlegrou ps.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/cf-orm-dev?hl=en.
> --
> You received this message because you are subscribed to the Google Groups
> "cf-orm-dev" group.
> To post to this group, send email to cf-orm-dev@googlegroups.com.
> To unsubscribe from this group, send email to
> cf-orm-dev+unsubscribe@googlegroups.com<cf-orm-dev%2Bunsubscribe@googlegrou ps.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/cf-orm-dev?hl=en.
-- You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
On May 7, 12:31 pm, Daniel <daniel.sch...@gmail.com> wrote:
> I found it incredible painful to get an error like 'dll error' when
> something went wrong during entity definitions. That's not what you're
> used to by working with CF. More helpful error messages especially
> during table creation would be a big help and time saver for people
> new to hibernate.
the error message will now include all the SQL errors that were thrown
during schema creation. Unfortunately, we cant get the sql for table
creation. (I have logged a hibernate bug to get that fixed.) However
the error thrown during importing the sql script file will also
include the SQL that has the errors.
> Another useless message appears when try to delete entities with with
> a foreignkey relationship.
Can you send us an example for the same?
-- You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
On May 7, 7:11 pm, Nando <d.na...@gmail.com> wrote:
> Rupesh,
> One thing I noticed is that when defining an Entity in CF, simple mistakes
> in your code, like forgetting a semicolon, can throw misleading, obtuse
> Hibernate errors.
Already fixed as I said in a previous mail.
> As others have said, I'm used to CF throwing errors that I
> can interpret. The other thing that tended to throw these errors are
> relationship configuration mistakes. There are so many attributes that can
> be used, and it is unclear which go together and which don't. If you get
> wrong, the Hibernate error isn't indicative of what the problem is.
We have tried to throw as much errors as possible upfront during
configuration. We might have missed a few. It would be great if you
can provide such cases to us.
> One of the difficulties for me has been that the obtuse errors combined with
> somewhat sparse documentation that included only dumbed down examples left
> me almost completely in the dark. I found myself just guessing, as if I was
> trying to learn a new language without a reference. Next time I need to go
> back to defining entities, I will be in the same boat, having forgotten most
> of the quirks that I encountered and somehow solved through lots of
> guesswork. It's not a task that most developers will work at on a daily
> basis.
We are trying to improve the documentation but it is not possible to
cover everything about Hibernate in ColdFusion documentation.
Hibernate in itself is huge and it is well documented. There is no
point in duplicating the same thing in our docs and that is why we
have given the links for hibernate reference in the doc where ever
possible.You can also refer to the Hibernate books. (IMO, everyone
using ORM should get a copy of "Java Persistence with Hibernate" or
"Hibernate in Action"). Apart from that, there are quite a few
resources available on the net including the blogs by Mark Mandel, Bob
Silverberg, Ray Camden, Brian Kotek, me and many more. And last but
not the least, this mailing group is the one of the most valuable
resource available for folks using CF-ORM. Having said that, we ARE
trying to make our documentation better.
Rupesh.
-- You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
On May 7, 7:19 pm, Nando <d.na...@gmail.com> wrote:
> Oh, one more thing. I don't know what time pressure you are under to close
> this bug, but I think we would need a focused effort and some months time
> to collect these errors for you at a designated collection point. I can
> understand why you didn't get much feedback. I only work on
> coding entities once every several months. We would need more time to get
> you this information.
Sure.. Keep sending them in. We will collate all such issues and try
to get them fixed.
-- You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
Adam and Nando,
It would be great if you could send us one sample which we could use
to replicate it at our end.
Rupesh.
On May 7, 7:22 pm, adam drew <epne...@gmail.com> wrote:
> Hey Rupesh,
> What about those wierd FK Constraint errors during schema update? Some,
> details from hibernate show up in the stack trace but the error detail is
> blank (or vague i don't remember what it says exactly) regarding the
> component and constraint throwing the error.. I haven't personally created
> one of these errors recently but I remember they are tough to track down,
> most of the time I had to drop the tables i was trying to update.... Would
> there be any way to show the hibernate error details from the stack in the
> error detail message?
> Regards,
> Adam D.
-- You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
Thank you for your efforts and your proactive stance. I'll make a point to
post any hibernate errors that are difficult to decipher as they happen in
my workflow.
On Sun, May 9, 2010 at 9:35 PM, Rupesh <ruku...@adobe.com> wrote:
> Adam and Nando,
> It would be great if you could send us one sample which we could use
> to replicate it at our end.
> Rupesh.
> On May 7, 7:22 pm, adam drew <epne...@gmail.com> wrote:
> > Hey Rupesh,
> > What about those wierd FK Constraint errors during schema update? Some,
> > details from hibernate show up in the stack trace but the error detail is
> > blank (or vague i don't remember what it says exactly) regarding the
> > component and constraint throwing the error.. I haven't personally
> created
> > one of these errors recently but I remember they are tough to track down,
> > most of the time I had to drop the tables i was trying to update....
> Would
> > there be any way to show the hibernate error details from the stack in
> the
> > error detail message?
> > Regards,
> > Adam D.
> --
> You received this message because you are subscribed to the Google Groups
> "cf-orm-dev" group.
> To post to this group, send email to cf-orm-dev@googlegroups.com.
> To unsubscribe from this group, send email to
> cf-orm-dev+unsubscribe@googlegroups.com<cf-orm-dev%2Bunsubscribe@googlegrou ps.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/cf-orm-dev?hl=en.
-- Nando M. Breiter
The CarbonZero Project
CP 234
6934 Bioggio
Switzerland
-- You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
Take your database server offline, and request an app with the ORM
turned on. An error is thrown without a message or detail. Of type
java.lang.NullPointerException
The console logs a better message: "Could not create a connection to
the database server. Attempted reconnect 3 times. Giving up" but it
would be better to see this in the error struct.
thanks!
.brett
On May 2, 11:49 am, Rupesh <ruku...@adobe.com> wrote:
> Hi All,
> We are still waiting to hear on this. Could you please take some time
> out, think about it and let us know the specific issues before it is
> too late?
> Rupesh
> --
> You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
> To post to this group, send email to cf-orm-dev@googlegroups.com.
> To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/cf-orm-dev?hl=en.
-- You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
How about an expanded validation framework for ORM? Right now, you can
add validation arguments inside your CFPROPERTY, but there is no way
to get all the errors before trying a SET or a SAVE (think of a form
submitting user input). Each individual cfproperty throws an
exception, one at a time. You know the inner-workings of this better
than I do. It's not friendly at all as it stands right now.
3 methods come to mind which would be super cool:
- validate()
- getErrors
- hasErrors()
We have been using Hyrule (http://hyrule.riaforge.org/) by Dan Vega to
go around this shortcoming, and we really like it. It would be great
if something like this could be implemented in the next CF update.
From what I gather, Dan is duplicating Hibernate functionality, so his
method might be easier to implement behind the scenes, if HIbernate
already has support for this.
-- You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
I believe you are referring to the hibernate validation framework. This
actually comes as a separate framework to hibernate.
It has the functionality you are looking for, but it would be interesting to
see how the engineers allow for extension through cfml.
Without being able to extend the validation framework, it's not very useful.
But it is a great feature request. Add it to the tracker, I'll vote for it.
Mark
Sent from my mobile device
On 12 May 2010 18:04, "Evagoras" <evago...@gmail.com> wrote:
Hi Rupesh.
How about an expanded validation framework for ORM? Right now, you can
add validation arguments inside your CFPROPERTY, but there is no way
to get all the errors before trying a SET or a SAVE (think of a form
submitting user input). Each individual cfproperty throws an
exception, one at a time. You know the inner-workings of this better
than I do. It's not friendly at all as it stands right now.
3 methods come to mind which would be super cool:
- validate()
- getErrors
- hasErrors()
We have been using Hyrule (http://hyrule.riaforge.org/) by Dan Vega to
go around this shortcoming, and we really like it. It would be great
if something like this could be implemented in the next CF update.
From what I gather, Dan is duplicating Hibernate functionality, so his
method might be easier to implement behind the scenes, if HIbernate
already has support for this.
-- You received this message because you are subscribed to the Google Groups
"cf-orm-dev" group.
T...
-- You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
On Wed, May 12, 2010 at 9:03 AM, Evagoras <evago...@gmail.com> wrote:
> How about an expanded validation framework for ORM?
I would vote for that. It's really essential and part of my own scaffolding
framework.
Kevin
-- You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To post to this group, send email to cf-orm-dev@googlegroups.com.
To unsubscribe from this group, send email to cf-orm-dev+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.