[jira] [Commented] (OWB-1328) NPE in AbstractMetaDataFactory

2020-06-10 Thread Romain Manni-Bucau (Jira)


[ 
https://issues.apache.org/jira/browse/OWB-1328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17130589#comment-17130589
 ] 

Romain Manni-Bucau commented on OWB-1328:
-

Hi Thiago,

 

I suspect for such a case - not handled OOTB - you need to implement your own 
scanner like we do for Arquillian/ShrinkWrap. Here is a basic impl: 
[https://github.com/apache/openwebbeans/blob/master/webbeans-arquillian/owb-arquillian-standalone/src/main/java/org/apache/webbeans/arquillian/standalone/OwbArquillianScannerService.java]

Then just configure your ScannerService in 
META-INF/openwebbeans/openwebbeans.properties and it will work as expected.

> NPE in AbstractMetaDataFactory
> --
>
> Key: OWB-1328
> URL: https://issues.apache.org/jira/browse/OWB-1328
> Project: OpenWebBeans
>  Issue Type: Bug
>Reporter: Thiago Henrique Hupner
>Assignee: Gurkan Erdogdu
>Priority: Minor
> Fix For: 2.0.18
>
>
> [https://github.com/apache/openwebbeans/blob/master/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java#L286]
>  
> If we have an URL that doesn't resolve to a File, we get a NPE



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (OWB-1328) NPE in AbstractMetaDataFactory

2020-06-10 Thread Thiago Henrique Hupner (Jira)


[ 
https://issues.apache.org/jira/browse/OWB-1328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17130516#comment-17130516
 ] 

Thiago Henrique Hupner commented on OWB-1328:
-

Thanks!

I was trying to add the OpenWebBeans to our new server application, Piranha, 
that uses the Shrinkwrap protocol to handle the deployments. Instead of reading 
a JAR or a File directly, it read the file in memory, thus cannot be 
represented as a file. An the class "Files" currently only supports the JAR and 
File  protocols.

> NPE in AbstractMetaDataFactory
> --
>
> Key: OWB-1328
> URL: https://issues.apache.org/jira/browse/OWB-1328
> Project: OpenWebBeans
>  Issue Type: Bug
>Reporter: Thiago Henrique Hupner
>Assignee: Gurkan Erdogdu
>Priority: Minor
> Fix For: 2.0.18
>
>
> [https://github.com/apache/openwebbeans/blob/master/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java#L286]
>  
> If we have an URL that doesn't resolve to a File, we get a NPE



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (OWB-1328) NPE in AbstractMetaDataFactory

2020-06-09 Thread Gurkan Erdogdu (Jira)


[ 
https://issues.apache.org/jira/browse/OWB-1328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17130279#comment-17130279
 ] 

Gurkan Erdogdu commented on OWB-1328:
-

[~Thihup] What kind of URL you get a NPE? Can you attach a simple example which 
shows the problem?

> NPE in AbstractMetaDataFactory
> --
>
> Key: OWB-1328
> URL: https://issues.apache.org/jira/browse/OWB-1328
> Project: OpenWebBeans
>  Issue Type: Bug
>Reporter: Thiago Henrique Hupner
>Assignee: Gurkan Erdogdu
>Priority: Minor
> Fix For: 2.0.18
>
>
> [https://github.com/apache/openwebbeans/blob/master/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java#L286]
>  
> If we have an URL that doesn't resolve to a File, we get a NPE



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (OWB-1328) NPE in AbstractMetaDataFactory

2020-06-09 Thread Gurkan Erdogdu (Jira)


[ 
https://issues.apache.org/jira/browse/OWB-1328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17130077#comment-17130077
 ] 

Gurkan Erdogdu commented on OWB-1328:
-

Thanks for reporting. This issue is now fixed in trunk.

> NPE in AbstractMetaDataFactory
> --
>
> Key: OWB-1328
> URL: https://issues.apache.org/jira/browse/OWB-1328
> Project: OpenWebBeans
>  Issue Type: Bug
>Reporter: Thiago Henrique Hupner
>Priority: Minor
>
> [https://github.com/apache/openwebbeans/blob/master/webbeans-impl/src/main/java/org/apache/webbeans/corespi/scanner/AbstractMetaDataDiscovery.java#L286]
>  
> If we have an URL that doesn't resolve to a File, we get a NPE



--
This message was sent by Atlassian Jira
(v8.3.4#803005)