greptilian logo

IRC log for #javaee, 2014-03-05

Please see http://irclog.greptilian.com/javaee for which days have been logged.

| Channels | #javaee index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
00:47 _1_geomen5 joined ##javaee
00:47 _1_geomen5 hi
01:03 kobain joined ##javaee
01:48 Bombe joined ##javaee
03:15 NationalCoder joined ##javaee
03:50 whaley joined ##javaee
04:17 ramsrib joined ##javaee
04:41 MasterProgram joined ##javaee
06:54 sfisque joined ##javaee
07:30 AlexCzar joined ##javaee
07:30 sajjadg joined ##javaee
07:31 fabioportieri joined ##javaee
07:33 fabioportieri good morning
07:33 NationalCoder joined ##javaee
07:37 sajjadg morning
07:47 jamesliu joined ##javaee
08:12 sajjadg joined ##javaee
08:58 sajjadg where do we paste?
09:00 SoniEx2 joined ##javaee
09:00 TinkerTyper joined ##javaee
09:00 jamesliu joined ##javaee
09:00 acuzio ~ paste
09:01 acuzio !paste
09:01 acuzio there used to be a bot here ., if i am not wrong
09:02 sajjadg he's dead :-/
09:03 sajjadg http://hastebin.com/tiyanajuxe.py
09:03 sajjadg so nice
09:06 neuro_sys joined ##javaee
09:12 neuro_sy1 joined ##javaee
09:23 balo javaeebot lucky charm
09:23 javaeebot balo: http://dictionary.reference.com/browse/charm
09:24 neuro_sy1 javaeebot lucky SQLState: 01H20
09:24 javaeebot neuro_sy1: http://pic.dhe.ibm.com/infocenter/cmgmt/v8r4m0/topic/com.ibm.administeringcm.doc/trs20064.htm
09:42 fabioportieri wow, new bot
09:58 neuro_sys joined ##javaee
09:59 sajjadg joined ##javaee
11:13 pdurbin sajjadg: paste where you want but I like http://danceb.in (by a friend)
11:15 sajjadg pdurbin: thanks. hastie.com is cool too http://hastebin.com/tiyanajuxe.py
11:16 neuro_sys gist.github.com is cool too :P
11:16 pdurbin you're both right
11:18 sajjadg github is a little slow for me!
11:18 pdurbin you can use dancebin from the command line
11:20 sajjadg =O
11:20 pdurbin with `nopaste`
11:20 sajjadg font in chrome is OK
11:20 pdurbin "install App::Nopaste::Service::Dancebin and export NOPASTE_SERVICES=Dancebin in your .bashrc"
11:21 pdurbin http://search.cpan.org/dist/App-Nopaste/
11:41 drspockbr joined ##javaee
11:50 liecno_ joined ##javaee
11:53 Fubar^_ joined ##javaee
11:56 wicketn02b joined ##javaee
11:56 whaley joined ##javaee
11:56 Bombe joined ##javaee
11:56 Bombe joined ##javaee
12:17 TxRx127 joined ##javaee
12:42 TxRx127 left ##javaee
13:28 cem1 joined ##javaee
13:42 cem1 i'm looking for some sample report(simple to complex) so could generate using jasper :/
15:33 jieryn joined ##javaee
15:33 jieryn joined ##javaee
15:35 AlexCzar joined ##javaee
15:42 CJ_ My class loader has suddenly stopped being able to load java.text.Normalizer.  Any suggestions as to where to look to debug?
15:43 Fubar^ Maybe you're using java 1.5
15:46 CJ_ I'm using 1.7u45.  It was working and just suddenly stopped.
15:46 Fubar^ Did you create the classloader yourself? maybe you used the wrong parent
15:52 CJ_ No.  It's in the jasypt library.
15:54 Fubar^ How does the stacktrace look like?
15:55 AlexCzar joined ##javaee
16:00 CJ_ It's giving me a ClassNotFoundException.  Haven't been able to dig up a full stack trace.
16:02 sfisque my first guess is it has a static initializer and some class referenced in it is not on the same classloader
16:03 AlexCzar joined ##javaee
16:12 CJ_ It's part of the JDK.  It lives in rt.jar
16:16 CJ_ When I call the following in my code, I don't get the exception.
16:16 CJ_ Thread.currentThread().getContextClassLoa​der().loadClass("java.text.Normalizer");
16:16 CJ_ So I'm not sure why it occurs in jasypt.
16:16 sfisque what does jasypt do?
16:16 sfisque javaeebot lucky jasypt
16:16 javaeebot sfisque: http://www.jasypt.org/
16:17 CJ_ It provides password hashing and encryption.
16:17 sfisque ah.  i'm guessing there is a security profile in place that prevents Class.forName to execute
16:17 sfisque it's encryption
16:17 CJ_ I have no security manager installed.  And it was working just recently.
16:18 sfisque did you update anything (maybe maven pulled in a new version?)
16:18 CJ_ No, that's the puzzling part.  I didn't change anything in my system.
16:18 sfisque i know YOU didnt change anything but if you're using maven and one of your deps changed its dep, you'd get that new revision
16:19 sfisque one of the dangers of maven
16:19 CJ_ None of my deps changed.  It was literally working one minute and then not the next.
16:20 CJ_ Not sure why it suddenly can't find this class.
16:22 sfisque dunno
16:23 CJ_ My sentiments exactly.
16:24 Fubar^ How are you running it?
17:14 CJ_ In tomcat using spring.
17:15 CJ_ Although I think my issue might be something different.  Having issues troubleshooting in spring.
17:34 CJ_ Okay, so somehow I was looking at the wrong thing.  Apparently my error is a JVM crash when converting a StringBuffer to a String.
17:34 CJ_ It's just weird.
17:35 sfisque jvm crash?
17:35 CJ_ A fatal error has been detected by the Java Runtime Environment:
17:35 CJ_ Problematic frame:
17:36 CJ_ V  [libjvm.so+0x5fb999]  java_lang_String::utf8_length(oopDesc*)+0xd9
17:36 sfisque ick.  sounds like somthing corrupted.
17:36 CJ_ Not sure.
17:43 CJ_ I can see the information in the debugger, but as soon as it calls toString the JVM crashes.
17:52 neuro_sys joined ##javaee
17:52 neuro_sys joined ##javaee
17:59 CJ_ This is weird.  If I don't run it in the debugger, then it doesn't crash.
18:06 CJ_ And of course when I finally track it down it turns out to be a simple error.  I don't know why the debugger kept crashing.
18:07 AndroidLoverInSF joined ##javaee
18:22 cem1 sajjadg, hi
18:22 cem1 can you help me
18:35 sajjadg hi cem1
18:35 sajjadg what's ur problm
18:44 neuro_sys CJ_: that sounds like a Heisenbug. :P
18:45 neuro_sys is it Java, though?
18:50 sfisque CJ_ is this openjdk or oracle jdk?
18:53 acuzio joined ##javaee
18:55 acuzio left ##javaee
19:02 cem1 sfisque to display popup sud i need to use @sessionscoped ?
19:02 cem1 referring this
19:02 cem1 http://www.primefaces.org/showcase/ui/dialogFrameworkBasic.jsf
19:03 cem1 currently using @viewScoped
19:03 sfisque VS should be fine
19:03 acuzio joined ##javaee
19:03 sfisque as long as it's not RS
19:04 acuzio left ##javaee
19:04 cem1 in viewscope its not displaying
19:04 acuzio joined ##javaee
19:04 cem1 but sessionscope it displays
19:04 sfisque sounds like a bug
19:06 cem1 bug in my application :(
19:07 cem1 i made a sample prj its working there but in my prj its not working :'(
19:07 cem1 @viewScoped
19:11 CJ_ joined ##javaee
19:13 freebooter joined ##javaee
19:14 sajjadg cem1: http://hastebin.com/weqesugena.xml
19:17 cem1 i guess this is jrxml
19:17 cem1 how to run this :?
19:25 cem1 sfisque, how viewscope works
19:25 cem1 eith respect to popup
19:25 cem1 http://www.primefaces.org/showcase/ui/dialogFrameworkBasic.jsf
19:25 sfisque the backing bean should be in scope until the user leaves the page
19:35 cem1 sfisque, in this case user doesnt leave the page
19:35 sfisque is the backing bean instantiated or managed?
19:35 cem1 managed
19:36 sfisque what version of JSF and what version of primefaces?
19:37 cem1 primeface 4 , JSF 2.2
19:38 sfisque stumped
19:55 CJ_ joined ##javaee
20:02 cem1 as far as i know this shud work in view scoped
20:03 cem1 since popup gets included part of ur page
20:03 cem1 isnt it sfisque
20:04 sfisque hypothetically yes.  i'm guessing the devil is in the details
20:11 AndroidLoverInSF joined ##javaee
20:24 AndroidLoverInSF joined ##javaee
20:30 sajjadg cem1: open it with ireport and you see a report
20:37 AndroidLoverInSF joined ##javaee
20:40 firebird1 joined ##javaee
20:41 AndroidLoverInSF joined ##javaee
20:41 firebird1 sajjadg, link pls
20:41 sajjadg firebird1: do you know what it is?
20:42 firebird1 jrxml ?
20:44 sajjadg firebird1: http://hastebin.com/weqesugena.xml
20:44 sajjadg firebird1: yeah. cem1 requested one and I gave him one
20:45 firebird1 lol cem1 and firebird1 both are same :D
20:47 AndroidLoverInSF joined ##javaee
21:58 Naros joined ##javaee
22:06 Naros so since it seems hibernate is quiet, maybe one of you JPA gurus can help confirm my suspicions :P
22:07 Naros If I am querying a parent but wanting to scroll a result set of parent objects but have each parent object's collection of children initialized, I cannot do that in 1 query, the init has to be in a substep?
22:08 whartung eh?
22:08 Naros lol.  i has vendor entity which has collection of address entities.
22:09 Naros i want to return a scrollable resultset of vendors
22:09 Naros but have all addresses loaded for each vendor
22:09 Naros i dont think i can do that in 1 jpa query
22:09 whartung well, "that depends"
22:09 whartung are the collection lazy or eagerly fetched?
22:09 Naros i believe the collection init has to be done separately due to inability to scroll that type of query.
22:09 whartung how are you scrolling?
22:09 Naros im setting the collection to be init'd eagerly but by default it's lazy.
22:10 Naros scrolling by unwrapping the TypedQuery into a Hibernate-based ScrollableResults
22:11 Naros my scrollable wrapper basically forwards the cursor, gets the row count, backs it up to the start point and then extracts the X number of rows per view.
22:12 Naros but i get a violation on scroll when using a fetch on a collection, so Im thinking this isn't possible.
22:13 whartung ah
22:13 whartung yea I don't know about hibernate
22:13 Naros np
22:13 whartung if the collections are lazy
22:14 whartung then you should just need to "tickle" the collection on each entity as its returned
22:14 Naros aye.
22:14 whartung i.e. for each vendor: vendor.getAddresses().size()
22:14 whartung that'll load the colletion
22:14 whartung (should)
22:14 Naros Was just curious if there was a more elegant way :P
22:14 whartung yea, likely not
22:15 Naros k thanks.
22:15 whartung yw
22:15 Naros in that case, batchsize would likely be helpful yah?
22:16 whartung can't say, sounds like a hibernate thing
22:16 Naros hm thought that was jpa
22:16 whartung batch size might reflect how many objects are fetched at a time
22:16 Naros nah it is hibernate hehe
22:17 Naros yah it basically says when it goes to load that collection, it seems how many entities have unloaded collections of that signature and will load up to the size value specified.  so if I loop around 25 and set batchsize to say 25, it should only issue approximately 1-2 selects at most.
22:17 Naros splits the resultset out to parents after the query
22:18 whartung ah nice
22:18 Naros aye
22:18 Naros nice performance boost usualy
22:18 whartung yea
22:18 whartung beats 25 queries
22:18 Naros yep
22:18 Naros i decided to ditch the hibernate criteria stuff and went straight jpa and haven't looked back
22:18 Naros love jpa 2.1
22:18 whartung sweet
22:19 Naros Feels cleaner, tad more verbose at times
22:19 whartung I've not used JPA Criteria
22:19 whartung I didn't care so much for it when I looked at it
22:19 Naros ah
22:20 whartung we use the EclipseLink native API (they call it ExpressionBuilder)
22:20 Naros string-based or meta-model based?
22:20 whartung model based
22:20 Naros nice
22:20 Naros I think right now Hibernate's equivalent is all string based
22:21 Naros so to use metamodel requires you to use JPA directly.
22:21 whartung wellI guess it's a mix
22:21 whartung eb.get("principalName").likeIgnoreCase("%" + getPrincipalName() + "%")
22:21 whartung so, I'd say it was string based
22:21 Naros ah yah then very much like hibernate's
22:21 whartung so that's simple expression
22:21 whartung yea
22:22 Naros compared to http://pastebin.com/vPFM4z4R
22:22 Naros lol
22:23 whartung is that jpa?
22:23 Naros Yep
22:23 Naros Except QueryMode is something we created
22:23 whartung yea
22:23 Naros It takes our search api's begins with, ends with, contains, exact api and maps it to JPA's equivalent.
22:23 Naros and does the "%" magics
22:24 whartung http://pastie.org/private/lkyimavllrj5xdpkhw5dg
22:24 whartung that's an example of one of our routines building a query
22:24 Naros yep looks a lot like my methods except probably much shorter :P
22:25 Naros A bit of the equals/like stuff can be abtsracted to one liners
22:25 Naros pass in metamodel field, value and have it pass back a predicate.
22:26 Naros but i just dislike the string stuffs
22:26 Naros change a bean's property name and then all the dao's gotta change :D
22:26 Naros or methods, etc.
22:26 whartung yea
22:26 Naros and finding them is a byatch
22:26 whartung yea
22:26 Naros with MM; crap don't compile :P
22:26 whartung si
23:12 sfisque joined ##javaee
23:29 aspire joined ##javaee
23:39 aspire hello
23:47 pdurbin aspire: what's new?
23:47 aspire nothing pdurbin just been doing some jfx
23:47 aspire i would really like it if i knew how to make things look pretty but i cant : (
23:47 aspire hbu?
23:51 pdurbin super busy. must ship
23:54 AndroidLoverInSF joined ##javaee

| Channels | #javaee index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

Please see http://irclog.greptilian.com/javaee for which days have been logged.