[JBoss JIRA] Created: (SWITCHYARD-288) Project cannot be built for Forge
by Jiri Pechanec (JIRA)
Project cannot be built for Forge
---------------------------------
Key: SWITCHYARD-288
URL: https://issues.jboss.org/browse/SWITCHYARD-288
Project: SwitchYard
Issue Type: Bug
Components: tooling
Affects Versions: 0.1
Environment: Seam Forge, version [ 1.0.0.Alpha3 ] - JBoss, by Red Hat, Inc. [ http://jboss.org ]
Apache Maven 3.0.1 (r1038046; 2010-11-23 11:58:32+0100)
Java version: 1.6.0_20
Java home: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.35.13-91.fc14.x86_64" arch: "amd64" Family: "unix"
Reporter: Jiri Pechanec
I create a bean service from Forge and I executed the command - "build"
The command fails with
[ERROR] Failed to execute goal org.switchyard:switchyard-plugin:0.1.0:configure (default) on project errhandling: org.switchyard.component.bean.config.model.BeanSwitchYardScanner cannot be cast to org.switchyard.config.model.Scanner -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
***ERROR*** Build failed.
If I build the project from command line using Maven then it passes.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 6 months
[JBoss JIRA] Created: (SWITCHYARD-287) Forge plugin does not work with Seam Forge Alpha 4
by Jiri Pechanec (JIRA)
Forge plugin does not work with Seam Forge Alpha 4
--------------------------------------------------
Key: SWITCHYARD-287
URL: https://issues.jboss.org/browse/SWITCHYARD-287
Project: SwitchYard
Issue Type: Bug
Components: tooling
Affects Versions: 0.1
Reporter: Jiri Pechanec
Forge tooling is not available in Seam Forge Alpha 4, see missing project facets
Alpha 4
-----
[errhandling] errhandling $ about
Seam Forge, version [ 20110609-1315 ] - JBoss, by Red Hat, Inc. [ http://jboss.org ]
[errhandling] errhandling $ project list-facets
forge.spec.validation
forge.maven.MavenCoreFacet
forge.maven.PackagingFacet
forge.spec.servlet
forge.maven.MavenPluginFacet
forge.maven.JavaSourceFacet
forge.maven.WebResourceFacet
forge.spec.jpa
metawidget
forge.maven.MavenDependencyFacet
forge.maven.MetadataFacet
forge.spec.jsf
forge.maven.JavaExecutionFacet
forge.api
forge.maven.ResourceFacet
forge.spec.cdi
===========
Alpha 3
------
[errhandling] errhandling $ about
Seam Forge, version [ 1.0.0.Alpha3 ] - JBoss, by Red Hat, Inc. [ http://jboss.org ]
[errhandling] errhandling $ project list-facets
forge.spec.jpa
switchyard
switchyard.camel
forge.scaffold
forge.maven.MetadataFacet
forge.maven.MavenDependencyFacet
forge.maven.MavenCoreFacet
forge.maven.ResourceFacet
switchyard.soap
forge.api
forge.maven.PackagingFacet
forge.spec.servlet
forge.spec.jsf
forge.spec.cdi
forge.maven.WebResourceFacet
switchyard.bean
forge.maven.JavaSourceFacet
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 6 months
[JBoss JIRA] Created: (SWITCHYARD-282) Camel Atom Integration issues
by Boris Belovic (JIRA)
Camel Atom Integration issues
-----------------------------
Key: SWITCHYARD-282
URL: https://issues.jboss.org/browse/SWITCHYARD-282
Project: SwitchYard
Issue Type: Bug
Components: component-camel
Affects Versions: 0.1
Environment: Fedora 14, jdk1.6 update 22
Reporter: Boris Belovic
I noticed there is a support for Atom feeds in SwitchYard - there is support in schema and configuration model. I didn't try directly this for polling Atom feeds, instead I tried common camel.binding element in switchyard.xml:
<service name="GreetingService" promote="GreetingService">
<camel:binding.camel xmlns:camel="urn:switchyard-component-camel:config:1.0" configURI="atom://http://markclittle.blogspot.com/feeds/post/default"/>
</service>
I deployed SwitchYard service and got this exception:
17:08:56,767 INFO [org.apache.camel.impl.DefaultCamelContext] Apache Camel 2.6.0 (CamelContext: camel-4) is starting
17:08:56,768 INFO [org.apache.camel.impl.DefaultCamelContext] JMX enabled. Using ManagedManagementStrategy.
17:08:56,838 INFO [org.apache.camel.impl.converter.AnnotationTypeConverterLoader] Found 5 packages with 17 @Converter classes to load
17:08:56,844 INFO [org.apache.camel.impl.converter.DefaultTypeConverter] Loaded 163 type converters in 0.037 seconds
17:08:56,923 INFO [org.apache.camel.impl.DefaultCamelContext] Total 0 routes, of which 0 is started.
17:08:56,924 INFO [org.apache.camel.impl.DefaultCamelContext] Apache Camel 2.6.0 (CamelContext: camel-4) started in 0.156 seconds
17:08:57,133 INFO [org.apache.camel.impl.DefaultCamelContext] Route: GreetingService-[atom://http://markclittle.blogspot.com/feeds/posts/default] started and consuming from: Endpoint[atom://http://markclittle.blogspot.com/feeds/posts/default]
17:08:58,566 WARN [org.apache.camel.impl.DefaultPollingConsumerPollStrategy] Consumer Consumer[atom://http://markclittle.blogspot.com/feeds/posts/default] could not poll endpoint: atom://http://markclittle.blogspot.com/feeds/posts/default caused by: java.lang.IllegalStateException: This factory is immutable: org.apache.abdera.parser.ParseException: java.lang.IllegalStateException: This factory is immutable
at org.apache.abdera.parser.stax.FOMParser.parse(FOMParser.java:125) [:0.4.0-incubating]
at org.apache.abdera.util.AbstractParser.parse(AbstractParser.java:66) [:0.4.0-incubating]
at org.apache.camel.component.atom.AtomUtils.parseDocument(AtomUtils.java:55) [:2.6.0]
at org.apache.camel.component.atom.AtomEntryPollingConsumer.getDocument(AtomEntryPollingConsumer.java:43) [:2.6.0]
at org.apache.camel.component.atom.AtomEntryPollingConsumer.createFeed(AtomEntryPollingConsumer.java:65) [:2.6.0]
at org.apache.camel.component.feed.FeedEntryPollingConsumer.poll(FeedEntryPollingConsumer.java:46) [:2.6.0]
at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:97) [:2.6.0]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [:1.6.0_22]
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [:1.6.0_22]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.6.0_22]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_22]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [:1.6.0_22]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [:1.6.0_22]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_22]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_22]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]
Caused by: java.lang.IllegalStateException: This factory is immutable
at org.apache.axiom.util.stax.wrapper.ImmutableXMLInputFactory.setProperty(ImmutableXMLInputFactory.java:47) [:]
at org.apache.abdera.parser.stax.FOMParser.getXMLInputFactory(FOMParser.java:155) [:0.4.0-incubating]
at org.apache.abdera.parser.stax.FOMParser.createXMLStreamReader(FOMParser.java:167) [:0.4.0-incubating]
at org.apache.abdera.parser.stax.FOMParser.parse(FOMParser.java:118) [:0.4.0-incubating]
... 15 more
I am not sure whether the problem is directly in SwitchYard or Camel, it might be that the problem is in third party library that is used by Camel to poll Atom feeds.
Issue is in invoking setProperty() method on ImmutableXMLInputFactory instance, which isn't permitted as it changes the state of a factory class (this is not allowed as the factory class is immutable).
I am raising this JIRA to track down issue in SwitchYard/Camel/Atom integration.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 6 months