Time |
S |
Nick |
Message |
00:21 |
|
|
SoniEx2 joined ##javaee |
00:39 |
|
|
sfisque joined ##javaee |
02:40 |
|
pdurbin |
huh. this just got pulled into our code as a dependency: omnifaces - OmniFaces - to make JSF life easier - Google Project Hosting - https://code.google.com/p/omnifaces/ |
03:17 |
|
|
kobain joined ##javaee |
03:44 |
|
|
ashwinkumar joined ##javaee |
04:07 |
|
|
kotten joined ##javaee |
04:08 |
|
|
kobain_ joined ##javaee |
05:14 |
|
|
cem__ joined ##javaee |
05:14 |
|
cem__ |
hi sfisque |
06:10 |
|
|
kotten joined ##javaee |
06:12 |
|
sfisque |
greets cem__ |
06:14 |
|
|
cem___ joined ##javaee |
06:14 |
|
cem___ |
its not possible to satisfy clients |
06:16 |
|
sfisque |
clients are not meant to be satisfied. they are meant to be smited about the head and shoulders. nothing more… nothing less |
06:27 |
|
cem___ |
lol !! |
07:02 |
|
|
Voyage_ joined ##javaee |
07:09 |
|
|
ramsrib joined ##javaee |
07:27 |
|
|
AlexCzar joined ##javaee |
07:32 |
|
|
cbgx74 joined ##javaee |
07:37 |
|
|
jink joined ##javaee |
07:39 |
|
|
TxRx127 joined ##javaee |
07:40 |
|
|
TxRx127 left ##javaee |
07:52 |
|
|
jink left ##javaee |
08:04 |
|
|
neuro_sys joined ##javaee |
08:24 |
|
|
Voyage_ joined ##javaee |
08:42 |
|
|
AlexCzar|2 joined ##javaee |
09:38 |
|
|
cem__ joined ##javaee |
11:36 |
|
|
drspockbr joined ##javaee |
11:58 |
|
cem__ |
can help it already started using jsf for the project |
11:58 |
|
cem__ |
cant* |
12:02 |
|
acuzio |
So its one of those projects thats not really meant to be finished |
12:25 |
|
CJ_ |
Anyone familiar with Shiro and Spring? I'm changing from the ini setup to a spring setup and now my app is crashing while creating beans. |
12:27 |
|
acuzio |
very vague question |
12:28 |
|
acuzio |
I am familiar with Shiro and Spring though |
12:31 |
|
CJ_ |
The problem is that I have a bean with a DateTime field. Calling the getter or setter causes the thread to crash with no exception. Accessing the variable internally works fine. |
12:32 |
|
CJ_ |
It was working just fine until I removed the shiro ini file and the environment loader listener. |
12:32 |
|
CJ_ |
Other getter and setter methods to the bean work fine. But those are all String fields. |
12:39 |
|
CJ_ |
And I must correct myself. I'm not creating a bean, I'm just calling new Class(). Could that be the problem? |
12:39 |
|
CJ_ |
What happens is that I query mongo for my object, get back a DBObject and then copy the values from that to my new class object. |
12:42 |
|
CJ_ |
acuzio? |
12:42 |
|
acuzio |
hey.. |
12:43 |
|
acuzio |
Will have to see some code |
12:43 |
|
acuzio |
to have a chance of anwering this |
12:46 |
|
CJ_ |
Not sure what exactly to show you. The code is just creating a new Object, then calling setters and passing in the data from the DBObject returned from mongo. |
12:47 |
|
CJ_ |
It's called from inside my Realm which is instantiated according to the spring example on the shiro page. |
12:50 |
|
CJ_ |
This is my app context. http://pastie.org/8806345 |
13:04 |
|
CJ_ |
I am completely baffled. No matter where I put it, creating new Object and calling getDateTime causes the thread to crash. |
13:04 |
|
CJ_ |
It shouldn't even be using spring at that point. |
13:24 |
|
CJ_ |
If I change the variable from DateTime to Date, it doesn't die. This is bizarre. |
13:45 |
|
CJ_ |
acuzio, I found the problem. The program was referencing an old jar. That was a huge pain to figure out. |
13:55 |
|
|
Voyage_ joined ##javaee |
14:07 |
|
acuzio |
drat |
14:12 |
|
|
Naros joined ##javaee |
14:21 |
|
|
ilhami joined ##javaee |
14:21 |
|
ilhami |
Hey |
14:21 |
|
* tjsnell |
hugs ilhami |
14:21 |
|
Naros |
morning. |
14:22 |
|
ilhami |
Morning? :S it's 15.23. Do you live in US? |
14:22 |
|
Naros |
Yep |
14:22 |
|
Naros |
It's 8:23am here :) |
14:22 |
|
CJ_ |
acuzio, drat? |
14:22 |
|
acuzio |
CJ_: Mis-matched jars are a hard problem to track - use maven |
14:23 |
|
Naros |
Aye, after I switched from manually managing jars to maven, I haven't looked back |
14:23 |
|
ilhami |
you dont have to use maven |
14:23 |
|
ilhami |
:S |
14:24 |
|
acuzio |
sure but you are better off using mvn |
14:24 |
|
tjsnell |
no, you don't have to use java either |
14:24 |
|
tjsnell |
but you damn well should |
14:24 |
|
ilhami |
hmm I have never used it. I want to learn it. |
14:24 |
|
acuzio |
of course all problems would be solved if like you simply type in bytecodes |
14:25 |
|
ilhami |
dude :S do you have experience with Eclipse? |
14:25 |
|
acuzio |
ilhami: tjsnell does |
14:25 |
|
ilhami |
well I dont talk to him. |
14:25 |
|
Naros |
acuzio: imo that would only move the problems to a lower layer with little abstraction :P |
14:26 |
|
tjsnell |
dude! |
14:26 |
|
acuzio |
Naros: abstraction ha |
14:26 |
|
Naros |
like watching people write assembly blocks in native code and making a mess |
14:26 |
|
acuzio |
hey , whats wrong with that |
14:26 |
|
acuzio |
ilhami: He is an expert in Eclipse |
14:26 |
|
acuzio |
You should ask him |
14:26 |
|
Naros |
when their assembly ends up being 2x-4x longer than the compiled compiler's assembly, there is a huge issue with it :P |
14:27 |
|
acuzio |
nonsense , straight assembly coding FTW man |
14:27 |
|
Naros |
lol |
14:27 |
|
acuzio |
dont forget it must be written into a hex editor |
14:27 |
|
Naros |
not when you are tasked with squeezing every drop of power outta the CPU |
14:28 |
|
acuzio |
in that case i would use ed |
14:29 |
|
Naros |
but anyway, setting up maven in eclipse is quite simply. click new project -> maven project and add dependencies. |
14:29 |
|
Naros |
it's not overly complicated at all |
14:29 |
|
acuzio |
wasnt there a plugin as well m2e or something like that |
14:29 |
|
Naros |
yerp but MyEclipse 2013 has it all built in iirc. |
14:30 |
|
Naros |
Wish I still didn't need to use ME10.1 for one project :S |
14:30 |
|
acuzio |
I am never sure why an IDE dependency is acceptable |
14:30 |
|
Naros |
but ME11 aka (2013) doesn't quite support some of the features that project currently uses for bytecode weaving |
14:31 |
|
Naros |
last time I tried, AJDT wouldn't install |
14:31 |
|
acuzio |
aah - AJDT was good |
14:32 |
|
Naros |
yep, only beef I dont like about using AspectJ is that for whatever reason weaving it into a jar project dependency exposes the woven bytecode functions in my intellisense screens in the main project |
14:33 |
|
Naros |
i didn't care for seeing stuff like _someSpecialMethodCall() |
14:33 |
|
acuzio |
yup - it does that |
14:33 |
|
Naros |
would be ok if that junk was just hidden from intellisense to avoid programmer mistakes |
14:34 |
|
acuzio |
One of the reasons i moved away from Eclipse was that problem |
14:34 |
|
acuzio |
IDEA is slighly better |
14:34 |
|
tjsnell |
s/slightly/massively/ |
14:34 |
|
Naros |
I've tried IDEA and I think I still have it installed. I just never could get acclimated to it I guess. |
14:35 |
|
acuzio |
I un-installed EClipse and stuck to IDEA for a week ; havent looked back since then |
14:35 |
|
Naros |
Having used ME for 10+ years, it's always painful to change. |
14:35 |
|
|
ramsrambo joined ##javaee |
14:36 |
|
Naros |
Hell, if Microsoft ever changed something major with VS, I'd probably be screwed as well since I use that heavily as well lol. |
14:36 |
|
acuzio |
I surprised myself by actually using IDEA for writing a Markdown wiki |
14:36 |
|
tjsnell |
Naros: how long did you try? |
14:36 |
|
Naros |
IDEA? |
14:36 |
|
Naros |
Few days |
14:36 |
|
CJ_ |
acuzio, I was using maven. It was an issue in the pom of a dependency. |
14:36 |
|
tjsnell |
personally I think anything under 30 days in a new IDE isn't a sufficient test |
14:36 |
|
|
ramsrambo left ##javaee |
14:37 |
|
acuzio |
CJ_: welcome to the Java ecosystem its 2014 and we still dont have a proper dependency management system - |
14:37 |
|
tjsnell |
gradle is getting closer |
14:37 |
|
Naros |
you're probably right tj; but new IDE impacts productivity too and so would need to do it during downtimes I think or play after hours ofc. |
14:37 |
|
acuzio |
tjsnell: are you using it seriously ? |
14:37 |
|
Naros |
Gradle is pretty good and it can work in conjunction with Maven repos. |
14:37 |
|
CJ_ |
Naros, Doesn't MyEclipse cost? |
14:38 |
|
tjsnell |
no |
14:38 |
|
tjsnell |
many folks I have a lot of respect for are |
14:38 |
|
tjsnell |
I'm waiting on a bit better tooling |
14:38 |
|
Naros |
I pay for it but I think there is a free version. |
14:38 |
|
Naros |
At least a trial if not. |
14:38 |
|
Naros |
Well should say my job pays for it :D |
14:38 |
|
CJ_ |
I just use the base Eclipse and add the plugins that I need. |
14:38 |
|
acuzio |
hmmm - next project may be |
14:39 |
|
Naros |
I had to learn Gradle specifically for compliing hibernate |
14:39 |
|
Naros |
They make extensive use of it. |
14:39 |
|
CJ_ |
Is that new? I don't recall that being the case. |
14:39 |
|
Naros |
What's that CJ_? |
14:40 |
|
acuzio |
CJ_: I used EClipse from 1.0 to about Indigo ... would install the base version and then add JDT, CDT etc. Went to IDEA for a week - and thats it the difference is massive |
14:40 |
|
CJ_ |
Naros, Hibernate using Gradle. I don't recall that being the case. |
14:40 |
|
Naros |
Been that way throughout all of v4 at least. |
14:40 |
|
CJ_ |
acuzio, I tend not to install too many plugins. I think m2e is all I have installed currently. |
14:40 |
|
acuzio |
same here , i would keep it very light and fast - |
14:41 |
|
Naros |
I had to customize it as far back as around 4.1 or 4.2 so perhaps the jump from 3.6 to 4 is where it happened. Couldn't say for sure. |
14:41 |
|
acuzio |
very customized# |
14:41 |
|
CJ_ |
I used IDEA several years ago but never stuck with it. Don't remember why except for the cost. |
14:41 |
|
acuzio |
Only software that i actually willingly pay for - Intellij Ultimate edition |
14:42 |
|
CJ_ |
I may look into it again, but I've been happy with Eclipse. |
14:42 |
|
acuzio |
I think a big push now is that the Big G is basing the Android Dev Toolkit on IDEA |
14:44 |
|
acuzio |
In the Java world we are sort of spoiled in that regard - C++ devs still use SCons and/or Make with VS or emacs |
14:45 |
|
Naros |
yah CMake, ugh |
14:45 |
|
Naros |
build tools are quite dated imo |
14:46 |
|
tjsnell |
with my fully loaded macbookpro, Idea Ultimate and some other tools my mechanic still outspends me on tools |
14:46 |
|
acuzio |
mechanic ? |
14:46 |
|
acuzio |
you mean car mechanic ? |
14:46 |
|
tjsnell |
auto |
14:46 |
|
Naros |
then maybe your car mechanic can fix mah car troubles :D ? |
14:47 |
|
tjsnell |
getting it here may not be worth it :) |
14:47 |
|
acuzio |
you cant compare the physical world with what we do tjsnell ., - |
14:47 |
|
tjsnell |
I can't? |
14:47 |
|
Naros |
touche TJ |
14:47 |
|
tjsnell |
I just did |
14:47 |
|
Naros |
It's gonna be making a trip to trade in this year, cannot wait |
14:47 |
|
acuzio |
Its a false comparison |
14:47 |
|
tjsnell |
it cracks me up that a well paid "professional" will gripe about a couple of hundred for a tool that helps them do their job |
14:48 |
|
acuzio |
Naros: tjsnell lives in balmy country you know that right |
14:48 |
|
tjsnell |
no it's not |
14:48 |
|
Naros |
balmy? |
14:48 |
|
Naros |
I am not familiar with the reference, sorry. |
14:48 |
|
acuzio |
Partially mad, sun-soaked, geriartrics |
14:49 |
|
tjsnell |
https://www.dropbox.com/s/lypw6blahy2tyfh/Screenshot%202014-02-27%2009.50.10.png |
14:49 |
|
Naros |
Oh Flordia? |
14:49 |
|
Naros |
at least that's my opinion of those from Florida |
14:49 |
|
acuzio |
tjsnell: Oh i have no problems at all with spending money on tools i consider important for my work , at last count i had 17 pieces of equipment that feed of IP addresses from my DHCP server |
14:49 |
|
acuzio |
Naros: bingo :-) |
14:50 |
|
Naros |
Ah then he's not too far :D |
14:50 |
|
Naros |
just a few hours |
14:50 |
|
tjsnell |
acuzio: my comments weren't directed at you :P |
14:50 |
|
tjsnell |
where are you naros? |
14:51 |
|
acuzio |
am i seeing the start of a new wonderful romance ? |
14:51 |
|
Naros |
aye, I'd rather pay for tools that save me time so I can spend that time doing personal research to better myself than to spend it coding something for someone else that could have been done a lot faster |
14:51 |
|
acuzio |
Naros: you should know that tjsnell is older than the hills |
14:51 |
|
tjsnell |
I still don't understand your obsession with my age |
14:51 |
|
acuzio |
what mine ? |
14:51 |
|
Naros |
So what, I'm almost over 40 too, pfft. |
14:52 |
|
tjsnell |
Naros: I'm in Atlanta this week, damn cold |
14:52 |
|
tjsnell |
Weather for Atlanta, GA · 28°F (-2°C) · Humidity: 34% · Clear · Wind: NW at 18 mph |
14:52 |
|
Naros |
Aye, nashville here. |
14:52 |
|
Naros |
It's 32 here. |
14:52 |
|
Naros |
Wanna know where all the nice 65-70 degree weather went from a week ago |
14:53 |
|
acuzio |
tjsnell: it started off as something me and ron would joke about ., its just an easy shot to take |
14:53 |
|
tjsnell |
it's a weird shot |
14:53 |
|
tjsnell |
if I cared I'd never have said my age |
14:53 |
|
Naros |
Age is just a number anyhow. |
14:54 |
|
acuzio |
course it isnt - ask tjsnell , he was there when numbers were invented |
14:54 |
|
Naros |
Doesn't always signify one's physical or mental state. |
14:54 |
|
acuzio |
tjsnell: see , easy shot |
14:54 |
|
tjsnell |
hands up for everyone that found that humorous |
14:55 |
|
* acuzio |
has both hands up in the air |
14:55 |
|
Naros |
found it more lame than humorous |
14:55 |
|
Naros |
:D |
14:55 |
|
acuzio |
oh come on - |
14:55 |
|
acuzio |
tjsnell: I actually dont know your age |
14:56 |
|
|
ilhami left ##javaee |
14:56 |
|
acuzio |
having said that - those jokes have run their course i take it |
14:57 |
|
Naros |
I would concur. Probably more hurtful at this stage it seems. |
14:57 |
|
* acuzio |
nods |
14:57 |
|
Naros |
Or irritating and frustrating |
14:57 |
|
tjsnell |
haha, ilhami couldn't take it anymore seeing my name |
14:57 |
|
tjsnell |
neither, just curious actually |
14:57 |
|
acuzio |
has ilhami left ? |
14:57 |
|
Naros |
yah i saw the spatter in the channel few days back |
14:57 |
|
Naros |
didn't quite get the whole issue |
14:57 |
|
tjsnell |
he just departed |
14:58 |
|
acuzio |
I have departs, joins etc. muted |
14:58 |
|
acuzio |
Naros: What was the spatter about ? |
14:58 |
|
Naros |
iirc, it was a convo regarding personal traits that had no relevance to this channel. |
14:59 |
|
acuzio |
Oh ilhami;s famed anti-gay stance |
14:59 |
|
Naros |
yah |
14:59 |
|
tjsnell |
wishing that they all be put to death |
14:59 |
|
Naros |
heh, he/she has little experience in the IT world I take it. |
14:59 |
|
Naros |
believe me, quite a number of gay professionals work in IT. |
15:00 |
|
tjsnell |
I'm guessing he'd be upset to find women in IRC too |
15:00 |
|
acuzio |
makes no difference what they are in , if you ask me, |
15:00 |
|
Naros |
acuzio: precisely. |
15:00 |
|
Naros |
friend is a friend, coworker a coworker. meh |
15:00 |
|
acuzio |
I sometimes do wish i was gay |
15:00 |
|
Naros |
no you doubt. |
15:01 |
|
Naros |
*dont |
15:01 |
|
pdurbin |
if you're all done I have a JPA question/comment |
15:01 |
|
acuzio |
Easier Sex ., thats for sure |
15:01 |
|
Naros |
pdurbin: whats up? |
15:01 |
|
pdurbin |
acuzio: please stop |
15:01 |
|
acuzio |
pdurbin: ask your question - |
15:01 |
|
pdurbin |
I was just looking at this: "But what if the row isn’t in the database (anymore)? We get an unchecked exception: NoResultException. Is this what we expect?" -- Why you should never use getSingleResult() in JPA | Sysout.be - http://sysout.be/2011/03/09/why-you-should-never-use-getsingleresult-in-jpa/ |
15:02 |
|
pdurbin |
because I was calling em.createQuery(NAME_QUERY).setParameter("fieldName",name).getSingleResult() with some fake strings |
15:03 |
|
Naros |
ok |
15:03 |
|
pdurbin |
and I was surprised to get a runtime exception (EJBTransactionRolledbackException) |
15:03 |
|
pdurbin |
caused by TransactionRolledbackLocalException caused by NoResultException |
15:03 |
|
Naros |
Yep |
15:03 |
|
Naros |
getResultList() can return an empty list. |
15:03 |
|
Naros |
getSingleResult() in JPA doesn't return null |
15:03 |
|
pdurbin |
so should be avoid getSingleResult() like the blog post recommends? seems like it |
15:04 |
|
pdurbin |
s/be/we/ |
15:04 |
|
Naros |
iirc, if you use a JPA wrapper like Hibernate, getSingleResult() would return null because they catch and handle that case for consistency. |
15:04 |
|
pdurbin |
we're using... uh.. the JPA in glassfish 4. eclipselink, I guess |
15:04 |
|
Naros |
I use getSingleResult() but just wrap and handle NoResultException on case-by-case basis. |
15:05 |
|
Naros |
I see no reason to technically avoid using it if you expect only 1 result, either result doesn't exist or it does. |
15:05 |
|
pdurbin |
Naros: so you put the exception handling in the method (findByName for me) that calls getResultList()? |
15:06 |
|
pdurbin |
because I'm having to catch the exception in some far away part of the code. seems annoying |
15:06 |
|
Naros |
yeah or i have written a special annotation that catches the error before passing it back up the stack so that the container (or in my case spring's transaction management) doesn't do rollbacks or w/e. |
15:07 |
|
Naros |
number of ways to handle it imo but yah its one of the annoying parts of JPA that when I made the leap from Hibernate to pure JPA that caught even myself off guard. |
15:07 |
|
Naros |
i expected null; not NoResultException. |
15:07 |
|
pdurbin |
exactly |
15:07 |
|
Naros |
But here we still make use of the DAO pattern even with JPA |
15:07 |
|
pdurbin |
why am I having to catch a runtime exception... like an animal ;) let me just check for null, right? |
15:08 |
|
Naros |
so much of that exception handling falls into a few DAO methods only for us |
15:08 |
|
Naros |
pdurbin: either way, the burden is on you :P |
15:08 |
|
Naros |
try block versus if check |
15:09 |
|
pdurbin |
Naros: sure but in my try block what exception should I catch? I'm catching EJBTransactionRolledbackException right now. instead should I be generic any catch any runtime exception? |
15:09 |
|
pdurbin |
(sorry for the stupid questions) |
15:10 |
|
Naros |
i suspect if I had to guess, the JPA developers likely felt it was easier to throw NoResultException rather than rely on devs to test for null and those who don't handle cases well end up with NullPointerException exceptions and spend time traversing the stack to find the culprit when a simple NoResultException is quite explicit |
15:10 |
|
pdurbin |
(after I catch EJBTransactionRolledbackException I grovel around with getCause to finally find it's a NoResultException) |
15:10 |
|
Naros |
I would just catch NoResultException if it were me. |
15:11 |
|
|
SEx2 joined ##javaee |
15:11 |
|
pdurbin |
Naros: but I can't catch the NoResultException. I guess that's the point. well, let me try again quick |
15:11 |
|
Naros |
Really? |
15:13 |
|
pdurbin |
nope. I have to catch an earlier (higher?) exception like EJBTransactionRolledbackException and then run getCause() a couple times to find that it's a NoResultException |
15:13 |
|
Naros |
Ah; I get yah |
15:14 |
|
pdurbin |
I mean, it works fine but it seems like more code than I should need to sling |
15:14 |
|
Naros |
so this is ude to the glassfish container then I guess? |
15:14 |
|
pdurbin |
no idea |
15:14 |
|
Naros |
cause in spring world its this simple |
15:14 |
|
Naros |
http://stackoverflow.com/a/2613129 |
15:14 |
|
pdurbin |
I'm not doing anything obviously stupid? |
15:15 |
|
pdurbin |
Naros: exactly! that's what I *want* to do. just catch the NoResultException |
15:15 |
|
Naros |
aye, can do that no problem in a non-EJB container |
15:15 |
|
pdurbin |
huh |
15:15 |
|
Naros |
I dunno what bearing an EJB container may put o nyou |
15:16 |
|
pdurbin |
a world of pain ;) |
15:16 |
|
Naros |
if its wrapping some stuffs |
15:16 |
|
Naros |
Personally, I would had expected you to be capable of doing the samething as that link |
15:16 |
|
pdurbin |
yeah, me too |
15:17 |
|
Naros |
but since we still operate in a tomcat world here unfortunately, perhaps whartung or others can help |
15:17 |
|
Naros |
lemme see something |
15:17 |
|
pdurbin |
well anyway, I think the exception should at least me moved to the method that's calling getSingleResult() |
15:17 |
|
pdurbin |
that would solve my immediate problem (wanting to simply check for null) |
15:18 |
|
pdurbin |
and make it so others calling the method won't have to do the same crazy dance |
15:18 |
|
Naros |
i found a link from oracle's forums where someone suggested you catch EjbException |
15:19 |
|
pdurbin |
yep. sure. I consider that an example of a more generic runtime exception than the one I'm catching |
15:19 |
|
Naros |
or Throwable if you wanted to go to that extreme |
15:19 |
|
Naros |
but yah as I suspected, Glassfish is wrapping the NoResultException up for you |
15:19 |
|
pdurbin |
and this is a feature? |
15:20 |
|
Naros |
everything is always a feature :P |
15:20 |
|
pdurbin |
woof |
15:20 |
|
CJ_ |
I hate when things swallow exceptions. |
15:20 |
|
Naros |
it just has benefits or consequences |
15:21 |
|
|
balo joined ##javaee |
15:22 |
|
Naros |
an objectbd.com thread says if you catch the exception in the method calling getSingleResult() the app server never knows about it |
15:22 |
|
Naros |
This person is under GF3.1.2.2 |
15:22 |
|
Naros |
*objectdb.com |
15:22 |
|
Naros |
i dont know how true that is tho |
15:23 |
|
pdurbin |
Naros: have a link to that thread? |
15:23 |
|
Naros |
sure but it isn't much, 1 sec |
15:23 |
|
Naros |
http://www.objectdb.com/database/forum/633 |
15:24 |
|
pdurbin |
hmm |
15:25 |
|
Naros |
http://glassfish.10926.n7.nabble.com/Unexpected-Behavior-NoResultException-rolls-back-transaction-td20819.html |
15:25 |
|
Naros |
even that thread shows a stateless bean that catches NoResultException |
15:25 |
|
Naros |
weird. |
15:29 |
|
pdurbin |
CMT is container managed transaction? |
15:30 |
|
pdurbin |
"JPA can be used in java SE without an EJB container at all. In this case, the NoResultException will not rollback the transaction. It is rolled back because of the exception handling of the EJB container, which is something completely different from JPA." |
15:30 |
|
pdurbin |
Naros: useful thread. thanks |
15:30 |
|
Naros |
sweet. |
15:30 |
|
Naros |
glad i could help, its somewhat greek to me :P |
15:31 |
|
pdurbin |
I probably need to spend some time with long blog posts like this: Best practices in EJB exception handling - https://www.ibm.com/developerworks/library/j-ejbexcept/ |
15:31 |
|
pdurbin |
or find a good book on this stuff |
15:32 |
|
pdurbin |
here's a permalink to the most useful part of that thread (where that quote came from): http://glassfish.10926.n7.nabble.com/Unexpected-Behavior-NoResultException-rolls-back-transaction-tp20819p20826.html |
15:40 |
|
pdurbin |
emailed my team, arguing that the method I'm calling should deal with the runtime exception and return me null rather than passing the runtime exception to me |
15:48 |
|
|
sajjadg joined ##javaee |
15:52 |
|
Naros |
the joys of working in a multi-tiered dev team :P |
15:56 |
|
pdurbin |
:) |
15:56 |
|
Naros |
i dont miss it :D |
16:00 |
|
|
Matthijs joined ##javaee |
16:20 |
|
|
sheenobu joined ##javaee |
16:38 |
|
|
AlexCzar joined ##javaee |
16:54 |
|
|
neuro_sys joined ##javaee |
16:54 |
|
|
neuro_sys joined ##javaee |
16:58 |
|
whartung |
what are y'all babbling about? |
17:11 |
|
pdurbin |
whartung: EJB |
17:11 |
|
pdurbin |
your favorite :) |
17:44 |
|
whartung |
a) Exceptions should be part of your API (we've talked about that in the past), b) you have to be careful throwing exceptions across EJB boundaries, as they CAN roll back the transaction. Anything that extends RuntimeExecption will do that fro sure |
17:45 |
|
whartung |
*shouldn't |
18:04 |
|
pdurbin |
whartung: thanks. it sounds like I made the right argument to my team |
18:08 |
|
|
AndroidLoverInSF joined ##javaee |
18:08 |
|
whartung |
cool pdurbin |
18:15 |
|
|
sheenobu joined ##javaee |
18:32 |
|
|
sajjadg joined ##javaee |
18:36 |
|
pdurbin |
I will bend them to my will |
18:38 |
|
* pdurbin |
can just imagine them wriggling in the crushing grip of reason: http://www.gocomics.com/calvinandhobbes/1987/01/18/#.Uw-GH16f9N0 |
18:44 |
|
|
sajjadg joined ##javaee |
18:46 |
|
|
mite_mitreski joined ##javaee |
18:46 |
|
whartung |
seems like a better outcome than the 13 year old who was arrested for felony assault for throwing a snowball that hit a police officers arm…. |
19:34 |
|
|
sajjadg joined ##javaee |
19:54 |
|
Naros |
o.O |
20:10 |
|
|
sajjadg joined ##javaee |
20:49 |
|
|
Voyage_ joined ##javaee |
22:44 |
|
|
ilhami joined ##javaee |
22:44 |
|
ilhami |
Hey |
22:55 |
|
tjsnell |
dude! |
23:06 |
|
|
SoniEx2 joined ##javaee |
23:18 |
|
|
magyar joined ##javaee |
23:21 |
|
|
balo joined ##javaee |
23:31 |
|
|
ilhami joined ##javaee |
23:32 |
|
ilhami |
hey |
23:32 |
|
ilhami |
can anyone look at my code? |
23:33 |
|
tjsnell |
dude! |
23:33 |
|
tjsnell |
are you still mad at me for turning down your propositions of hot gay sex? |
23:37 |
|
|
AndroidLoverInSF joined ##javaee |
23:56 |
|
whartung |
tjsnell never turns me down... |
23:56 |
|
ilhami |
? |