From ggastald at redhat.com Wed Dec 4 11:56:46 2013
From: ggastald at redhat.com (George Gastaldi)
Date: Wed, 04 Dec 2013 14:56:46 -0200
Subject: [forge-dev] Forge Meeting Minutes - 2013-12-04
Message-ID: <529F5ECE.7010706@redhat.com>
==============
#forge Meeting
==============
Meeting started by gastaldi at 15:57:44 UTC. The full logs are available
at
http://transcripts.jboss.org/meeting/irc.freenode.org/forge/2013/forge.2013-12-04-15.57.log.html
.
Meeting summary
---------------
* Agenda (gastaldi, 15:58:00)
* Forge 2 Roadmap and Progress (gastaldi, 15:58:39)
* Test Harness (gastaldi, 15:58:46)
* Forge 2 Roadmap and Progress (gastaldi, 15:59:28)
* Forge 2.0.0.Beta4 should be released in December (gastaldi,
16:32:28)
* Test harness (gastaldi, 16:34:44)
* we should have a scaffold test harness (gastaldi, 16:45:13)
* the scaffold test harness should not be a blocker for 2.0.0.Beta4
(gastaldi, 16:45:25)
Meeting ended at 16:46:28 UTC.
Action Items
------------
Action Items, by person
-----------------------
* **UNASSIGNED**
* (none)
People Present (lines said)
---------------------------
* gastaldi (74)
* vineetreynolds (62)
* agoncal (26)
* jbossbot (3)
* jbott (3)
* dbeer (1)
Generated by `MeetBot`_ 0.1.4
.. _`MeetBot`: http://wiki.debian.org/MeetBot
--
*George Gastaldi | Senior Software Engineer*
JBoss Forge Team
T: +55 11 3524-6169
M: +55 47 9711-1000
Red Hat
Better technology. Faster innovation. Powered by community collaboration.
See how it works at www.redhat.com
LinkedIn Youtube
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20131204/a1abcfe4/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: {a8aabf3a-4467-4e37-9bc5-48b1d7b494a2}_LATAM_RedHat.jpg
Type: image/jpeg
Size: 4815 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/forge-dev/attachments/20131204/a1abcfe4/attachment.jpg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linkedin.png
Type: image/png
Size: 597 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/forge-dev/attachments/20131204/a1abcfe4/attachment.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: youtube.png
Type: image/png
Size: 616 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/forge-dev/attachments/20131204/a1abcfe4/attachment-0001.png
From rmpestano at gmail.com Mon Dec 9 09:11:03 2013
From: rmpestano at gmail.com (Rafael Pestano)
Date: Mon, 9 Dec 2013 12:11:03 -0200
Subject: [forge-dev] ClassNotFoundException:
org.jboss.forge.bootstrap.Bootstrap
In-Reply-To:
References:
Message-ID:
Hi guys, im getting this exception too but im using 1.4.3-Final.
Can it be related to proxy settings?
although i get the exception Forge starts and i can run commands without
problems:
java.lang.IllegalStateException: Plugin entry.getApiVersion() must not be
null.
at org.jboss.forge.parser.java.util.Assert.notNull(Assert.java:35)
at
org.jboss.forge.shell.InstalledPluginRegistry.isApiCompatible(InstalledPluginRegistry.java:268)
at
org.jboss.forge.shell.InstalledPluginRegistry.listByAPICompatibleVersion(InstalledPluginRegistry.java:85)
at org.jboss.forge.shell.Bootstrap.loadPlugins(Bootstrap.java:233)
at org.jboss.forge.shell.Bootstrap.access$200(Bootstrap.java:38)
at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:125)
at java.lang.Thread.run(Thread.java:724)
_____
| ___|__ _ __ __ _ ___
| |_ / _ \| `__/ _` |/ _ \ \\
| _| (_) | | | (_| | __/ //
|_| \___/|_| \__, |\___|
|___/
Windows? Really? Okay...
thanks in advance
2013/11/24 Ivan St. Ivanov
> Hi George,
>
> The problem was that my FORGE_HOME environment var was still pointing to
> the 1.4 version of Forge. Sorry for disturbing!
>
> Cheers,
> Ivan
> On Nov 24, 2013 1:11 AM, "George Gastaldi" wrote:
>
>> This is odd. Are you running on which OS?
>>
>> Em 23/11/2013, ?s 19:19, "Ivan St. Ivanov"
>> escreveu:
>>
>> Hi folks,
>>
>> I just downloaded the Forge 2 distribution from
>> https://repository.jboss.org/nexus/service/local/artifact/maven/redirect?r=releases&g=org.jboss.forge&a=forge-distribution&v=2.0.0.Beta3&e=zip
>>
>> When I try to start it by running the forge script, I get the following
>> exception:
>>
>> Caused by: java.lang.ClassNotFoundException:
>> org.jboss.forge.bootstrap.Bootstrap
>>
>> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>> Could not find the main class: org.jboss.forge.bootstrap.Bootstrap.
>> Program will exit.
>>
>> Am I missing something?
>>
>> Thanks,
>> Ivan
>>
>> _______________________________________________
>> 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
>>
>
> _______________________________________________
> forge-dev mailing list
> forge-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-dev
>
--
Att,
Rafael M. Pestano
Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
Graduando em Ci?ncia da Computa??o UFRGS
http://conventionsframework.org
http://rpestano.wordpress.com/
@realpestano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20131209/b387f4de/attachment.html
From vpereira at redhat.com Mon Dec 9 09:34:27 2013
From: vpereira at redhat.com (Vineet Reynolds Pereira)
Date: Mon, 9 Dec 2013 09:34:27 -0500 (EST)
Subject: [forge-dev]
ClassNotFoundException: org.jboss.forge.bootstrap.Bootstrap
In-Reply-To:
References:
Message-ID: <57560927.37116823.1386599667527.JavaMail.root@redhat.com>
----- Original Message -----
> From: "Rafael Pestano"
> To: "forge-dev List"
> Sent: Monday, December 9, 2013 7:41:03 PM
> Subject: Re: [forge-dev] ClassNotFoundException: org.jboss.forge.bootstrap.Bootstrap
>
> Hi guys, im getting this exception too but im using 1.4.3-Final.
>
> Can it be related to proxy settings?
Hey Rafael,
This doesn't look like a proxy issue. Could you please verify that you're indeed using 1.4.3.Final ?
The stack trace seems to indicate you're on 1.2.0.Final or earlier.
Thanks,
Vineet
>
>
> although i get the exception Forge starts and i can run commands without
> problems:
>
> java.lang.IllegalStateException: Plugin entry.getApiVersion() must not be
> null.
> at org.jboss.forge.parser.java.util.Assert.notNull(Assert.java:35)
> at
> org.jboss.forge.shell.InstalledPluginRegistry.isApiCompatible(InstalledPluginRegistry.java:268)
> at
> org.jboss.forge.shell.InstalledPluginRegistry.listByAPICompatibleVersion(InstalledPluginRegistry.java:85)
> at org.jboss.forge.shell.Bootstrap.loadPlugins(Bootstrap.java:233)
> at org.jboss.forge.shell.Bootstrap.access$200(Bootstrap.java:38)
> at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:125)
> at java.lang.Thread.run(Thread.java:724)
> _____
> | ___|__ _ __ __ _ ___
> | |_ / _ \| `__/ _` |/ _ \ \\
> | _| (_) | | | (_| | __/ //
> |_| \___/|_| \__, |\___|
> |___/
>
> Windows? Really? Okay...
>
> thanks in advance
>
>
> 2013/11/24 Ivan St. Ivanov < ivan.st.ivanov at gmail.com >
>
>
>
>
> Hi George,
>
> The problem was that my FORGE_HOME environment var was still pointing to the
> 1.4 version of Forge. Sorry for disturbing!
>
> Cheers,
> Ivan
> On Nov 24, 2013 1:11 AM, "George Gastaldi" < ggastald at redhat.com > wrote:
>
>
>
> This is odd. Are you running on which OS?
>
> Em 23/11/2013, ?s 19:19, "Ivan St. Ivanov" < ivan.st.ivanov at gmail.com >
> escreveu:
>
>
>
>
> Hi folks,
>
> I just downloaded the Forge 2 distribution from
> https://repository.jboss.org/nexus/service/local/artifact/maven/redirect?r=releases&g=org.jboss.forge&a=forge-distribution&v=2.0.0.Beta3&e=zip
>
> When I try to start it by running the forge script, I get the following
> exception:
>
> Caused by: java.lang.ClassNotFoundException:
> org.jboss.forge.bootstrap.Bootstrap
>
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> Could not find the main class: org.jboss.forge.bootstrap.Bootstrap. Program
> will exit.
>
> Am I missing something?
>
> Thanks,
> Ivan
>
>
>
> _______________________________________________
> 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
>
> _______________________________________________
> forge-dev mailing list
> forge-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-dev
>
>
>
> --
> Att,
>
> Rafael M. Pestano
>
> Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
> Graduando em Ci?ncia da Computa??o UFRGS
> http://conventionsframework.org
> http://rpestano.wordpress.com/
> @realpestano
>
> _______________________________________________
> forge-dev mailing list
> forge-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-dev
From ivan.st.ivanov at gmail.com Mon Dec 9 09:43:01 2013
From: ivan.st.ivanov at gmail.com (Ivan St. Ivanov)
Date: Mon, 9 Dec 2013 16:43:01 +0200
Subject: [forge-dev] ClassNotFoundException:
org.jboss.forge.bootstrap.Bootstrap
In-Reply-To: <57560927.37116823.1386599667527.JavaMail.root@redhat.com>
References:
<57560927.37116823.1386599667527.JavaMail.root@redhat.com>
Message-ID:
Hi Rafael,
Where does your $FORGE_HOME variable point to?
Cheers,
Ivan
On Mon, Dec 9, 2013 at 4:34 PM, Vineet Reynolds Pereira wrote:
>
>
> ----- Original Message -----
> > From: "Rafael Pestano"
> > To: "forge-dev List"
> > Sent: Monday, December 9, 2013 7:41:03 PM
> > Subject: Re: [forge-dev] ClassNotFoundException:
> org.jboss.forge.bootstrap.Bootstrap
> >
> > Hi guys, im getting this exception too but im using 1.4.3-Final.
> >
> > Can it be related to proxy settings?
>
> Hey Rafael,
>
> This doesn't look like a proxy issue. Could you please verify that
> you're indeed using 1.4.3.Final ?
>
> The stack trace seems to indicate you're on 1.2.0.Final or earlier.
>
> Thanks,
> Vineet
>
> >
> >
> > although i get the exception Forge starts and i can run commands without
> > problems:
> >
> > java.lang.IllegalStateException: Plugin entry.getApiVersion() must not be
> > null.
> > at org.jboss.forge.parser.java.util.Assert.notNull(Assert.java:35)
> > at
> >
> org.jboss.forge.shell.InstalledPluginRegistry.isApiCompatible(InstalledPluginRegistry.java:268)
> > at
> >
> org.jboss.forge.shell.InstalledPluginRegistry.listByAPICompatibleVersion(InstalledPluginRegistry.java:85)
> > at org.jboss.forge.shell.Bootstrap.loadPlugins(Bootstrap.java:233)
> > at org.jboss.forge.shell.Bootstrap.access$200(Bootstrap.java:38)
> > at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:125)
> > at java.lang.Thread.run(Thread.java:724)
> > _____
> > | ___|__ _ __ __ _ ___
> > | |_ / _ \| `__/ _` |/ _ \ \\
> > | _| (_) | | | (_| | __/ //
> > |_| \___/|_| \__, |\___|
> > |___/
> >
> > Windows? Really? Okay...
> >
> > thanks in advance
> >
> >
> > 2013/11/24 Ivan St. Ivanov < ivan.st.ivanov at gmail.com >
> >
> >
> >
> >
> > Hi George,
> >
> > The problem was that my FORGE_HOME environment var was still pointing to
> the
> > 1.4 version of Forge. Sorry for disturbing!
> >
> > Cheers,
> > Ivan
> > On Nov 24, 2013 1:11 AM, "George Gastaldi" < ggastald at redhat.com >
> wrote:
> >
> >
> >
> > This is odd. Are you running on which OS?
> >
> > Em 23/11/2013, ?s 19:19, "Ivan St. Ivanov" < ivan.st.ivanov at gmail.com >
> > escreveu:
> >
> >
> >
> >
> > Hi folks,
> >
> > I just downloaded the Forge 2 distribution from
> >
> https://repository.jboss.org/nexus/service/local/artifact/maven/redirect?r=releases&g=org.jboss.forge&a=forge-distribution&v=2.0.0.Beta3&e=zip
> >
> > When I try to start it by running the forge script, I get the following
> > exception:
> >
> > Caused by: java.lang.ClassNotFoundException:
> > org.jboss.forge.bootstrap.Bootstrap
> >
> > at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> > Could not find the main class: org.jboss.forge.bootstrap.Bootstrap.
> Program
> > will exit.
> >
> > Am I missing something?
> >
> > Thanks,
> > Ivan
> >
> >
> >
> > _______________________________________________
> > 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
> >
> > _______________________________________________
> > forge-dev mailing list
> > forge-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/forge-dev
> >
> >
> >
> > --
> > Att,
> >
> > Rafael M. Pestano
> >
> > Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
> > Graduando em Ci?ncia da Computa??o UFRGS
> > http://conventionsframework.org
> > http://rpestano.wordpress.com/
> > @realpestano
> >
> > _______________________________________________
> > 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-dev/attachments/20131209/861c8a30/attachment.html
From rmpestano at gmail.com Mon Dec 9 10:25:05 2013
From: rmpestano at gmail.com (Rafael Pestano)
Date: Mon, 9 Dec 2013 13:25:05 -0200
Subject: [forge-dev] ClassNotFoundException:
org.jboss.forge.bootstrap.Bootstrap
In-Reply-To:
References:
<57560927.37116823.1386599667527.JavaMail.root@redhat.com>
Message-ID:
my forge home is C:\Pestano\forge-distribution-1.4.3.Final and in path i
have: %FORGE_HOME%/bin
"The stack trace seems to indicate you're on 1.2.0.Final or earlier." i
indeed have used forge-distribution-1.2.2.Final some time ago, maybe
there's some dirty from early version. Should i clean .forge folder?
2013/12/9 Ivan St. Ivanov
> Hi Rafael,
>
> Where does your $FORGE_HOME variable point to?
>
> Cheers,
> Ivan
>
>
> On Mon, Dec 9, 2013 at 4:34 PM, Vineet Reynolds Pereira <
> vpereira at redhat.com> wrote:
>
>>
>>
>> ----- Original Message -----
>> > From: "Rafael Pestano"
>> > To: "forge-dev List"
>> > Sent: Monday, December 9, 2013 7:41:03 PM
>> > Subject: Re: [forge-dev] ClassNotFoundException:
>> org.jboss.forge.bootstrap.Bootstrap
>> >
>> > Hi guys, im getting this exception too but im using 1.4.3-Final.
>> >
>> > Can it be related to proxy settings?
>>
>> Hey Rafael,
>>
>> This doesn't look like a proxy issue. Could you please verify that
>> you're indeed using 1.4.3.Final ?
>>
>> The stack trace seems to indicate you're on 1.2.0.Final or earlier.
>>
>> Thanks,
>> Vineet
>>
>> >
>> >
>> > although i get the exception Forge starts and i can run commands without
>> > problems:
>> >
>> > java.lang.IllegalStateException: Plugin entry.getApiVersion() must not
>> be
>> > null.
>> > at org.jboss.forge.parser.java.util.Assert.notNull(Assert.java:35)
>> > at
>> >
>> org.jboss.forge.shell.InstalledPluginRegistry.isApiCompatible(InstalledPluginRegistry.java:268)
>> > at
>> >
>> org.jboss.forge.shell.InstalledPluginRegistry.listByAPICompatibleVersion(InstalledPluginRegistry.java:85)
>> > at org.jboss.forge.shell.Bootstrap.loadPlugins(Bootstrap.java:233)
>> > at org.jboss.forge.shell.Bootstrap.access$200(Bootstrap.java:38)
>> > at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:125)
>> > at java.lang.Thread.run(Thread.java:724)
>> > _____
>> > | ___|__ _ __ __ _ ___
>> > | |_ / _ \| `__/ _` |/ _ \ \\
>> > | _| (_) | | | (_| | __/ //
>> > |_| \___/|_| \__, |\___|
>> > |___/
>> >
>> > Windows? Really? Okay...
>> >
>> > thanks in advance
>> >
>> >
>> > 2013/11/24 Ivan St. Ivanov < ivan.st.ivanov at gmail.com >
>> >
>> >
>> >
>> >
>> > Hi George,
>> >
>> > The problem was that my FORGE_HOME environment var was still pointing
>> to the
>> > 1.4 version of Forge. Sorry for disturbing!
>> >
>> > Cheers,
>> > Ivan
>> > On Nov 24, 2013 1:11 AM, "George Gastaldi" < ggastald at redhat.com >
>> wrote:
>> >
>> >
>> >
>> > This is odd. Are you running on which OS?
>> >
>> > Em 23/11/2013, ?s 19:19, "Ivan St. Ivanov" < ivan.st.ivanov at gmail.com >
>> > escreveu:
>> >
>> >
>> >
>> >
>> > Hi folks,
>> >
>> > I just downloaded the Forge 2 distribution from
>> >
>> https://repository.jboss.org/nexus/service/local/artifact/maven/redirect?r=releases&g=org.jboss.forge&a=forge-distribution&v=2.0.0.Beta3&e=zip
>> >
>> > When I try to start it by running the forge script, I get the following
>> > exception:
>> >
>> > Caused by: java.lang.ClassNotFoundException:
>> > org.jboss.forge.bootstrap.Bootstrap
>> >
>> > at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>> > at java.security.AccessController.doPrivileged(Native Method)
>> > at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>> > at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>> > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>> > at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>> > Could not find the main class: org.jboss.forge.bootstrap.Bootstrap.
>> Program
>> > will exit.
>> >
>> > Am I missing something?
>> >
>> > Thanks,
>> > Ivan
>> >
>> >
>> >
>> > _______________________________________________
>> > 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
>> >
>> > _______________________________________________
>> > forge-dev mailing list
>> > forge-dev at lists.jboss.org
>> > https://lists.jboss.org/mailman/listinfo/forge-dev
>> >
>> >
>> >
>> > --
>> > Att,
>> >
>> > Rafael M. Pestano
>> >
>> > Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
>> > Graduando em Ci?ncia da Computa??o UFRGS
>> > http://conventionsframework.org
>> > http://rpestano.wordpress.com/
>> > @realpestano
>> >
>> > _______________________________________________
>> > 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
>>
>
>
> _______________________________________________
> forge-dev mailing list
> forge-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-dev
>
--
Att,
Rafael M. Pestano
Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
Graduando em Ci?ncia da Computa??o UFRGS
http://conventionsframework.org
http://rpestano.wordpress.com/
@realpestano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20131209/a186edf5/attachment.html
From rmpestano at gmail.com Mon Dec 9 10:27:39 2013
From: rmpestano at gmail.com (Rafael Pestano)
Date: Mon, 9 Dec 2013 13:27:39 -0200
Subject: [forge-dev] ClassNotFoundException:
org.jboss.forge.bootstrap.Bootstrap
In-Reply-To:
References:
<57560927.37116823.1386599667527.JavaMail.root@redhat.com>
Message-ID:
ok im using 1.2.2 final ;(
the version command prints: JBoss Forge, version [ 1.2.2.Final ] - JBoss,
by Red Hat, Inc. [ http://jboss.org/forge ]
but i dont know how to change it, any ideas?
thanks for the quick reply
2013/12/9 Rafael Pestano
> my forge home is C:\Pestano\forge-distribution-1.4.3.Final and in path i
> have: %FORGE_HOME%/bin
>
>
> "The stack trace seems to indicate you're on 1.2.0.Final or earlier." i
> indeed have used forge-distribution-1.2.2.Final some time ago, maybe
> there's some dirty from early version. Should i clean .forge folder?
>
>
>
> 2013/12/9 Ivan St. Ivanov
>
> Hi Rafael,
>>
>> Where does your $FORGE_HOME variable point to?
>>
>> Cheers,
>> Ivan
>>
>>
>> On Mon, Dec 9, 2013 at 4:34 PM, Vineet Reynolds Pereira <
>> vpereira at redhat.com> wrote:
>>
>>>
>>>
>>> ----- Original Message -----
>>> > From: "Rafael Pestano"
>>> > To: "forge-dev List"
>>> > Sent: Monday, December 9, 2013 7:41:03 PM
>>> > Subject: Re: [forge-dev] ClassNotFoundException:
>>> org.jboss.forge.bootstrap.Bootstrap
>>> >
>>> > Hi guys, im getting this exception too but im using 1.4.3-Final.
>>> >
>>> > Can it be related to proxy settings?
>>>
>>> Hey Rafael,
>>>
>>> This doesn't look like a proxy issue. Could you please verify that
>>> you're indeed using 1.4.3.Final ?
>>>
>>> The stack trace seems to indicate you're on 1.2.0.Final or earlier.
>>>
>>> Thanks,
>>> Vineet
>>>
>>> >
>>> >
>>> > although i get the exception Forge starts and i can run commands
>>> without
>>> > problems:
>>> >
>>> > java.lang.IllegalStateException: Plugin entry.getApiVersion() must not
>>> be
>>> > null.
>>> > at org.jboss.forge.parser.java.util.Assert.notNull(Assert.java:35)
>>> > at
>>> >
>>> org.jboss.forge.shell.InstalledPluginRegistry.isApiCompatible(InstalledPluginRegistry.java:268)
>>> > at
>>> >
>>> org.jboss.forge.shell.InstalledPluginRegistry.listByAPICompatibleVersion(InstalledPluginRegistry.java:85)
>>> > at org.jboss.forge.shell.Bootstrap.loadPlugins(Bootstrap.java:233)
>>> > at org.jboss.forge.shell.Bootstrap.access$200(Bootstrap.java:38)
>>> > at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:125)
>>> > at java.lang.Thread.run(Thread.java:724)
>>> > _____
>>> > | ___|__ _ __ __ _ ___
>>> > | |_ / _ \| `__/ _` |/ _ \ \\
>>> > | _| (_) | | | (_| | __/ //
>>> > |_| \___/|_| \__, |\___|
>>> > |___/
>>> >
>>> > Windows? Really? Okay...
>>> >
>>> > thanks in advance
>>> >
>>> >
>>> > 2013/11/24 Ivan St. Ivanov < ivan.st.ivanov at gmail.com >
>>> >
>>> >
>>> >
>>> >
>>> > Hi George,
>>> >
>>> > The problem was that my FORGE_HOME environment var was still pointing
>>> to the
>>> > 1.4 version of Forge. Sorry for disturbing!
>>> >
>>> > Cheers,
>>> > Ivan
>>> > On Nov 24, 2013 1:11 AM, "George Gastaldi" < ggastald at redhat.com >
>>> wrote:
>>> >
>>> >
>>> >
>>> > This is odd. Are you running on which OS?
>>> >
>>> > Em 23/11/2013, ?s 19:19, "Ivan St. Ivanov" < ivan.st.ivanov at gmail.com>
>>> > escreveu:
>>> >
>>> >
>>> >
>>> >
>>> > Hi folks,
>>> >
>>> > I just downloaded the Forge 2 distribution from
>>> >
>>> https://repository.jboss.org/nexus/service/local/artifact/maven/redirect?r=releases&g=org.jboss.forge&a=forge-distribution&v=2.0.0.Beta3&e=zip
>>> >
>>> > When I try to start it by running the forge script, I get the following
>>> > exception:
>>> >
>>> > Caused by: java.lang.ClassNotFoundException:
>>> > org.jboss.forge.bootstrap.Bootstrap
>>> >
>>> > at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>>> > at java.security.AccessController.doPrivileged(Native Method)
>>> > at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>> > at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>> > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>> > at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>> > Could not find the main class: org.jboss.forge.bootstrap.Bootstrap.
>>> Program
>>> > will exit.
>>> >
>>> > Am I missing something?
>>> >
>>> > Thanks,
>>> > Ivan
>>> >
>>> >
>>> >
>>> > _______________________________________________
>>> > 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
>>> >
>>> > _______________________________________________
>>> > forge-dev mailing list
>>> > forge-dev at lists.jboss.org
>>> > https://lists.jboss.org/mailman/listinfo/forge-dev
>>> >
>>> >
>>> >
>>> > --
>>> > Att,
>>> >
>>> > Rafael M. Pestano
>>> >
>>> > Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
>>> > Graduando em Ci?ncia da Computa??o UFRGS
>>> > http://conventionsframework.org
>>> > http://rpestano.wordpress.com/
>>> > @realpestano
>>> >
>>> > _______________________________________________
>>> > 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
>>>
>>
>>
>> _______________________________________________
>> forge-dev mailing list
>> forge-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/forge-dev
>>
>
>
>
> --
> Att,
>
> Rafael M. Pestano
>
> Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
> Graduando em Ci?ncia da Computa??o UFRGS
> http://conventionsframework.org
> http://rpestano.wordpress.com/
> @realpestano
>
--
Att,
Rafael M. Pestano
Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
Graduando em Ci?ncia da Computa??o UFRGS
http://conventionsframework.org
http://rpestano.wordpress.com/
@realpestano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20131209/3b4fca51/attachment-0001.html
From rmpestano at gmail.com Mon Dec 9 10:59:41 2013
From: rmpestano at gmail.com (Rafael Pestano)
Date: Mon, 9 Dec 2013 13:59:41 -0200
Subject: [forge-dev] ClassNotFoundException:
org.jboss.forge.bootstrap.Bootstrap
In-Reply-To:
References:
<57560927.37116823.1386599667527.JavaMail.root@redhat.com>
Message-ID:
restarted machine and now version command returns 1.4.3 but still got the
exception:
C:\>forge
java.lang.IllegalStateException: Plugin entry.getApiVersion() must not be
null.
at org.jboss.forge.parser.java.util.Assert.notNull(Assert.java:35)
at
org.jboss.forge.shell.InstalledPluginRegistry.isApiCompatible(InstalledPluginRegistry.java:300)
at
org.jboss.forge.shell.InstalledPluginRegistry.listByAPICompatibleVersion(InstalledPluginRegistry.java:86)
at org.jboss.forge.shell.Bootstrap.loadPlugins(Bootstrap.java:247)
at org.jboss.forge.shell.Bootstrap.access$200(Bootstrap.java:38)
at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:139)
at java.lang.Thread.run(Thread.java:724)
_____
| ___|__ _ __ __ _ ___
| |_ / _ \| `__/ _` |/ _ \ \\
| _| (_) | | | (_| | __/ //
|_| \___/|_| \__, |\___|
|___/
Windows? Really? Okay...
[no project] $ version[]
***ERROR*** No such command: version[]
[no project] $ version
JBoss Forge, version [ 1.4.3.Final ] - JBoss, by Red Hat, Inc. [
http://jboss.org/forge ]
[no project] $
2013/12/9 Rafael Pestano
> ok im using 1.2.2 final ;(
>
> the version command prints: JBoss Forge, version [ 1.2.2.Final ] - JBoss,
> by Red Hat, Inc. [ http://jboss.org/forge ]
>
> but i dont know how to change it, any ideas?
>
> thanks for the quick reply
>
>
>
>
> 2013/12/9 Rafael Pestano
>
>> my forge home is C:\Pestano\forge-distribution-1.4.3.Final and in path i
>> have: %FORGE_HOME%/bin
>>
>>
>> "The stack trace seems to indicate you're on 1.2.0.Final or earlier." i
>> indeed have used forge-distribution-1.2.2.Final some time ago, maybe
>> there's some dirty from early version. Should i clean .forge folder?
>>
>>
>>
>> 2013/12/9 Ivan St. Ivanov
>>
>> Hi Rafael,
>>>
>>> Where does your $FORGE_HOME variable point to?
>>>
>>> Cheers,
>>> Ivan
>>>
>>>
>>> On Mon, Dec 9, 2013 at 4:34 PM, Vineet Reynolds Pereira <
>>> vpereira at redhat.com> wrote:
>>>
>>>>
>>>>
>>>> ----- Original Message -----
>>>> > From: "Rafael Pestano"
>>>> > To: "forge-dev List"
>>>> > Sent: Monday, December 9, 2013 7:41:03 PM
>>>> > Subject: Re: [forge-dev] ClassNotFoundException:
>>>> org.jboss.forge.bootstrap.Bootstrap
>>>> >
>>>> > Hi guys, im getting this exception too but im using 1.4.3-Final.
>>>> >
>>>> > Can it be related to proxy settings?
>>>>
>>>> Hey Rafael,
>>>>
>>>> This doesn't look like a proxy issue. Could you please verify that
>>>> you're indeed using 1.4.3.Final ?
>>>>
>>>> The stack trace seems to indicate you're on 1.2.0.Final or earlier.
>>>>
>>>> Thanks,
>>>> Vineet
>>>>
>>>> >
>>>> >
>>>> > although i get the exception Forge starts and i can run commands
>>>> without
>>>> > problems:
>>>> >
>>>> > java.lang.IllegalStateException: Plugin entry.getApiVersion() must
>>>> not be
>>>> > null.
>>>> > at org.jboss.forge.parser.java.util.Assert.notNull(Assert.java:35)
>>>> > at
>>>> >
>>>> org.jboss.forge.shell.InstalledPluginRegistry.isApiCompatible(InstalledPluginRegistry.java:268)
>>>> > at
>>>> >
>>>> org.jboss.forge.shell.InstalledPluginRegistry.listByAPICompatibleVersion(InstalledPluginRegistry.java:85)
>>>> > at org.jboss.forge.shell.Bootstrap.loadPlugins(Bootstrap.java:233)
>>>> > at org.jboss.forge.shell.Bootstrap.access$200(Bootstrap.java:38)
>>>> > at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:125)
>>>> > at java.lang.Thread.run(Thread.java:724)
>>>> > _____
>>>> > | ___|__ _ __ __ _ ___
>>>> > | |_ / _ \| `__/ _` |/ _ \ \\
>>>> > | _| (_) | | | (_| | __/ //
>>>> > |_| \___/|_| \__, |\___|
>>>> > |___/
>>>> >
>>>> > Windows? Really? Okay...
>>>> >
>>>> > thanks in advance
>>>> >
>>>> >
>>>> > 2013/11/24 Ivan St. Ivanov < ivan.st.ivanov at gmail.com >
>>>> >
>>>> >
>>>> >
>>>> >
>>>> > Hi George,
>>>> >
>>>> > The problem was that my FORGE_HOME environment var was still pointing
>>>> to the
>>>> > 1.4 version of Forge. Sorry for disturbing!
>>>> >
>>>> > Cheers,
>>>> > Ivan
>>>> > On Nov 24, 2013 1:11 AM, "George Gastaldi" < ggastald at redhat.com >
>>>> wrote:
>>>> >
>>>> >
>>>> >
>>>> > This is odd. Are you running on which OS?
>>>> >
>>>> > Em 23/11/2013, ?s 19:19, "Ivan St. Ivanov" < ivan.st.ivanov at gmail.com>
>>>> > escreveu:
>>>> >
>>>> >
>>>> >
>>>> >
>>>> > Hi folks,
>>>> >
>>>> > I just downloaded the Forge 2 distribution from
>>>> >
>>>> https://repository.jboss.org/nexus/service/local/artifact/maven/redirect?r=releases&g=org.jboss.forge&a=forge-distribution&v=2.0.0.Beta3&e=zip
>>>> >
>>>> > When I try to start it by running the forge script, I get the
>>>> following
>>>> > exception:
>>>> >
>>>> > Caused by: java.lang.ClassNotFoundException:
>>>> > org.jboss.forge.bootstrap.Bootstrap
>>>> >
>>>> > at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>>>> > at java.security.AccessController.doPrivileged(Native Method)
>>>> > at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>>> > at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>>> > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>>> > at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>>> > Could not find the main class: org.jboss.forge.bootstrap.Bootstrap.
>>>> Program
>>>> > will exit.
>>>> >
>>>> > Am I missing something?
>>>> >
>>>> > Thanks,
>>>> > Ivan
>>>> >
>>>> >
>>>> >
>>>> > _______________________________________________
>>>> > 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
>>>> >
>>>> > _______________________________________________
>>>> > forge-dev mailing list
>>>> > forge-dev at lists.jboss.org
>>>> > https://lists.jboss.org/mailman/listinfo/forge-dev
>>>> >
>>>> >
>>>> >
>>>> > --
>>>> > Att,
>>>> >
>>>> > Rafael M. Pestano
>>>> >
>>>> > Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
>>>> > Graduando em Ci?ncia da Computa??o UFRGS
>>>> > http://conventionsframework.org
>>>> > http://rpestano.wordpress.com/
>>>> > @realpestano
>>>> >
>>>> > _______________________________________________
>>>> > 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
>>>>
>>>
>>>
>>> _______________________________________________
>>> forge-dev mailing list
>>> forge-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/forge-dev
>>>
>>
>>
>>
>> --
>> Att,
>>
>> Rafael M. Pestano
>>
>> Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
>> Graduando em Ci?ncia da Computa??o UFRGS
>> http://conventionsframework.org
>> http://rpestano.wordpress.com/
>> @realpestano
>>
>
>
>
> --
> Att,
>
> Rafael M. Pestano
>
> Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
> Graduando em Ci?ncia da Computa??o UFRGS
> http://conventionsframework.org
> http://rpestano.wordpress.com/
> @realpestano
>
--
Att,
Rafael M. Pestano
Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
Graduando em Ci?ncia da Computa??o UFRGS
http://conventionsframework.org
http://rpestano.wordpress.com/
@realpestano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20131209/313d0ad0/attachment.html
From ggastald at redhat.com Mon Dec 9 11:01:24 2013
From: ggastald at redhat.com (George Gastaldi)
Date: Mon, 09 Dec 2013 14:01:24 -0200
Subject: [forge-dev] ClassNotFoundException:
org.jboss.forge.bootstrap.Bootstrap
In-Reply-To:
References: <57560927.37116823.1386599667527.JavaMail.root@redhat.com>
Message-ID: <52A5E954.20100@redhat.com>
Rafael,
please remove your ~/.forge folder and try again.
On 12/09/2013 01:59 PM, Rafael Pestano wrote:
> restarted machine and now version command returns 1.4.3 but still got
> the exception:
>
> C:\>forge
> java.lang.IllegalStateException: Plugin entry.getApiVersion() must not
> be null.
> at org.jboss.forge.parser.java.util.Assert.notNull(Assert.java:35)
> at
> org.jboss.forge.shell.InstalledPluginRegistry.isApiCompatible(InstalledPluginRegistry.java:300)
> at
> org.jboss.forge.shell.InstalledPluginRegistry.listByAPICompatibleVersion(InstalledPluginRegistry.java:86)
> at org.jboss.forge.shell.Bootstrap.loadPlugins(Bootstrap.java:247)
> at org.jboss.forge.shell.Bootstrap.access$200(Bootstrap.java:38)
> at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:139)
> at java.lang.Thread.run(Thread.java:724)
> _____
> | ___|__ _ __ __ _ ___
> | |_ / _ \| `__/ _` |/ _ \ \\
> | _| (_) | | | (_| | __/ //
> |_| \___/|_| \__, |\___|
> |___/
>
> Windows? Really? Okay...
>
> [no project] $ version[]
> ***ERROR*** No such command: version[]
> [no project] $ version
> JBoss Forge, version [ 1.4.3.Final ] - JBoss, by Red Hat, Inc. [
> http://jboss.org/forge ]
> [no project] $
>
>
> 2013/12/9 Rafael Pestano >
>
> ok im using 1.2.2 final ;(
>
> the version command prints: JBoss Forge, version [ 1.2.2.Final ] -
> JBoss, by Red Hat, Inc. [ http://jboss.org/forge ]
>
> but i dont know how to change it, any ideas?
>
> thanks for the quick reply
>
>
>
>
> 2013/12/9 Rafael Pestano >
>
> my forge home is C:\Pestano\forge-distribution-1.4.3.Final and
> in path i have: %FORGE_HOME%/bin
>
>
> "The stack trace seems to indicate you're on 1.2.0.Final or
> earlier." i indeed have used forge-distribution-1.2.2.Final
> some time ago, maybe there's some dirty from early version.
> Should i clean .forge folder?
>
>
>
> 2013/12/9 Ivan St. Ivanov >
>
> Hi Rafael,
>
> Where does your $FORGE_HOME variable point to?
>
> Cheers,
> Ivan
>
>
> On Mon, Dec 9, 2013 at 4:34 PM, Vineet Reynolds Pereira
> > wrote:
>
>
>
> ----- Original Message -----
> > From: "Rafael Pestano" >
> > To: "forge-dev List" >
> > Sent: Monday, December 9, 2013 7:41:03 PM
> > Subject: Re: [forge-dev] ClassNotFoundException:
> org.jboss.forge.bootstrap.Bootstrap
> >
> > Hi guys, im getting this exception too but im using
> 1.4.3-Final.
> >
> > Can it be related to proxy settings?
>
> Hey Rafael,
>
> This doesn't look like a proxy issue. Could you
> please verify that you're indeed using 1.4.3.Final ?
>
> The stack trace seems to indicate you're on
> 1.2.0.Final or earlier.
>
> Thanks,
> Vineet
>
> >
> >
> > although i get the exception Forge starts and i can
> run commands without
> > problems:
> >
> > java.lang.IllegalStateException: Plugin
> entry.getApiVersion() must not be
> > null.
> > at
> org.jboss.forge.parser.java.util.Assert.notNull(Assert.java:35)
> > at
> >
> org.jboss.forge.shell.InstalledPluginRegistry.isApiCompatible(InstalledPluginRegistry.java:268)
> > at
> >
> org.jboss.forge.shell.InstalledPluginRegistry.listByAPICompatibleVersion(InstalledPluginRegistry.java:85)
> > at
> org.jboss.forge.shell.Bootstrap.loadPlugins(Bootstrap.java:233)
> > at
> org.jboss.forge.shell.Bootstrap.access$200(Bootstrap.java:38)
> > at
> org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:125)
> > at java.lang.Thread.run(Thread.java:724)
> > _____
> > | ___|__ _ __ __ _ ___
> > | |_ / _ \| `__/ _` |/ _ \ \\
> > | _| (_) | | | (_| | __/ //
> > |_| \___/|_| \__, |\___|
> > |___/
> >
> > Windows? Really? Okay...
> >
> > thanks in advance
> >
> >
> > 2013/11/24 Ivan St. Ivanov <
> ivan.st.ivanov at gmail.com
> >
> >
> >
> >
> >
> > Hi George,
> >
> > The problem was that my FORGE_HOME environment var
> was still pointing to the
> > 1.4 version of Forge. Sorry for disturbing!
> >
> > Cheers,
> > Ivan
> > On Nov 24, 2013 1:11 AM, "George Gastaldi" <
> ggastald at redhat.com > wrote:
> >
> >
> >
> > This is odd. Are you running on which OS?
> >
> > Em 23/11/2013, ?s 19:19, "Ivan St. Ivanov" <
> ivan.st.ivanov at gmail.com
> >
> > escreveu:
> >
> >
> >
> >
> > Hi folks,
> >
> > I just downloaded the Forge 2 distribution from
> >
> https://repository.jboss.org/nexus/service/local/artifact/maven/redirect?r=releases&g=org.jboss.forge&a=forge-distribution&v=2.0.0.Beta3&e=zip
> >
> > When I try to start it by running the forge script,
> I get the following
> > exception:
> >
> > Caused by: java.lang.ClassNotFoundException:
> > org.jboss.forge.bootstrap.Bootstrap
> >
> > at
> java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> > at
> java.security.AccessController.doPrivileged(Native Method)
> > at
> java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> > at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> > Could not find the main class:
> org.jboss.forge.bootstrap.Bootstrap. Program
> > will exit.
> >
> > Am I missing something?
> >
> > Thanks,
> > Ivan
> >
> >
> >
> > _______________________________________________
> > 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
> >
> > _______________________________________________
> > forge-dev mailing list
> > forge-dev at lists.jboss.org
>
> > https://lists.jboss.org/mailman/listinfo/forge-dev
> >
> >
> >
> > --
> > Att,
> >
> > Rafael M. Pestano
> >
> > Desenvolvedor Java Cia. de Processamento de Dados do
> Rio Grande do Sul
> > Graduando em Ci?ncia da Computa??o UFRGS
> > http://conventionsframework.org
> > http://rpestano.wordpress.com/
> > @realpestano
> >
> > _______________________________________________
> > 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
>
>
>
> _______________________________________________
> forge-dev mailing list
> forge-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-dev
>
>
>
>
> --
> Att,
>
> Rafael M. Pestano
>
> Desenvolvedor Java Cia. de Processamento de Dados do Rio
> Grande do Sul
> Graduando em Ci?ncia da Computa??o UFRGS
> http://conventionsframework.org
>
> http://rpestano.wordpress.com/
> @realpestano
>
>
>
>
> --
> Att,
>
> Rafael M. Pestano
>
> Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
> Graduando em Ci?ncia da Computa??o UFRGS
> http://conventionsframework.org
> http://rpestano.wordpress.com/
> @realpestano
>
>
>
>
> --
> Att,
>
> Rafael M. Pestano
>
> Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
> Graduando em Ci?ncia da Computa??o UFRGS
> http://conventionsframework.org
> http://rpestano.wordpress.com/
> @realpestano
>
>
> _______________________________________________
> 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-dev/attachments/20131209/879ac943/attachment-0001.html
From rmpestano at gmail.com Mon Dec 9 15:02:56 2013
From: rmpestano at gmail.com (Rafael Pestano)
Date: Mon, 9 Dec 2013 18:02:56 -0200
Subject: [forge-dev] ClassNotFoundException:
org.jboss.forge.bootstrap.Bootstrap
In-Reply-To: <52A5E954.20100@redhat.com>
References:
<57560927.37116823.1386599667527.JavaMail.root@redhat.com>
<52A5E954.20100@redhat.com>
Message-ID:
thanks George, that was the issue.
C:\Users\rafael-pestano>forge
_____
| ___|__ _ __ __ _ ___
| |_ / _ \| `__/ _` |/ _ \ \\
| _| (_) | | | (_| | __/ //
|_| \___/|_| \__, |\___|
|___/
JBoss Forge, version [ 1.4.3.Final ] - JBoss, by Red Hat, Inc. [
http://forge.jboss.org ]
? Will you allow the Forge team to receive anonymous usage statistics for
this instance of JBoss Forge? [y/N] y
[no project] rafael-pestano $
2013/12/9 George Gastaldi
> Rafael,
>
> please remove your ~/.forge folder and try again.
>
>
> On 12/09/2013 01:59 PM, Rafael Pestano wrote:
>
> restarted machine and now version command returns 1.4.3 but still got the
> exception:
>
> C:\>forge
> java.lang.IllegalStateException: Plugin entry.getApiVersion() must not be
> null.
> at org.jboss.forge.parser.java.util.Assert.notNull(Assert.java:35)
> at
> org.jboss.forge.shell.InstalledPluginRegistry.isApiCompatible(InstalledPluginRegistry.java:300)
> at
> org.jboss.forge.shell.InstalledPluginRegistry.listByAPICompatibleVersion(InstalledPluginRegistry.java:86)
> at org.jboss.forge.shell.Bootstrap.loadPlugins(Bootstrap.java:247)
> at org.jboss.forge.shell.Bootstrap.access$200(Bootstrap.java:38)
> at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:139)
> at java.lang.Thread.run(Thread.java:724)
> _____
> | ___|__ _ __ __ _ ___
> | |_ / _ \| `__/ _` |/ _ \ \\
> | _| (_) | | | (_| | __/ //
> |_| \___/|_| \__, |\___|
> |___/
>
> Windows? Really? Okay...
>
> [no project] $ version[]
> ***ERROR*** No such command: version[]
> [no project] $ version
> JBoss Forge, version [ 1.4.3.Final ] - JBoss, by Red Hat, Inc. [
> http://jboss.org/forge ]
> [no project] $
>
>
> 2013/12/9 Rafael Pestano
>
>> ok im using 1.2.2 final ;(
>>
>> the version command prints: JBoss Forge, version [ 1.2.2.Final ] -
>> JBoss, by Red Hat, Inc. [ http://jboss.org/forge ]
>>
>> but i dont know how to change it, any ideas?
>>
>> thanks for the quick reply
>>
>>
>>
>>
>> 2013/12/9 Rafael Pestano
>>
>>> my forge home is C:\Pestano\forge-distribution-1.4.3.Final and in path
>>> i have: %FORGE_HOME%/bin
>>>
>>>
>>> "The stack trace seems to indicate you're on 1.2.0.Final or earlier." i
>>> indeed have used forge-distribution-1.2.2.Final some time ago, maybe
>>> there's some dirty from early version. Should i clean .forge folder?
>>>
>>>
>>>
>>> 2013/12/9 Ivan St. Ivanov
>>>
>>> Hi Rafael,
>>>>
>>>> Where does your $FORGE_HOME variable point to?
>>>>
>>>> Cheers,
>>>> Ivan
>>>>
>>>>
>>>> On Mon, Dec 9, 2013 at 4:34 PM, Vineet Reynolds Pereira <
>>>> vpereira at redhat.com> wrote:
>>>>
>>>>>
>>>>>
>>>>> ----- Original Message -----
>>>>> > From: "Rafael Pestano"
>>>>> > To: "forge-dev List"
>>>>> > Sent: Monday, December 9, 2013 7:41:03 PM
>>>>> > Subject: Re: [forge-dev] ClassNotFoundException:
>>>>> org.jboss.forge.bootstrap.Bootstrap
>>>>> >
>>>>> > Hi guys, im getting this exception too but im using 1.4.3-Final.
>>>>> >
>>>>> > Can it be related to proxy settings?
>>>>>
>>>>> Hey Rafael,
>>>>>
>>>>> This doesn't look like a proxy issue. Could you please verify that
>>>>> you're indeed using 1.4.3.Final ?
>>>>>
>>>>> The stack trace seems to indicate you're on 1.2.0.Final or earlier.
>>>>>
>>>>> Thanks,
>>>>> Vineet
>>>>>
>>>>> >
>>>>> >
>>>>> > although i get the exception Forge starts and i can run commands
>>>>> without
>>>>> > problems:
>>>>> >
>>>>> > java.lang.IllegalStateException: Plugin entry.getApiVersion() must
>>>>> not be
>>>>> > null.
>>>>> > at org.jboss.forge.parser.java.util.Assert.notNull(Assert.java:35)
>>>>> > at
>>>>> >
>>>>> org.jboss.forge.shell.InstalledPluginRegistry.isApiCompatible(InstalledPluginRegistry.java:268)
>>>>> > at
>>>>> >
>>>>> org.jboss.forge.shell.InstalledPluginRegistry.listByAPICompatibleVersion(InstalledPluginRegistry.java:85)
>>>>> > at org.jboss.forge.shell.Bootstrap.loadPlugins(Bootstrap.java:233)
>>>>> > at org.jboss.forge.shell.Bootstrap.access$200(Bootstrap.java:38)
>>>>> > at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:125)
>>>>> > at java.lang.Thread.run(Thread.java:724)
>>>>> > _____
>>>>> > | ___|__ _ __ __ _ ___
>>>>> > | |_ / _ \| `__/ _` |/ _ \ \\
>>>>> > | _| (_) | | | (_| | __/ //
>>>>> > |_| \___/|_| \__, |\___|
>>>>> > |___/
>>>>> >
>>>>> > Windows? Really? Okay...
>>>>> >
>>>>> > thanks in advance
>>>>> >
>>>>> >
>>>>> > 2013/11/24 Ivan St. Ivanov < ivan.st.ivanov at gmail.com >
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > Hi George,
>>>>> >
>>>>> > The problem was that my FORGE_HOME environment var was still
>>>>> pointing to the
>>>>> > 1.4 version of Forge. Sorry for disturbing!
>>>>> >
>>>>> > Cheers,
>>>>> > Ivan
>>>>> > On Nov 24, 2013 1:11 AM, "George Gastaldi" < ggastald at redhat.com >
>>>>> wrote:
>>>>> >
>>>>> >
>>>>> >
>>>>> > This is odd. Are you running on which OS?
>>>>> >
>>>>> > Em 23/11/2013, ?s 19:19, "Ivan St. Ivanov" <
>>>>> ivan.st.ivanov at gmail.com >
>>>>> > escreveu:
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > Hi folks,
>>>>> >
>>>>> > I just downloaded the Forge 2 distribution from
>>>>> >
>>>>> https://repository.jboss.org/nexus/service/local/artifact/maven/redirect?r=releases&g=org.jboss.forge&a=forge-distribution&v=2.0.0.Beta3&e=zip
>>>>> >
>>>>> > When I try to start it by running the forge script, I get the
>>>>> following
>>>>> > exception:
>>>>> >
>>>>> > Caused by: java.lang.ClassNotFoundException:
>>>>> > org.jboss.forge.bootstrap.Bootstrap
>>>>> >
>>>>> > at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>>>>> > at java.security.AccessController.doPrivileged(Native Method)
>>>>> > at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>>>> > at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>>>> > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>>>> > at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>>>> > Could not find the main class: org.jboss.forge.bootstrap.Bootstrap.
>>>>> Program
>>>>> > will exit.
>>>>> >
>>>>> > Am I missing something?
>>>>> >
>>>>> > Thanks,
>>>>> > Ivan
>>>>> >
>>>>> >
>>>>> >
>>>>> > _______________________________________________
>>>>> > 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
>>>>> >
>>>>> > _______________________________________________
>>>>> > forge-dev mailing list
>>>>> > forge-dev at lists.jboss.org
>>>>> > https://lists.jboss.org/mailman/listinfo/forge-dev
>>>>> >
>>>>> >
>>>>> >
>>>>> > --
>>>>> > Att,
>>>>> >
>>>>> > Rafael M. Pestano
>>>>> >
>>>>> > Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do
>>>>> Sul
>>>>> > Graduando em Ci?ncia da Computa??o UFRGS
>>>>> > http://conventionsframework.org
>>>>> > http://rpestano.wordpress.com/
>>>>> > @realpestano
>>>>> >
>>>>> > _______________________________________________
>>>>> > 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
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> forge-dev mailing list
>>>> forge-dev at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/forge-dev
>>>>
>>>
>>>
>>>
>>> --
>>> Att,
>>>
>>> Rafael M. Pestano
>>>
>>> Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
>>> Graduando em Ci?ncia da Computa??o UFRGS
>>> http://conventionsframework.org
>>> http://rpestano.wordpress.com/
>>> @realpestano
>>>
>>
>>
>>
>> --
>> Att,
>>
>> Rafael M. Pestano
>>
>> Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
>> Graduando em Ci?ncia da Computa??o UFRGS
>> http://conventionsframework.org
>> http://rpestano.wordpress.com/
>> @realpestano
>>
>
>
>
> --
> Att,
>
> Rafael M. Pestano
>
> Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
> Graduando em Ci?ncia da Computa??o UFRGS
> http://conventionsframework.org
> http://rpestano.wordpress.com/
> @realpestano
>
>
> _______________________________________________
> forge-dev mailing listforge-dev at lists.jboss.orghttps://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
>
--
Att,
Rafael M. Pestano
Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
Graduando em Ci?ncia da Computa??o UFRGS
http://conventionsframework.org
http://rpestano.wordpress.com/
@realpestano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20131209/64d56939/attachment-0001.html
From lbaxter at redhat.com Tue Dec 10 14:05:02 2013
From: lbaxter at redhat.com (Lincoln Baxter)
Date: Tue, 10 Dec 2013 14:05:02 -0500 (EST)
Subject: [forge-dev] Forge Teamcity build linking
In-Reply-To: <001e01cee9f3$b3029a20$1907ce60$@redhat.com>
References: <660624658.6929585.1385149587345.JavaMail.root@redhat.com>
<177774015.6931157.1385149719419.JavaMail.root@redhat.com>
<001e01cee9f3$b3029a20$1907ce60$@redhat.com>
Message-ID: <2028394091.14638924.1386702302568.JavaMail.root@redhat.com>
Thanks Tomaz,
We have another question.
We've started seeing this error. Any ideas what this is about?
http://brontes.lab.eng.brq.redhat.com/viewLog.html?buildId=6826&buildTypeId=Forge_FurnaceCdi_Linux&tab=buildLog#_focus=291
And a snippit for you:
------------------
[13:38:57][org.jboss.forge.furnace.container:cdi] Downloaded: http://repo1.maven.org/maven2/org/jboss/jboss-parent/12/jboss-parent-12.pom (0 B at 0.0 KB/sec)
[13:38:57][org.jboss.forge.furnace.container:cdi] [main] WARN org.eclipse.aether.internal.impl.DefaultUpdateCheckManager - Failed to write tracking file /store/repository/org/jboss/jboss-parent/12/jboss-parent-12.pom.lastUpdated
[13:38:57][org.jboss.forge.furnace.container:cdi] java.io.FileNotFoundException: /store/repository/org/jboss/jboss-parent/12/jboss-parent-12.pom.lastUpdated (Permission denied)
[13:38:57][org.jboss.forge.furnace.container:cdi] at java.io.RandomAccessFile.open(Native Method)
[13:38:57][org.jboss.forge.furnace.container:cdi] at java.io.RandomAccessFile.(RandomAccessFile.java:233)
------------------
Thanks!
----- Original Message -----
From: "Tomaz Cerar"
To: "Lincoln Baxter"
Sent: Monday, November 25, 2013 10:33:31 AM
Subject: RE: Forge Teamcity build linking
Hey,
All you need to do is add dependencies under build configuration.
Ping me on IRC
--
tomaz
> -----Original Message-----
> From: Lincoln Baxter [mailto:lbaxter at redhat.com]
> Sent: Friday, November 22, 2013 8:49 PM
> To: Tomaz Cerar
> Cc: George Gastaldi
> Subject: Forge Teamcity build linking
>
> Hey Tomaz,
>
> I have a question about Teamcity. We are experiencing new build failures
> (apparently due to the addition of a new build module "Furnace - Container
> Simple").
>
> How can we link the builds so that the Core - 2.0 build has access to the build
> result artifacts of this build, like you did with the Furnace Runtime and
> Container CDI builds?
>
> I'm hoping we can learn enough to prevent the need for you to have to do
> this for us again in the future.
>
> Thanks very much!
>
> --
> Lincoln Baxter, III
> JBoss, by Red Hat
> lbaxter at redhat.com
>
> "If you want something, you'll find a way; if you don't, you'll find an excuse."
From tcerar at redhat.com Wed Dec 11 08:00:11 2013
From: tcerar at redhat.com (Tomaz Cerar)
Date: Wed, 11 Dec 2013 14:00:11 +0100
Subject: [forge-dev] Forge Teamcity build linking
In-Reply-To: <2028394091.14638924.1386702302568.JavaMail.root@redhat.com>
References: <660624658.6929585.1385149587345.JavaMail.root@redhat.com>
<177774015.6931157.1385149719419.JavaMail.root@redhat.com>
<001e01cee9f3$b3029a20$1907ce60$@redhat.com>
<2028394091.14638924.1386702302568.JavaMail.root@redhat.com>
Message-ID: <01aa01cef670$f2024c50$d606e4f0$@redhat.com>
Hi,
I think this was intermittent issue that should be solved. I was doing some mentainence work on few build agents
Where I also dropped local maven cache. Not sure how this permission issue could have occurred.
Btw brontes now has local nexus mirror to speed up building on clean local repositories.
You can configure to use it under maven build step settings. If not already configured.
--
tomaz
> -----Original Message-----
> From: Lincoln Baxter [mailto:lbaxter at redhat.com]
> Sent: Tuesday, December 10, 2013 8:05 PM
> To: Tomaz Cerar
> Cc: Forge Dev List
> Subject: Re: Forge Teamcity build linking
>
> Thanks Tomaz,
>
> We have another question.
>
> We've started seeing this error. Any ideas what this is about?
>
> http://brontes.lab.eng.brq.redhat.com/viewLog.html?buildId=6826&buildTy
> peId=Forge_FurnaceCdi_Linux&tab=buildLog#_focus=291
>
> And a snippit for you:
>
>
> ------------------
> [13:38:57][org.jboss.forge.furnace.container:cdi] Downloaded:
> http://repo1.maven.org/maven2/org/jboss/jboss-parent/12/jboss-parent-
> 12.pom (0 B at 0.0 KB/sec)
> [13:38:57][org.jboss.forge.furnace.container:cdi] [main] WARN
> org.eclipse.aether.internal.impl.DefaultUpdateCheckManager - Failed to
> write tracking file /store/repository/org/jboss/jboss-parent/12/jboss-parent-
> 12.pom.lastUpdated
> [13:38:57][org.jboss.forge.furnace.container:cdi]
> java.io.FileNotFoundException: /store/repository/org/jboss/jboss-
> parent/12/jboss-parent-12.pom.lastUpdated (Permission denied)
> [13:38:57][org.jboss.forge.furnace.container:cdi] at
> java.io.RandomAccessFile.open(Native Method)
> [13:38:57][org.jboss.forge.furnace.container:cdi] at
> java.io.RandomAccessFile.(RandomAccessFile.java:233)
> ------------------
>
>
> Thanks!
>
> ----- Original Message -----
> From: "Tomaz Cerar"
> To: "Lincoln Baxter"
> Sent: Monday, November 25, 2013 10:33:31 AM
> Subject: RE: Forge Teamcity build linking
>
> Hey,
>
> All you need to do is add dependencies under build configuration.
>
> Ping me on IRC
>
> --
> tomaz
>
> > -----Original Message-----
> > From: Lincoln Baxter [mailto:lbaxter at redhat.com]
> > Sent: Friday, November 22, 2013 8:49 PM
> > To: Tomaz Cerar
> > Cc: George Gastaldi
> > Subject: Forge Teamcity build linking
> >
> > Hey Tomaz,
> >
> > I have a question about Teamcity. We are experiencing new build failures
> > (apparently due to the addition of a new build module "Furnace -
> Container
> > Simple").
> >
> > How can we link the builds so that the Core - 2.0 build has access to the
> build
> > result artifacts of this build, like you did with the Furnace Runtime and
> > Container CDI builds?
> >
> > I'm hoping we can learn enough to prevent the need for you to have to do
> > this for us again in the future.
> >
> > Thanks very much!
> >
> > --
> > Lincoln Baxter, III
> > JBoss, by Red Hat
> > lbaxter at redhat.com
> >
> > "If you want something, you'll find a way; if you don't, you'll find an
> excuse."
From lincolnbaxter at gmail.com Wed Dec 11 12:00:12 2013
From: lincolnbaxter at gmail.com (Lincoln Baxter, III)
Date: Wed, 11 Dec 2013 12:00:12 -0500
Subject: [forge-dev] Meeting minutes 2013-12-11
Message-ID:
Minutes:
http://transcripts.jboss.org/meeting/irc.freenode.org/forge/2013/forge.2013-12-11-15.53.html
Minutes (text):
http://transcripts.jboss.org/meeting/irc.freenode.org/forge/2013/forge.2013-12-11-15.53.txt
Log:
http://transcripts.jboss.org/meeting/irc.freenode.org/forge/2013/forge.2013-12-11-15.53.log.html
Meeting summary
---------------
* Agenda (lincolnthree, 15:54:08)
* Forge 2 Status (lincolnthree, 15:54:08)
* Forge 2 Website (lincolnthree, 15:54:18)
* Github Repository organization (vineetreynolds, 15:56:41)
* AngularJS scaffolding Status (vineetreynolds, 15:57:13)
* Forge 2 Status (lincolnthree, 15:57:45)
* gastaldi and I will be pair programming the ui-controller today
(lincolnthree, 15:58:09)
* Forge 2 now requires JDK 7 (gastaldi, 15:58:42)
* Forge 2 Website (lincolnthree, 16:03:57)
* Github Repository organization (vineetreynolds, 16:16:05)
* LINK: http://paste2.org/31bZ7GdV (lincolnthree, 16:22:28)
* AngularJS scaffolding Status (vineetreynolds, 16:47:19)
Meeting ended at 16:50:55 UTC.
Action Items
------------
Action Items, by person
-----------------------
* **UNASSIGNED**
* (none)
People Present (lines said)
---------------------------
* lincolnthree (119)
* gastaldi (92)
* vineetreynolds (54)
* koentsje (26)
* dbeer (5)
* jbossbot (4)
* jbott (4)
* crobson (2)
--
Lincoln Baxter, III
http://ocpsoft.org
"Simpler is better."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20131211/fc483949/attachment.html
From lincolnbaxter at gmail.com Thu Dec 12 15:06:28 2013
From: lincolnbaxter at gmail.com (Lincoln Baxter, III)
Date: Thu, 12 Dec 2013 15:06:28 -0500
Subject: [forge-dev] Problems building connection-profiles branch of
jbosstools-forge
Message-ID:
Any ideas?
------------------
[ERROR] Cannot resolve project dependencies:
[ERROR] Software being installed: org.jboss.tools.forge.ui.ext
1.1.0.qualifier
[ERROR] Missing requirement: org.jboss.tools.forge.ui.ext 1.1.0.qualifier
requires 'bundle org.eclipse.datatools.connectivity 1.2.9' but it could not
be found
[ERROR]
[ERROR] Internal error: java.lang.RuntimeException: No solution found
because the problem is unsatisfiable.: [Unable to satisfy dependency from
org.jboss.tools.forge.ui.ext 1.1.0.qualifier to bundle
org.eclipse.datatools.connectivity 1.2.9.; No solution found because the
problem is unsatisfiable.] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error:
java.lang.RuntimeException: No solution found because the problem is
unsatisfiable.: [Unable to satisfy dependency from
org.jboss.tools.forge.ui.ext 1.1.0.qualifier to bundle
org.eclipse.datatools.connectivity 1.2.9.; No solution found because the
problem is unsatisfiable.]
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:164)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: java.lang.RuntimeException: No solution found because the
problem is unsatisfiable.: [Unable to satisfy dependency from
org.jboss.tools.forge.ui.ext 1.1.0.qualifier to bundle
org.eclipse.datatools.connectivity 1.2.9.; No solution found because the
problem is unsatisfiable.]
at
org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.newResolutionException(AbstractResolutionStrategy.java:98)
at
org.eclipse.tycho.p2.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:88)
at
org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.resolve(AbstractResolutionStrategy.java:63)
at
org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:134)
at
org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:87)
at
org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:369)
at
org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolveDependencies(P2TargetPlatformResolver.java:345)
at
org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:109)
at
org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:75)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:271)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
... 11 more
[ERROR]
--
Lincoln Baxter, III
http://ocpsoft.org
"Simpler is better."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20131212/f78ca7cb/attachment.html
From ggastald at redhat.com Thu Dec 12 15:16:16 2013
From: ggastald at redhat.com (George Gastaldi)
Date: Thu, 12 Dec 2013 15:16:16 -0500 (EST)
Subject: [forge-dev] Problems building connection-profiles branch
of jbosstools-forge
In-Reply-To:
References:
Message-ID: <4FBFED3F-BB78-4A32-8D86-2905EAFDB65F@redhat.com>
Looks like self-explanatory.
Tycho couldn't resolve the dependency from the current environment. Do you have this dependency installed in Eclipse?
> Em 12/12/2013, ?s 18:06, "Lincoln Baxter, III" escreveu:
>
> Any ideas?
>
>
>
> ------------------
>
>
>
> [ERROR] Cannot resolve project dependencies:
>
> [ERROR] Software being installed: org.jboss.tools.forge.ui.ext 1.1.0.qualifier
>
> [ERROR] Missing requirement: org.jboss.tools.forge.ui.ext 1.1.0.qualifier requires 'bundle org.eclipse.datatools.connectivity 1.2.9' but it could not be found
>
> [ERROR]
>
> [ERROR] Internal error: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from org.jboss.tools.forge.ui.ext 1.1.0.qualifier to bundle org.eclipse.datatools.connectivity 1.2.9.; No solution found because the problem is unsatisfiable.] -> [Help 1]
>
> org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from org.jboss.tools.forge.ui.ext 1.1.0.qualifier to bundle org.eclipse.datatools.connectivity 1.2.9.; No solution found because the problem is unsatisfiable.]
>
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:164)
>
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
>
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
>
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:601)
>
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>
> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>
> Caused by: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from org.jboss.tools.forge.ui.ext 1.1.0.qualifier to bundle org.eclipse.datatools.connectivity 1.2.9.; No solution found because the problem is unsatisfiable.]
>
> at org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.newResolutionException(AbstractResolutionStrategy.java:98)
>
> at org.eclipse.tycho.p2.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:88)
>
> at org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.resolve(AbstractResolutionStrategy.java:63)
>
> at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:134)
>
> at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:87)
>
> at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:369)
>
> at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolveDependencies(P2TargetPlatformResolver.java:345)
>
> at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:109)
>
> at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:75)
>
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:271)
>
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
>
> ... 11 more
>
> [ERROR]
>
>
> --
> Lincoln Baxter, III
> http://ocpsoft.org
> "Simpler is better."
> _______________________________________________
> 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-dev/attachments/20131212/eb76ffbd/attachment-0001.html
From lincolnbaxter at gmail.com Thu Dec 12 15:19:33 2013
From: lincolnbaxter at gmail.com (Lincoln Baxter, III)
Date: Thu, 12 Dec 2013 15:19:33 -0500
Subject: [forge-dev] Problems building connection-profiles branch of
jbosstools-forge
In-Reply-To: <4FBFED3F-BB78-4A32-8D86-2905EAFDB65F@redhat.com>
References:
<4FBFED3F-BB78-4A32-8D86-2905EAFDB65F@redhat.com>
Message-ID:
This is from the maven build.
On Thu, Dec 12, 2013 at 3:16 PM, George Gastaldi wrote:
> Looks like self-explanatory.
> Tycho couldn't resolve the dependency from the current environment. Do you
> have this dependency installed in Eclipse?
>
> Em 12/12/2013, ?s 18:06, "Lincoln Baxter, III"
> escreveu:
>
> Any ideas?
>
>
> ------------------
>
>
> [ERROR] Cannot resolve project dependencies:
>
> [ERROR] Software being installed: org.jboss.tools.forge.ui.ext
> 1.1.0.qualifier
>
> [ERROR] Missing requirement: org.jboss.tools.forge.ui.ext
> 1.1.0.qualifier requires 'bundle org.eclipse.datatools.connectivity 1.2.9'
> but it could not be found
>
> [ERROR]
>
> [ERROR] Internal error: java.lang.RuntimeException: No solution found
> because the problem is unsatisfiable.: [Unable to satisfy dependency from
> org.jboss.tools.forge.ui.ext 1.1.0.qualifier to bundle
> org.eclipse.datatools.connectivity 1.2.9.; No solution found because the
> problem is unsatisfiable.] -> [Help 1]
>
> org.apache.maven.InternalErrorException: Internal error:
> java.lang.RuntimeException: No solution found because the problem is
> unsatisfiable.: [Unable to satisfy dependency from
> org.jboss.tools.forge.ui.ext 1.1.0.qualifier to bundle
> org.eclipse.datatools.connectivity 1.2.9.; No solution found because the
> problem is unsatisfiable.]
>
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:164)
>
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
>
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
>
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:601)
>
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>
> Caused by: java.lang.RuntimeException: No solution found because the
> problem is unsatisfiable.: [Unable to satisfy dependency from
> org.jboss.tools.forge.ui.ext 1.1.0.qualifier to bundle
> org.eclipse.datatools.connectivity 1.2.9.; No solution found because the
> problem is unsatisfiable.]
>
> at
> org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.newResolutionException(AbstractResolutionStrategy.java:98)
>
> at
> org.eclipse.tycho.p2.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:88)
>
> at
> org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.resolve(AbstractResolutionStrategy.java:63)
>
> at
> org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:134)
>
> at
> org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:87)
>
> at
> org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:369)
>
> at
> org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolveDependencies(P2TargetPlatformResolver.java:345)
>
> at
> org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:109)
>
> at
> org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:75)
>
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:271)
>
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
>
> ... 11 more
>
> [ERROR]
>
> --
> Lincoln Baxter, III
> http://ocpsoft.org
> "Simpler is better."
>
> _______________________________________________
> 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
>
--
Lincoln Baxter, III
http://ocpsoft.org
"Simpler is better."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20131212/7f89349f/attachment.html
From lincolnbaxter at gmail.com Thu Dec 12 15:20:06 2013
From: lincolnbaxter at gmail.com (Lincoln Baxter, III)
Date: Thu, 12 Dec 2013 15:20:06 -0500
Subject: [forge-dev] Problems building connection-profiles branch of
jbosstools-forge
In-Reply-To:
References:
<4FBFED3F-BB78-4A32-8D86-2905EAFDB65F@redhat.com>
Message-ID:
And I don't know if it's needed or not for what Koen is working on :)
On Thu, Dec 12, 2013 at 3:19 PM, Lincoln Baxter, III <
lincolnbaxter at gmail.com> wrote:
> This is from the maven build.
>
>
> On Thu, Dec 12, 2013 at 3:16 PM, George Gastaldi wrote:
>
>> Looks like self-explanatory.
>> Tycho couldn't resolve the dependency from the current environment. Do
>> you have this dependency installed in Eclipse?
>>
>> Em 12/12/2013, ?s 18:06, "Lincoln Baxter, III"
>> escreveu:
>>
>> Any ideas?
>>
>>
>> ------------------
>>
>>
>> [ERROR] Cannot resolve project dependencies:
>>
>> [ERROR] Software being installed: org.jboss.tools.forge.ui.ext
>> 1.1.0.qualifier
>>
>> [ERROR] Missing requirement: org.jboss.tools.forge.ui.ext
>> 1.1.0.qualifier requires 'bundle org.eclipse.datatools.connectivity 1.2.9'
>> but it could not be found
>>
>> [ERROR]
>>
>> [ERROR] Internal error: java.lang.RuntimeException: No solution found
>> because the problem is unsatisfiable.: [Unable to satisfy dependency from
>> org.jboss.tools.forge.ui.ext 1.1.0.qualifier to bundle
>> org.eclipse.datatools.connectivity 1.2.9.; No solution found because the
>> problem is unsatisfiable.] -> [Help 1]
>>
>> org.apache.maven.InternalErrorException: Internal error:
>> java.lang.RuntimeException: No solution found because the problem is
>> unsatisfiable.: [Unable to satisfy dependency from
>> org.jboss.tools.forge.ui.ext 1.1.0.qualifier to bundle
>> org.eclipse.datatools.connectivity 1.2.9.; No solution found because the
>> problem is unsatisfiable.]
>>
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:164)
>>
>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
>>
>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
>>
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>
>> at java.lang.reflect.Method.invoke(Method.java:601)
>>
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>>
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>>
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>>
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>>
>> Caused by: java.lang.RuntimeException: No solution found because the
>> problem is unsatisfiable.: [Unable to satisfy dependency from
>> org.jboss.tools.forge.ui.ext 1.1.0.qualifier to bundle
>> org.eclipse.datatools.connectivity 1.2.9.; No solution found because the
>> problem is unsatisfiable.]
>>
>> at
>> org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.newResolutionException(AbstractResolutionStrategy.java:98)
>>
>> at
>> org.eclipse.tycho.p2.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:88)
>>
>> at
>> org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.resolve(AbstractResolutionStrategy.java:63)
>>
>> at
>> org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:134)
>>
>> at
>> org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:87)
>>
>> at
>> org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:369)
>>
>> at
>> org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolveDependencies(P2TargetPlatformResolver.java:345)
>>
>> at
>> org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:109)
>>
>> at
>> org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:75)
>>
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:271)
>>
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
>>
>> ... 11 more
>>
>> [ERROR]
>>
>> --
>> Lincoln Baxter, III
>> http://ocpsoft.org
>> "Simpler is better."
>>
>> _______________________________________________
>> 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
>>
>
>
>
> --
> Lincoln Baxter, III
> http://ocpsoft.org
> "Simpler is better."
>
--
Lincoln Baxter, III
http://ocpsoft.org
"Simpler is better."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20131212/09c977a8/attachment.html
From ggastald at redhat.com Thu Dec 12 15:20:54 2013
From: ggastald at redhat.com (George Gastaldi)
Date: Thu, 12 Dec 2013 15:20:54 -0500 (EST)
Subject: [forge-dev] Problems building connection-profiles branch
of jbosstools-forge
In-Reply-To:
References:
<4FBFED3F-BB78-4A32-8D86-2905EAFDB65F@redhat.com>
Message-ID: <20DF6197-2051-47E3-9D56-ACD6C54AE11A@redhat.com>
Hum, then perhaps some configuration is missing from the JBT parent POM
> Em 12/12/2013, ?s 18:19, "Lincoln Baxter, III" escreveu:
>
> This is from the maven build.
>
>
>> On Thu, Dec 12, 2013 at 3:16 PM, George Gastaldi wrote:
>> Looks like self-explanatory.
>> Tycho couldn't resolve the dependency from the current environment. Do you have this dependency installed in Eclipse?
>>
>>> Em 12/12/2013, ?s 18:06, "Lincoln Baxter, III" escreveu:
>>>
>>
>>> Any ideas?
>>>
>>>
>>>
>>> ------------------
>>>
>>>
>>>
>>> [ERROR] Cannot resolve project dependencies:
>>>
>>> [ERROR] Software being installed: org.jboss.tools.forge.ui.ext 1.1.0.qualifier
>>>
>>> [ERROR] Missing requirement: org.jboss.tools.forge.ui.ext 1.1.0.qualifier requires 'bundle org.eclipse.datatools.connectivity 1.2.9' but it could not be found
>>>
>>> [ERROR]
>>>
>>> [ERROR] Internal error: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from org.jboss.tools.forge.ui.ext 1.1.0.qualifier to bundle org.eclipse.datatools.connectivity 1.2.9.; No solution found because the problem is unsatisfiable.] -> [Help 1]
>>>
>>> org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from org.jboss.tools.forge.ui.ext 1.1.0.qualifier to bundle org.eclipse.datatools.connectivity 1.2.9.; No solution found because the problem is unsatisfiable.]
>>>
>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:164)
>>>
>>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
>>>
>>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
>>>
>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
>>>
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>
>>> at java.lang.reflect.Method.invoke(Method.java:601)
>>>
>>> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>>>
>>> at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>>>
>>> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>>>
>>> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>>>
>>> Caused by: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from org.jboss.tools.forge.ui.ext 1.1.0.qualifier to bundle org.eclipse.datatools.connectivity 1.2.9.; No solution found because the problem is unsatisfiable.]
>>>
>>> at org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.newResolutionException(AbstractResolutionStrategy.java:98)
>>>
>>> at org.eclipse.tycho.p2.resolver.ProjectorResolutionStrategy.resolve(ProjectorResolutionStrategy.java:88)
>>>
>>> at org.eclipse.tycho.p2.resolver.AbstractResolutionStrategy.resolve(AbstractResolutionStrategy.java:63)
>>>
>>> at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:134)
>>>
>>> at org.eclipse.tycho.p2.impl.resolver.P2ResolverImpl.resolveDependencies(P2ResolverImpl.java:87)
>>>
>>> at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:369)
>>>
>>> at org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolveDependencies(P2TargetPlatformResolver.java:345)
>>>
>>> at org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:109)
>>>
>>> at org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:75)
>>>
>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:271)
>>>
>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
>>>
>>> ... 11 more
>>>
>>> [ERROR]
>>>
>>>
>>> --
>>> Lincoln Baxter, III
>>> http://ocpsoft.org
>>> "Simpler is better."
>>> _______________________________________________
>>> 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
>
>
>
> --
> Lincoln Baxter, III
> http://ocpsoft.org
> "Simpler is better."
> _______________________________________________
> 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-dev/attachments/20131212/b1b2cecb/attachment-0001.html
From vpereira at redhat.com Mon Dec 16 16:25:53 2013
From: vpereira at redhat.com (Vineet Reynolds Pereira)
Date: Mon, 16 Dec 2013 16:25:53 -0500 (EST)
Subject: [forge-dev] [aerogear-dev] Aerogear.js for CRUD
In-Reply-To:
References:
<504FFE44-06CE-4C05-A8A6-D049D2D41E00@redhat.com>
<1445599908.40527893.1387224418368.JavaMail.root@redhat.com>
Message-ID: <1928607956.40560513.1387229153309.JavaMail.root@redhat.com>
Adding forge-dev.
----- Original Message -----
> From: "Burr Sutter"
> To: "AeroGear Developer Mailing List"
> Sent: Tuesday, December 17, 2013 1:59:41 AM
> Subject: Re: [aerogear-dev] Aerogear.js for CRUD
>
> That seems to do the trick - now, where do we apply the fix? :-)
Well, ideally this would be a feature request in Forge to support a new type
of a REST resource. But a couple of modified lines might not warrant it.
It would be better to treat this as a flag to be enabled during REST resource
scaffolding. It would allow users to choose how the resource behaves -
* send a 201 response with Location header,
* send a 201 response with Location header and also a response entity.
It would most likely be addressed in Forge 2.
>
> On Dec 16, 2013, at 3:06 PM, Vineet Reynolds Pereira < vpereira at redhat.com >
> wrote:
>
>
>
>
>
>
> ----- Original Message -----
>
>
> From: "Lucas Holmquist" < lholmqui at redhat.com >
> To: "AeroGear Developer Mailing List" < aerogear-dev at lists.jboss.org >
> Cc: "Vineet Reynolds Pereira" < vpereira at redhat.com >
> Sent: Tuesday, December 17, 2013 12:53:25 AM
> Subject: Re: [aerogear-dev] Aerogear.js for CRUD
>
>
> On Dec 16, 2013, at 1:52 PM, Burr Sutter < bsutter at redhat.com > wrote:
>
>
>
> Adding Vineet as he has spent time on the Forge REST scaffolding.
>
> On Dec 16, 2013, at 7:01 AM, Sebastien Blanc < scm.blanc at gmail.com > wrote:
>
>
>
> Burr,
> I've added some logs statements on the client and basically it seems it
> can not parse the response from the server :
>
> I/Web Console( 1386): textStatus: parsererror at
> file:///android_asset/www/js/index.js:103
> I/Web Console( 1386): error: SyntaxError: Unexpected end of input at
> file:///android_asset/www/js/index.js:104
>
> If I do a CURL like this :
> curl -v -b cookies.txt -c cookies.txt -H "Accept: application/json" -H
> "Content-type: application/json" -X POST -d
> '{"phoneNumber":"1234567890","email":"newTest at test.com","name":"newTest"}'
> http://agmobile-html5.rhcloud.com/rest/forge/members
>
> I should have pointed to the sources to the REST endpoint:
> https://github.com/burrsutter/agmobile/blob/master/src/main/java/com/burrsutter/agmobile/rest/MemberEndpoint.java
> This was generated by Forge as I am too lazy to type up a full CRUD REST
> endpoint myself :-)
>
>
>
> I got an correct answer but the content type is 'text/plain' , please
> check your rest endpoint to be sure it's producing json as output, that
> should solve your issue.
> It says
> @POST
> @Consumes("application/json")
>
> needs a @Produces("application/json")
>
> I'm not sure that will help. The response is a HTTP 201 with a Location
> header.
> Is the client expecting an entity of type application/json in the response ?
>
> If yes, then the method should look like:
>
> @POST
> @Consumes("application/json")
> public Response create(MemberDTO dto)
> {
> Member entity = dto.fromDTO(null, em);
> em.persist(entity);
> return
> Response.created(UriBuilder.fromResource(MemberEndpoint.class).path(String.valueOf(entity.getId())).build()).entity(entity).build();
> }
>
> I've added : .entity(entity) in the above method to populate the response
> with the entity.
>
>
>
>
>
>
>
>
>
>
> Could you also paste the commands you used in Forge to scaffold the REST
> endpoints so that we can check there hasn't been an incompatibility
> introduced ?
> I just used the Forge Wizard that is built into JBDS/Tools
> http://screencast.com/t/QrKkCoFZMUn
>
> error.status is 201
> error.responseText is blank
>
>
>
>
>
>
>
> On Sat, Dec 14, 2013 at 6:06 PM, Burr Sutter wrote:
> I am having a problem with pipe.save(), likely user error :-)
>
> For some reason, the POST is occurring, the save seems to work but the
> error callback is invoked, not the success method.
>
> And I am doing all of this in the context of our tooling which has some
> limitations (auto-closing console/firebug lite)
>
> http://screencast.com/t/gosd7Qnhz
>
> REST endpoint:
> http://agmobile-html5.rhcloud.com/rest/forge/members
> Use of Forge, with the Member.java entity to offer full CRUD capabilities
>
> Sources:
> https://github.com/burrsutter/AGContacts/blob/master/www/js/index.js
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
From vpereira at redhat.com Mon Dec 16 16:27:10 2013
From: vpereira at redhat.com (Vineet Reynolds Pereira)
Date: Mon, 16 Dec 2013 16:27:10 -0500 (EST)
Subject: [forge-dev] [aerogear-dev] Aerogear.js for CRUD
In-Reply-To: <1928607956.40560513.1387229153309.JavaMail.root@redhat.com>
References:
<504FFE44-06CE-4C05-A8A6-D049D2D41E00@redhat.com>
<1445599908.40527893.1387224418368.JavaMail.root@redhat.com>
<1928607956.40560513.1387229153309.JavaMail.root@redhat.com>
Message-ID: <1835599751.40562229.1387229230777.JavaMail.root@redhat.com>
I missed something: raised https://issues.jboss.org/browse/FORGE-1361 to track this.
If there is anything more specific to Aerogear clients that can be done, I'd like to know about them as well.
----- Original Message -----
> From: "Vineet Reynolds Pereira"
> To: "AeroGear Developer Mailing List"
> Cc: "forge-dev List"
> Sent: Tuesday, December 17, 2013 2:55:53 AM
> Subject: Re: [aerogear-dev] Aerogear.js for CRUD
>
> Adding forge-dev.
>
> ----- Original Message -----
> > From: "Burr Sutter"
> > To: "AeroGear Developer Mailing List"
> > Sent: Tuesday, December 17, 2013 1:59:41 AM
> > Subject: Re: [aerogear-dev] Aerogear.js for CRUD
> >
> > That seems to do the trick - now, where do we apply the fix? :-)
>
> Well, ideally this would be a feature request in Forge to support a new type
> of a REST resource. But a couple of modified lines might not warrant it.
>
> It would be better to treat this as a flag to be enabled during REST resource
> scaffolding. It would allow users to choose how the resource behaves -
> * send a 201 response with Location header,
> * send a 201 response with Location header and also a response entity.
>
> It would most likely be addressed in Forge 2.
>
> >
> > On Dec 16, 2013, at 3:06 PM, Vineet Reynolds Pereira < vpereira at redhat.com
> > >
> > wrote:
> >
> >
> >
> >
> >
> >
> > ----- Original Message -----
> >
> >
> > From: "Lucas Holmquist" < lholmqui at redhat.com >
> > To: "AeroGear Developer Mailing List" < aerogear-dev at lists.jboss.org >
> > Cc: "Vineet Reynolds Pereira" < vpereira at redhat.com >
> > Sent: Tuesday, December 17, 2013 12:53:25 AM
> > Subject: Re: [aerogear-dev] Aerogear.js for CRUD
> >
> >
> > On Dec 16, 2013, at 1:52 PM, Burr Sutter < bsutter at redhat.com > wrote:
> >
> >
> >
> > Adding Vineet as he has spent time on the Forge REST scaffolding.
> >
> > On Dec 16, 2013, at 7:01 AM, Sebastien Blanc < scm.blanc at gmail.com > wrote:
> >
> >
> >
> > Burr,
> > I've added some logs statements on the client and basically it seems it
> > can not parse the response from the server :
> >
> > I/Web Console( 1386): textStatus: parsererror at
> > file:///android_asset/www/js/index.js:103
> > I/Web Console( 1386): error: SyntaxError: Unexpected end of input at
> > file:///android_asset/www/js/index.js:104
> >
> > If I do a CURL like this :
> > curl -v -b cookies.txt -c cookies.txt -H "Accept: application/json" -H
> > "Content-type: application/json" -X POST -d
> > '{"phoneNumber":"1234567890","email":"newTest at test.com","name":"newTest"}'
> > http://agmobile-html5.rhcloud.com/rest/forge/members
> >
> > I should have pointed to the sources to the REST endpoint:
> > https://github.com/burrsutter/agmobile/blob/master/src/main/java/com/burrsutter/agmobile/rest/MemberEndpoint.java
> > This was generated by Forge as I am too lazy to type up a full CRUD REST
> > endpoint myself :-)
> >
> >
> >
> > I got an correct answer but the content type is 'text/plain' , please
> > check your rest endpoint to be sure it's producing json as output, that
> > should solve your issue.
> > It says
> > @POST
> > @Consumes("application/json")
> >
> > needs a @Produces("application/json")
> >
> > I'm not sure that will help. The response is a HTTP 201 with a Location
> > header.
> > Is the client expecting an entity of type application/json in the response
> > ?
> >
> > If yes, then the method should look like:
> >
> > @POST
> > @Consumes("application/json")
> > public Response create(MemberDTO dto)
> > {
> > Member entity = dto.fromDTO(null, em);
> > em.persist(entity);
> > return
> > Response.created(UriBuilder.fromResource(MemberEndpoint.class).path(String.valueOf(entity.getId())).build()).entity(entity).build();
> > }
> >
> > I've added : .entity(entity) in the above method to populate the response
> > with the entity.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Could you also paste the commands you used in Forge to scaffold the REST
> > endpoints so that we can check there hasn't been an incompatibility
> > introduced ?
> > I just used the Forge Wizard that is built into JBDS/Tools
> > http://screencast.com/t/QrKkCoFZMUn
> >
> > error.status is 201
> > error.responseText is blank
> >
> >
> >
> >
> >
> >
> >
> > On Sat, Dec 14, 2013 at 6:06 PM, Burr Sutter wrote:
> > I am having a problem with pipe.save(), likely user error :-)
> >
> > For some reason, the POST is occurring, the save seems to work but the
> > error callback is invoked, not the success method.
> >
> > And I am doing all of this in the context of our tooling which has some
> > limitations (auto-closing console/firebug lite)
> >
> > http://screencast.com/t/gosd7Qnhz
> >
> > REST endpoint:
> > http://agmobile-html5.rhcloud.com/rest/forge/members
> > Use of Forge, with the Member.java entity to offer full CRUD capabilities
> >
> > Sources:
> > https://github.com/burrsutter/AGContacts/blob/master/www/js/index.js
> >
> >
> > _______________________________________________
> > aerogear-dev mailing list
> > aerogear-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/aerogear-dev
> >
> > _______________________________________________
> > aerogear-dev mailing list
> > aerogear-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/aerogear-dev
> >
> > _______________________________________________
> > aerogear-dev mailing list
> > aerogear-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/aerogear-dev
> >
> >
> > _______________________________________________
> > aerogear-dev mailing list
> > aerogear-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/aerogear-dev
> >
> >
> > _______________________________________________
> > aerogear-dev mailing list
> > aerogear-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/aerogear-dev
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
From bsutter at redhat.com Mon Dec 16 17:41:54 2013
From: bsutter at redhat.com (Burr Sutter)
Date: Mon, 16 Dec 2013 17:41:54 -0500
Subject: [forge-dev] [aerogear-dev] Aerogear.js for CRUD
In-Reply-To: <1928607956.40560513.1387229153309.JavaMail.root@redhat.com>
References:
<504FFE44-06CE-4C05-A8A6-D049D2D41E00@redhat.com>
<1445599908.40527893.1387224418368.JavaMail.root@redhat.com>
<1928607956.40560513.1387229153309.JavaMail.root@redhat.com>
Message-ID:
I need to find my REST bible - what is typical to respond to the POST with the JSON-serialized entity that was originally POST'd or to simply respond with a basic acknowledgement (http 201)?
On Dec 16, 2013, at 4:25 PM, Vineet Reynolds Pereira wrote:
> Adding forge-dev.
>
> ----- Original Message -----
>> From: "Burr Sutter"
>> To: "AeroGear Developer Mailing List"
>> Sent: Tuesday, December 17, 2013 1:59:41 AM
>> Subject: Re: [aerogear-dev] Aerogear.js for CRUD
>>
>> That seems to do the trick - now, where do we apply the fix? :-)
>
> Well, ideally this would be a feature request in Forge to support a new type
> of a REST resource. But a couple of modified lines might not warrant it.
>
> It would be better to treat this as a flag to be enabled during REST resource
> scaffolding. It would allow users to choose how the resource behaves -
> * send a 201 response with Location header,
> * send a 201 response with Location header and also a response entity.
>
> It would most likely be addressed in Forge 2.
>
>>
>> On Dec 16, 2013, at 3:06 PM, Vineet Reynolds Pereira < vpereira at redhat.com >
>> wrote:
>>
>>
>>
>>
>>
>>
>> ----- Original Message -----
>>
>>
>> From: "Lucas Holmquist" < lholmqui at redhat.com >
>> To: "AeroGear Developer Mailing List" < aerogear-dev at lists.jboss.org >
>> Cc: "Vineet Reynolds Pereira" < vpereira at redhat.com >
>> Sent: Tuesday, December 17, 2013 12:53:25 AM
>> Subject: Re: [aerogear-dev] Aerogear.js for CRUD
>>
>>
>> On Dec 16, 2013, at 1:52 PM, Burr Sutter < bsutter at redhat.com > wrote:
>>
>>
>>
>> Adding Vineet as he has spent time on the Forge REST scaffolding.
>>
>> On Dec 16, 2013, at 7:01 AM, Sebastien Blanc < scm.blanc at gmail.com > wrote:
>>
>>
>>
>> Burr,
>> I've added some logs statements on the client and basically it seems it
>> can not parse the response from the server :
>>
>> I/Web Console( 1386): textStatus: parsererror at
>> file:///android_asset/www/js/index.js:103
>> I/Web Console( 1386): error: SyntaxError: Unexpected end of input at
>> file:///android_asset/www/js/index.js:104
>>
>> If I do a CURL like this :
>> curl -v -b cookies.txt -c cookies.txt -H "Accept: application/json" -H
>> "Content-type: application/json" -X POST -d
>> '{"phoneNumber":"1234567890","email":"newTest at test.com","name":"newTest"}'
>> http://agmobile-html5.rhcloud.com/rest/forge/members
>>
>> I should have pointed to the sources to the REST endpoint:
>> https://github.com/burrsutter/agmobile/blob/master/src/main/java/com/burrsutter/agmobile/rest/MemberEndpoint.java
>> This was generated by Forge as I am too lazy to type up a full CRUD REST
>> endpoint myself :-)
>>
>>
>>
>> I got an correct answer but the content type is 'text/plain' , please
>> check your rest endpoint to be sure it's producing json as output, that
>> should solve your issue.
>> It says
>> @POST
>> @Consumes("application/json")
>>
>> needs a @Produces("application/json")
>>
>> I'm not sure that will help. The response is a HTTP 201 with a Location
>> header.
>> Is the client expecting an entity of type application/json in the response ?
>>
>> If yes, then the method should look like:
>>
>> @POST
>> @Consumes("application/json")
>> public Response create(MemberDTO dto)
>> {
>> Member entity = dto.fromDTO(null, em);
>> em.persist(entity);
>> return
>> Response.created(UriBuilder.fromResource(MemberEndpoint.class).path(String.valueOf(entity.getId())).build()).entity(entity).build();
>> }
>>
>> I've added : .entity(entity) in the above method to populate the response
>> with the entity.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Could you also paste the commands you used in Forge to scaffold the REST
>> endpoints so that we can check there hasn't been an incompatibility
>> introduced ?
>> I just used the Forge Wizard that is built into JBDS/Tools
>> http://screencast.com/t/QrKkCoFZMUn
>>
>> error.status is 201
>> error.responseText is blank
>>
>>
>>
>>
>>
>>
>>
>> On Sat, Dec 14, 2013 at 6:06 PM, Burr Sutter wrote:
>> I am having a problem with pipe.save(), likely user error :-)
>>
>> For some reason, the POST is occurring, the save seems to work but the
>> error callback is invoked, not the success method.
>>
>> And I am doing all of this in the context of our tooling which has some
>> limitations (auto-closing console/firebug lite)
>>
>> http://screencast.com/t/gosd7Qnhz
>>
>> REST endpoint:
>> http://agmobile-html5.rhcloud.com/rest/forge/members
>> Use of Forge, with the Member.java entity to offer full CRUD capabilities
>>
>> Sources:
>> https://github.com/burrsutter/AGContacts/blob/master/www/js/index.js
>>
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-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-dev/attachments/20131216/2c37d994/attachment-0001.html
From lincolnbaxter at gmail.com Mon Dec 16 17:58:42 2013
From: lincolnbaxter at gmail.com (Lincoln Baxter, III)
Date: Mon, 16 Dec 2013 17:58:42 -0500
Subject: [forge-dev] [aerogear-dev] Aerogear.js for CRUD
In-Reply-To:
References:
<504FFE44-06CE-4C05-A8A6-D049D2D41E00@redhat.com>
<1445599908.40527893.1387224418368.JavaMail.root@redhat.com>
<1928607956.40560513.1387229153309.JavaMail.root@redhat.com>
Message-ID:
Either is typical, but I think that most "pure" restifarians would favor
the 201.
On Mon, Dec 16, 2013 at 5:41 PM, Burr Sutter wrote:
> I need to find my REST bible - what is typical to respond to the POST with
> the JSON-serialized entity that was originally POST'd or to simply respond
> with a basic acknowledgement (http 201)?
>
>
> On Dec 16, 2013, at 4:25 PM, Vineet Reynolds Pereira
> wrote:
>
> Adding forge-dev.
>
> ----- Original Message -----
>
> From: "Burr Sutter"
> To: "AeroGear Developer Mailing List"
> Sent: Tuesday, December 17, 2013 1:59:41 AM
> Subject: Re: [aerogear-dev] Aerogear.js for CRUD
>
> That seems to do the trick - now, where do we apply the fix? :-)
>
>
> Well, ideally this would be a feature request in Forge to support a new
> type
> of a REST resource. But a couple of modified lines might not warrant it.
>
> It would be better to treat this as a flag to be enabled during REST
> resource
> scaffolding. It would allow users to choose how the resource behaves -
> * send a 201 response with Location header,
> * send a 201 response with Location header and also a response entity.
>
> It would most likely be addressed in Forge 2.
>
>
> On Dec 16, 2013, at 3:06 PM, Vineet Reynolds Pereira < vpereira at redhat.com>
> wrote:
>
>
>
>
>
>
> ----- Original Message -----
>
>
> From: "Lucas Holmquist" < lholmqui at redhat.com >
> To: "AeroGear Developer Mailing List" < aerogear-dev at lists.jboss.org >
> Cc: "Vineet Reynolds Pereira" < vpereira at redhat.com >
> Sent: Tuesday, December 17, 2013 12:53:25 AM
> Subject: Re: [aerogear-dev] Aerogear.js for CRUD
>
>
> On Dec 16, 2013, at 1:52 PM, Burr Sutter < bsutter at redhat.com > wrote:
>
>
>
> Adding Vineet as he has spent time on the Forge REST scaffolding.
>
> On Dec 16, 2013, at 7:01 AM, Sebastien Blanc < scm.blanc at gmail.com >
> wrote:
>
>
>
> Burr,
> I've added some logs statements on the client and basically it seems it
> can not parse the response from the server :
>
> I/Web Console( 1386): textStatus: parsererror at
> file:///android_asset/www/js/index.js:103
> I/Web Console( 1386): error: SyntaxError: Unexpected end of input at
> file:///android_asset/www/js/index.js:104
>
> If I do a CURL like this :
> curl -v -b cookies.txt -c cookies.txt -H "Accept: application/json" -H
> "Content-type: application/json" -X POST -d
> '{"phoneNumber":"1234567890","email":"newTest at test.com","name":"newTest"}'
> http://agmobile-html5.rhcloud.com/rest/forge/members
>
> I should have pointed to the sources to the REST endpoint:
>
> https://github.com/burrsutter/agmobile/blob/master/src/main/java/com/burrsutter/agmobile/rest/MemberEndpoint.java
> This was generated by Forge as I am too lazy to type up a full CRUD REST
> endpoint myself :-)
>
>
>
> I got an correct answer but the content type is 'text/plain' , please
> check your rest endpoint to be sure it's producing json as output, that
> should solve your issue.
> It says
> @POST
> @Consumes("application/json")
>
> needs a @Produces("application/json")
>
> I'm not sure that will help. The response is a HTTP 201 with a Location
> header.
> Is the client expecting an entity of type application/json in the response
> ?
>
> If yes, then the method should look like:
>
> @POST
> @Consumes("application/json")
> public Response create(MemberDTO dto)
> {
> Member entity = dto.fromDTO(null, em);
> em.persist(entity);
> return
>
> Response.created(UriBuilder.fromResource(MemberEndpoint.class).path(String.valueOf(entity.getId())).build()).entity(entity).build();
> }
>
> I've added : .entity(entity) in the above method to populate the response
> with the entity.
>
>
>
>
>
>
>
>
>
>
> Could you also paste the commands you used in Forge to scaffold the REST
> endpoints so that we can check there hasn't been an incompatibility
> introduced ?
> I just used the Forge Wizard that is built into JBDS/Tools
> http://screencast.com/t/QrKkCoFZMUn
>
> error.status is 201
> error.responseText is blank
>
>
>
>
>
>
>
> On Sat, Dec 14, 2013 at 6:06 PM, Burr Sutter wrote:
> I am having a problem with pipe.save(), likely user error :-)
>
> For some reason, the POST is occurring, the save seems to work but the
> error callback is invoked, not the success method.
>
> And I am doing all of this in the context of our tooling which has some
> limitations (auto-closing console/firebug lite)
>
> http://screencast.com/t/gosd7Qnhz
>
> REST endpoint:
> http://agmobile-html5.rhcloud.com/rest/forge/members
> Use of Forge, with the Member.java entity to offer full CRUD capabilities
>
> Sources:
> https://github.com/burrsutter/AGContacts/blob/master/www/js/index.js
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
> _______________________________________________
> 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
>
--
Lincoln Baxter, III
http://ocpsoft.org
"Simpler is better."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20131216/243c8f6d/attachment.html
From ivan.st.ivanov at gmail.com Tue Dec 17 03:58:44 2013
From: ivan.st.ivanov at gmail.com (Ivan St. Ivanov)
Date: Tue, 17 Dec 2013 10:58:44 +0200
Subject: [forge-dev] [aerogear-dev] Aerogear.js for CRUD
In-Reply-To:
References:
<504FFE44-06CE-4C05-A8A6-D049D2D41E00@redhat.com>
<1445599908.40527893.1387224418368.JavaMail.root@redhat.com>
<1928607956.40560513.1387229153309.JavaMail.root@redhat.com>
Message-ID:
Hi!
I think that the 'right' approach is to respond with 201 (created) and
return a URI to the newly created resource.
Cheers,
Ivan
On Tue, Dec 17, 2013 at 12:58 AM, Lincoln Baxter, III <
lincolnbaxter at gmail.com> wrote:
> Either is typical, but I think that most "pure" restifarians would favor
> the 201.
>
>
> On Mon, Dec 16, 2013 at 5:41 PM, Burr Sutter wrote:
>
>> I need to find my REST bible - what is typical to respond to the POST
>> with the JSON-serialized entity that was originally POST'd or to simply
>> respond with a basic acknowledgement (http 201)?
>>
>>
>> On Dec 16, 2013, at 4:25 PM, Vineet Reynolds Pereira
>> wrote:
>>
>> Adding forge-dev.
>>
>> ----- Original Message -----
>>
>> From: "Burr Sutter"
>> To: "AeroGear Developer Mailing List"
>> Sent: Tuesday, December 17, 2013 1:59:41 AM
>> Subject: Re: [aerogear-dev] Aerogear.js for CRUD
>>
>> That seems to do the trick - now, where do we apply the fix? :-)
>>
>>
>> Well, ideally this would be a feature request in Forge to support a new
>> type
>> of a REST resource. But a couple of modified lines might not warrant it.
>>
>> It would be better to treat this as a flag to be enabled during REST
>> resource
>> scaffolding. It would allow users to choose how the resource behaves -
>> * send a 201 response with Location header,
>> * send a 201 response with Location header and also a response entity.
>>
>> It would most likely be addressed in Forge 2.
>>
>>
>> On Dec 16, 2013, at 3:06 PM, Vineet Reynolds Pereira <
>> vpereira at redhat.com >
>> wrote:
>>
>>
>>
>>
>>
>>
>> ----- Original Message -----
>>
>>
>> From: "Lucas Holmquist" < lholmqui at redhat.com >
>> To: "AeroGear Developer Mailing List" < aerogear-dev at lists.jboss.org >
>> Cc: "Vineet Reynolds Pereira" < vpereira at redhat.com >
>> Sent: Tuesday, December 17, 2013 12:53:25 AM
>> Subject: Re: [aerogear-dev] Aerogear.js for CRUD
>>
>>
>> On Dec 16, 2013, at 1:52 PM, Burr Sutter < bsutter at redhat.com > wrote:
>>
>>
>>
>> Adding Vineet as he has spent time on the Forge REST scaffolding.
>>
>> On Dec 16, 2013, at 7:01 AM, Sebastien Blanc < scm.blanc at gmail.com >
>> wrote:
>>
>>
>>
>> Burr,
>> I've added some logs statements on the client and basically it seems it
>> can not parse the response from the server :
>>
>> I/Web Console( 1386): textStatus: parsererror at
>> file:///android_asset/www/js/index.js:103
>> I/Web Console( 1386): error: SyntaxError: Unexpected end of input at
>> file:///android_asset/www/js/index.js:104
>>
>> If I do a CURL like this :
>> curl -v -b cookies.txt -c cookies.txt -H "Accept: application/json" -H
>> "Content-type: application/json" -X POST -d
>> '{"phoneNumber":"1234567890","email":"newTest at test.com
>> ","name":"newTest"}'
>> http://agmobile-html5.rhcloud.com/rest/forge/members
>>
>> I should have pointed to the sources to the REST endpoint:
>>
>> https://github.com/burrsutter/agmobile/blob/master/src/main/java/com/burrsutter/agmobile/rest/MemberEndpoint.java
>> This was generated by Forge as I am too lazy to type up a full CRUD REST
>> endpoint myself :-)
>>
>>
>>
>> I got an correct answer but the content type is 'text/plain' , please
>> check your rest endpoint to be sure it's producing json as output, that
>> should solve your issue.
>> It says
>> @POST
>> @Consumes("application/json")
>>
>> needs a @Produces("application/json")
>>
>> I'm not sure that will help. The response is a HTTP 201 with a Location
>> header.
>> Is the client expecting an entity of type application/json in the
>> response ?
>>
>> If yes, then the method should look like:
>>
>> @POST
>> @Consumes("application/json")
>> public Response create(MemberDTO dto)
>> {
>> Member entity = dto.fromDTO(null, em);
>> em.persist(entity);
>> return
>>
>> Response.created(UriBuilder.fromResource(MemberEndpoint.class).path(String.valueOf(entity.getId())).build()).entity(entity).build();
>> }
>>
>> I've added : .entity(entity) in the above method to populate the response
>> with the entity.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Could you also paste the commands you used in Forge to scaffold the REST
>> endpoints so that we can check there hasn't been an incompatibility
>> introduced ?
>> I just used the Forge Wizard that is built into JBDS/Tools
>> http://screencast.com/t/QrKkCoFZMUn
>>
>> error.status is 201
>> error.responseText is blank
>>
>>
>>
>>
>>
>>
>>
>> On Sat, Dec 14, 2013 at 6:06 PM, Burr Sutter wrote:
>> I am having a problem with pipe.save(), likely user error :-)
>>
>> For some reason, the POST is occurring, the save seems to work but the
>> error callback is invoked, not the success method.
>>
>> And I am doing all of this in the context of our tooling which has some
>> limitations (auto-closing console/firebug lite)
>>
>> http://screencast.com/t/gosd7Qnhz
>>
>> REST endpoint:
>> http://agmobile-html5.rhcloud.com/rest/forge/members
>> Use of Forge, with the Member.java entity to offer full CRUD capabilities
>>
>> Sources:
>> https://github.com/burrsutter/AGContacts/blob/master/www/js/index.js
>>
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>> _______________________________________________
>> 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
>>
>
>
>
> --
> Lincoln Baxter, III
> http://ocpsoft.org
> "Simpler is better."
>
> _______________________________________________
> 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-dev/attachments/20131217/2dfdb349/attachment-0001.html
From sblanc at redhat.com Tue Dec 17 04:25:14 2013
From: sblanc at redhat.com (Sebastien Blanc)
Date: Tue, 17 Dec 2013 10:25:14 +0100
Subject: [forge-dev] [aerogear-dev] Aerogear.js for CRUD
In-Reply-To:
References: <504FFE44-06CE-4C05-A8A6-D049D2D41E00@redhat.com> <1445599908.40527893.1387224418368.JavaMail.root@redhat.com> <1928607956.40560513.1387229153309.JavaMail.root@redhat.com>
Message-ID: <52B0187A.9020903@redhat.com>
Adding again aerogear list.
I think that we must discuss with the team (aerogear) on how we can/must
handle a proper 201 response.
On 12/17/2013 09:58 AM, Ivan St. Ivanov wrote:
> Hi!
>
> I think that the 'right' approach is to respond with 201 (created) and
> return a URI to the newly created resource.
>
> Cheers,
> Ivan
>
>
> On Tue, Dec 17, 2013 at 12:58 AM, Lincoln Baxter, III
> > wrote:
>
> Either is typical, but I think that most "pure" restifarians would
> favor the 201.
>
>
> On Mon, Dec 16, 2013 at 5:41 PM, Burr Sutter > wrote:
>
> I need to find my REST bible - what is typical to respond to
> the POST with the JSON-serialized entity that was originally
> POST'd or to simply respond with a basic acknowledgement (http
> 201)?
>
>
> On Dec 16, 2013, at 4:25 PM, Vineet Reynolds Pereira
> > wrote:
>
>> Adding forge-dev.
>>
>> ----- Original Message -----
>>> From: "Burr Sutter" >> >
>>> To: "AeroGear Developer Mailing List"
>>> >> >
>>> Sent: Tuesday, December 17, 2013 1:59:41 AM
>>> Subject: Re: [aerogear-dev] Aerogear.js for CRUD
>>>
>>> That seems to do the trick - now, where do we apply the fix? :-)
>>
>> Well, ideally this would be a feature request in Forge to
>> support a new type
>> of a REST resource. But a couple of modified lines might not
>> warrant it.
>>
>> It would be better to treat this as a flag to be enabled
>> during REST resource
>> scaffolding. It would allow users to choose how the resource
>> behaves -
>> * send a 201 response with Location header,
>> * send a 201 response with Location header and also a
>> response entity.
>>
>> It would most likely be addressed in Forge 2.
>>
>>>
>>> On Dec 16, 2013, at 3:06 PM, Vineet Reynolds Pereira <
>>> vpereira at redhat.com >
>>> wrote:
>>>
>>>
>>>
>>>
>>>
>>>
>>> ----- Original Message -----
>>>
>>>
>>> From: "Lucas Holmquist" < lholmqui at redhat.com
>>> >
>>> To: "AeroGear Developer Mailing List" <
>>> aerogear-dev at lists.jboss.org
>>> >
>>> Cc: "Vineet Reynolds Pereira" < vpereira at redhat.com
>>> >
>>> Sent: Tuesday, December 17, 2013 12:53:25 AM
>>> Subject: Re: [aerogear-dev] Aerogear.js for CRUD
>>>
>>>
>>> On Dec 16, 2013, at 1:52 PM, Burr Sutter <
>>> bsutter at redhat.com > wrote:
>>>
>>>
>>>
>>> Adding Vineet as he has spent time on the Forge REST
>>> scaffolding.
>>>
>>> On Dec 16, 2013, at 7:01 AM, Sebastien Blanc <
>>> scm.blanc at gmail.com > wrote:
>>>
>>>
>>>
>>> Burr,
>>> I've added some logs statements on the client and basically
>>> it seems it
>>> can not parse the response from the server :
>>>
>>> I/Web Console( 1386): textStatus: parsererror at
>>> file:///android_asset/www/js/index.js:103
>>> I/Web Console( 1386): error: SyntaxError: Unexpected end of
>>> input at
>>> file:///android_asset/www/js/index.js:104
>>>
>>> If I do a CURL like this :
>>> curl -v -b cookies.txt -c cookies.txt -H "Accept:
>>> application/json" -H
>>> "Content-type: application/json" -X POST -d
>>> '{"phoneNumber":"1234567890","email":"newTest at test.com
>>> ","name":"newTest"}'
>>> http://agmobile-html5.rhcloud.com/rest/forge/members
>>>
>>> I should have pointed to the sources to the REST endpoint:
>>> https://github.com/burrsutter/agmobile/blob/master/src/main/java/com/burrsutter/agmobile/rest/MemberEndpoint.java
>>> This was generated by Forge as I am too lazy to type up a
>>> full CRUD REST
>>> endpoint myself :-)
>>>
>>>
>>>
>>> I got an correct answer but the content type is 'text/plain'
>>> , please
>>> check your rest endpoint to be sure it's producing json as
>>> output, that
>>> should solve your issue.
>>> It says
>>> @POST
>>> @Consumes("application/json")
>>>
>>> needs a @Produces("application/json")
>>>
>>> I'm not sure that will help. The response is a HTTP 201 with
>>> a Location
>>> header.
>>> Is the client expecting an entity of type application/json
>>> in the response ?
>>>
>>> If yes, then the method should look like:
>>>
>>> @POST
>>> @Consumes("application/json")
>>> public Response create(MemberDTO dto)
>>> {
>>> Member entity = dto.fromDTO(null, em);
>>> em.persist(entity);
>>> return
>>> Response.created(UriBuilder.fromResource(MemberEndpoint.class).path(String.valueOf(entity.getId())).build()).entity(entity).build();
>>> }
>>>
>>> I've added : .entity(entity) in the above method to populate
>>> the response
>>> with the entity.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Could you also paste the commands you used in Forge to
>>> scaffold the REST
>>> endpoints so that we can check there hasn't been an
>>> incompatibility
>>> introduced ?
>>> I just used the Forge Wizard that is built into JBDS/Tools
>>> http://screencast.com/t/QrKkCoFZMUn
>>>
>>> error.status is 201
>>> error.responseText is blank
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Sat, Dec 14, 2013 at 6:06 PM, Burr Sutter
>>> > wrote:
>>> I am having a problem with pipe.save(), likely user error :-)
>>>
>>> For some reason, the POST is occurring, the save seems to
>>> work but the
>>> error callback is invoked, not the success method.
>>>
>>> And I am doing all of this in the context of our tooling
>>> which has some
>>> limitations (auto-closing console/firebug lite)
>>>
>>> http://screencast.com/t/gosd7Qnhz
>>>
>>> REST endpoint:
>>> http://agmobile-html5.rhcloud.com/rest/forge/members
>>> Use of Forge, with the Member.java entity to offer full CRUD
>>> capabilities
>>>
>>> Sources:
>>> https://github.com/burrsutter/AGContacts/blob/master/www/js/index.js
>>>
>>>
>>> _______________________________________________
>>> aerogear-dev mailing list
>>> aerogear-dev at lists.jboss.org
>>>
>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>>
>>> _______________________________________________
>>> aerogear-dev mailing list
>>> aerogear-dev at lists.jboss.org
>>>
>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>>
>>> _______________________________________________
>>> aerogear-dev mailing list
>>> aerogear-dev at lists.jboss.org
>>>
>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>>
>>>
>>> _______________________________________________
>>> aerogear-dev mailing list
>>> aerogear-dev at lists.jboss.org
>>>
>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>>
>>>
>>> _______________________________________________
>>> aerogear-dev mailing list
>>> aerogear-dev at lists.jboss.org
>>>
>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>> _______________________________________________
>> 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
>
>
>
>
> --
> Lincoln Baxter, III
> http://ocpsoft.org
> "Simpler is better."
>
> _______________________________________________
> 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-dev/attachments/20131217/d7ee0700/attachment-0001.html
From vpereira at redhat.com Tue Dec 17 04:36:14 2013
From: vpereira at redhat.com (Vineet Reynolds Pereira)
Date: Tue, 17 Dec 2013 04:36:14 -0500 (EST)
Subject: [forge-dev] [aerogear-dev] Aerogear.js for CRUD
In-Reply-To: <52B0187A.9020903@redhat.com>
References:
<1445599908.40527893.1387224418368.JavaMail.root@redhat.com>
<1928607956.40560513.1387229153309.JavaMail.root@redhat.com>
<52B0187A.9020903@redhat.com>
Message-ID: <521510137.40738790.1387272974513.JavaMail.root@redhat.com>
----- Original Message -----
> From: "Sebastien Blanc"
> To: forge-dev at lists.jboss.org, aerogear-dev at lists.jboss.org
> Sent: Tuesday, December 17, 2013 2:55:14 PM
> Subject: Re: [forge-dev] [aerogear-dev] Aerogear.js for CRUD
>
> Adding again aerogear list.
> I think that we must discuss with the team (aerogear) on how we can/must
> handle a proper 201 response.
I'd concur. Both of these are 'correct'. But it would be better to indicate
if the client or consumers of the client should do anything more for 201 responses.
Several clients (Backbone.js [1], AngularJS[2] etc.) expect that responses to POST contain
the entity in the response. Consumers are expected to fetch the updated resource for a 201
with an empty body.
1: https://github.com/jashkenas/backbone/issues/1660
2: https://github.com/angular/angular.js/issues/2572
>
> On 12/17/2013 09:58 AM, Ivan St. Ivanov wrote:
>
>
>
> Hi!
>
> I think that the 'right' approach is to respond with 201 (created) and return
> a URI to the newly created resource.
>
> Cheers,
> Ivan
>
>
> On Tue, Dec 17, 2013 at 12:58 AM, Lincoln Baxter, III <
> lincolnbaxter at gmail.com > wrote:
>
>
>
> Either is typical, but I think that most "pure" restifarians would favor the
> 201.
>
>
> On Mon, Dec 16, 2013 at 5:41 PM, Burr Sutter < bsutter at redhat.com > wrote:
>
>
>
> I need to find my REST bible - what is typical to respond to the POST with
> the JSON-serialized entity that was originally POST'd or to simply respond
> with a basic acknowledgement (http 201)?
>
>
> On Dec 16, 2013, at 4:25 PM, Vineet Reynolds Pereira < vpereira at redhat.com >
> wrote:
>
>
>
>
> Adding forge-dev.
>
> ----- Original Message -----
>
>
> From: "Burr Sutter" < bsutter at redhat.com >
> To: "AeroGear Developer Mailing List" < aerogear-dev at lists.jboss.org >
> Sent: Tuesday, December 17, 2013 1:59:41 AM
> Subject: Re: [aerogear-dev] Aerogear.js for CRUD
>
> That seems to do the trick - now, where do we apply the fix? :-)
>
> Well, ideally this would be a feature request in Forge to support a new type
> of a REST resource. But a couple of modified lines might not warrant it.
>
> It would be better to treat this as a flag to be enabled during REST resource
> scaffolding. It would allow users to choose how the resource behaves -
> * send a 201 response with Location header,
> * send a 201 response with Location header and also a response entity.
>
> It would most likely be addressed in Forge 2.
>
>
>
>
> On Dec 16, 2013, at 3:06 PM, Vineet Reynolds Pereira < vpereira at redhat.com >
> wrote:
>
>
>
>
>
>
> ----- Original Message -----
>
>
> From: "Lucas Holmquist" < lholmqui at redhat.com >
> To: "AeroGear Developer Mailing List" < aerogear-dev at lists.jboss.org >
> Cc: "Vineet Reynolds Pereira" < vpereira at redhat.com >
> Sent: Tuesday, December 17, 2013 12:53:25 AM
> Subject: Re: [aerogear-dev] Aerogear.js for CRUD
>
>
> On Dec 16, 2013, at 1:52 PM, Burr Sutter < bsutter at redhat.com > wrote:
>
>
>
> Adding Vineet as he has spent time on the Forge REST scaffolding.
>
> On Dec 16, 2013, at 7:01 AM, Sebastien Blanc < scm.blanc at gmail.com > wrote:
>
>
>
> Burr,
> I've added some logs statements on the client and basically it seems it
> can not parse the response from the server :
>
> I/Web Console( 1386): textStatus: parsererror at
> file:///android_asset/www/js/index.js:103
> I/Web Console( 1386): error: SyntaxError: Unexpected end of input at
> file:///android_asset/www/js/index.js:104
>
> If I do a CURL like this :
> curl -v -b cookies.txt -c cookies.txt -H "Accept: application/json" -H
> "Content-type: application/json" -X POST -d
> '{"phoneNumber":"1234567890","email":" newTest at test.com ","name":"newTest"}'
> http://agmobile-html5.rhcloud.com/rest/forge/members
>
> I should have pointed to the sources to the REST endpoint:
> https://github.com/burrsutter/agmobile/blob/master/src/main/java/com/burrsutter/agmobile/rest/MemberEndpoint.java
> This was generated by Forge as I am too lazy to type up a full CRUD REST
> endpoint myself :-)
>
>
>
> I got an correct answer but the content type is 'text/plain' , please
> check your rest endpoint to be sure it's producing json as output, that
> should solve your issue.
> It says
> @POST
> @Consumes("application/json")
>
> needs a @Produces("application/json")
>
> I'm not sure that will help. The response is a HTTP 201 with a Location
> header.
> Is the client expecting an entity of type application/json in the response ?
>
> If yes, then the method should look like:
>
> @POST
> @Consumes("application/json")
> public Response create(MemberDTO dto)
> {
> Member entity = dto.fromDTO(null, em);
> em.persist(entity);
> return
> Response.created(UriBuilder.fromResource(MemberEndpoint.class).path(String.valueOf(entity.getId())).build()).entity(entity).build();
> }
>
> I've added : .entity(entity) in the above method to populate the response
> with the entity.
>
>
>
>
>
>
>
>
>
>
> Could you also paste the commands you used in Forge to scaffold the REST
> endpoints so that we can check there hasn't been an incompatibility
> introduced ?
> I just used the Forge Wizard that is built into JBDS/Tools
> http://screencast.com/t/QrKkCoFZMUn
>
> error.status is 201
> error.responseText is blank
>
>
>
>
>
>
>
> On Sat, Dec 14, 2013 at 6:06 PM, Burr Sutter < bsutter at redhat.com > wrote:
> I am having a problem with pipe.save(), likely user error :-)
>
> For some reason, the POST is occurring, the save seems to work but the
> error callback is invoked, not the success method.
>
> And I am doing all of this in the context of our tooling which has some
> limitations (auto-closing console/firebug lite)
>
> http://screencast.com/t/gosd7Qnhz
>
> REST endpoint:
> http://agmobile-html5.rhcloud.com/rest/forge/members
> Use of Forge, with the Member.java entity to offer full CRUD capabilities
>
> Sources:
> https://github.com/burrsutter/AGContacts/blob/master/www/js/index.js
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
> _______________________________________________
> 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
>
>
>
> --
> Lincoln Baxter, III
> http://ocpsoft.org
> "Simpler is better."
>
> _______________________________________________
> 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
>
>
> _______________________________________________
> forge-dev mailing list
> forge-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-dev
From lholmqui at redhat.com Tue Dec 17 08:29:10 2013
From: lholmqui at redhat.com (Lucas Holmquist)
Date: Tue, 17 Dec 2013 08:29:10 -0500
Subject: [forge-dev] [aerogear-dev] Aerogear.js for CRUD
In-Reply-To: <52B0187A.9020903@redhat.com>
References: <504FFE44-06CE-4C05-A8A6-D049D2D41E00@redhat.com> <1445599908.40527893.1387224418368.JavaMail.root@redhat.com> <1928607956.40560513.1387229153309.JavaMail.root@redhat.com>
<52B0187A.9020903@redhat.com>
Message-ID: <98682D8D-478E-4D4E-87FE-C4F08B4F67AF@redhat.com>
On Dec 17, 2013, at 4:25 AM, Sebastien Blanc wrote:
> Adding again aerogear list.
> I think that we must discuss with the team (aerogear) on how we can/must handle a proper 201 response.
i don't see this as a client issue at all. jQuery ajax is used under the hood here and it is handling the 201 fine, but it is choking on parsing the response since it is not in the correct format, thus calling back in the error callback.
this should really be handled on the server
>
> On 12/17/2013 09:58 AM, Ivan St. Ivanov wrote:
>> Hi!
>>
>> I think that the 'right' approach is to respond with 201 (created) and return a URI to the newly created resource.
>>
>> Cheers,
>> Ivan
>>
>>
>> On Tue, Dec 17, 2013 at 12:58 AM, Lincoln Baxter, III wrote:
>> Either is typical, but I think that most "pure" restifarians would favor the 201.
>>
>>
>> On Mon, Dec 16, 2013 at 5:41 PM, Burr Sutter wrote:
>> I need to find my REST bible - what is typical to respond to the POST with the JSON-serialized entity that was originally POST'd or to simply respond with a basic acknowledgement (http 201)?
>>
>>
>> On Dec 16, 2013, at 4:25 PM, Vineet Reynolds Pereira wrote:
>>
>>> Adding forge-dev.
>>>
>>> ----- Original Message -----
>>>> From: "Burr Sutter"
>>>> To: "AeroGear Developer Mailing List"
>>>> Sent: Tuesday, December 17, 2013 1:59:41 AM
>>>> Subject: Re: [aerogear-dev] Aerogear.js for CRUD
>>>>
>>>> That seems to do the trick - now, where do we apply the fix? :-)
>>>
>>> Well, ideally this would be a feature request in Forge to support a new type
>>> of a REST resource. But a couple of modified lines might not warrant it.
>>>
>>> It would be better to treat this as a flag to be enabled during REST resource
>>> scaffolding. It would allow users to choose how the resource behaves -
>>> * send a 201 response with Location header,
>>> * send a 201 response with Location header and also a response entity.
>>>
>>> It would most likely be addressed in Forge 2.
>>>
>>>>
>>>> On Dec 16, 2013, at 3:06 PM, Vineet Reynolds Pereira < vpereira at redhat.com >
>>>> wrote:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> ----- Original Message -----
>>>>
>>>>
>>>> From: "Lucas Holmquist" < lholmqui at redhat.com >
>>>> To: "AeroGear Developer Mailing List" < aerogear-dev at lists.jboss.org >
>>>> Cc: "Vineet Reynolds Pereira" < vpereira at redhat.com >
>>>> Sent: Tuesday, December 17, 2013 12:53:25 AM
>>>> Subject: Re: [aerogear-dev] Aerogear.js for CRUD
>>>>
>>>>
>>>> On Dec 16, 2013, at 1:52 PM, Burr Sutter < bsutter at redhat.com > wrote:
>>>>
>>>>
>>>>
>>>> Adding Vineet as he has spent time on the Forge REST scaffolding.
>>>>
>>>> On Dec 16, 2013, at 7:01 AM, Sebastien Blanc < scm.blanc at gmail.com > wrote:
>>>>
>>>>
>>>>
>>>> Burr,
>>>> I've added some logs statements on the client and basically it seems it
>>>> can not parse the response from the server :
>>>>
>>>> I/Web Console( 1386): textStatus: parsererror at
>>>> file:///android_asset/www/js/index.js:103
>>>> I/Web Console( 1386): error: SyntaxError: Unexpected end of input at
>>>> file:///android_asset/www/js/index.js:104
>>>>
>>>> If I do a CURL like this :
>>>> curl -v -b cookies.txt -c cookies.txt -H "Accept: application/json" -H
>>>> "Content-type: application/json" -X POST -d
>>>> '{"phoneNumber":"1234567890","email":"newTest at test.com","name":"newTest"}'
>>>> http://agmobile-html5.rhcloud.com/rest/forge/members
>>>>
>>>> I should have pointed to the sources to the REST endpoint:
>>>> https://github.com/burrsutter/agmobile/blob/master/src/main/java/com/burrsutter/agmobile/rest/MemberEndpoint.java
>>>> This was generated by Forge as I am too lazy to type up a full CRUD REST
>>>> endpoint myself :-)
>>>>
>>>>
>>>>
>>>> I got an correct answer but the content type is 'text/plain' , please
>>>> check your rest endpoint to be sure it's producing json as output, that
>>>> should solve your issue.
>>>> It says
>>>> @POST
>>>> @Consumes("application/json")
>>>>
>>>> needs a @Produces("application/json")
>>>>
>>>> I'm not sure that will help. The response is a HTTP 201 with a Location
>>>> header.
>>>> Is the client expecting an entity of type application/json in the response ?
>>>>
>>>> If yes, then the method should look like:
>>>>
>>>> @POST
>>>> @Consumes("application/json")
>>>> public Response create(MemberDTO dto)
>>>> {
>>>> Member entity = dto.fromDTO(null, em);
>>>> em.persist(entity);
>>>> return
>>>> Response.created(UriBuilder.fromResource(MemberEndpoint.class).path(String.valueOf(entity.getId())).build()).entity(entity).build();
>>>> }
>>>>
>>>> I've added : .entity(entity) in the above method to populate the response
>>>> with the entity.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Could you also paste the commands you used in Forge to scaffold the REST
>>>> endpoints so that we can check there hasn't been an incompatibility
>>>> introduced ?
>>>> I just used the Forge Wizard that is built into JBDS/Tools
>>>> http://screencast.com/t/QrKkCoFZMUn
>>>>
>>>> error.status is 201
>>>> error.responseText is blank
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Sat, Dec 14, 2013 at 6:06 PM, Burr Sutter wrote:
>>>> I am having a problem with pipe.save(), likely user error :-)
>>>>
>>>> For some reason, the POST is occurring, the save seems to work but the
>>>> error callback is invoked, not the success method.
>>>>
>>>> And I am doing all of this in the context of our tooling which has some
>>>> limitations (auto-closing console/firebug lite)
>>>>
>>>> http://screencast.com/t/gosd7Qnhz
>>>>
>>>> REST endpoint:
>>>> http://agmobile-html5.rhcloud.com/rest/forge/members
>>>> Use of Forge, with the Member.java entity to offer full CRUD capabilities
>>>>
>>>> Sources:
>>>> https://github.com/burrsutter/AGContacts/blob/master/www/js/index.js
>>>>
>>>>
>>>> _______________________________________________
>>>> aerogear-dev mailing list
>>>> aerogear-dev at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>>>
>>>> _______________________________________________
>>>> aerogear-dev mailing list
>>>> aerogear-dev at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>>>
>>>> _______________________________________________
>>>> aerogear-dev mailing list
>>>> aerogear-dev at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>>>
>>>>
>>>> _______________________________________________
>>>> aerogear-dev mailing list
>>>> aerogear-dev at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>>>
>>>>
>>>> _______________________________________________
>>>> aerogear-dev mailing list
>>>> aerogear-dev at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>> _______________________________________________
>>> 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
>>
>>
>>
>> --
>> Lincoln Baxter, III
>> http://ocpsoft.org
>> "Simpler is better."
>>
>> _______________________________________________
>> 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
>
> _______________________________________________
> 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-dev/attachments/20131217/b9e04973/attachment-0001.html
From bsutter at redhat.com Tue Dec 17 08:55:02 2013
From: bsutter at redhat.com (Burr Sutter)
Date: Tue, 17 Dec 2013 08:55:02 -0500
Subject: [forge-dev] [aerogear-dev] Aerogear.js for CRUD
In-Reply-To: <521510137.40738790.1387272974513.JavaMail.root@redhat.com>
References:
<1445599908.40527893.1387224418368.JavaMail.root@redhat.com>
<1928607956.40560513.1387229153309.JavaMail.root@redhat.com>
<52B0187A.9020903@redhat.com>
<521510137.40738790.1387272974513.JavaMail.root@redhat.com>
Message-ID: <1479565A-A100-48B2-A05F-9351EC223443@redhat.com>
On Dec 17, 2013, at 4:36 AM, Vineet Reynolds Pereira wrote:
>
>
> ----- Original Message -----
>> From: "Sebastien Blanc"
>> To: forge-dev at lists.jboss.org, aerogear-dev at lists.jboss.org
>> Sent: Tuesday, December 17, 2013 2:55:14 PM
>> Subject: Re: [forge-dev] [aerogear-dev] Aerogear.js for CRUD
>>
>> Adding again aerogear list.
>> I think that we must discuss with the team (aerogear) on how we can/must
>> handle a proper 201 response.
>
> I'd concur. Both of these are 'correct'. But it would be better to indicate
> if the client or consumers of the client should do anything more for 201 responses.
>
> Several clients (Backbone.js [1], AngularJS[2] etc.) expect that responses to POST contain
> the entity in the response. Consumers are expected to fetch the updated resource for a 201
> with an empty body.
These statements seem almost contradict each other.
If Backbone/Angular assume that the response to a POST is a 201 with the entire entity from the server then that suggests that Aerogear's default is also correct behavior, in which case, the Forge scaffolding should be corrected.
If "Consumers are expected to fetch the updated resource for a 201with an empty body", then no JSON serialized entity is needed in the response.
My definitions (which may be different than yours)
- 201 is the http response header/status
- entity is the entire object (e.g. Person, Customer, Part, Order) that was originally POST'd/INSERTed + any default values returned by the ORM+RDBMS (e.g. auto-inc id, pre-populated fields from triggers, etc)
- response body is where the JSON-serialized entity payload would be
>
> 1: https://github.com/jashkenas/backbone/issues/1660
> 2: https://github.com/angular/angular.js/issues/2572
>
>
>>
>> On 12/17/2013 09:58 AM, Ivan St. Ivanov wrote:
>>
>>
>>
>> Hi!
>>
>> I think that the 'right' approach is to respond with 201 (created) and return
>> a URI to the newly created resource.
>>
>> Cheers,
>> Ivan
>>
>>
>> On Tue, Dec 17, 2013 at 12:58 AM, Lincoln Baxter, III <
>> lincolnbaxter at gmail.com > wrote:
>>
>>
>>
>> Either is typical, but I think that most "pure" restifarians would favor the
>> 201.
>>
>>
>> On Mon, Dec 16, 2013 at 5:41 PM, Burr Sutter < bsutter at redhat.com > wrote:
>>
>>
>>
>> I need to find my REST bible - what is typical to respond to the POST with
>> the JSON-serialized entity that was originally POST'd or to simply respond
>> with a basic acknowledgement (http 201)?
>>
>>
>> On Dec 16, 2013, at 4:25 PM, Vineet Reynolds Pereira < vpereira at redhat.com >
>> wrote:
>>
>>
>>
>>
>> Adding forge-dev.
>>
>> ----- Original Message -----
>>
>>
>> From: "Burr Sutter" < bsutter at redhat.com >
>> To: "AeroGear Developer Mailing List" < aerogear-dev at lists.jboss.org >
>> Sent: Tuesday, December 17, 2013 1:59:41 AM
>> Subject: Re: [aerogear-dev] Aerogear.js for CRUD
>>
>> That seems to do the trick - now, where do we apply the fix? :-)
>>
>> Well, ideally this would be a feature request in Forge to support a new type
>> of a REST resource. But a couple of modified lines might not warrant it.
>>
>> It would be better to treat this as a flag to be enabled during REST resource
>> scaffolding. It would allow users to choose how the resource behaves -
>> * send a 201 response with Location header,
>> * send a 201 response with Location header and also a response entity.
>>
>> It would most likely be addressed in Forge 2.
>>
>>
>>
>>
>> On Dec 16, 2013, at 3:06 PM, Vineet Reynolds Pereira < vpereira at redhat.com >
>> wrote:
>>
>>
>>
>>
>>
>>
>> ----- Original Message -----
>>
>>
>> From: "Lucas Holmquist" < lholmqui at redhat.com >
>> To: "AeroGear Developer Mailing List" < aerogear-dev at lists.jboss.org >
>> Cc: "Vineet Reynolds Pereira" < vpereira at redhat.com >
>> Sent: Tuesday, December 17, 2013 12:53:25 AM
>> Subject: Re: [aerogear-dev] Aerogear.js for CRUD
>>
>>
>> On Dec 16, 2013, at 1:52 PM, Burr Sutter < bsutter at redhat.com > wrote:
>>
>>
>>
>> Adding Vineet as he has spent time on the Forge REST scaffolding.
>>
>> On Dec 16, 2013, at 7:01 AM, Sebastien Blanc < scm.blanc at gmail.com > wrote:
>>
>>
>>
>> Burr,
>> I've added some logs statements on the client and basically it seems it
>> can not parse the response from the server :
>>
>> I/Web Console( 1386): textStatus: parsererror at
>> file:///android_asset/www/js/index.js:103
>> I/Web Console( 1386): error: SyntaxError: Unexpected end of input at
>> file:///android_asset/www/js/index.js:104
>>
>> If I do a CURL like this :
>> curl -v -b cookies.txt -c cookies.txt -H "Accept: application/json" -H
>> "Content-type: application/json" -X POST -d
>> '{"phoneNumber":"1234567890","email":" newTest at test.com ","name":"newTest"}'
>> http://agmobile-html5.rhcloud.com/rest/forge/members
>>
>> I should have pointed to the sources to the REST endpoint:
>> https://github.com/burrsutter/agmobile/blob/master/src/main/java/com/burrsutter/agmobile/rest/MemberEndpoint.java
>> This was generated by Forge as I am too lazy to type up a full CRUD REST
>> endpoint myself :-)
>>
>>
>>
>> I got an correct answer but the content type is 'text/plain' , please
>> check your rest endpoint to be sure it's producing json as output, that
>> should solve your issue.
>> It says
>> @POST
>> @Consumes("application/json")
>>
>> needs a @Produces("application/json")
>>
>> I'm not sure that will help. The response is a HTTP 201 with a Location
>> header.
>> Is the client expecting an entity of type application/json in the response ?
>>
>> If yes, then the method should look like:
>>
>> @POST
>> @Consumes("application/json")
>> public Response create(MemberDTO dto)
>> {
>> Member entity = dto.fromDTO(null, em);
>> em.persist(entity);
>> return
>> Response.created(UriBuilder.fromResource(MemberEndpoint.class).path(String.valueOf(entity.getId())).build()).entity(entity).build();
>> }
>>
>> I've added : .entity(entity) in the above method to populate the response
>> with the entity.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Could you also paste the commands you used in Forge to scaffold the REST
>> endpoints so that we can check there hasn't been an incompatibility
>> introduced ?
>> I just used the Forge Wizard that is built into JBDS/Tools
>> http://screencast.com/t/QrKkCoFZMUn
>>
>> error.status is 201
>> error.responseText is blank
>>
>>
>>
>>
>>
>>
>>
>> On Sat, Dec 14, 2013 at 6:06 PM, Burr Sutter < bsutter at redhat.com > wrote:
>> I am having a problem with pipe.save(), likely user error :-)
>>
>> For some reason, the POST is occurring, the save seems to work but the
>> error callback is invoked, not the success method.
>>
>> And I am doing all of this in the context of our tooling which has some
>> limitations (auto-closing console/firebug lite)
>>
>> http://screencast.com/t/gosd7Qnhz
>>
>> REST endpoint:
>> http://agmobile-html5.rhcloud.com/rest/forge/members
>> Use of Forge, with the Member.java entity to offer full CRUD capabilities
>>
>> Sources:
>> https://github.com/burrsutter/AGContacts/blob/master/www/js/index.js
>>
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>> _______________________________________________
>> 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
>>
>>
>>
>> --
>> Lincoln Baxter, III
>> http://ocpsoft.org
>> "Simpler is better."
>>
>> _______________________________________________
>> 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
>>
>>
>> _______________________________________________
>> 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-dev/attachments/20131217/8fce662e/attachment.html
From vpereira at redhat.com Tue Dec 17 09:43:50 2013
From: vpereira at redhat.com (Vineet Reynolds Pereira)
Date: Tue, 17 Dec 2013 09:43:50 -0500 (EST)
Subject: [forge-dev] [aerogear-dev] Aerogear.js for CRUD
In-Reply-To: <98682D8D-478E-4D4E-87FE-C4F08B4F67AF@redhat.com>
References:
<1928607956.40560513.1387229153309.JavaMail.root@redhat.com>
<52B0187A.9020903@redhat.com>
<98682D8D-478E-4D4E-87FE-C4F08B4F67AF@redhat.com>
Message-ID: <2032951163.40864303.1387291430377.JavaMail.root@redhat.com>
----- Original Message -----
> From: "Lucas Holmquist"
> To: "forge-dev List"
> Cc: aerogear-dev at lists.jboss.org
> Sent: Tuesday, December 17, 2013 6:59:10 PM
> Subject: Re: [forge-dev] [aerogear-dev] Aerogear.js for CRUD
>
>
> On Dec 17, 2013, at 4:25 AM, Sebastien Blanc < sblanc at redhat.com > wrote:
>
>
>
>
> Adding again aerogear list.
> I think that we must discuss with the team (aerogear) on how we can/must
> handle a proper 201 response.
>
> i don't see this as a client issue at all. jQuery ajax is used under the hood
> here and it is handling the 201 fine, but it is choking on parsing the
> response since it is not in the correct format, thus calling back in the
> error callback.
Ah, you mean this problem:
http://jquery.com/upgrade-guide/1.9/#jquery-ajax-returning-a-json-result-of-an-empty-string
This would definitely require the server to not send empty responses when the client expects JSON.
>
> this should really be handled on the server
>
>
>
>
>
> On 12/17/2013 09:58 AM, Ivan St. Ivanov wrote:
>
>
>
> Hi!
>
> I think that the 'right' approach is to respond with 201 (created) and return
> a URI to the newly created resource.
>
> Cheers,
> Ivan
>
>
> On Tue, Dec 17, 2013 at 12:58 AM, Lincoln Baxter, III <
> lincolnbaxter at gmail.com > wrote:
>
>
>
> Either is typical, but I think that most "pure" restifarians would favor the
> 201.
>
>
> On Mon, Dec 16, 2013 at 5:41 PM, Burr Sutter < bsutter at redhat.com > wrote:
>
>
>
> I need to find my REST bible - what is typical to respond to the POST with
> the JSON-serialized entity that was originally POST'd or to simply respond
> with a basic acknowledgement (http 201)?
>
>
> On Dec 16, 2013, at 4:25 PM, Vineet Reynolds Pereira < vpereira at redhat.com >
> wrote:
>
>
>
>
> Adding forge-dev.
>
> ----- Original Message -----
>
>
> From: "Burr Sutter" < bsutter at redhat.com >
> To: "AeroGear Developer Mailing List" < aerogear-dev at lists.jboss.org >
> Sent: Tuesday, December 17, 2013 1:59:41 AM
> Subject: Re: [aerogear-dev] Aerogear.js for CRUD
>
> That seems to do the trick - now, where do we apply the fix? :-)
>
> Well, ideally this would be a feature request in Forge to support a new type
> of a REST resource. But a couple of modified lines might not warrant it.
>
> It would be better to treat this as a flag to be enabled during REST resource
> scaffolding. It would allow users to choose how the resource behaves -
> * send a 201 response with Location header,
> * send a 201 response with Location header and also a response entity.
>
> It would most likely be addressed in Forge 2.
>
>
>
>
> On Dec 16, 2013, at 3:06 PM, Vineet Reynolds Pereira < vpereira at redhat.com >
> wrote:
>
>
>
>
>
>
> ----- Original Message -----
>
>
> From: "Lucas Holmquist" < lholmqui at redhat.com >
> To: "AeroGear Developer Mailing List" < aerogear-dev at lists.jboss.org >
> Cc: "Vineet Reynolds Pereira" < vpereira at redhat.com >
> Sent: Tuesday, December 17, 2013 12:53:25 AM
> Subject: Re: [aerogear-dev] Aerogear.js for CRUD
>
>
> On Dec 16, 2013, at 1:52 PM, Burr Sutter < bsutter at redhat.com > wrote:
>
>
>
> Adding Vineet as he has spent time on the Forge REST scaffolding.
>
> On Dec 16, 2013, at 7:01 AM, Sebastien Blanc < scm.blanc at gmail.com > wrote:
>
>
>
> Burr,
> I've added some logs statements on the client and basically it seems it
> can not parse the response from the server :
>
> I/Web Console( 1386): textStatus: parsererror at
> file:///android_asset/www/js/index.js:103
> I/Web Console( 1386): error: SyntaxError: Unexpected end of input at
> file:///android_asset/www/js/index.js:104
>
> If I do a CURL like this :
> curl -v -b cookies.txt -c cookies.txt -H "Accept: application/json" -H
> "Content-type: application/json" -X POST -d
> '{"phoneNumber":"1234567890","email":" newTest at test.com ","name":"newTest"}'
> http://agmobile-html5.rhcloud.com/rest/forge/members
>
> I should have pointed to the sources to the REST endpoint:
> https://github.com/burrsutter/agmobile/blob/master/src/main/java/com/burrsutter/agmobile/rest/MemberEndpoint.java
> This was generated by Forge as I am too lazy to type up a full CRUD REST
> endpoint myself :-)
>
>
>
> I got an correct answer but the content type is 'text/plain' , please
> check your rest endpoint to be sure it's producing json as output, that
> should solve your issue.
> It says
> @POST
> @Consumes("application/json")
>
> needs a @Produces("application/json")
>
> I'm not sure that will help. The response is a HTTP 201 with a Location
> header.
> Is the client expecting an entity of type application/json in the response ?
>
> If yes, then the method should look like:
>
> @POST
> @Consumes("application/json")
> public Response create(MemberDTO dto)
> {
> Member entity = dto.fromDTO(null, em);
> em.persist(entity);
> return
> Response.created(UriBuilder.fromResource(MemberEndpoint.class).path(String.valueOf(entity.getId())).build()).entity(entity).build();
> }
>
> I've added : .entity(entity) in the above method to populate the response
> with the entity.
>
>
>
>
>
>
>
>
>
>
> Could you also paste the commands you used in Forge to scaffold the REST
> endpoints so that we can check there hasn't been an incompatibility
> introduced ?
> I just used the Forge Wizard that is built into JBDS/Tools
> http://screencast.com/t/QrKkCoFZMUn
>
> error.status is 201
> error.responseText is blank
>
>
>
>
>
>
>
> On Sat, Dec 14, 2013 at 6:06 PM, Burr Sutter < bsutter at redhat.com > wrote:
> I am having a problem with pipe.save(), likely user error :-)
>
> For some reason, the POST is occurring, the save seems to work but the
> error callback is invoked, not the success method.
>
> And I am doing all of this in the context of our tooling which has some
> limitations (auto-closing console/firebug lite)
>
> http://screencast.com/t/gosd7Qnhz
>
> REST endpoint:
> http://agmobile-html5.rhcloud.com/rest/forge/members
> Use of Forge, with the Member.java entity to offer full CRUD capabilities
>
> Sources:
> https://github.com/burrsutter/AGContacts/blob/master/www/js/index.js
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
> _______________________________________________
> 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
>
>
>
> --
> Lincoln Baxter, III
> http://ocpsoft.org
> "Simpler is better."
>
> _______________________________________________
> 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
>
> _______________________________________________
> 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
From jbalunas at redhat.com Tue Dec 17 10:05:22 2013
From: jbalunas at redhat.com (Jay Balunas)
Date: Tue, 17 Dec 2013 10:05:22 -0500
Subject: [forge-dev] [aerogear-dev] Aerogear.js for CRUD
In-Reply-To: <2032951163.40864303.1387291430377.JavaMail.root@redhat.com>
References:
<1928607956.40560513.1387229153309.JavaMail.root@redhat.com>