[jira] [Commented] (FELIX-2892) Get SCR annotations to work with Scala

2012-12-03 Thread Carsten Ziegeler (JIRA)

[ 
https://issues.apache.org/jira/browse/FELIX-2892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13508675#comment-13508675
 ] 

Carsten Ziegeler commented on FELIX-2892:
-

Not sure who is giving out this message, however the released version of the 
annotations (1.7.0) are using class as the retention policy, so they are not 
loaded/required for usual Java applications.
Maybe the scala runtime is doing something?



 Get SCR annotations to work with Scala
 --

 Key: FELIX-2892
 URL: https://issues.apache.org/jira/browse/FELIX-2892
 Project: Felix
  Issue Type: Improvement
  Components: Maven SCR Plugin
Reporter: Reto Bachmann-Gmür
Assignee: Carsten Ziegeler
 Fix For: maven-scr-plugin-1.8.2

 Attachments: Foo.class


 Currently the maven scr plugin doesn't work with scala, teh main reason for 
 this is that the annotation have only source scope and the adding of 
 bind-methods happe on a source rather than a bytecode level.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (FELIX-3763) Add exception context information for java.lang.NullPointerException at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.jav

2012-12-03 Thread Tomas Forsman (JIRA)

[ 
https://issues.apache.org/jira/browse/FELIX-3763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13508716#comment-13508716
 ] 

Tomas Forsman commented on FELIX-3763:
--

Related to https://issues.apache.org/jira/browse/FELIX-3477

 Add exception context information for java.lang.NullPointerException at 
 org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1432)
 ---

 Key: FELIX-3763
 URL: https://issues.apache.org/jira/browse/FELIX-3763
 Project: Felix
  Issue Type: Bug
  Components: Framework
Affects Versions: framework-4.0.3
 Environment: Karaf
   Karaf version   2.3.0
   Karaf home  /home/ceefour/git/bippo-commerce5/karaf
   Karaf base  /home/ceefour/git/bippo-commerce5/karaf
   OSGi Framework  org.apache.felix.framework - 4.0.3
 JVM
   Java Virtual MachineOpenJDK 64-Bit Server VM version 23.2-b09
   Version 1.7.0_07
   Vendor  Oracle Corporation
   Uptime  7 minutes
   Total compile time  41.656 seconds
 Threads
   Live threads130
   Daemon threads  115
   Peak140
   Total started   311
 Memory
   Current heap size   145,684 kbytes
   Maximum heap size   466,048 kbytes
   Committed heap size 298,496 kbytes
   Pending objects 0
   Garbage collector   Name = 'PS Scavenge', Collections = 67, Time = 
 0.539 seconds
   Garbage collector   Name = 'PS MarkSweep', Collections = 2, Time = 
 0.347 seconds
 Classes
   Current classes loaded  13,475
   Total classes loaded13,477
   Total classes unloaded  2
 Operating system
   NameLinux version 3.2.0-32-generic
   Architectureamd64
   Processors  8
Reporter: Hendy Irawan

 Sometimes it's possible to get Felix into an inconsistent state so that 
 restart-ing a bundle will cause this Exception.
 Asking for a fix might be far and difficult, so if Felix can check for null 
 and provide more detailed context information around this exception, it would 
 be more helpful for app developers and also for future bug report in Felix.
 {code}
 2012-11-16 17:09:33,546 | DEBUG | l Console Thread | ComposeCatalogXmiTracker 
 | compose.ComposeCatalogXmiTracker  140 | 2973 - org.soluvas.web.site 
 - 1.0.0.SNAPSHOT | Removing 2 EObjects provided by org.soluvas.web.nav.ui 
 [2605]
 2012-11-16 17:09:33,546 | DEBUG | l Console Thread | ComposeCatalogXmiTracker 
 | compose.ComposeCatalogXmiTracker  161 | 2973 - org.soluvas.web.site 
 - 1.0.0.SNAPSHOT | Removing Contributor 
 org.soluvas.web.bootstrap.BootstrapPage/sidebarColumn:sidebarBlocks from 
 org.soluvas.web.nav.ui [2605]
 2012-11-16 17:09:33,546 | DEBUG | l Console Thread | ComposeCatalogXmiTracker 
 | compose.ComposeCatalogXmiTracker  161 | 2973 - org.soluvas.web.site 
 - 1.0.0.SNAPSHOT | Removing Contributor 
 org.soluvas.web.bootstrap.BootstrapPage/navbar:navbarChild from 
 org.soluvas.web.nav.ui [2605]
 2012-11-16 17:09:33,546 | INFO  | l Console Thread | ComposeCatalogXmiTracker 
 | compose.ComposeCatalogXmiTracker  169 | 2973 - org.soluvas.web.site 
 - 1.0.0.SNAPSHOT | Removed 2 EObjects from org.soluvas.web.nav.ui [2605]
 2012-11-16 17:09:33,547 | DEBUG | l Console Thread | ComposeCatalogXmiTracker 
 | compose.ComposeCatalogXmiTracker  172 | 2973 - org.soluvas.web.site 
 - 1.0.0.SNAPSHOT | Notifying 12 contributors that bundle 
 org.soluvas.web.nav.ui [2605] is removed
 2012-11-16 17:09:33,547 | DEBUG | lixDispatchQueue | ui   
 | ?   ? | 2605 - 
 org.soluvas.web.nav.ui - 1.0.0.SNAPSHOT | BundleEvent STOPPED - 
 org.soluvas.web.nav.ui
 2012-11-16 17:09:33,547 | INFO  | l Console Thread | PaxWicketBundleListener  
 | extender.PaxWicketBundleListener   40 | 2734 - 
 org.ops4j.pax.wicket.service - 1.1.1 | org.soluvas.web.nav.ui is STARTED and 
 relevant for pax wicket
 2012-11-16 17:09:33,549 | DEBUG | l Console Thread | ComposeCatalogXmiTracker 
 | compose.ComposeCatalogXmiTracker   65 | 2973 - org.soluvas.web.site 
 - 1.0.0.SNAPSHOT | Getting org.soluvas.web.site.compose.ComposeCatalog from 
 bundle://2605.129:0/org/soluvas/web/nav/ui/nav-ui.ComposeCatalog.xmi
 2012-11-16 17:09:33,549 | DEBUG | l Console Thread | XmiObjectLoader  
 | .soluvas.commons.XmiObjectLoader   87 | 2882 - org.soluvas.commons 
 - 2.0.0.SNAPSHOT | Loading XMI from URI: 
 

[jira] [Commented] (FELIX-1032) NPE on URL#openStream()

2012-12-03 Thread Samuel Le Berrigaud (JIRA)

[ 
https://issues.apache.org/jira/browse/FELIX-1032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13508728#comment-13508728
 ] 

Samuel Le Berrigaud commented on FELIX-1032:


For reference here is the JDK bug report: 
http://bugs.sun.com/view_bug.do?bug_id=7003462

 NPE on URL#openStream()
 ---

 Key: FELIX-1032
 URL: https://issues.apache.org/jira/browse/FELIX-1032
 Project: Felix
  Issue Type: Bug
  Components: Framework
Affects Versions: framework-1.4.1, framework-1.6.0, framework-1.6.1, 
 framework-1.8.0
 Environment: Linux bono 2.6.28-6-generic #17-Ubuntu SMP Fri Jan 30 
 15:34:36 UTC 2009 i686 GNU/Linux
 java version 1.6.0_13
 Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
 Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)
Reporter: Martin Zdila
Assignee: Richard S. Hall
Priority: Critical
 Attachments: hack.patch


 Note that also affected is felix-1.6.0 (it is not in the list).
 I am often getting NPE with the following code:
 new URL(bundle://66.0:0/somewhere/my.resource /* or any other bundle:// URL 
 */).openStream();
 java.lang.NullPointerException
   at java.util.zip.Inflater.ensureOpen(Inflater.java:336)
   at java.util.zip.Inflater.getBytesWritten(Inflater.java:296)
   at java.util.zip.ZipFile$1.available(ZipFile.java:243)
   at 
 org.apache.felix.framework.URLHandlersBundleURLConnection.connect(URLHandlersBundleURLConnection.java:125)
   at 
 org.apache.felix.framework.URLHandlersBundleURLConnection.getInputStream(URLHandlersBundleURLConnection.java:134)
   at java.net.URL.openStream(URL.java:1009)
 It is not allways reproducible. The first call causes the NPE and the second 
 call with the same URL string goes without problems.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: [VOTE] Release Felix UserAdmin 1.0.3, UA File store 1.0.2 UA MongoDB store 1.0.1

2012-12-03 Thread Carsten Ziegeler
+1

Carsten

2012/12/3 Marcel Offermans marcel.offerm...@luminis.nl:
 +1

 Note to other reviewers: Jan Willem added his key to 
 http://www.apache.org/dist/felix/KEYS so make sure you have it before 
 checking the signatures.

 Greetings, Marcel




-- 
Carsten Ziegeler
cziege...@apache.org


[jira] [Commented] (FELIX-2892) Get SCR annotations to work with Scala

2012-12-03 Thread Arjun Panday (JIRA)

[ 
https://issues.apache.org/jira/browse/FELIX-2892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13508867#comment-13508867
 ] 

Arjun Panday commented on FELIX-2892:
-

for info, i'd filed a bug to scala a while ago about this issue:
https://issues.scala-lang.org/browse/SI-4788
The problem is the scala compiler retaining all annotations at runtime .

I think bnd takes this into account and automatically adds 
Ignore-Package: aQute.bnd.annotation.component



 Get SCR annotations to work with Scala
 --

 Key: FELIX-2892
 URL: https://issues.apache.org/jira/browse/FELIX-2892
 Project: Felix
  Issue Type: Improvement
  Components: Maven SCR Plugin
Reporter: Reto Bachmann-Gmür
Assignee: Carsten Ziegeler
 Fix For: maven-scr-plugin-1.8.2

 Attachments: Foo.class


 Currently the maven scr plugin doesn't work with scala, teh main reason for 
 this is that the annotation have only source scope and the adding of 
 bind-methods happe on a source rather than a bytecode level.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Re: [VOTE] Release Felix UserAdmin 1.0.3, UA File store 1.0.2 UA MongoDB store 1.0.1

2012-12-03 Thread Karl Pauls
The *-project.* files have no top-level {notice,license,dependencies}
files. They are in the archives but still under src/main/resources.

The dependencies files list osgi provided files as being included but they
are not.

The notice file in the mongo db project list mongo db as a dependency.

I think it is enough to fix the first two issues in trunk. In regard to the
last one, why do you list mongo db as a dependency in the notice?

regards,

Karl


On Mon, Dec 3, 2012 at 5:38 PM, Carsten Ziegeler cziege...@apache.orgwrote:

 +1

 Carsten

 2012/12/3 Marcel Offermans marcel.offerm...@luminis.nl:
  +1
 
  Note to other reviewers: Jan Willem added his key to
 http://www.apache.org/dist/felix/KEYS so make sure you have it before
 checking the signatures.
 
  Greetings, Marcel
 



 --
 Carsten Ziegeler
 cziege...@apache.org




-- 
Karl Pauls
karlpa...@gmail.com
http://twitter.com/karlpauls
http://www.linkedin.com/in/karlpauls
https://profiles.google.com/karlpauls


[jira] [Commented] (FELIX-3171) felix src annotations : the future?

2012-12-03 Thread Toni Menzel (JIRA)

[ 
https://issues.apache.org/jira/browse/FELIX-3171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13509290#comment-13509290
 ] 

Toni Menzel commented on FELIX-3171:


I also just stumbled over this. Whats the status about making 
org.osgi.service.component.annotations.* annotations recognized in felix scr 
plugin ?

 felix src annotations : the future?
 ---

 Key: FELIX-3171
 URL: https://issues.apache.org/jira/browse/FELIX-3171
 Project: Felix
  Issue Type: Bug
Reporter: Andrei Pozolotin

 can someone in the know please comment on the future of :
 1) felix src annotations:
 http://felix.apache.org/site/scr-annotations.html
 2) felix src annotations plugin:
 http://felix.apache.org/site/apache-felix-maven-scr-plugin.html
 in the context of RFC 0172
 http://www.osgi.org/download/osgi-early-draft-2011-09.pdf 
 ?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira