From ggastald at redhat.com Wed Oct 7 01:23:09 2015 From: ggastald at redhat.com (George Gastaldi) Date: Wed, 7 Oct 2015 02:23:09 -0300 Subject: [forge-users] JDK 8 Message-ID: Hello Forge users, For the next minor release, I'd like to make JDK8 the minimum requirement. The JBoss Tools team is already using JDK8 as the minimum requirement for their new versions. We are already running our build in JDK8 (with sources set to 1.7 still) Is there any objection? Say it now or forever hold your peace, because the Forge train never stops ;) Best Regards, love you all! George Gastaldi -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/forge-users/attachments/20151007/40a629a6/attachment.html From danielsoro at gmail.com Wed Oct 7 01:43:22 2015 From: danielsoro at gmail.com (Daniel Cunha) Date: Wed, 7 Oct 2015 02:43:22 -0300 Subject: [forge-users] [forge-dev] JDK 8 In-Reply-To: References: Message-ID: I agree with that! :) +1 for Java 8. On Wed, Oct 7, 2015 at 2:23 AM, George Gastaldi wrote: > Hello Forge users, > > For the next minor release, I'd like to make JDK8 the minimum requirement. > > The JBoss Tools team is already using JDK8 as the minimum requirement for > their new versions. We are already running our build in JDK8 (with sources > set to 1.7 still) > > Is there any objection? Say it now or forever hold your peace, because the > Forge train never stops ;) > > Best Regards, love you all! > > George Gastaldi > > _______________________________________________ > forge-dev mailing list > forge-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/forge-dev > -- Daniel Cunha (soro) https://twitter.com/dvlc_ http://www.tomitribe.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/forge-users/attachments/20151007/205ec187/attachment.html From danielsoro at gmail.com Wed Oct 7 03:10:11 2015 From: danielsoro at gmail.com (Daniel Cunha) Date: Wed, 7 Oct 2015 04:10:11 -0300 Subject: [forge-users] [forge-dev] JDK 8 In-Reply-To: References: Message-ID: Make sense remove it from the pom if we go to Java 8. :) Can you share your problem with Java 9? (even though we don't have a final version of Java 9 ATM) On Wed, Oct 7, 2015 at 3:40 AM, Ivan St. Ivanov wrote: > Hi Geroge, > > That's wonderful! Finally we can rewrite all those anonymous inner classes > with lambdas. And use streams. And sometimes Optional in the APIs :) > > Do you plan to remove this from the root pom: > > > org.apache.maven.plugins > maven-surefire-plugin > > -Xms256m -Xmx512m -XX:MaxPermSize=160m > > > > It doesn't make sense anymore. But has been bugging me all the time when I > try to build Forge with Java 9 (it's an error there). > > Cheers, > Ivan > > > On Wed, Oct 7, 2015 at 8:43 AM, Daniel Cunha wrote: > >> I agree with that! :) >> >> +1 for Java 8. >> >> On Wed, Oct 7, 2015 at 2:23 AM, George Gastaldi >> wrote: >> >>> Hello Forge users, >>> >>> For the next minor release, I'd like to make JDK8 the minimum >>> requirement. >>> >>> The JBoss Tools team is already using JDK8 as the minimum requirement >>> for their new versions. We are already running our build in JDK8 (with >>> sources set to 1.7 still) >>> >>> Is there any objection? Say it now or forever hold your peace, because >>> the Forge train never stops ;) >>> >>> Best Regards, love you all! >>> >>> George Gastaldi >>> >>> _______________________________________________ >>> forge-dev mailing list >>> forge-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/forge-dev >>> >> >> >> >> -- >> Daniel Cunha (soro) >> https://twitter.com/dvlc_ >> http://www.tomitribe.com >> >> _______________________________________________ >> forge-dev mailing list >> forge-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/forge-dev >> > > > _______________________________________________ > forge-dev mailing list > forge-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/forge-dev > -- Daniel Cunha (soro) https://twitter.com/dvlc_ http://www.tomitribe.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/forge-users/attachments/20151007/9e278c75/attachment-0001.html From ivan.st.ivanov at gmail.com Wed Oct 7 02:40:17 2015 From: ivan.st.ivanov at gmail.com (Ivan St. Ivanov) Date: Wed, 7 Oct 2015 09:40:17 +0300 Subject: [forge-users] [forge-dev] JDK 8 In-Reply-To: References: Message-ID: Hi Geroge, That's wonderful! Finally we can rewrite all those anonymous inner classes with lambdas. And use streams. And sometimes Optional in the APIs :) Do you plan to remove this from the root pom: org.apache.maven.plugins maven-surefire-plugin -Xms256m -Xmx512m -XX:MaxPermSize=160m It doesn't make sense anymore. But has been bugging me all the time when I try to build Forge with Java 9 (it's an error there). Cheers, Ivan On Wed, Oct 7, 2015 at 8:43 AM, Daniel Cunha wrote: > I agree with that! :) > > +1 for Java 8. > > On Wed, Oct 7, 2015 at 2:23 AM, George Gastaldi > wrote: > >> Hello Forge users, >> >> For the next minor release, I'd like to make JDK8 the minimum requirement. >> >> The JBoss Tools team is already using JDK8 as the minimum requirement for >> their new versions. We are already running our build in JDK8 (with sources >> set to 1.7 still) >> >> Is there any objection? Say it now or forever hold your peace, because >> the Forge train never stops ;) >> >> Best Regards, love you all! >> >> George Gastaldi >> >> _______________________________________________ >> forge-dev mailing list >> forge-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/forge-dev >> > > > > -- > Daniel Cunha (soro) > https://twitter.com/dvlc_ > http://www.tomitribe.com > > _______________________________________________ > forge-dev mailing list > forge-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/forge-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/forge-users/attachments/20151007/fdaa68ed/attachment.html From ivan.st.ivanov at gmail.com Wed Oct 7 03:36:23 2015 From: ivan.st.ivanov at gmail.com (Ivan St. Ivanov) Date: Wed, 7 Oct 2015 10:36:23 +0300 Subject: [forge-users] [forge-dev] JDK 8 In-Reply-To: References: Message-ID: The problem with Java 9 is that you can't run tests, because the JVM that runs them won't start. If you want to run with Java 9, you have to either run the build with -DskipTests or remove this from pom.xml. On Wed, Oct 7, 2015 at 10:10 AM, Daniel Cunha wrote: > Make sense remove it from the pom if we go to Java 8. :) > Can you share your problem with Java 9? (even though we don't have a final > version of Java 9 ATM) > > On Wed, Oct 7, 2015 at 3:40 AM, Ivan St. Ivanov > wrote: > >> Hi Geroge, >> >> That's wonderful! Finally we can rewrite all those anonymous inner >> classes with lambdas. And use streams. And sometimes Optional in the APIs :) >> >> Do you plan to remove this from the root pom: >> >> >> org.apache.maven.plugins >> maven-surefire-plugin >> >> -Xms256m -Xmx512m -XX:MaxPermSize=160m >> >> >> >> It doesn't make sense anymore. But has been bugging me all the time when >> I try to build Forge with Java 9 (it's an error there). >> >> Cheers, >> Ivan >> >> >> On Wed, Oct 7, 2015 at 8:43 AM, Daniel Cunha >> wrote: >> >>> I agree with that! :) >>> >>> +1 for Java 8. >>> >>> On Wed, Oct 7, 2015 at 2:23 AM, George Gastaldi >>> wrote: >>> >>>> Hello Forge users, >>>> >>>> For the next minor release, I'd like to make JDK8 the minimum >>>> requirement. >>>> >>>> The JBoss Tools team is already using JDK8 as the minimum requirement >>>> for their new versions. We are already running our build in JDK8 (with >>>> sources set to 1.7 still) >>>> >>>> Is there any objection? Say it now or forever hold your peace, because >>>> the Forge train never stops ;) >>>> >>>> Best Regards, love you all! >>>> >>>> George Gastaldi >>>> >>>> _______________________________________________ >>>> forge-dev mailing list >>>> forge-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/forge-dev >>>> >>> >>> >>> >>> -- >>> Daniel Cunha (soro) >>> https://twitter.com/dvlc_ >>> http://www.tomitribe.com >>> >>> _______________________________________________ >>> forge-dev mailing list >>> forge-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/forge-dev >>> >> >> >> _______________________________________________ >> forge-dev mailing list >> forge-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/forge-dev >> > > > > -- > Daniel Cunha (soro) > https://twitter.com/dvlc_ > http://www.tomitribe.com > > _______________________________________________ > forge-dev mailing list > forge-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/forge-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/forge-users/attachments/20151007/ef6ae759/attachment.html From ggastald at redhat.com Wed Oct 7 13:00:42 2015 From: ggastald at redhat.com (George Gastaldi) Date: Wed, 7 Oct 2015 14:00:42 -0300 Subject: [forge-users] [forge-dev] JDK 8 In-Reply-To: References: Message-ID: I created a poll to gather feedback and help in our decision to upgrade the minimum JDK version to 8: http://goo.gl/forms/yqGss6gxOA I appreciate if you could help us by answering just those 2 questions, it should take some seconds. Thank you! On Wed, Oct 7, 2015 at 7:05 AM, George Gastaldi wrote: > Hi Ivan, thanks for the feedback. > > Yeah, I was thinking of removing that or move it to a maven profile that > is activated when the project builds on JDK7 only (that can be done now). > > So far the only objection I have received about moving to JDK8 is from the > Fabric8 team asking that this should be done in Forge 3: > https://twitter.com/davsclaus/status/651632079566950400?s=09 > > Best Regards, > Em 07/10/2015 04:36, "Ivan St. Ivanov" > escreveu: > >> The problem with Java 9 is that you can't run tests, because the JVM that >> runs them won't start. If you want to run with Java 9, you have to either >> run the build with -DskipTests or remove this from pom.xml. >> >> On Wed, Oct 7, 2015 at 10:10 AM, Daniel Cunha >> wrote: >> >>> Make sense remove it from the pom if we go to Java 8. :) >>> Can you share your problem with Java 9? (even though we don't have a >>> final version of Java 9 ATM) >>> >>> On Wed, Oct 7, 2015 at 3:40 AM, Ivan St. Ivanov < >>> ivan.st.ivanov at gmail.com> wrote: >>> >>>> Hi Geroge, >>>> >>>> That's wonderful! Finally we can rewrite all those anonymous inner >>>> classes with lambdas. And use streams. And sometimes Optional in the APIs :) >>>> >>>> Do you plan to remove this from the root pom: >>>> >>>> >>>> org.apache.maven.plugins >>>> maven-surefire-plugin >>>> >>>> -Xms256m -Xmx512m -XX:MaxPermSize=160m >>>> >>>> >>>> >>>> It doesn't make sense anymore. But has been bugging me all the time >>>> when I try to build Forge with Java 9 (it's an error there). >>>> >>>> Cheers, >>>> Ivan >>>> >>>> >>>> On Wed, Oct 7, 2015 at 8:43 AM, Daniel Cunha >>>> wrote: >>>> >>>>> I agree with that! :) >>>>> >>>>> +1 for Java 8. >>>>> >>>>> On Wed, Oct 7, 2015 at 2:23 AM, George Gastaldi >>>>> wrote: >>>>> >>>>>> Hello Forge users, >>>>>> >>>>>> For the next minor release, I'd like to make JDK8 the minimum >>>>>> requirement. >>>>>> >>>>>> The JBoss Tools team is already using JDK8 as the minimum requirement >>>>>> for their new versions. We are already running our build in JDK8 (with >>>>>> sources set to 1.7 still) >>>>>> >>>>>> Is there any objection? Say it now or forever hold your peace, >>>>>> because the Forge train never stops ;) >>>>>> >>>>>> Best Regards, love you all! >>>>>> >>>>>> George Gastaldi >>>>>> >>>>>> _______________________________________________ >>>>>> forge-dev mailing list >>>>>> forge-dev at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/forge-dev >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Daniel Cunha (soro) >>>>> https://twitter.com/dvlc_ >>>>> http://www.tomitribe.com >>>>> >>>>> _______________________________________________ >>>>> forge-dev mailing list >>>>> forge-dev at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/forge-dev >>>>> >>>> >>>> >>>> _______________________________________________ >>>> forge-dev mailing list >>>> forge-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/forge-dev >>>> >>> >>> >>> >>> -- >>> Daniel Cunha (soro) >>> https://twitter.com/dvlc_ >>> http://www.tomitribe.com >>> >>> _______________________________________________ >>> forge-dev mailing list >>> forge-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/forge-dev >>> >> >> >> _______________________________________________ >> forge-dev mailing list >> forge-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/forge-dev >> > -- *George Gastaldi | Senior Software Engineer* JBoss Forge Team T: +55 11 3524-6169 M: +55 47 9711-1000 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/forge-users/attachments/20151007/b338ead3/attachment-0001.html From danielsoro at gmail.com Wed Oct 7 13:04:31 2015 From: danielsoro at gmail.com (Daniel Cunha) Date: Wed, 7 Oct 2015 14:04:31 -0300 Subject: [forge-users] [forge-dev] JDK 8 In-Reply-To: References: Message-ID: +1 On Wed, Oct 7, 2015 at 2:00 PM, George Gastaldi wrote: > I created a poll to gather feedback and help in our decision to upgrade > the minimum JDK version to 8: http://goo.gl/forms/yqGss6gxOA > > I appreciate if you could help us by answering just those 2 questions, it > should take some seconds. > > Thank you! > > On Wed, Oct 7, 2015 at 7:05 AM, George Gastaldi > wrote: > >> Hi Ivan, thanks for the feedback. >> >> Yeah, I was thinking of removing that or move it to a maven profile that >> is activated when the project builds on JDK7 only (that can be done now). >> >> So far the only objection I have received about moving to JDK8 is from >> the Fabric8 team asking that this should be done in Forge 3: >> https://twitter.com/davsclaus/status/651632079566950400?s=09 >> >> Best Regards, >> Em 07/10/2015 04:36, "Ivan St. Ivanov" >> escreveu: >> >>> The problem with Java 9 is that you can't run tests, because the JVM >>> that runs them won't start. If you want to run with Java 9, you have to >>> either run the build with -DskipTests or remove this from pom.xml. >>> >>> On Wed, Oct 7, 2015 at 10:10 AM, Daniel Cunha >>> wrote: >>> >>>> Make sense remove it from the pom if we go to Java 8. :) >>>> Can you share your problem with Java 9? (even though we don't have a >>>> final version of Java 9 ATM) >>>> >>>> On Wed, Oct 7, 2015 at 3:40 AM, Ivan St. Ivanov < >>>> ivan.st.ivanov at gmail.com> wrote: >>>> >>>>> Hi Geroge, >>>>> >>>>> That's wonderful! Finally we can rewrite all those anonymous inner >>>>> classes with lambdas. And use streams. And sometimes Optional in the APIs :) >>>>> >>>>> Do you plan to remove this from the root pom: >>>>> >>>>> >>>>> org.apache.maven.plugins >>>>> maven-surefire-plugin >>>>> >>>>> -Xms256m -Xmx512m -XX:MaxPermSize=160m >>>>> >>>>> >>>>> >>>>> It doesn't make sense anymore. But has been bugging me all the time >>>>> when I try to build Forge with Java 9 (it's an error there). >>>>> >>>>> Cheers, >>>>> Ivan >>>>> >>>>> >>>>> On Wed, Oct 7, 2015 at 8:43 AM, Daniel Cunha >>>>> wrote: >>>>> >>>>>> I agree with that! :) >>>>>> >>>>>> +1 for Java 8. >>>>>> >>>>>> On Wed, Oct 7, 2015 at 2:23 AM, George Gastaldi >>>>>> wrote: >>>>>> >>>>>>> Hello Forge users, >>>>>>> >>>>>>> For the next minor release, I'd like to make JDK8 the minimum >>>>>>> requirement. >>>>>>> >>>>>>> The JBoss Tools team is already using JDK8 as the minimum >>>>>>> requirement for their new versions. We are already running our build in >>>>>>> JDK8 (with sources set to 1.7 still) >>>>>>> >>>>>>> Is there any objection? Say it now or forever hold your peace, >>>>>>> because the Forge train never stops ;) >>>>>>> >>>>>>> Best Regards, love you all! >>>>>>> >>>>>>> George Gastaldi >>>>>>> >>>>>>> _______________________________________________ >>>>>>> forge-dev mailing list >>>>>>> forge-dev at lists.jboss.org >>>>>>> https://lists.jboss.org/mailman/listinfo/forge-dev >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Daniel Cunha (soro) >>>>>> https://twitter.com/dvlc_ >>>>>> http://www.tomitribe.com >>>>>> >>>>>> _______________________________________________ >>>>>> forge-dev mailing list >>>>>> forge-dev at lists.jboss.org >>>>>> https://lists.jboss.org/mailman/listinfo/forge-dev >>>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> forge-dev mailing list >>>>> forge-dev at lists.jboss.org >>>>> https://lists.jboss.org/mailman/listinfo/forge-dev >>>>> >>>> >>>> >>>> >>>> -- >>>> Daniel Cunha (soro) >>>> https://twitter.com/dvlc_ >>>> http://www.tomitribe.com >>>> >>>> _______________________________________________ >>>> forge-dev mailing list >>>> forge-dev at lists.jboss.org >>>> https://lists.jboss.org/mailman/listinfo/forge-dev >>>> >>> >>> >>> _______________________________________________ >>> forge-dev mailing list >>> forge-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/forge-dev >>> >> > > > -- > *George Gastaldi | Senior Software Engineer* > > JBoss Forge Team > T: +55 11 3524-6169 > M: +55 47 9711-1000 > > _______________________________________________ > forge-dev mailing list > forge-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/forge-dev > -- Daniel Cunha (soro) https://twitter.com/dvlc_ http://www.tomitribe.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/forge-users/attachments/20151007/72448d47/attachment.html From ggastald at redhat.com Thu Oct 8 01:27:49 2015 From: ggastald at redhat.com (George Gastaldi) Date: Thu, 8 Oct 2015 02:27:49 -0300 Subject: [forge-users] [forge-dev] JDK 8 In-Reply-To: References: Message-ID: Just removed this parameter. Our builds are running in JDK 8 already but with source/target 1.7 and MaxPermSize is deprecated. Thanks for the heads up. Em 07/10/2015 03:40, "Ivan St. Ivanov" escreveu: > Hi Geroge, > > That's wonderful! Finally we can rewrite all those anonymous inner classes > with lambdas. And use streams. And sometimes Optional in the APIs :) > > Do you plan to remove this from the root pom: > > > org.apache.maven.plugins > maven-surefire-plugin > > -Xms256m -Xmx512m -XX:MaxPermSize=160m > > > > It doesn't make sense anymore. But has been bugging me all the time when I > try to build Forge with Java 9 (it's an error there). > > Cheers, > Ivan > > > On Wed, Oct 7, 2015 at 8:43 AM, Daniel Cunha wrote: > >> I agree with that! :) >> >> +1 for Java 8. >> >> On Wed, Oct 7, 2015 at 2:23 AM, George Gastaldi >> wrote: >> >>> Hello Forge users, >>> >>> For the next minor release, I'd like to make JDK8 the minimum >>> requirement. >>> >>> The JBoss Tools team is already using JDK8 as the minimum requirement >>> for their new versions. We are already running our build in JDK8 (with >>> sources set to 1.7 still) >>> >>> Is there any objection? Say it now or forever hold your peace, because >>> the Forge train never stops ;) >>> >>> Best Regards, love you all! >>> >>> George Gastaldi >>> >>> _______________________________________________ >>> forge-dev mailing list >>> forge-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/forge-dev >>> >> >> >> >> -- >> Daniel Cunha (soro) >> https://twitter.com/dvlc_ >> http://www.tomitribe.com >> >> _______________________________________________ >> forge-dev mailing list >> forge-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/forge-dev >> > > > _______________________________________________ > forge-dev mailing list > forge-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/forge-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/forge-users/attachments/20151008/36484b04/attachment-0001.html From rmpestano at gmail.com Mon Oct 12 00:11:50 2015 From: rmpestano at gmail.com (Rafael Pestano) Date: Mon, 12 Oct 2015 01:11:50 -0300 Subject: [forge-users] Problem with json-parser Message-ID: Hi everyone, I'm trying to manipulate json files using parser-json addon. I can save files but when I try to read them I receive a (classpath?) error: Caused by: java.lang.LinkageError: loader constraint violation: when resolving interface method "org.jboss.forge.addon.parser.json.resource.JsonResource.getJsonObject()Ljavax/json/JsonObject;" the class loader (instance of org/jboss/modules/ModuleClassLoader) of the current class, com/github/forge/addon/music/PlaylistManager, and the class loader (instance of org/jboss/modules/ModuleClassLoader) for the method's defining class, org/jboss/forge/addon/parser/json/resource/JsonResource, have different Class objects for the type javax/json/JsonObject used in the signature at com.github.forge.addon.music.PlaylistManager.getAllPlaylists(PlaylistManager.java:178) at com.github.forge.addon.music.PlaylistManager.initPlayLists(PlaylistManager.java:57) Here is the method which throws the exception: public List getAllPlaylists() { List playListsObject = new ArrayList<>(); List> playListsFound = getPlayListHomeDir().listResources(new ResourceFilter() { @Override public boolean accept(Resource resource) { return resource instanceof FileResource && resource.getName().endsWith(".json"); } }); for (Resource resource : playListsFound) { JsonResource jsonResource = resource.reify(JsonResource.class); JsonObject jsonObject = jsonResource.getJsonObject(); playListsObject.add(jsonObject); } return playListsObject; } The exception is thrown in jsonResource.getJsonObject(); The code is here: https://github.com/rmpestano/music-addon and there is a test that reproduces the error. Any help is appreciated, thanks in advance. -- Att, Rafael M. Pestano Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul http://rpestano.wordpress.com/ @realpestano -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/forge-users/attachments/20151012/5cdcad6b/attachment.html From ggastald at redhat.com Mon Oct 12 00:16:46 2015 From: ggastald at redhat.com (George Gastaldi) Date: Mon, 12 Oct 2015 01:16:46 -0300 Subject: [forge-users] Problem with json-parser In-Reply-To: References: Message-ID: Hi Rafael, It seems that the following dependency needs to be removed: org.glassfish javax.json 1.0.4 Let me know how it goes. Em 12/10/2015 01:13, "Rafael Pestano" escreveu: > Hi everyone, > > I'm trying to manipulate json files using parser-json addon. I can save > files but when I try to read them I receive a (classpath?) error: > > Caused by: java.lang.LinkageError: loader constraint violation: when > resolving interface method > "org.jboss.forge.addon.parser.json.resource.JsonResource.getJsonObject()Ljavax/json/JsonObject;" > the class loader (instance of org/jboss/modules/ModuleClassLoader) of the > current class, com/github/forge/addon/music/PlaylistManager, and the class > loader (instance of org/jboss/modules/ModuleClassLoader) for the method's > defining class, org/jboss/forge/addon/parser/json/resource/JsonResource, > have different Class objects for the type javax/json/JsonObject used in the > signature > at > com.github.forge.addon.music.PlaylistManager.getAllPlaylists(PlaylistManager.java:178) > at > com.github.forge.addon.music.PlaylistManager.initPlayLists(PlaylistManager.java:57) > > Here is the method which throws the exception: > > public List getAllPlaylists() { > List playListsObject = new ArrayList<>(); > List> playListsFound = getPlayListHomeDir().listResources(new ResourceFilter() { > @Override > public boolean accept(Resource resource) { > return resource instanceof FileResource && resource.getName().endsWith(".json"); > } > }); > for (Resource resource : playListsFound) { > JsonResource jsonResource = resource.reify(JsonResource.class); > JsonObject jsonObject = jsonResource.getJsonObject(); > playListsObject.add(jsonObject); > } > return playListsObject; > } > > > The exception is thrown in jsonResource.getJsonObject(); > > The code is here: https://github.com/rmpestano/music-addon and there is a > test that reproduces the error. > > Any help is appreciated, thanks in advance. > > -- > Att, > > Rafael M. Pestano > > Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul > http://rpestano.wordpress.com/ > @realpestano > > _______________________________________________ > forge-users mailing list > forge-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/forge-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/forge-users/attachments/20151012/5b5b54ec/attachment.html From rmpestano at gmail.com Mon Oct 12 18:46:15 2015 From: rmpestano at gmail.com (Rafael Pestano) Date: Mon, 12 Oct 2015 22:46:15 +0000 Subject: [forge-users] Problem with json-parser In-Reply-To: References: Message-ID: I've fixed the problem by using Json reader directly instead of using JsonResource, something like: Json.createReader(resource.getResourceInputStream()).readObject() Em seg, 12 de out de 2015 01:11, Rafael Pestano escreveu: > Hi everyone, > > I'm trying to manipulate json files using parser-json addon. I can save > files but when I try to read them I receive a (classpath?) error: > > Caused by: java.lang.LinkageError: loader constraint violation: when > resolving interface method > "org.jboss.forge.addon.parser.json.resource.JsonResource.getJsonObject()Ljavax/json/JsonObject;" > the class loader (instance of org/jboss/modules/ModuleClassLoader) of the > current class, com/github/forge/addon/music/PlaylistManager, and the class > loader (instance of org/jboss/modules/ModuleClassLoader) for the method's > defining class, org/jboss/forge/addon/parser/json/resource/JsonResource, > have different Class objects for the type javax/json/JsonObject used in the > signature > at > com.github.forge.addon.music.PlaylistManager.getAllPlaylists(PlaylistManager.java:178) > at > com.github.forge.addon.music.PlaylistManager.initPlayLists(PlaylistManager.java:57) > > Here is the method which throws the exception: > > public List getAllPlaylists() { > List playListsObject = new ArrayList<>(); > List> playListsFound = getPlayListHomeDir().listResources(new ResourceFilter() { > @Override > public boolean accept(Resource resource) { > return resource instanceof FileResource && resource.getName().endsWith(".json"); > } > }); > for (Resource resource : playListsFound) { > JsonResource jsonResource = resource.reify(JsonResource.class); > JsonObject jsonObject = jsonResource.getJsonObject(); > playListsObject.add(jsonObject); > } > return playListsObject; > } > > > The exception is thrown in jsonResource.getJsonObject(); > > The code is here: https://github.com/rmpestano/music-addon and there is a > test that reproduces the error. > > Any help is appreciated, thanks in advance. > > > -- > Att, > > Rafael M. Pestano > > Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul > http://rpestano.wordpress.com/ > @realpestano > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/forge-users/attachments/20151012/0d75282d/attachment.html From ggastald at redhat.com Mon Oct 12 19:07:01 2015 From: ggastald at redhat.com (George Gastaldi) Date: Mon, 12 Oct 2015 20:07:01 -0300 Subject: [forge-users] Problem with json-parser In-Reply-To: References: Message-ID: That sounds like a bug. Does it happen if you remove the json lib dependency? Em 12/10/2015 19:46, "Rafael Pestano" escreveu: > I've fixed the problem by using Json reader directly instead of using > JsonResource, something like: > Json.createReader(resource.getResourceInputStream()).readObject() > > Em seg, 12 de out de 2015 01:11, Rafael Pestano > escreveu: > >> Hi everyone, >> >> I'm trying to manipulate json files using parser-json addon. I can save >> files but when I try to read them I receive a (classpath?) error: >> >> Caused by: java.lang.LinkageError: loader constraint violation: when >> resolving interface method >> "org.jboss.forge.addon.parser.json.resource.JsonResource.getJsonObject()Ljavax/json/JsonObject;" >> the class loader (instance of org/jboss/modules/ModuleClassLoader) of the >> current class, com/github/forge/addon/music/PlaylistManager, and the class >> loader (instance of org/jboss/modules/ModuleClassLoader) for the method's >> defining class, org/jboss/forge/addon/parser/json/resource/JsonResource, >> have different Class objects for the type javax/json/JsonObject used in the >> signature >> at >> com.github.forge.addon.music.PlaylistManager.getAllPlaylists(PlaylistManager.java:178) >> at >> com.github.forge.addon.music.PlaylistManager.initPlayLists(PlaylistManager.java:57) >> >> Here is the method which throws the exception: >> >> public List getAllPlaylists() { >> List playListsObject = new ArrayList<>(); >> List> playListsFound = getPlayListHomeDir().listResources(new ResourceFilter() { >> @Override >> public boolean accept(Resource resource) { >> return resource instanceof FileResource && resource.getName().endsWith(".json"); >> } >> }); >> for (Resource resource : playListsFound) { >> JsonResource jsonResource = resource.reify(JsonResource.class); >> JsonObject jsonObject = jsonResource.getJsonObject(); >> playListsObject.add(jsonObject); >> } >> return playListsObject; >> } >> >> >> The exception is thrown in jsonResource.getJsonObject(); >> >> The code is here: https://github.com/rmpestano/music-addon and there is >> a test that reproduces the error. >> >> Any help is appreciated, thanks in advance. >> >> >> -- >> Att, >> >> Rafael M. Pestano >> >> Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul >> http://rpestano.wordpress.com/ >> @realpestano >> > > _______________________________________________ > forge-users mailing list > forge-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/forge-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/forge-users/attachments/20151012/0f6df9bb/attachment-0001.html From rmpestano at gmail.com Sun Oct 18 11:37:16 2015 From: rmpestano at gmail.com (Rafael Pestano) Date: Sun, 18 Oct 2015 13:37:16 -0200 Subject: [forge-users] Show UI message without UI context Message-ID: Hi guys, there is a way to show an info message to user without a UI context? without firing any command? For example when an internal event is fired I want to popup an info message in the IDE. -- Att, Rafael M. Pestano Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul http://rpestano.wordpress.com/ @realpestano -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/forge-users/attachments/20151018/c28bcb82/attachment.html From ggastald at redhat.com Sun Oct 18 11:56:36 2015 From: ggastald at redhat.com (George Gastaldi) Date: Sun, 18 Oct 2015 13:56:36 -0200 Subject: [forge-users] Show UI message without UI context In-Reply-To: References: Message-ID: Hi Rafael, Unfortunately that's not possible without invoking a command. But that looks like a nice requirement for the upcoming Forge 3. Suggestions are welcome. Best Regards, Em 18/10/2015 13:38, "Rafael Pestano" escreveu: > Hi guys, > > there is a way to show an info message to user without a UI context? > without firing any command? > > For example when an internal event is fired I want to popup an info > message in the IDE. > > -- > Att, > > Rafael M. Pestano > > Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul > http://rpestano.wordpress.com/ > @realpestano > > _______________________________________________ > forge-users mailing list > forge-users at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/forge-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/forge-users/attachments/20151018/d02e2501/attachment.html