tag:blogger.com,1999:blog-2083400580050165811.comments2023-06-02T15:10:12.074+01:00Illegal Argument ExceptionUnknownnoreply@blogger.comBlogger131125tag:blogger.com,1999:blog-2083400580050165811.post-11254698663757487802016-09-14T18:53:08.684+01:002016-09-14T18:53:08.684+01:00I find this article http://www.ibm.com/developerwo...I find this article http://www.ibm.com/developerworks/xml/library/x-nmspccontext/index.html?ca=drs- from IBM very helpful. It provide 3 approaches:<br />1) hard coded solution. Implement the NamespaceContext interface, and hard code the mapping in the code. Only works for the xml you are targeting.<br />2) read namespaces from the document. use Document.lookupNamespaceURI(String prefix) and pengshuaihttps://www.blogger.com/profile/00747775883582581353noreply@blogger.comtag:blogger.com,1999:blog-2083400580050165811.post-16672651896521941732016-08-01T22:16:19.784+01:002016-08-01T22:16:19.784+01:00For a while I thought Nashorn https://en.wikipedia...For a while I thought Nashorn https://en.wikipedia.org/wiki/Nashorn_(JavaScript_engine) would stall Rhino but commits are still happening in 2016: https://github.com/mozilla/rhinoMcDowellhttps://www.blogger.com/profile/15240682237791734569noreply@blogger.comtag:blogger.com,1999:blog-2083400580050165811.post-28014196859915165632016-08-01T21:45:05.770+01:002016-08-01T21:45:05.770+01:00Try:
https://github.com/mcdiae/iae/tree/master/cod...Try:<br />https://github.com/mcdiae/iae/tree/master/code/java/el-defer<br />https://github.com/mcdiae/iae/tree/master/code/java/el-defer-sampleMcDowellhttps://www.blogger.com/profile/15240682237791734569noreply@blogger.comtag:blogger.com,1999:blog-2083400580050165811.post-63532147005564458762016-07-08T18:21:35.598+01:002016-07-08T18:21:35.598+01:00The link to your sample code is broken.The link to your sample code is broken.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2083400580050165811.post-85137369829008756342016-06-11T01:02:02.721+01:002016-06-11T01:02:02.721+01:00Sweet! _Running the debugger_ helped me bc the off...Sweet! _Running the debugger_ helped me bc the official Rhino documentation on their debugger didn't mention js.jar to load up org.mozilla.javascript.tools.debugger.Main ... Kind of important!<br /><br />Note: I installed rhino on my Mac with Homebrew so the location is /usr/local/Cellar/rhino/1.7.6/libexec/js.jar (I used `find / -name js.jar` on the terminal) to find it.<br /><br />Good luckJorge Ohttps://www.blogger.com/profile/00994900046216065305noreply@blogger.comtag:blogger.com,1999:blog-2083400580050165811.post-64394875228738649632016-04-12T01:34:26.402+01:002016-04-12T01:34:26.402+01:0041 IS A IN ASCII41 IS A IN ASCIIMaster Mindhttps://www.blogger.com/profile/13386242354510080995noreply@blogger.comtag:blogger.com,1999:blog-2083400580050165811.post-85793081389388607872015-06-07T14:20:32.605+01:002015-06-07T14:20:32.605+01:00How to use mov 41h?How to use mov 41h?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2083400580050165811.post-16181097784392009602015-02-11T21:59:58.136+00:002015-02-11T21:59:58.136+00:00This is not enough information to resolve the prob...This is not enough information to resolve the problem.<br /><br />Consider posting the steps you have taken to <a href="https://stackoverflow.com/" rel="nofollow">stackoverflow.com</a> along with details of your runtime environment.McDowellhttps://www.blogger.com/profile/15240682237791734569noreply@blogger.comtag:blogger.com,1999:blog-2083400580050165811.post-33771728963752090462015-02-11T17:48:33.993+00:002015-02-11T17:48:33.993+00:00I am getting connect refused. Any ideas ?I am getting connect refused. Any ideas ?Preciso estudar semprehttps://www.blogger.com/profile/03646765033021901622noreply@blogger.comtag:blogger.com,1999:blog-2083400580050165811.post-26650550228368837922014-06-14T12:51:36.319+01:002014-06-14T12:51:36.319+01:00There's some documentation in the AMD loader p...There's some documentation in the AMD loader plugins section. See <a href="http://livedocs.dojotoolkit.org/loader/amd#plugins" rel="nofollow">the Dojo Plugins livedocs</a>.McDowellhttps://www.blogger.com/profile/15240682237791734569noreply@blogger.comtag:blogger.com,1999:blog-2083400580050165811.post-179192635037086172014-06-13T17:08:21.759+01:002014-06-13T17:08:21.759+01:00This is really helpful - thanks.
Did you find thi...This is really helpful - thanks.<br /><br />Did you find this out through reverse engineering? I can't find docs on this anywhere.Brian Guppyhttps://www.blogger.com/profile/05155645438149372233noreply@blogger.comtag:blogger.com,1999:blog-2083400580050165811.post-84570812838203683742014-04-17T20:33:18.986+01:002014-04-17T20:33:18.986+01:00Code points are unique writing system constructs i...Code <i>points</i> are unique writing system constructs identified and supported by the Unicode consortium. Consider accented characters like é. In European, Latin-based languages the number of accents (diacritics) available on a letter is usually one at a time. Other writing systems are more complex. So Unicode must allow the building of visible graphemes using more than one diacritic - (e.g. McDowellhttps://www.blogger.com/profile/15240682237791734569noreply@blogger.comtag:blogger.com,1999:blog-2083400580050165811.post-85040672565635419332014-04-15T16:31:21.814+01:002014-04-15T16:31:21.814+01:00Excellent! Could you please expandin section [How ...Excellent! Could you please expandin section [How long is a (piece of) String?](http://illegalargumentexception.blogspot.gr/2009/05/java-rough-guide-to-character-encoding.html#javaencoding_strnlen) as to why for instance U+1D50A is 2 chars (and onew codepoint (and similar for the grapheme that's 4 points). Also in the same section instead of a switch you could use an enum method - return Udunhttps://www.blogger.com/profile/08355256387246510486noreply@blogger.comtag:blogger.com,1999:blog-2083400580050165811.post-52061165549294397032014-02-23T06:15:50.064+00:002014-02-23T06:15:50.064+00:00Great article, but what are you doing if you want ...Great article, but what are you doing if you want to use Hebrew, or any other local language which is not English?!?<br />Unfortunately, even if your system supporting the language, the command shell's properties showing only those 2 options (Lucida Console, Raster Font), both do not support Hebrew!<br />In this case you might need this article, which will help you in a preview step (changingAnonymoushttps://www.blogger.com/profile/18374287275466908120noreply@blogger.comtag:blogger.com,1999:blog-2083400580050165811.post-58679590849122524292013-11-22T17:42:34.210+00:002013-11-22T17:42:34.210+00:00Note the post-install steps to set up a workspace....Note the <a href="http://illegalargumentexception.blogspot.com/2013/11/howto-create-websphere-as-855.html" rel="nofollow">post-install steps to set up a workspace</a>.McDowellhttps://www.blogger.com/profile/15240682237791734569noreply@blogger.comtag:blogger.com,1999:blog-2083400580050165811.post-77785032585134417402013-11-22T17:39:38.757+00:002013-11-22T17:39:38.757+00:00It's in the repositoryIt's in <a href="http://illegalargumentexception.googlecode.com/svn/trunk/code/java/AbstractingTheJavaConsole/" rel="nofollow">the repository</a> McDowellhttps://www.blogger.com/profile/15240682237791734569noreply@blogger.comtag:blogger.com,1999:blog-2083400580050165811.post-32449722038689796372013-11-21T18:40:45.367+00:002013-11-21T18:40:45.367+00:00I want to try your example but I am getting "...I want to try your example but I am getting "ConsoleException cannot be resolved to a type"Chrishttps://www.blogger.com/profile/03069092918836492719noreply@blogger.comtag:blogger.com,1999:blog-2083400580050165811.post-55557623138385061062013-11-05T19:17:16.641+00:002013-11-05T19:17:16.641+00:00Thanks very much for the link to the talk! I accep...Thanks very much for the link to the talk! I accept your point that lambdas will often be cheap and not involve artificially constructed type instances.<br /><br />I still think there will often be a performance penalty for the <b>Unchecked</b> type over the try/catch approach.<br /><br />1. <b>Unchecked.invoke</b> takes a <b>Functor</b> instance.<br /><br />2. In the <b>UrlQuery.encode</b> McDowellhttps://www.blogger.com/profile/15240682237791734569noreply@blogger.comtag:blogger.com,1999:blog-2083400580050165811.post-53175142479264722242013-11-05T15:43:56.777+00:002013-11-05T15:43:56.777+00:00"Lambdas are not an ideal way to tackle check..."Lambdas are not an ideal way to tackle checked exception noise in Java classes. There is a potential performance penalty in creating the object instances the lambdas implement."<br /><br />You seem to assume that lambdas are implemented as anonymous classes. This is not the case (any more?). They are mostly implemented as methods and called by invokedynamic via method handles.<br /><brAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-2083400580050165811.post-63700426489596259182013-10-22T19:18:08.644+01:002013-10-22T19:18:08.644+01:00Thanks for your quick answer.
Using command line M...Thanks for your quick answer.<br />Using command line Maven, I also manage to compile my java 8 project.<br />No chance to get it working with Eclipse Luna which should have a Java 8 support.<br /><br />Probably to best bet would be using IntelliJAnonymoushttps://www.blogger.com/profile/12590724924337249206noreply@blogger.comtag:blogger.com,1999:blog-2083400580050165811.post-91614447305250049352013-10-22T16:21:54.131+01:002013-10-22T16:21:54.131+01:00At the time I did not use an IDE - just the latest...At the time I did not use an IDE - just the latest command-line Maven with the JDK and a text editor. If memory serves I set the JAVA_HOME, M2_HOME and updated the PATH <a href="https://help.ubuntu.com/community/EnvironmentVariables" rel="nofollow">environment variables</a> in my .profile file.<br /><br />Since Luna isn't due out until next year I don't know the state of its Java 8 McDowellhttps://www.blogger.com/profile/15240682237791734569noreply@blogger.comtag:blogger.com,1999:blog-2083400580050165811.post-49949983513084290162013-10-22T14:01:13.550+01:002013-10-22T14:01:13.550+01:00Hi,
Thanks for your post.
I just can't set mav...Hi,<br />Thanks for your post.<br />I just can't set maven to compile on Java 8, using the same pom you presented, even if default java system version is actually java 8. <br />The selected JRE environment is the default of Maven which is 1.4.<br /><br />Did you manage to configure something else ?<br /><br />For info, i'm on eclipse Luna and Ubuntu 13.01.<br /><br />Thanks in advance forAnonymoushttps://www.blogger.com/profile/12590724924337249206noreply@blogger.comtag:blogger.com,1999:blog-2083400580050165811.post-61568570424185298732013-10-21T13:37:17.254+01:002013-10-21T13:37:17.254+01:00@Anonymous - you're really just asking how to ...@Anonymous - you're really just asking <a href="http://docs.mockito.googlecode.com/hg/latest/org/mockito/Mockito.html" rel="nofollow">how to use Mockito</a>.<br /><br />1. Create a resource bundle using one of the <a href="http://docs.oracle.com/javase/7/docs/api/java/util/ResourceBundle.html" rel="nofollow">ResourceBundle.getBundle</a> methods.<br />2. Use Mockito to create a mock McDowellhttps://www.blogger.com/profile/15240682237791734569noreply@blogger.comtag:blogger.com,1999:blog-2083400580050165811.post-11302098539440599262013-10-17T12:44:11.346+01:002013-10-17T12:44:11.346+01:00Its very good link,could you please give any light...Its very good link,could you please give any lights on how to do mock: application.getResourceBundle(facesContext, "i18n");Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2083400580050165811.post-64066203493052244662013-09-12T22:15:32.638+01:002013-09-12T22:15:32.638+01:00Easy typo to fix, had to use lowercase 's'...Easy typo to fix, had to use lowercase 's' in void Main(String[] args) to avoid the "Does not contain a static 'Main' method suitable for an entry point" compiler error for me, at least when using the command-line csc compiler. Works like a charm and is a life saver! At a client site where they don't have internet access, no clipboard copy+paste and transferring Anonymoushttps://www.blogger.com/profile/17747523177656367458noreply@blogger.com