-
1. Re: [forge-dev] UIValidator
ivan_stefanov Jan 3, 2015 7:28 AM (in response to danielcunha)Hi Soro,
I guess upon executing the addon install command (prior to the actual
execution).
Did you also get an error when trying to run:
forge --install org.jboss.forge.addon:core,$FORGE_VERSION
This morning I got:
java.lang.IllegalArgumentException: Coordinates must be of the form
'name,version' or 'name,version,api-version
at org.jboss.forge.furnace.addons.AddonId.fromCoordinates(AddonId.java:78)
at org.jboss.forge.bootstrap.Bootstrap.install(Bootstrap.java:311)
at org.jboss.forge.bootstrap.Bootstrap. wrote:
When this validation is called?
--
Daniel Cunha (soro)
_______________________________________________
forge-dev mailing list
https://lists.jboss.org/mailman/listinfo/forge-dev
-
att1.html.zip 1.0 KB
-
-
2. Re: [forge-dev] UIValidator
gastaldi Jan 3, 2015 7:35 AM (in response to ivan_stefanov)Hi Ivan,
I guess $FORGE_VERSION is not being resolved in your case, thus making it an invalid coordinate.
Em 03/01/2015, às 10:28, Ivan St. Ivanov <ivan.st.ivanov@gmail.com> escreveu:
Hi Soro,
I guess upon executing the addon install command (prior to the actual execution).
Did you also get an error when trying to run:
forge --install org.jboss.forge.addon:core,$FORGE_VERSION
This morning I got:
java.lang.IllegalArgumentException: Coordinates must be of the form 'name,version' or 'name,version,api-version
at org.jboss.forge.furnace.addons.AddonId.fromCoordinates(AddonId.java:78)
at org.jboss.forge.bootstrap.Bootstrap.install(Bootstrap.java:311)
at org.jboss.forge.bootstrap.Bootstrap.<init>(Bootstrap.java:179)
at org.jboss.forge.bootstrap.Bootstrap.main(Bootstrap.java:95)
However, I did not investigate much into it. I guess I have to change the `:core` part in my script to `,core`.
Cheers,
Ivan
>> On Sat, Jan 3, 2015 at 2:19 PM, Daniel Cunha <danielsoro@gmail.com> wrote:
>> When this validation is called?
>>
>> --
>> Daniel Cunha (soro)
>>
>> _______________________________________________
>> forge-dev mailing list
>> https://lists.jboss.org/mailman/listinfo/forge-dev
_______________________________________________
forge-dev mailing list
-
att1.html.zip 1.3 KB
-
-
3. Re: [forge-dev] UIValidator
danielcunha Jan 3, 2015 7:36 AM (in response to ivan_stefanov)Hi Ivan,
I'm looking for it. George opened a issue for it. (
https://issues.jboss.org/browse/FORGE-2169).
http://maven.apache.org/pom.html#Maven_Coordinates
I think that this "," (comma) not should to exist. Ok?
On Sat, Jan 3, 2015 at 12:28 PM, Ivan St. Ivanov <ivan.st.ivanov@gmail.com>
wrote:
Hi Soro,
I guess upon executing the addon install command (prior to the actual
execution).
Did you also get an error when trying to run:
forge --install org.jboss.forge.addon:core,$FORGE_VERSION
This morning I got:
java.lang.IllegalArgumentException: Coordinates must be of the form
'name,version' or 'name,version,api-version
at org.jboss.forge.furnace.addons.AddonId.fromCoordinates(AddonId.java:78)
at org.jboss.forge.bootstrap.Bootstrap.install(Bootstrap.java:311)
at org.jboss.forge.bootstrap.Bootstrap.<init>(Bootstrap.java:179)
at org.jboss.forge.bootstrap.Bootstrap.main(Bootstrap.java:95)
However, I did not investigate much into it. I guess I have to change the
`:core` part in my script to `,core`.
Cheers,
Ivan
On Sat, Jan 3, 2015 at 2:19 PM, Daniel Cunha <danielsoro@gmail.com> wrote:
>> When this validation is called?
>>
>>
>> --
>> Daniel Cunha (soro)
>>
>> _______________________________________________
>> forge-dev mailing list
>> https://lists.jboss.org/mailman/listinfo/forge-dev
>>
>
_______________________________________________
forge-dev mailing list
https://lists.jboss.org/mailman/listinfo/forge-dev
--
Daniel Cunha (soro)
-
att1.html.zip 1.3 KB
-
-
4. Re: [forge-dev] UIValidator
ivan_stefanov Jan 3, 2015 7:51 AM (in response to danielcunha)Hi folks,
George, most probably that was the reason.
I don't quite understand the problem described in this issue. Is it because
there is a validation error but there is no popup in the IDE and just
something in the logs? Then I guess this could be fixed if the exception
that is caught here
is changed to RuntimeException or if we add a new catch block for
RuntimeException with different validation error.
WDYT?
Cheers,
Ivan
On Sat, Jan 3, 2015 at 2:36 PM, Daniel Cunha <danielsoro@gmail.com> wrote:
Hi Ivan,
I'm looking for it. George opened a issue for it. (
https://issues.jboss.org/browse/FORGE-2169).
http://maven.apache.org/pom.html#Maven_Coordinates
I think that this "," (comma) not should to exist. Ok?
On Sat, Jan 3, 2015 at 12:28 PM, Ivan St. Ivanov <ivan.st.ivanov@gmail.com
wrote:
>> Hi Soro,
>>
>> I guess upon executing the addon install command (prior to the actual
>> execution).
>>
>> Did you also get an error when trying to run:
>>
>> forge --install org.jboss.forge.addon:core,$FORGE_VERSION
>>
>> This morning I got:
>>
>> java.lang.IllegalArgumentException: Coordinates must be of the form
>> 'name,version' or 'name,version,api-version
>> at org.jboss.forge.furnace.addons.AddonId.fromCoordinates(AddonId.java:78)
>> at org.jboss.forge.bootstrap.Bootstrap.install(Bootstrap.java:311)
>> at org.jboss.forge.bootstrap.Bootstrap.
>
--
Daniel Cunha (soro)
_______________________________________________
forge-dev mailing list
https://lists.jboss.org/mailman/listinfo/forge-dev
-
att1.html.zip 1.5 KB
-
-
5. Re: [forge-dev] UIValidator
danielcunha Jan 3, 2015 8:00 AM (in response to ivan_stefanov)Hi Ivan,
In my case, the catch is here:
This case, I don't know, but it seem that validation not called before of
executeute.
On Sat, Jan 3, 2015 at 12:51 PM, Ivan St. Ivanov <ivan.st.ivanov@gmail.com>
wrote:
Hi folks,
George, most probably that was the reason.
I don't quite understand the problem described in this issue. Is it
because there is a validation error but there is no popup in the IDE and
just something in the logs? Then I guess this could be fixed if the
exception that is caught here
is changed to RuntimeException or if we add a new catch block for
RuntimeException with different validation error.
WDYT?
Cheers,
Ivan
On Sat, Jan 3, 2015 at 2:36 PM, Daniel Cunha <danielsoro@gmail.com> wrote:
>> Hi Ivan,
>>
>> I'm looking for it. George opened a issue for it. (
>> https://issues.jboss.org/browse/FORGE-2169).
>> http://maven.apache.org/pom.html#Maven_Coordinates
>>
>> I think that this "," (comma) not should to exist. Ok?
>>
>> On Sat, Jan 3, 2015 at 12:28 PM, Ivan St. Ivanov
_______________________________________________
forge-dev mailing list
https://lists.jboss.org/mailman/listinfo/forge-dev
--
Daniel Cunha (soro)
-
att1.html.zip 1.6 KB
-
-
6. Re: [forge-dev] UIValidator
gastaldi Jan 3, 2015 8:03 AM (in response to ivan_stefanov)Hi Ivan,
That's because the code is on the Bootstrap class (see the stacktrace you pasted). As for the UIValidator not being called, I'll investigate further.
Em 03/01/2015, às 10:51, Ivan St. Ivanov <ivan.st.ivanov@gmail.com> escreveu:
Hi folks,
George, most probably that was the reason.
I don't quite understand the problem described in this issue. Is it because there is a validation error but there is no popup in the IDE and just something in the logs? Then I guess this could be fixed if the exception that is caught here is changed to RuntimeException or if we add a new catch block for RuntimeException with different validation error.
WDYT?
Cheers,
Ivan
>> On Sat, Jan 3, 2015 at 2:36 PM, Daniel Cunha https://lists.jboss.org/mailman/listinfo/forge-dev
_______________________________________________
forge-dev mailing list
-
att1.html.zip 1.8 KB
-
-
7. Re: [forge-dev] UIValidator
ivan_stefanov Jan 3, 2015 8:08 AM (in response to gastaldi)Hi folks,
George, we are talking here about Soro's issue, the one that you reported
in the JIRA. About mine, you were right that the environment variable was
not set.
I guess that the validator is called. At least from the stack trace in
the JIRA, I see that the error happens while calling the AbstractUICommand
validate method. Most probably the exception escapes and just gets logged.
Maybe if you add catch clause for a RuntimeException to the validator, it
will work.
Cheers,
Ivan
On Sat, Jan 3, 2015 at 3:03 PM, George Gastaldi <ggastald@redhat.com> wrote:
Hi Ivan,
That's because the code is on the Bootstrap class (see the stacktrace you
pasted). As for the UIValidator not being called, I'll investigate further.
>
Em 03/01/2015, às 10:51, Ivan St. Ivanov <ivan.st.ivanov@gmail.com>
escreveu:
Hi folks,
George, most probably that was the reason.
I don't quite understand the problem described in this issue. Is it
because there is a validation error but there is no popup in the IDE and
just something in the logs? Then I guess this could be fixed if the
exception that is caught here
is changed to RuntimeException or if we add a new catch block for
RuntimeException with different validation error.
WDYT?
Cheers,
Ivan
On Sat, Jan 3, 2015 at 2:36 PM, Daniel Cunha <danielsoro@gmail.com> wrote:
>> Hi Ivan,
>>
>> I'm looking for it. George opened a issue for it. (
>> https://issues.jboss.org/browse/FORGE-2169).
>> http://maven.apache.org/pom.html#Maven_Coordinates
>>
>> I think that this "," (comma) not should to exist. Ok?
>>
>> On Sat, Jan 3, 2015 at 12:28 PM, Ivan St. Ivanov
_______________________________________________
forge-dev mailing list
https://lists.jboss.org/mailman/listinfo/forge-dev
>
_______________________________________________
forge-dev mailing list
https://lists.jboss.org/mailman/listinfo/forge-dev
-
att1.html.zip 1.9 KB
-
-
8. Re: [forge-dev] UIValidator
gastaldi Jan 3, 2015 8:14 AM (in response to ivan_stefanov)That is a good idea, but I guess also that we should not wrap the IllegalArgumentException thrown in MavenAddonDependencyResolver.
Best Regards,
George Gastaldi
Em 03/01/2015, às 11:09, Ivan St. Ivanov <ivan.st.ivanov@gmail.com> escreveu:
Hi folks,
George, we are talking here about Soro's issue, the one that you reported in the JIRA. About mine, you were right that the environment variable was not set.
I guess that the validator is called. At least from the stack trace in the JIRA, I see that the error happens while calling the AbstractUICommand validate method. Most probably the exception escapes and just gets logged.
Maybe if you add catch clause for a RuntimeException to the validator, it will work.
Cheers,
Ivan
>> On Sat, Jan 3, 2015 at 3:03 PM, George Gastaldi https://lists.jboss.org/mailman/listinfo/forge-dev
_______________________________________________
forge-dev mailing list
-
att1.html.zip 2.1 KB
-
-
9. Re: [forge-dev] UIValidator
danielcunha Jan 3, 2015 8:21 AM (in response to gastaldi)Ivan,
you're right.
On Sat, Jan 3, 2015 at 1:14 PM, George Gastaldi <ggastald@redhat.com> wrote:
That is a good idea, but I guess also that we should not wrap the
IllegalArgumentException thrown in MavenAddonDependencyResolver.
Best Regards,
George Gastaldi
Em 03/01/2015, às 11:09, Ivan St. Ivanov <ivan.st.ivanov@gmail.com>
escreveu:
Hi folks,
George, we are talking here about Soro's issue, the one that you reported
in the JIRA. About mine, you were right that the environment variable was
not set.
I guess that the validator is called. At least from the stack trace in
the JIRA, I see that the error happens while calling the AbstractUICommand
validate method. Most probably the exception escapes and just gets logged.
Maybe if you add catch clause for a RuntimeException to the validator, it
will work.
Cheers,
Ivan
On Sat, Jan 3, 2015 at 3:03 PM, George Gastaldi <ggastald@redhat.com>
wrote:
>> Hi Ivan,
>>
>> That's because the code is on the Bootstrap class (see the stacktrace you
>> pasted). As for the UIValidator not being called, I'll investigate further.
>>
>>
>>
>> Em 03/01/2015, às 10:51, Ivan St. Ivanov <ivan.st.ivanov@gmail.com>
>> escreveu:
>>
>> Hi folks,
>>
>> George, most probably that was the reason.
>>
>> I don't quite understand the problem described in this issue. Is it
>> because there is a validation error but there is no popup in the IDE and
>> just something in the logs? Then I guess this could be fixed if the
>> exception that is caught here
>>
_______________________________________________
forge-dev mailing list
https://lists.jboss.org/mailman/listinfo/forge-dev
>
_______________________________________________
forge-dev mailing list
https://lists.jboss.org/mailman/listinfo/forge-dev
--
Daniel Cunha (soro)
-
att1.html.zip 2.1 KB
-
-
10. Re: [forge-dev] UIValidator
ivan_stefanov Jan 3, 2015 8:21 AM (in response to gastaldi)Yeah, we may leave the IllegalArgumentException and just add another catch
clause for RuntimeException
On Sat, Jan 3, 2015 at 3:14 PM, George Gastaldi <ggastald@redhat.com> wrote:
That is a good idea, but I guess also that we should not wrap the
IllegalArgumentException thrown in MavenAddonDependencyResolver.
Best Regards,
George Gastaldi
Em 03/01/2015, às 11:09, Ivan St. Ivanov <ivan.st.ivanov@gmail.com>
escreveu:
Hi folks,
George, we are talking here about Soro's issue, the one that you reported
in the JIRA. About mine, you were right that the environment variable was
not set.
I guess that the validator is called. At least from the stack trace in
the JIRA, I see that the error happens while calling the AbstractUICommand
validate method. Most probably the exception escapes and just gets logged.
Maybe if you add catch clause for a RuntimeException to the validator, it
will work.
Cheers,
Ivan
On Sat, Jan 3, 2015 at 3:03 PM, George Gastaldi <ggastald@redhat.com>
wrote:
>> Hi Ivan,
>>
>> That's because the code is on the Bootstrap class (see the stacktrace you
>> pasted). As for the UIValidator not being called, I'll investigate further.
>>
>>
>>
>> Em 03/01/2015, às 10:51, Ivan St. Ivanov <ivan.st.ivanov@gmail.com>
>> escreveu:
>>
>> Hi folks,
>>
>> George, most probably that was the reason.
>>
>> I don't quite understand the problem described in this issue. Is it
>> because there is a validation error but there is no popup in the IDE and
>> just something in the logs? Then I guess this could be fixed if the
>> exception that is caught here
>>
_______________________________________________
forge-dev mailing list
https://lists.jboss.org/mailman/listinfo/forge-dev
>
_______________________________________________
forge-dev mailing list
https://lists.jboss.org/mailman/listinfo/forge-dev
-
att1.html.zip 2.1 KB
-