Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361778 - [declarative service]Exception while declarative service tries to read .svn directory
Summary: [declarative service]Exception while declarative service tries to read .svn d...
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Compendium (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: equinox.compendium-inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-24 04:53 EDT by Arnaud MERGEY CLA
Modified: 2019-08-26 09:56 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arnaud MERGEY CLA 2011-10-24 04:53:41 EDT
Similarly to bug 345562 there is a stack trace if there is a directory in service-component pattern
For example with Service-Component: OSGI-INF/*

There is this:

java.io.FileNotFoundException: /<Path To Plugin /
Bundle>/OSGI-INF/metatype/.svn  (Access is denied)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:106)
	at org.eclipse.osgi.framework.util.SecureAction.getFileInputStream(SecureAction.java:123)
	at org.eclipse.osgi.baseadaptor.bundlefile.FileBundleEntry.getInputStream(FileBundleEntry.java:56)
	at org.eclipse.osgi.framework.internal.core.BundleURLConnection.connect(BundleURLConnection.java:53)
	at org.eclipse.osgi.framework.internal.core.BundleURLConnection.getInputStream(BundleURLConnection.java:99)
	at java.net.URL.openStream(URL.java:1010)
	at org.eclipse.equinox.internal.ds.ComponentStorage.parseXMLDeclaration(ComponentStorage.java:88)
	at org.eclipse.equinox.internal.ds.storage.file.FileStorage.loadComponentDefinitions(FileStorage.java:92)
	at org.eclipse.equinox.internal.ds.SCRManager.startedBundle(SCRManager.java:586)
	
Even there is an easy workaround, by giving a better pattern, for example Service-Component: OSGI-INF/*.xml
and even the issue only occurs by launching equinox from an eclipse workspace (.svn is created by eclipse subversive, and is not here when the bundle is built ), it is not really clean to have an error stack trace.

It has been fixed for bug 345562, so it should probably also be fixed here.
Comment 1 Arnaud MERGEY CLA 2011-10-24 04:57:32 EDT
Something wrong in stack trace I copied. The stack trace is 

java.io.FileNotFoundException: /<Path To Plugin /
Bundle>/OSGI-INF/.svn (Access is denied)

	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:106)
	at org.eclipse.osgi.framework.util.SecureAction.getFileInputStream(SecureAction.java:123)
	at org.eclipse.osgi.baseadaptor.bundlefile.FileBundleEntry.getInputStream(FileBundleEntry.java:56)
	at org.eclipse.osgi.framework.internal.core.BundleURLConnection.connect(BundleURLConnection.java:53)
	at org.eclipse.osgi.framework.internal.core.BundleURLConnection.getInputStream(BundleURLConnection.java:99)
	at java.net.URL.openStream(URL.java:1010)
	at org.eclipse.equinox.internal.ds.ComponentStorage.parseXMLDeclaration(ComponentStorage.java:88)
	at org.eclipse.equinox.internal.ds.storage.file.FileStorage.loadComponentDefinitions(FileStorage.java:92)
	at org.eclipse.equinox.internal.ds.SCRManager.startedBundle(SCRManager.java:586)
Comment 2 Eclipse Genie CLA 2019-08-23 17:02:57 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 3 Thomas Watson CLA 2019-08-26 09:56:47 EDT
This works now that we have moved to Felix SCR implementation.