Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 82331 Details for
Bug 209013
[DS] NullPointerException when activating a bundle with a service component (only if framework is launched in a tomcat)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
patch to use BundleContext.getProperty
209013_org.eclipse.equinox.ds.txt (text/plain), 1.46 KB, created by
Thomas Watson
on 2007-11-07 09:50:14 EST
(
hide
)
Description:
patch to use BundleContext.getProperty
Filename:
MIME Type:
Creator:
Thomas Watson
Created:
2007-11-07 09:50:14 EST
Size:
1.46 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.equinox.ds >Index: src/org/eclipse/equinox/ds/SCRManager.java >=================================================================== >RCS file: /cvsroot/eclipse/equinox-incubator/org.eclipse.equinox.ds/src/org/eclipse/equinox/ds/SCRManager.java,v >retrieving revision 1.4 >diff -u -r1.4 SCRManager.java >--- src/org/eclipse/equinox/ds/SCRManager.java 19 Oct 2007 12:34:00 -0000 1.4 >+++ src/org/eclipse/equinox/ds/SCRManager.java 7 Nov 2007 14:43:08 -0000 >@@ -76,9 +76,9 @@ > threadPoolManagerTracker.open(); > if (Activator.startup) > Activator.timeLog(111); /* >- * 111 = "Threadpool service tracker opened >- * for " >- */ >+ * 111 = "Threadpool service tracker opened >+ * for " >+ */ > > resolver = new Resolver(this); > if (Activator.startup) >@@ -88,9 +88,11 @@ > if (Activator.startup) > Activator.timeLog(105); /* 105 = "addBundleListener() method took " */ > >- String vendor = System.getProperty("org.osgi.framework.vendor", "ProSyst"); >+ String vendor = bc.getProperty("org.osgi.framework.vendor"); >+ if (vendor == null) >+ vendor = "ProSyst"; > >- String storageClass = System.getProperty("scr.storage.class"); >+ String storageClass = bc.getProperty("scr.storage.class"); > if (storageClass == null) { > if (vendor.equals("Eclipse")) { > storageClass = "org.eclipse.equinox.ds.storage.file.FileStorage";
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 209013
:
82319
| 82331