karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krzysztof Sobkowiak (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-3122) Blueprint bean loaded multiple times
Date Sat, 02 Aug 2014 20:47:11 GMT

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

Krzysztof Sobkowiak commented on KARAF-3122:
--------------------------------------------

Tested in the released Karaf {{2.3.6}}. The problem doesn't occur anymore, but in log file
I could find following entry

{code}
2014-08-02 22:41:58,811 | ERROR | raf-2.3.6/deploy | fileinstall                      | ?
                                  ? | 6 - org.apache.felix.fileinstall - 3.4.0 | In main loop,
we have serious trouble
java.util.ConcurrentModificationException
	at java.util.HashMap$HashIterator.nextEntry(HashMap.java:922)[:1.7.0_65]
	at java.util.HashMap$KeyIterator.next(HashMap.java:956)[:1.7.0_65]
	at org.apache.felix.fileinstall.internal.WatcherScanner.scan(WatcherScanner.java:70)[6:org.apache.felix.fileinstall:3.4.0]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:305)[6:org.apache.felix.fileinstall:3.4.0]
{code}

> Blueprint bean loaded multiple times
> ------------------------------------
>
>                 Key: KARAF-3122
>                 URL: https://issues.apache.org/jira/browse/KARAF-3122
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.3.6
>            Reporter: Krzysztof Sobkowiak
>         Attachments: test.jar, test.xml
>
>
> The attached jar contains following class
> {code}
> package com;
> public class Test {
>    public void init() throws Exception { System.out.println("Starting ..."); }
> }
> {code}
>  
> The attached blueprint file initializes the bean using the {{init}} method. If the both
files are deployed using hot deploy, the method {{init}} seems to be called twice after Karaf
restart.
> {code}
> karaf@root> Starting ...
> Warning:  org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit'
is not recognized.
> Compiler warnings:
>   WARNING:  'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD'
is not recognized.'
> Starting ...
> {code}
> After deleting the {{data}} directory before starting Karaf, the method is called once
> {code}
> karaf@root> Warning:  org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property
'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
> Compiler warnings:
>   WARNING:  'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD'
is not recognized.'
> Starting ...
> {code}
> The bean is probably started once from the cached bundle and next is refreshed when it
is detected in {{deploy}} directory. 
> This effect does not occur in Karaf {{2.x}}, {{3.0.x}} and {{master}} 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message