Testing f3 3.0.0-SNAPSHOT

20 views
Skip to first unread message

Branislav Ulbrik

unread,
Jul 21, 2015, 4:26:49 AM7/21/15
to fab...@googlegroups.com
Hi Jim, 

I am co-worker of Tomas Fecko that's why I'm trying to run our projects on 3.0.0-SNAPSHOT :-).

I tried running our project in new f3 runtime. I encountered following problems. 

1.) we are using web.componentType file to configure web composite. Loading of this file fails with:

java.lang.NullPointerException
 [Ljava.lang.Object;@56e22b6b
at org.fabric3.implementation.web.introspection.WebComponentLoader.load(WebComponentLoader.java:90)
at org.fabric3.implementation.web.introspection.WebComponentLoader.load(WebComponentLoader.java:57)
at org.fabric3.introspection.xml.LoaderRegistryImpl.load(LoaderRegistryImpl.java:86)
at org.fabric3.introspection.xml.composite.ComponentLoader.load(ComponentLoader.java:134)
....

I checked f3 sources/debugged it, if you check WebComponentLoader.java line 89 - null is returned from loadComponentType(context); because of invalid componentType file - I suppose it should not fail with NullPointerException. 
Sample can be found here (for some reason I'm unable to upload any files here):
https://drive.google.com/folderview?id=0BzNkPrmRuGpvfnhxT25MNUtuUHdxWkRNWW1FYUI2cnV1QzdpLUJlR1lxR0o5TG5ROHc5S1k&usp=sharing
- given web.componentType file is invalid.

If 3.0.0 should be compatible also with this approach - how should valid file look like? 

2.) We use "global" properties in our composite files - so that they are reusable for multiple components defined within one composite file, e.g.:

<?xml version="1.0" encoding="UTF-8"?>
<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:f3="urn:fabric3.org"
xmlns:f3-other="urn:fabric3.org"
xmlns:f3-impl="urn:fabric3.org:implementation"
targetNamespace="com.nordlicht/1.0"
autowire="true"
name="datasourcesShopifyComposite">

<property name="api.key" type="xs:string">${shopify.api.key}</property>
<property name="api.secret" type="xs:string">${shopify.api.secret}</property>
<property name="registration.url" type="xs:string">${shopify.app.register.url}</property>

<component name="DatasourcesShopifyComponent">
<implementation.java class="com.nordlicht.mine.datasources.components.DatasourcesShopifyComponent"/>

<property name="api.key" source="$api.key" />
<property name="api.secret" source="$api.secret" />
<property name="registration.url" source="$registration.url"/>

<service name="IDatasource">
<interface.java interface="com.nordlicht.mine.spi.datasources.IDatasource" />
</service>
</component>
</composite>
 
When I try to deploy such components to new runtime they are not recognized thus deployment fails. Is it a bug or the scheme has changed?

  ERROR: The element {http://docs.oasis-open.org/ns/opencsa/sca/200912}property specified in jar:file:... at 11,5 was not recognized. If this is not a typo, check to ensure extensions are configured properly.

This works perfectly fine with 2.5.3

Maybe this is not the best place to "report" bugs or something like that, could you point me to project JIRA and maybe make it accessible for me to report stuff?

Thanks

Brano Ulbrik

Jim Marino

unread,
Jul 21, 2015, 5:03:43 AM7/21/15
to fab...@googlegroups.com
Hi Branislav,

Thanks for the sample project to reproduce the issues! Could you file bugs against our JIRA system for each of these issues so we have a record and we can go through them? 

Jim 

--
You received this message because you are subscribed to the Google Groups "fabric3" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric3+u...@googlegroups.com.
To post to this group, send email to fab...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fabric3/59814da1-cf4a-4719-93c3-09d8a997353d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages