We try to keep our books accurate, but sometimes mistakes creep
in. This page lists the errors submitted by our astute readers.
If you've found a new error, please
submit it.
The latest version of the book is P1.0,
released almost 4 years ago.
If you've bought a PDF of the book and would like to upgrade
it to this version (for free), visit your
home page.
| PDF |
Paper |
Description |
Found in |
Fixed in |
|
1 |
#42074: The examples do not build out of the box. The root pom.xml along with the hello modules all have various issues, most of which have been reported. Please fix this, it reflects poorly on the Book.--Johnny P #42074: The examples do not build out of the box. The root pom.xml along with the hello modules all have various issues, most of which have been repo ...more...
Michael Craig Walls says: A few things have changed since the examples were originally produced, such as some dependencies being removing from repositories and Pax Runner not starting the OSGi runtimes with the compendium bundle by default. The technology and tools moved while the printed book and published samples remained static.
I will be providing a new zip file with current examples.
|
P1.0
13-Jan-10
|
|
|
1 |
#42075: Please update the book to include references to the source for the book. While it does mention it with "Download hello/src/main/..." What? seriously. How about the Reference section mention the book source and then any mention of download should not be a path, but rather the url. The path should be used in something like "open this file"...--Johnny P #42075: Please update the book to include references to the source for the book. While it does mention it with "Download hello/src/main/..." What? ...more...
Michael Craig Walls says: Addressed in 2nd printing
|
P1.0
13-Jan-10
|
|
|
24 |
#42469: The MANIFEST.MF file for the HelloWorld bundle should begin with:
Manifest-Version: 1.0
When using Eclipse and exporting the HelloWord class as a Jar file with a specified manifest, Eclipse will ignore the manifest and use an empty one if the manifest does not specify the Manifest-Version header.
Not sure if the manifest is legal or not without this header, but even if it is legal without it, good practice is to include this header.--Michael Fitzmaurice #42469: The MANIFEST.MF file for the HelloWorld bundle should begin with:
Manifest-Version: 1.0
When using Eclipse and exporting the HelloWord c ...more...
Michael Craig Walls says: I do not believe that line is strictly required, but...if it makes things easier on Eclipse export, then I'll add it so that there's no confusion.
Corrected for 2nd printing.
|
P1.0
19-Mar-10
|
|
|
32 |
#40359: To get the hello-service hello-consumer examples working, you have to do the following: In hello-service edit the pom.xml file and change the drone dependencies to pax-exam as follows:
<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam</artifactId>
<version>0.3.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam</artifactId>
<version>0.3.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam</artifactId>
<version>0.3.0</version>
<scope>test</scope>
</dependency>
Compile the hello-service with: mvn install, or perhaps both mvn package install. Then install it under osgi as normal. If you don't run mvn install for the hello-service, the mvn package command will fail for hello-consumer on a missing dependency error, but running mvn install put it into maven2 repository and hello-consumer then compiles and installs normally.--Donald Stadler #40359: To get the hello-service hello-consumer examples working, you have to do the following: In hello-service edit the pom.xml file and change the ...more...
Michael Craig Walls says: The Pax Drone dependencies should have never been there at all. In fact, they don't need to even be Pax Exam dependencies because that particular project never uses Pax Drone or Pax Exam. I've removed those dependencies in the latest example code that will soon be available for download (when I submit errata fixes for a 2nd printing).
As for the mvn install steps...that is basic Maven stuff. For the hello-consumer to be able to resolve its dependencies, the hello-service needs to be in the local Maven repo. I've specified a bit more explicit instructions in the text of the 2nd printing.
|
P1.0
06-Aug-09
|
|
|
34 |
#40360: The example pom.xml file for hello-consumer is wrong. The correct dependencies section looks like this:
<dependencies>
<dependency>
<groupId>com.pragprog.osgi</groupId>
<artifactId>hello-service</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
--Donald Stadler #40360: The example pom.xml file for hello-consumer is wrong. The correct dependencies section looks like this:
<dependencies>
<dependency>
...more...
Michael Craig Walls says: At one time the dependency was correct. But then I changed the service bundle's artifact and version. By that time I had the old version in my local Maven repo. So, when I forgot to change it in the consumer pom.xml it still worked because the old stuff was in my local repo.
I've corrected this for the next distribution of the example code to go out along with the 2nd printing of the book.
|
P1.0
06-Aug-09
|
|
| 37 |
|
#40236: Examples doesn't work anymore due to inavailability of pax.drone. It seams, the latter has been renamed to pax.exam, but neither by maven nor by manual download the required files can be found!--Juerg #40236: Examples doesn't work anymore due to inavailability of pax.drone. It seams, the latter has been renamed to pax.exam, but neither by maven nor ...more...
Michael Craig Walls says: I cannot find any references to Pax Drone anywhere in the book. I removed those references in favor of Pax Exam well before the book went to print. I do have some example code laying around that still has Pax Drone dependencies, however. If that code somehow made it into the downloadable examples, then I'll make sure that I remove it before packaging up any new examples for distribution.
|
P1.0
28-Jul-09
|
|
| 40 |
|
#46052: The output examples from Equinox's console are not consistent with having followed the book's examples. The com.pragprog.HelloWorld_1.0.0 is in a RESOLVED state. This is all but trivial--but maybe a quick walk through of the uninstallation console command after executing the Hello World would have removed the issue for later examples?
osgi> ss
Framework is launched.
id State Bundle
0 ACTIVE org.eclipse.osgi_3.6.1.R36x_v20100806
1 RESOLVED com.pragprog.HelloWorld_1.0.0
2 ACTIVE com.pragprog.HelloWorldService_1.0.0
osgi>
--Douglas Irvine #46052: The output examples from Equinox's console are not consistent with having followed the book's examples. The com.pragprog.HelloWorld_1.0.0 is i ...more...
|
P1.0
19-Dec-10
|
|
| 42 |
|
#46053: 1st printing code errors- code/hellos-consumer/pom.xml: version tag is incorrect:
---from the .tgz---
<dependencies>
<dependency>
<groupId>com.pragprog.osgi</groupId>
<artifactId>hello-service</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
</dependencies>
---should be---
<dependencies>
<dependency>
<groupId>com.pragprog.osgi</groupId>
<artifactId>hello-service</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
The version in the hello-consumer's pom.xml's dependency needs to match the definition in the hello-service pom.xml, otherwise when you try to compile the package you get artifact missing errors.
Posting the corrected code tgz/zip files on pragprog or your own website in advance of the release of the second printing would be very useful to the readers, so less debugging of the sample code/build-files is required. #46053: 1st printing code errors- code/hellos-consumer/pom.xml: version tag is incorrect:
---from the .tgz---
<dependencies>
<dependency>
...more...
|
P1.0
19-Dec-10
|
|
|
49 |
#39860: Is the zip'd source code suppose to be fully functional or we need to modify it? Bundles are not configured correctly; i.e Missing imported package messages:
osgi> ss
Framework is launched.
id State Bundle
0 ACTIVE org.eclipse.osgi_3.4.3.R34x_v20081215-1030
1 ACTIVE org.eclipse.osgi.util_3.1.300.v20080303
2 ACTIVE org.eclipse.osgi.services_3.1.200.v20070605
3 INSTALLED com.dudewheresmyjar.domain_1.0.0.SNAPSHOT
4 INSTALLED com.dudewheresmyjar.index_1.0.0.SNAPSHOT
osgi> diag 3
initial@reference:file:../bundles/com.dudewheresmyjar.domain_1.0.0.SNAPSHOT.jar/ [3]
Direct constraints which are unresolved:
Missing imported package dwmj.domain.internal_0.0.0.
Missing imported package org.compass.annotations_0.0.0.
osgi> diag 4
initial@reference:file:../bundles/com.dudewheresmyjar.index_1.0.0.SNAPSHOT.jar/ [4]
Direct constraints which are unresolved:
Missing imported package dwmj.domain.internal_0.0.0.
Missing imported package org.compass.core_0.0.0.
Missing imported package org.compass.core.config_0.0.0.
Leaf constraints in the dependency chain which are unresolved:
initial@reference:file:../bundles/com.dudewheresmyjar.domain_1.0.0.SNAPSHOT.jar/ [3]
Missing imported package org.compass.annotations_0.0.0.
osgi>--Kaz #39860: Is the zip'd source code suppose to be fully functional or we need to modify it? Bundles are not configured correctly; i.e Missing imported pa ...more...
Michael Craig Walls says: From the output shown here, it looks like the compass bundle wasn't installed. I can't say why exactly, as it installs fine for me. (I do have other issues with the downloaded code due to changes in Pax Runner since the book was published, but I do not have problems with the compass bundle not being loaded.)
FWIW, I am working my way through the examples in the book step-by-step, as a reader would, noting all of the steps and output along the way. If I encounter a problem, I note it and document a resolution for it. Any changes necessary will be noted and fixed in a 2nd printing.
So far, I've only encountered small issues stemming from a new version of Pax Runner starting the OSGi runtime without the compendium bundle. Aside from that, I've currently got the example working right up through the middle of chapter 5.
|
P1.0
07-Jul-09
|
|
|
54 |
#41558: first line says:
dwmj% pax-create-bundle -p dwmj.domain -n domain \
-g com.dudewheresmyjar -v 1.0.0-SNAPSHOTs
but later on this bundle is referenced as 1.0.0-SNAPSHOT - that is without the trailing 's'--Per Holst #41558: first line says:
dwmj% pax-create-bundle -p dwmj.domain -n domain \
-g com.dudewheresmyjar -v 1.0.0-SNAPSHOTs
but later on this bundle ...more...
Michael Craig Walls says: Corrected for 2nd printing.
|
P1.0
19-Nov-09
|
|
|
54 |
#43718: Regarding the osgi.bnd file generated by pax-create-bundle, the book states "For the domain bundle, this file starts out empty." This is incorrect - the file starts out with the Bundle-Activator set to the example that was generated.
On the following page the book says to delete the example Java files. It should also say to remove the contents of this file. #43718: Regarding the osgi.bnd file generated by pax-create-bundle, the book states "For the domain bundle, this file starts out empty." This is incor ...more...
Michael Craig Walls says: Addressed for 2nd printing
|
P1.0
11-Jun-10
|
|
|
55 |
#39802: In page 55 after we run pax-create-bundle it is suggested to delete the example codes. I do that and continue on with creating the domain class (JarFile). However, once I get to building the domain bundle by "mvn install" I get:
[ERROR] Error building bundle com.delete.me:delete:bundle:1.0-SNAPSHOT : Bundle-Activator not found on the bundle class
path nor in imports: dwmj.delete.internal.ExampleActivator
[ERROR] Error(s) found in bundle configuration
[INFO] ------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] -----------------------------------------------------
Did I miss something?
Regards,
Kaz--Kaz #39802: In page 55 after we run pax-create-bundle it is suggested to delete the example codes. I do that and continue on with creating the domain cla ...more...
Michael Craig Walls says: Good catch...I should have also mentioned that the activator entry should be removed from the osgi.bnd file.
Fixed for the 2nd printing.
|
P1.0
03-Jul-09
|
|
| 55 |
|
#39314: For the footnote, Windows users can substitute a caret (^) in place of the Unix backslash to allow continuation of lines.--Tim Kuntz
Michael Craig Walls says: Addressed for 2nd printing.
|
B1.0
04-Jun-09
|
|
|
55 |
#43714: JarFile.java is missing import statements. The file contents should be:
package dwmj.domain
import java.util.Set;
public class JarFile {
...
Michael Craig Walls says: Addressed for 2nd printing.
|
P1.0
11-Jun-10
|
|
|
56 |
#43715: JarFile.java is missing imports statements (again). Should be:
package dwmj.domain;
import java.util.Set;
import org.compass.annotations.*;
@Searchable(alias = "jar")
public class JarFile {
... #43715: JarFile.java is missing imports statements (again). Should be:
package dwmj.domain;
import java.util.Set;
import org.compass.annotation ...more...
Michael Craig Walls says: Addressed for 2nd printing.
|
P1.0
11-Jun-10
|
|
|
59 |
#43716: The book describes how to use compass as a dependency, and then goes on to explain how to use PAX to add a repository. Adding the Compass project repository is unnecessary, because these artifacts are in the central repo. Furthermore, it's generally not a good idea to put repositories in a project's POM - this should be configured in settings.xml (for example, my settings.xml points all repos to my company's Nexus installation).
While this does serve as an example of how to use pax-add-repository, I suggest removing it entirely (from "At the same time ..." to the end of the page). #43716: The book describes how to use compass as a dependency, and then goes on to explain how to use PAX to add a repository. Adding the Compass proj ...more...
Michael Craig Walls says: When the chapter was originally written, the Compass dependencies were not in the central repo. Now they are. So, I recommended that this entire bit be removed for the 2nd printing. However, since this is a sizable change, there's no certainty that it will be removed. The best I could do is recommend it.
|
P1.0
11-Jun-10
|
|
| 61 |
|
#40158: pax-create-bundle created this line in osgi.bnd:
Bundle-Activator: ${bundle.namespace}.internal.ExampleActivator
but it needs to be removed to get the build to work. It would have been helpful to mention here:
The example service and activator Java files are great for educational
purposes. However, they serve no purpose in our domain bundle, so
when you’re finished looking around, go ahead and delete them. In
their place, we’ll need to create a domain class that represents a JAR
file within the index.--Michael Doberenz #40158: pax-create-bundle created this line in osgi.bnd:
Bundle-Activator: ${bundle.namespace}.internal.ExampleActivator
but it needs to be removed ...more...
Michael Craig Walls says: Addressed for 2nd printing.
|
P1.0
23-Jul-09
|
|
| 63 |
|
#39301: I can't get pax-provision call to work. I'm working behind a proxy and read that equinox won't work... so predictably equinox fails on p. 56. Felix gets the farthest up to page 63 but then gives an unresolved bundle constraint on the compass stuff.--Tom Huggins #39301: I can't get pax-provision call to work. I'm working behind a proxy and read that equinox won't work... so predictably equinox fails on p. 56. ...more...
Michael Craig Walls says: I'd be interested to know what problems are being encountered here. I know I've run Equinox (via Pax Runner) behind a firewall before. I'm not living behind a corporate firewall these days, so I can't try it out right now. But I did run it several times today while disconnected from the internet altogether and had no troubles. So, I'm at a loss as to how to proceed on this issue.
Are there specific errors that you're encountering?
|
B1.0
02-Jun-09
|
|
|
66 |
#40369: The instructions for setting up the pax-embed-jar process were confusing, in large part because of the figure at the bottom of page 66.
What you need to do is run the pax-embed-jar command as stated on page 64, then add the Import-Package: *;resolution:=optional line to both osgi.bnd and osgi-embedded.bnd.
That works.--Donald Stadler #40369: The instructions for setting up the pax-embed-jar process were confusing, in large part because of the figure at the bottom of page 66.
Wha ...more...
Michael Craig Walls says: What you see there is an unfortunate artifact from how the book gets generated. The osgi-embedded.bnd file is really just a temporary duplicate of osgi.bnd so that I could have two versions side-by-side for book generation purposes.
Don't concern yourself too much with what that means. Suffice it to say that there's no need for the osgi-embedded.bnd file in the real project. The change should only need to be made to osgi.bnd.
I've noted that the header for the 1-line listing should be changed to "dwmj/domain/osgi.bnd" and this should be corrected in the 2nd printing.
|
P1.0
07-Aug-09
|
|
|
78 |
#47917: I am following the book and everything works until I get to Page 78. I am getting the same error, as on Page 78 - Problem resolving project, when I try to import either compass or domain. My head is nearly exploding!!! And if I run pax-provision, without the coding in dwmj.index everything works as expected. Please help!!!--Michael #47917: I am following the book and everything works until I get to Page 78. I am getting the same error, as on Page 78 - Problem resolving project, w ...more...
|
P1.0
08-Nov-11
|
|
|
83 |
#41694: I am following dude, where is my jar! example. After importing pax-logging-api and pax-logging-service bundles, I was expecting to see the errors related to Lucene jar. But, I am getting errors for pax-logging bundles. Here are the errors:
osgi> ss
Framework is launched.
id State Bundle
0 ACTIVE org.eclipse.osgi_3.5.0.v20090520
1 INSTALLED org.ops4j.pax.logging.pax-logging-api_1.3.0
2 INSTALLED org.ops4j.pax.logging.pax-logging-service_1.3.0
3 ACTIVE com.dwmj.domain_1.0.0.SNAPSHOTs
4 ACTIVE org.compass-project.compass_2.2.0
5 RESOLVED com.dwmj.index_1.0.0.SNAPSHOT
osgi> diag 1
initial@reference:file:../bundles/org.ops4j.pax.logging.pax-logging-api_1.3.0.jar/ [1]
Direct constraints which are unresolved:
Missing imported package org.apache.avalon.framework.logger_4.3.0.
Missing imported package org.apache.commons.logging_1.1.1.
Missing imported package org.apache.commons.logging.impl_1.1.1.
Missing imported package org.apache.juli.logging_1.0.0.
Missing imported package org.apache.log_0.0.0.
Missing imported package org.apache.log4j_1.2.15.
Missing imported package org.apache.log4j.spi_1.2.15.
Missing imported package org.apache.log4j.xml_1.2.15.
Missing imported package org.knopflerfish.service.log_1.1.0.
Missing imported package org.ops4j.pax.logging_[0.9.5,2.0.0).
Missing imported package org.ops4j.pax.logging.avalon_[0.9.5,2.0.0).
Missing imported package org.osgi.service.event_[1.0.0,2.0.0).
Missing imported package org.osgi.service.log_[1.3.0,2.0.0).
Missing imported package org.slf4j_1.5.6.
Missing imported package org.slf4j.helpers_1.5.6.
Missing imported package org.slf4j.spi_1.5.6.
osgi> diag 2
initial@reference:file:../bundles/org.ops4j.pax.logging.pax-logging-service_1.3.0.jar/ [2]
Direct constraints which are unresolved:
Missing imported package com.sun.jdmk.comm_0.0.0.
Missing imported package javax.jms_0.0.0.
Missing imported package javax.mail_0.0.0.
Missing imported package javax.mail.internet_0.0.0.
Missing imported package org.knopflerfish.service.log_[1.1.0,2.0.0).
Missing imported package org.ops4j.pax.logging_[0.9.5,2.0.0).
Missing imported package org.ops4j.pax.logging.spi_1.3.0.
Missing imported package org.osgi.service.cm_[1.0.0,2.0.0).
Missing imported package org.osgi.service.event_[1.0.0,2.0.0).
Missing imported package org.osgi.service.log_[1.3.0,2.0.0).
Leaf constraints in the dependency chain which are unresolved:
initial@reference:file:../bundles/org.ops4j.pax.logging.pax-logging-api_1.3.0.jar/ [1]
Missing imported package org.apache.log_0.0.0.
initial@reference:file:../bundles/org.ops4j.pax.logging.pax-logging-api_1.3.0.jar/ [1]
Missing imported package org.osgi.service.event_[1.0.0,2.0.0).
Can you please suggest what am I missing? I am not able to proceed further because of these errors. Do I need to wrap these pax-logging bundles and set resolution:=optional?
Thanks
Shalandra--Shalandra Sharma #41694: I am following dude, where is my jar! example. After importing pax-logging-api and pax-logging-service bundles, I was expecting to see the err ...more...
Michael Craig Walls says: An earlier version of Pax Runner started the OSGi runtime along with the OSGi compendium bundle in place. But the newest Pax Runner (which was released *after* the book was printed) does not install the compendium bundle, which the Pax Logging bundles depend upon.
To fix the problem, you must simply install the compendium bundle with:
pax-import-bundle -g org.osgi -a org.osgi.compendium -v 4.2.0
I've noted this change and will request that it be added to the 2nd printing.
|
P1.0
03-Dec-09
|
|
| 83 |
|
#40955: The pax-import-bundle here doesn't work, and the output in the book shows it too! It says "problem resolving project". I'm getting exactly the same error.
Also, when I add the dependency by hand, then I am unable to build the domain or the index bundle. The following is the error I get:
[INFO] Error building POM (may not be this project's POM).
Project ID: com.dudewheresmyjar.dwmj:org.compass-project.compass:bundle:2.2.0-001-SNAPSHOT
Reason: Cannot find parent: com.dudewheresmyjar.dwmj.build:wrapper-bundle-settings for project: com.dudewheresmyjar.dwmj:org.compass-project.compass:bundle:2.2.0-001-SNAPSHOT for project com.dudewheresmyjar.dwmj:org.compass-project.compass:bundle:2.2.0-001-SNAPSHOT
#40955: The pax-import-bundle here doesn't work, and the output in the book shows it too! It says "problem resolving project". I'm getting exactly t ...more...
Michael Craig Walls says: The error shown in the book indicates that I had not yet built the wrapped compass bundle (the bundle produced in section 4.2 under "Wrapping JARs"). As long as I build that bundle, as recommended about 1/3 down the page on page 71), then I don't encounter the error.
I have been reworking the examples by hand and will be submitting the results and output for a 2nd printing. The error that this issue describes should not have appeared in the printed book, as it represents a basic mistake that could have been avoided had I followed my own directions and built the wrapped compass bundle first. The 2nd printing should show the successful results.
I also see that this issue speaks of version 2.2.0 of compass. While that may work, I used version 2.1.0, so your mileage will vary.
|
P1.0
07-Oct-09
|
|
|
85 |
#39997: Before importing ops4j pax logging bundles need to add repository $>pax-add-repository -i ops4j.releases -u <link http : // repository.ops4j.org/maven2/>--D Carey #39997: Before importing ops4j pax logging bundles need to add repository $>pax-add-repository -i ops4j.releases -u <link http : // repository.ops4j.o ...more...
Michael Craig Walls says: Noted to be addressed for the 2nd printing.
|
P1.0
15-Jul-09
|
|
|
85 |
#39799: Hi, I followed the book to build the dudewheresmyjar project and when I reached page 85, I managed to get all modules installed and running but I got the same exceptions mentioned in a previous post (#38158) by Renaud and the following periodic messages printed on the osgi console,
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.LuceneSearchEngineOptimizerManager - Checking for index optimization
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.AdaptiveOptimizer - Optimizing sub-index [jar] with mergeFactor [10]
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.AdaptiveOptimizer - Optimization of sub-index [jar] took [0ms]
The same situation repeated when I tried the downloaded code from the website. Please suggest. Thank you.--Kuan #39799: Hi, I followed the book to build the dudewheresmyjar project and when I reached page 85, I managed to get all modules installed and running bu ...more...
Michael Craig Walls says: I'll address the exceptions separately for a different errata item that also describes them.
However, the messages you see that show up periodically should cause no concern. They are simply debug messages indicating that Compass is optimizing itself. This is a good thing...not an error.
|
P1.0
02-Jul-09
|
|
|
85 |
#40442: I also get the infinite repetition issue with the pax-provision call on page 85. I cannot progress through Chapter 5 until this is explained. Here is the output listing:
osgi> org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] : Enabling SLF4J API support.
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] : Enabling Jakarta Commons Logging API support.
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] : Enabling Log4J API support.
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] : Enabling Avalon Logger API support.
org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.logging.internal.Activator] : Enabling JULI Logger API support.
[Framework Event Dispatcher] DEBUG org.ops4j.pax.logging.pax-logging-service - BundleEvent STARTED
[Framework Event Dispatcher] DEBUG org.compass-project.compass - BundleEvent STARTED
[Framework Event Dispatcher] DEBUG com.dudewheresmyjar.domain - BundleEvent STARTED
[Start Level Event Dispatcher] INFO org.compass.core.config.CompassConfiguration - Mapping class [class dwmj.domain.JarFile]
[Start Level Event Dispatcher] DEBUG org.compass.core.converter.DefaultConverterLookup - Dynamic converter - MVEL found in the class path, registering it
[Start Level Event Dispatcher] DEBUG org.compass.core.converter.DefaultConverterLookup - Dynamic converter - JEXL found in the class path, registering it
[Start Level Event Dispatcher] DEBUG org.compass.core.converter.DefaultConverterLookup - Dynamic converter - OGNL found in the class path, registering it
[Start Level Event Dispatcher] DEBUG org.compass.core.converter.DefaultConverterLookup - Dynamic converter - GROOVY found in the class path, registering it
[Start Level Event Dispatcher] DEBUG org.compass.core.converter.mapping.xsem.XmlContentMappingConverter - Using xmlContentMapping [null] with wrapper [prototype] and settings [{}]
[Start Level Event Dispatcher] DEBUG org.compass.core.converter.mapping.json.JsonContentMappingConverter - Usign Json content converter [org.compass.core.json.impl.converter.DefaultJSONContentConverterImpl]
[Start Level Event Dispatcher] DEBUG org.compass.core.util.reflection.ReflectionFactory - Failed to generate ASM (should have worked...) for constructor [public dwmj.domain.JarFile()]
java.lang.NoSuchMethodException: Can't create ASM constructor reflection helper for [public dwmj.domain.JarFile()]
at org.compass.core.util.reflection.asm.AsmReflectionConstructorGenerator.generateConstructor(AsmReflectionConstructorGenerator.java:83)
at org.compass.core.util.reflection.ReflectionFactory.getConstructor(ReflectionFactory.java:86)
at org.compass.core.util.reflection.ReflectionFactory.getDefaultConstructor(ReflectionFactory.java:80)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.process(PropertyAccessorMappingProcessor.java:62)
at org.compass.core.config.CompassMappingProcessor.process(CompassMappingProcessor.java:60)
at org.compass.core.config.CompassConfiguration.buildCompass(CompassConfiguration.java:278)
at dwmj.index.internal.IndexServiceActivator.getCompass(IndexServiceActivator.java:36)
at dwmj.index.internal.IndexServiceActivator.start(IndexServiceActivator.java:22)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:782)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:773)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:754)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:370)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1068)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:557)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:464)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:248)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:445)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.compass.core.util.reflection.asm.AsmReflectionConstructorGenerator.defineClass(AsmReflectionConstructorGenerator.java:113)
at org.compass.core.util.reflection.asm.AsmReflectionConstructorGenerator.generateConstructor(AsmReflectionConstructorGenerator.java:78)
... 20 more
Caused by: java.lang.NoClassDefFoundError: org/compass/core/util/reflection/ReflectionConstructor
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.lang.ClassLoader.defineClass(ClassLoader.java:466)
... 26 more
Caused by: java.lang.ClassNotFoundException: org.compass.core.util.reflection.ReflectionConstructor
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:489)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 29 more
[Start Level Event Dispatcher] DEBUG org.compass.core.util.reflection.ReflectionFactory - Failed to generate ASM (should have worked...) for method [public java.lang.String dwmj.domain.JarFile.getPackageNames()]
java.lang.NoSuchMethodException: Can't create ASM method reflection helper for [public java.lang.String dwmj.domain.JarFile.getPackageNames()]
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:89)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:45)
at org.compass.core.util.reflection.ReflectionFactory.getMethod(ReflectionFactory.java:50)
at org.compass.core.accessor.BasicPropertyAccessor.getGetterOrNull(BasicPropertyAccessor.java:235)
at org.compass.core.accessor.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:215)
at org.compass.core.accessor.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:211)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.processMapping(PropertyAccessorMappingProcessor.java:93)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.process(PropertyAccessorMappingProcessor.java:79)
at org.compass.core.config.CompassMappingProcessor.process(CompassMappingProcessor.java:60)
at org.compass.core.config.CompassConfiguration.buildCompass(CompassConfiguration.java:278)
at dwmj.index.internal.IndexServiceActivator.getCompass(IndexServiceActivator.java:36)
at dwmj.index.internal.IndexServiceActivator.start(IndexServiceActivator.java:22)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:782)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:773)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:754)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:370)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1068)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:557)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:464)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:248)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:445)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.defineClass(AsmReflectionMethodGenerator.java:249)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:84)
... 24 more
Caused by: java.lang.NoClassDefFoundError: org/compass/core/util/reflection/ReflectionMethod
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.lang.ClassLoader.defineClass(ClassLoader.java:466)
... 30 more
Caused by: java.lang.ClassNotFoundException: org.compass.core.util.reflection.ReflectionMethod
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:489)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 33 more
[Start Level Event Dispatcher] DEBUG org.compass.core.util.reflection.ReflectionFactory - Failed to generate ASM (should have worked...) for method [public java.lang.String dwmj.domain.JarFile.getPackageNames()]
java.lang.NoSuchMethodException: Can't create ASM method reflection helper for [public java.lang.String dwmj.domain.JarFile.getPackageNames()]
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:89)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:45)
at org.compass.core.util.reflection.ReflectionFactory.getMethod(ReflectionFactory.java:50)
at org.compass.core.accessor.BasicPropertyAccessor.getGetterOrNull(BasicPropertyAccessor.java:235)
at org.compass.core.accessor.BasicPropertyAccessor.setterMethod(BasicPropertyAccessor.java:189)
at org.compass.core.accessor.BasicPropertyAccessor.getSetterOrNull(BasicPropertyAccessor.java:163)
at org.compass.core.accessor.BasicPropertyAccessor.getSetter(BasicPropertyAccessor.java:155)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.processMapping(PropertyAccessorMappingProcessor.java:94)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.process(PropertyAccessorMappingProcessor.java:79)
at org.compass.core.config.CompassMappingProcessor.process(CompassMappingProcessor.java:60)
at org.compass.core.config.CompassConfiguration.buildCompass(CompassConfiguration.java:278)
at dwmj.index.internal.IndexServiceActivator.getCompass(IndexServiceActivator.java:36)
at dwmj.index.internal.IndexServiceActivator.start(IndexServiceActivator.java:22)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:782)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:773)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:754)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:370)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1068)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:557)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:464)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:248)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:445)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.defineClass(AsmReflectionMethodGenerator.java:249)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:84)
... 25 more
Caused by: java.lang.NoClassDefFoundError: org/compass/core/util/reflection/ReflectionMethod
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.lang.ClassLoader.defineClass(ClassLoader.java:466)
... 31 more
Caused by: java.lang.ClassNotFoundException: org.compass.core.util.reflection.ReflectionMethod
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:489)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 34 more
[Start Level Event Dispatcher] DEBUG org.compass.core.util.reflection.ReflectionFactory - Failed to generate ASM (should have worked...) for method [public java.lang.String dwmj.domain.JarFile.getPackageNames()]
java.lang.NoSuchMethodException: Can't create ASM method reflection helper for [public java.lang.String dwmj.domain.JarFile.getPackageNames()]
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:89)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:45)
at org.compass.core.util.reflection.ReflectionFactory.getMethod(ReflectionFactory.java:50)
at org.compass.core.accessor.BasicPropertyAccessor.getGetterOrNull(BasicPropertyAccessor.java:235)
at org.compass.core.accessor.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:215)
at org.compass.core.accessor.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:211)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.processMapping(PropertyAccessorMappingProcessor.java:93)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.processMapping(PropertyAccessorMappingProcessor.java:99)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.process(PropertyAccessorMappingProcessor.java:79)
at org.compass.core.config.CompassMappingProcessor.process(CompassMappingProcessor.java:60)
at org.compass.core.config.CompassConfiguration.buildCompass(CompassConfiguration.java:278)
at dwmj.index.internal.IndexServiceActivator.getCompass(IndexServiceActivator.java:36)
at dwmj.index.internal.IndexServiceActivator.start(IndexServiceActivator.java:22)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:782)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:773)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:754)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:370)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1068)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:557)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:464)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:248)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:445)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.defineClass(AsmReflectionMethodGenerator.java:249)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:84)
... 25 more
Caused by: java.lang.NoClassDefFoundError: org/compass/core/util/reflection/ReflectionMethod
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.lang.ClassLoader.defineClass(ClassLoader.java:466)
... 31 more
Caused by: java.lang.ClassNotFoundException: org.compass.core.util.reflection.ReflectionMethod
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:489)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 34 more
[Start Level Event Dispatcher] DEBUG org.compass.core.util.reflection.ReflectionFactory - Failed to generate ASM (should have worked...) for method [public java.lang.String dwmj.domain.JarFile.getPackageNames()]
java.lang.NoSuchMethodException: Can't create ASM method reflection helper for [public java.lang.String dwmj.domain.JarFile.getPackageNames()]
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:89)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:45)
at org.compass.core.util.reflection.ReflectionFactory.getMethod(ReflectionFactory.java:50)
at org.compass.core.accessor.BasicPropertyAccessor.getGetterOrNull(BasicPropertyAccessor.java:235)
at org.compass.core.accessor.BasicPropertyAccessor.setterMethod(BasicPropertyAccessor.java:189)
at org.compass.core.accessor.BasicPropertyAccessor.getSetterOrNull(BasicPropertyAccessor.java:163)
at org.compass.core.accessor.BasicPropertyAccessor.getSetter(BasicPropertyAccessor.java:155)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.processMapping(PropertyAccessorMappingProcessor.java:94)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.processMapping(PropertyAccessorMappingProcessor.java:99)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.process(PropertyAccessorMappingProcessor.java:79)
at org.compass.core.config.CompassMappingProcessor.process(CompassMappingProcessor.java:60)
at org.compass.core.config.CompassConfiguration.buildCompass(CompassConfiguration.java:278)
at dwmj.index.internal.IndexServiceActivator.getCompass(IndexServiceActivator.java:36)
at dwmj.index.internal.IndexServiceActivator.start(IndexServiceActivator.java:22)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:782)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:773)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:754)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:370)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1068)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:557)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:464)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:248)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:445)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.defineClass(AsmReflectionMethodGenerator.java:249)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:84)
... 26 more
Caused by: java.lang.NoClassDefFoundError: org/compass/core/util/reflection/ReflectionMethod
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.lang.ClassLoader.defineClass(ClassLoader.java:466)
... 32 more
Caused by: java.lang.ClassNotFoundException: org.compass.core.util.reflection.ReflectionMethod
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:489)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 35 more
[Start Level Event Dispatcher] DEBUG org.compass.core.util.reflection.ReflectionFactory - Failed to generate ASM (should have worked...) for method [public java.lang.String dwmj.domain.JarFile.getClassNames()]
java.lang.NoSuchMethodException: Can't create ASM method reflection helper for [public java.lang.String dwmj.domain.JarFile.getClassNames()]
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:89)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:45)
at org.compass.core.util.reflection.ReflectionFactory.getMethod(ReflectionFactory.java:50)
at org.compass.core.accessor.BasicPropertyAccessor.getGetterOrNull(BasicPropertyAccessor.java:235)
at org.compass.core.accessor.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:215)
at org.compass.core.accessor.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:211)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.processMapping(PropertyAccessorMappingProcessor.java:93)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.process(PropertyAccessorMappingProcessor.java:79)
at org.compass.core.config.CompassMappingProcessor.process(CompassMappingProcessor.java:60)
at org.compass.core.config.CompassConfiguration.buildCompass(CompassConfiguration.java:278)
at dwmj.index.internal.IndexServiceActivator.getCompass(IndexServiceActivator.java:36)
at dwmj.index.internal.IndexServiceActivator.start(IndexServiceActivator.java:22)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:782)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:773)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:754)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:370)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1068)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:557)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:464)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:248)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:445)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.defineClass(AsmReflectionMethodGenerator.java:249)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:84)
... 24 more
Caused by: java.lang.NoClassDefFoundError: org/compass/core/util/reflection/ReflectionMethod
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.lang.ClassLoader.defineClass(ClassLoader.java:466)
... 30 more
Caused by: java.lang.ClassNotFoundException: org.compass.core.util.reflection.ReflectionMethod
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:489)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 33 more
[Start Level Event Dispatcher] DEBUG org.compass.core.util.reflection.ReflectionFactory - Failed to generate ASM (should have worked...) for method [public java.lang.String dwmj.domain.JarFile.getClassNames()]
java.lang.NoSuchMethodException: Can't create ASM method reflection helper for [public java.lang.String dwmj.domain.JarFile.getClassNames()]
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:89)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:45)
at org.compass.core.util.reflection.ReflectionFactory.getMethod(ReflectionFactory.java:50)
at org.compass.core.accessor.BasicPropertyAccessor.getGetterOrNull(BasicPropertyAccessor.java:235)
at org.compass.core.accessor.BasicPropertyAccessor.setterMethod(BasicPropertyAccessor.java:189)
at org.compass.core.accessor.BasicPropertyAccessor.getSetterOrNull(BasicPropertyAccessor.java:163)
at org.compass.core.accessor.BasicPropertyAccessor.getSetter(BasicPropertyAccessor.java:155)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.processMapping(PropertyAccessorMappingProcessor.java:94)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.process(PropertyAccessorMappingProcessor.java:79)
at org.compass.core.config.CompassMappingProcessor.process(CompassMappingProcessor.java:60)
at org.compass.core.config.CompassConfiguration.buildCompass(CompassConfiguration.java:278)
at dwmj.index.internal.IndexServiceActivator.getCompass(IndexServiceActivator.java:36)
at dwmj.index.internal.IndexServiceActivator.start(IndexServiceActivator.java:22)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:782)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:773)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:754)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:370)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1068)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:557)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:464)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:248)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:445)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.defineClass(AsmReflectionMethodGenerator.java:249)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:84)
... 25 more
Caused by: java.lang.NoClassDefFoundError: org/compass/core/util/reflection/ReflectionMethod
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.lang.ClassLoader.defineClass(ClassLoader.java:466)
... 31 more
Caused by: java.lang.ClassNotFoundException: org.compass.core.util.reflection.ReflectionMethod
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:489)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 34 more
[Start Level Event Dispatcher] DEBUG org.compass.core.util.reflection.ReflectionFactory - Failed to generate ASM (should have worked...) for method [public java.lang.String dwmj.domain.JarFile.getClassNames()]
java.lang.NoSuchMethodException: Can't create ASM method reflection helper for [public java.lang.String dwmj.domain.JarFile.getClassNames()]
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:89)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:45)
at org.compass.core.util.reflection.ReflectionFactory.getMethod(ReflectionFactory.java:50)
at org.compass.core.accessor.BasicPropertyAccessor.getGetterOrNull(BasicPropertyAccessor.java:235)
at org.compass.core.accessor.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:215)
at org.compass.core.accessor.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:211)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.processMapping(PropertyAccessorMappingProcessor.java:93)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.processMapping(PropertyAccessorMappingProcessor.java:99)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.process(PropertyAccessorMappingProcessor.java:79)
at org.compass.core.config.CompassMappingProcessor.process(CompassMappingProcessor.java:60)
at org.compass.core.config.CompassConfiguration.buildCompass(CompassConfiguration.java:278)
at dwmj.index.internal.IndexServiceActivator.getCompass(IndexServiceActivator.java:36)
at dwmj.index.internal.IndexServiceActivator.start(IndexServiceActivator.java:22)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:782)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:773)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:754)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:370)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1068)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:557)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:464)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:248)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:445)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.defineClass(AsmReflectionMethodGenerator.java:249)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:84)
... 25 more
Caused by: java.lang.NoClassDefFoundError: org/compass/core/util/reflection/ReflectionMethod
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.lang.ClassLoader.defineClass(ClassLoader.java:466)
... 31 more
Caused by: java.lang.ClassNotFoundException: org.compass.core.util.reflection.ReflectionMethod
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:489)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 34 more
[Start Level Event Dispatcher] DEBUG org.compass.core.util.reflection.ReflectionFactory - Failed to generate ASM (should have worked...) for method [public java.lang.String dwmj.domain.JarFile.getClassNames()]
java.lang.NoSuchMethodException: Can't create ASM method reflection helper for [public java.lang.String dwmj.domain.JarFile.getClassNames()]
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:89)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:45)
at org.compass.core.util.reflection.ReflectionFactory.getMethod(ReflectionFactory.java:50)
at org.compass.core.accessor.BasicPropertyAccessor.getGetterOrNull(BasicPropertyAccessor.java:235)
at org.compass.core.accessor.BasicPropertyAccessor.setterMethod(BasicPropertyAccessor.java:189)
at org.compass.core.accessor.BasicPropertyAccessor.getSetterOrNull(BasicPropertyAccessor.java:163)
at org.compass.core.accessor.BasicPropertyAccessor.getSetter(BasicPropertyAccessor.java:155)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.processMapping(PropertyAccessorMappingProcessor.java:94)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.processMapping(PropertyAccessorMappingProcessor.java:99)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.process(PropertyAccessorMappingProcessor.java:79)
at org.compass.core.config.CompassMappingProcessor.process(CompassMappingProcessor.java:60)
at org.compass.core.config.CompassConfiguration.buildCompass(CompassConfiguration.java:278)
at dwmj.index.internal.IndexServiceActivator.getCompass(IndexServiceActivator.java:36)
at dwmj.index.internal.IndexServiceActivator.start(IndexServiceActivator.java:22)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:782)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:773)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:754)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:370)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1068)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:557)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:464)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:248)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:445)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.defineClass(AsmReflectionMethodGenerator.java:249)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:84)
... 26 more
Caused by: java.lang.NoClassDefFoundError: org/compass/core/util/reflection/ReflectionMethod
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.lang.ClassLoader.defineClass(ClassLoader.java:466)
... 32 more
Caused by: java.lang.ClassNotFoundException: org.compass.core.util.reflection.ReflectionMethod
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:489)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 35 more
[Start Level Event Dispatcher] DEBUG org.compass.core.util.reflection.ReflectionFactory - Failed to generate ASM (should have worked...) for method [public java.lang.String dwmj.domain.JarFile.getRawUrl()]
java.lang.NoSuchMethodException: Can't create ASM method reflection helper for [public java.lang.String dwmj.domain.JarFile.getRawUrl()]
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:89)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:45)
at org.compass.core.util.reflection.ReflectionFactory.getMethod(ReflectionFactory.java:50)
at org.compass.core.accessor.BasicPropertyAccessor.getGetterOrNull(BasicPropertyAccessor.java:235)
at org.compass.core.accessor.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:215)
at org.compass.core.accessor.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:211)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.processMapping(PropertyAccessorMappingProcessor.java:93)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.process(PropertyAccessorMappingProcessor.java:79)
at org.compass.core.config.CompassMappingProcessor.process(CompassMappingProcessor.java:60)
at org.compass.core.config.CompassConfiguration.buildCompass(CompassConfiguration.java:278)
at dwmj.index.internal.IndexServiceActivator.getCompass(IndexServiceActivator.java:36)
at dwmj.index.internal.IndexServiceActivator.start(IndexServiceActivator.java:22)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:782)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:773)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:754)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:370)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1068)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:557)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:464)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:248)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:445)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.defineClass(AsmReflectionMethodGenerator.java:249)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:84)
... 24 more
Caused by: java.lang.NoClassDefFoundError: org/compass/core/util/reflection/ReflectionMethod
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.lang.ClassLoader.defineClass(ClassLoader.java:466)
... 30 more
Caused by: java.lang.ClassNotFoundException: org.compass.core.util.reflection.ReflectionMethod
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:489)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 33 more
[Start Level Event Dispatcher] DEBUG org.compass.core.util.reflection.ReflectionFactory - Failed to generate ASM (should have worked...) for method [public java.lang.String dwmj.domain.JarFile.getRawUrl()]
java.lang.NoSuchMethodException: Can't create ASM method reflection helper for [public java.lang.String dwmj.domain.JarFile.getRawUrl()]
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:89)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:45)
at org.compass.core.util.reflection.ReflectionFactory.getMethod(ReflectionFactory.java:50)
at org.compass.core.accessor.BasicPropertyAccessor.getGetterOrNull(BasicPropertyAccessor.java:235)
at org.compass.core.accessor.BasicPropertyAccessor.setterMethod(BasicPropertyAccessor.java:189)
at org.compass.core.accessor.BasicPropertyAccessor.getSetterOrNull(BasicPropertyAccessor.java:163)
at org.compass.core.accessor.BasicPropertyAccessor.getSetter(BasicPropertyAccessor.java:155)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.processMapping(PropertyAccessorMappingProcessor.java:94)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.process(PropertyAccessorMappingProcessor.java:79)
at org.compass.core.config.CompassMappingProcessor.process(CompassMappingProcessor.java:60)
at org.compass.core.config.CompassConfiguration.buildCompass(CompassConfiguration.java:278)
at dwmj.index.internal.IndexServiceActivator.getCompass(IndexServiceActivator.java:36)
at dwmj.index.internal.IndexServiceActivator.start(IndexServiceActivator.java:22)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:782)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:773)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:754)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:370)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1068)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:557)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:464)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:248)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:445)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.defineClass(AsmReflectionMethodGenerator.java:249)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:84)
... 25 more
Caused by: java.lang.NoClassDefFoundError: org/compass/core/util/reflection/ReflectionMethod
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.lang.ClassLoader.defineClass(ClassLoader.java:466)
... 31 more
Caused by: java.lang.ClassNotFoundException: org.compass.core.util.reflection.ReflectionMethod
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:489)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 34 more
[Start Level Event Dispatcher] DEBUG org.compass.core.util.reflection.ReflectionFactory - Failed to generate ASM (should have worked...) for method [public void dwmj.domain.JarFile.setRawUrl(java.lang.String)]
java.lang.NoSuchMethodException: Can't create ASM method reflection helper for [public void dwmj.domain.JarFile.setRawUrl(java.lang.String)]
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:89)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:45)
at org.compass.core.util.reflection.ReflectionFactory.getMethod(ReflectionFactory.java:50)
at org.compass.core.accessor.BasicPropertyAccessor.getSetterOrNull(BasicPropertyAccessor.java:170)
at org.compass.core.accessor.BasicPropertyAccessor.getSetter(BasicPropertyAccessor.java:155)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.processMapping(PropertyAccessorMappingProcessor.java:94)
at org.compass.core.config.process.PropertyAccessorMappingProcessor.process(PropertyAccessorMappingProcessor.java:79)
at org.compass.core.config.CompassMappingProcessor.process(CompassMappingProcessor.java:60)
at org.compass.core.config.CompassConfiguration.buildCompass(CompassConfiguration.java:278)
at dwmj.index.internal.IndexServiceActivator.getCompass(IndexServiceActivator.java:36)
at dwmj.index.internal.IndexServiceActivator.start(IndexServiceActivator.java:22)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:782)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:773)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:754)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:370)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1068)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:557)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:464)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:248)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:445)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.defineClass(AsmReflectionMethodGenerator.java:249)
at org.compass.core.util.reflection.asm.AsmReflectionMethodGenerator.generateMethod(AsmReflectionMethodGenerator.java:84)
... 23 more
Caused by: java.lang.NoClassDefFoundError: org/compass/core/util/reflection/ReflectionMethod
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.lang.ClassLoader.defineClass(ClassLoader.java:466)
... 29 more
Caused by: java.lang.ClassNotFoundException: org.compass.core.util.reflection.ReflectionMethod
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:489)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 32 more
[Start Level Event Dispatcher] DEBUG org.compass.core.executor.concurrent.ConcurrentExecutorManager - Using concurrent executor manager with core size [10], max size [30], and keep alive time [60000ms]
[Start Level Event Dispatcher] DEBUG org.compass.core.executor.concurrent.ConcurrentExecutorManager - Using concurrent executor manager scheduler with size [1]
[Start Level Event Dispatcher] DEBUG org.compass.core.lucene.engine.LuceneSettings - Using connection [C:\DOCUME~1\GARYMA~1\LOCALS~1\Temp\/dudeindex][null]
[Start Level Event Dispatcher] DEBUG org.compass.core.lucene.engine.LuceneSettings - Using alias property [alias]
[Start Level Event Dispatcher] DEBUG org.compass.core.lucene.engine.LuceneSettings - Using extended alias property [extendedAlias]
[Start Level Event Dispatcher] DEBUG org.compass.core.lucene.engine.LuceneSettings - Using default all property [zzz-all]
[Start Level Event Dispatcher] DEBUG org.compass.core.lucene.engine.LuceneSettings - Using all property term vector [no]
[Start Level Event Dispatcher] DEBUG org.compass.core.lucene.engine.LuceneSettings - All property boost support is [true]
[Start Level Event Dispatcher] DEBUG org.compass.core.lucene.engine.LuceneSettings - Using default search property [zzz-all]
[Start Level Event Dispatcher] DEBUG org.compass.core.lucene.engine.LuceneSettings - Using transaction lock timeout [10000ms]
[Start Level Event Dispatcher] DEBUG org.compass.core.lucene.engine.LuceneSettings - Using lock poll interval [100ms]
[Start Level Event Dispatcher] DEBUG org.compass.core.lucene.engine.LuceneSettings - Using clear cache on commit [true]
[Start Level Event Dispatcher] DEBUG org.compass.core.lucene.engine.LuceneSettings - Using cache invalidation interval [5000ms]
[Start Level Event Dispatcher] DEBUG org.compass.core.lucene.engine.LuceneSettings - Wait for cahce invalidation on index operatrion is set to [false]
[Start Level Event Dispatcher] DEBUG org.compass.core.lucene.engine.LuceneSettings - Setting *static* Lucene BooleanQuery maxClauseCount to [1024]
[Start Level Event Dispatcher] DEBUG org.compass.core.lucene.engine.analyzer.DefaultLuceneAnalyzerFactory - Analyzer [default] uses Lucene analyzer [standard]
[Start Level Event Dispatcher] DEBUG org.compass.core.lucene.engine.store.DefaultLuceneSearchEngineStore - Using compound format [true]
[Start Level Event Dispatcher] DEBUG org.compass.core.lucene.engine.store.DefaultLuceneSearchEngineStore - Support concurrent operations [true]
[Start Level Event Dispatcher] INFO org.compass.core.lucene.engine.LuceneSearchEngineFactory - Not using highlighter - no highlighter jar included.
[Start Level Event Dispatcher] DEBUG org.compass.core.lucene.engine.optimizer.LuceneSearchEngineOptimizerManager - Using optimizer [org.compass.core.lucene.engine.optimizer.AdaptiveOptimizer@4204]
[Start Level Event Dispatcher] DEBUG org.compass.core.lucene.engine.queryparser.LuceneQueryParserManager - No default query parser found (under groupd [default]), registering a default one
[Start Level Event Dispatcher] DEBUG org.compass.core.lucene.engine.queryparser.DefaultLuceneQueryParser - Query Parser configured with allowLeadingWildcard [true] and allowConstantScorePrefixQuery [true]
[Start Level Event Dispatcher] DEBUG org.compass.core.transaction.TransactionFactoryFactory - Using transaction factory [org.compass.core.transaction.LocalTransactionFactory@1e4a47e]
[Start Level Event Dispatcher] DEBUG org.compass.core.cache.first.FirstLevelCacheFactory - Using first level cache [org.compass.core.cache.first.DefaultFirstLevelCache]
[Start Level Event Dispatcher] DEBUG org.compass.core.lucene.engine.optimizer.AdaptiveOptimizer - Starting Optimizer
[Start Level Event Dispatcher] INFO org.compass.core.lucene.engine.optimizer.LuceneSearchEngineOptimizerManager - Starting scheduled optimizer [class org.compass.core.lucene.engine.optimizer.AdaptiveOptimizer] with period [10000ms]
[Start Level Event Dispatcher] INFO org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndexManager - Starting scheduled index manager with period [60000ms]
[Start Level Event Dispatcher] INFO org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndexManager - Starting scheduled refresh cache with period [5000ms]
[Start Level Event Dispatcher] DEBUG com.dudewheresmyjar.index - ServiceEvent REGISTERED
[Framework Event Dispatcher] DEBUG com.dudewheresmyjar.index - BundleEvent STARTED
[Framework Event Dispatcher] DEBUG com.dudewheresmyjar.spider - BundleEvent STARTED
[Framework Event Dispatcher] DEBUG org.eclipse.osgi - BundleEvent STARTED
[Framework Event Dispatcher] DEBUG org.eclipse.osgi - FrameworkEvent STARTED
[Framework Event Dispatcher] DEBUG org.eclipse.osgi - FrameworkEvent STARTLEVEL CHANGED
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.LuceneSearchEngineOptimizerManager - Checking for index optimization
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.AdaptiveOptimizer - Optimizing sub-index [jar] with mergeFactor [10]
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.AdaptiveOptimizer - Optimization of sub-index [jar] took [94ms]
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.LuceneSearchEngineOptimizerManager - Checking for index optimization
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.AdaptiveOptimizer - Optimizing sub-index [jar] with mergeFactor [10]
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.AdaptiveOptimizer - Optimization of sub-index [jar] took [15ms]
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.LuceneSearchEngineOptimizerManager - Checking for index optimization
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.AdaptiveOptimizer - Optimizing sub-index [jar] with mergeFactor [10]
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.AdaptiveOptimizer - Optimization of sub-index [jar] took [0ms]
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.LuceneSearchEngineOptimizerManager - Checking for index optimization
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.AdaptiveOptimizer - Optimizing sub-index [jar] with mergeFactor [10]
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.AdaptiveOptimizer - Optimization of sub-index [jar] took [16ms]
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.LuceneSearchEngineOptimizerManager - Checking for index optimization
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.AdaptiveOptimizer - Optimizing sub-index [jar] with mergeFactor [10]
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.AdaptiveOptimizer - Optimization of sub-index [jar] took [0ms]
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.LuceneSearchEngineOptimizerManager - Checking for index optimization
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.AdaptiveOptimizer - Optimizing sub-index [jar] with mergeFactor [10]
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.AdaptiveOptimizer - Optimization of sub-index [jar] took [62ms]
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.LuceneSearchEngineOptimizerManager - Checking for index optimization
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.AdaptiveOptimizer - Optimizing sub-index [jar] with mergeFactor [10]
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.AdaptiveOptimizer - Optimization of sub-index [jar] took [0ms]
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.LuceneSearchEngineOptimizerManager - Checking for index optimization
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.AdaptiveOptimizer - Optimizing sub-index [jar] with mergeFactor [10]
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.AdaptiveOptimizer - Optimization of sub-index [jar] took [16ms]
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.LuceneSearchEngineOptimizerManager - Checking for index optimization
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.AdaptiveOptimizer - Optimizing sub-index [jar] with mergeFactor [10]
[Compass Scheduled Executor Thread] DEBUG org.compass.core.lucene.engine.optimizer.AdaptiveOptimizer - Optimization of sub-index [jar] took [31ms]
--Gary Mann #40442: I also get the infinite repetition issue with the pax-provision call on page 85. I cannot progress through Chapter 5 until this is explained. ...more...
Michael Craig Walls says: Notice that these stack traces are being logged at DEBUG level. They aren't a real problem...just an unfortunate way that Compass deals with a classloader gotcha.
The gist of it is that Compass tries one approach to do its work, but that approach depends on classloader tricks that won't work in OSGi's locked-down classloading. So, Compass falls back on a different approach. But before it does the fallback, it logs the stack trace, giving the impression that something bad happened.
I'll be recommending a change in the 2nd printing to alert the reader to this strange circumstance. In the meantime, it's easy enough to either ignore it or set the logging levels to ignore DEBUG logging from Compass.
|
P1.0
13-Aug-09
|
|
| 87 |
|
#39268: Have same problem described above. Getting NoClassDefFound errors from Compass.
I'm haven't used Compass before, but what kind of demands is this making on the classloader? I saw a blog post of yours from last year indicating that a DynamicImport-Package statement was necessary to get Compass working. Is this still the case?
Also, does Compass need visibility into the domain bundle to access methods via reflection? How are making this work?
Thanks for your help.
--Patrick Paulin #39268: Have same problem described above. Getting NoClassDefFound errors from Compass.
I'm haven't used Compass before, but what kind of demands i ...more...
Michael Craig Walls says: See my comments on #40442.
|
B1.0
28-May-09
|
|
| 89 |
|
#40647: Having same problem as #39644, I applied advice given at #39997... and "ClassNotFoundException" on CompassConfiguration disappeared.
My 2 cents.--Dany Poupard
Michael Craig Walls says: See my comment for #39997
|
P1.0
03-Sep-09
|
|
|
90 |
#40746: When creating the first test class to run with PAX Exam, it would be wise to stress that unlike normal JUnit tests, this one should not be put in a package that is already used in the domain or index package. Using the same package will result in "<YourTestClassHere> not found" because the PAX Exam drone will be overriden by the other bundles. In your example, the package in non-conflicting, but a note on why a different package name was chosen would be useful. It took me a complete afternoon to figure out why your tests would run and mine would not...--Hendrik Busch #40746: When creating the first test class to run with PAX Exam, it would be wise to stress that unlike normal JUnit tests, this one should not be put ...more...
Michael Craig Walls says: I am recommending a footnote to be added in the 2nd edition that reads:
It's important that IndexServiceBundleTest not be placed in the same package as the IndexService interface itself. Doing so would present a split-package situation where a package appears in multiple bundles--in this case, the index service bundle and the on-the-fly test bundle.
|
P1.0
15-Sep-09
|
|
| 90 |
|
#39269: Sorry, the errata above about NoClassDefFound errors should be for page 90, not 87. --Patrick Paulin
|
B1.0
28-May-09
|
|
| 90 |
|
#39644: Hello,
For the index bundle, instead of having NoClassDefFoundError on IndexWriter I get NoClassDefFoundError on org.compass.core.config.CompassConfiguration (IndexServiceActivator.java:32).
When I investigate I get, :
osgi> bundle 5
...
Imported packages
org.compass.core.config; version="0.0.0"<initial@reference:file:../bundles/org.compass-project.compass_2.1.0.jar/ [3]>
...
The compass wrapped bundle contains CompassConfiguration class. The jar is probably just not in the classpath. Did I miss something in the configuration ? How do I include It ?
Thanks--Manuel #39644: Hello,
For the index bundle, instead of having NoClassDefFoundError on IndexWriter I get NoClassDefFoundError on org.compass.core.config.Com ...more...
Michael Craig Walls says: See comments for #40647 and #39997
|
P1.0
25-Jun-09
|
|
|
92 |
#40251: I found that the tests wouldn't pass without making the following correction in IndexServiceBundleTest/configuration():
Was:
mavenBundle().groupId("com.dudewheresmyjar.dwmj").
artifactId("org.compass-project.compass").version("2.1.1-SNAPSHOT")
Changed to:
mavenBundle().groupId("com.dudewheresmyjar.dwmj").
artifactId("org.compass-project.compass").version("2.1.1-001-SNAPSHOT")
Change was required because we moved from embedding Compass to wrapping it.--Sean Rasmussen #40251: I found that the tests wouldn't pass without making the following correction in IndexServiceBundleTest/configuration():
Was:
mavenBundl ...more...
|
P1.0
29-Jul-09
|
|
|
92 |
#39859: running 'mvn test' from bundle-tests directory fails. I even tried from downloaded source code.
Missing:
----------
1) com.dudewheresmyjar.dude:org.compass-project.compass:jar:2.1.1-SNAPSHOT
The entries in pom.xml point to com.dudewheresmyjar.dude when it should be com.dudewheresmyjar.dwmj. Even after fixing it there seems to be package name resolve issues!--Kaz #39859: running 'mvn test' from bundle-tests directory fails. I even tried from downloaded source code.
Missing:
----------
1) com.dudewheresmyj ...more...
Michael Craig Walls says: A last-minute decision was made to rename the "dude" directory to "dwmj". Apparently it was missed in a few places.
I'll be distributing a new zip file with updated examples. I'll also be recommending changes for the 2nd printing to address these concerns.
|
P1.0
07-Jul-09
|
|
| 94 |
|
#39418: Hi,
All over the book you can't seem to make up your mind over package name, some places you have it com.dudewheresmyjar.dude where as other places it is: com.dudewheresmyjar.dwmj. This caused significant heart ache especially when I was trying to redo the examples from the book and could not get them to work. Please correct this error.
Regards
Ravindar--Ravindar Gujral #39418: Hi,
All over the book you can't seem to make up your mind over package name, some places you have it com.dudewheresmyjar.dude where as other ...more...
Michael Craig Walls says: I couldn't find any mismatched packages anywhere in the book, with the exception of a few non-central examples. There may, however, have been some of the example code left inconsistent with the last-minute decision to go from "dude" to "dwmj".
In any event, I'll be distributing a new set of example code for download as well as recommending some changes for the 2nd printing to address these concerns.
|
B1.0
11-Jun-09
|
|
|
95 |
#41563: Section 5.3, 1st paragraph, 4th line: ".. to look search for JAR files .." should either be "to look for" or "to search for"
--Per Holst
Michael Craig Walls says: Fixed for 2nd printing
|
P1.0
19-Nov-09
|
|
|
99 |
#40753: The code example for the SpiderActivator class uses an array of MavenSpider instances that is being looped through in the stop() method. This array is never filled, so no spider will ever be stopped. I assume there is a line missing in the for-loop of the start() method: "spiders[i] = spider;". The downloadable code examples also contain this error.--Hendrik Busch #40753: The code example for the SpiderActivator class uses an array of MavenSpider instances that is being looped through in the stop() method. This ...more...
Michael Craig Walls says: Addressed for the 2nd printing.
|
P1.0
16-Sep-09
|
|
|
100 |
#40754: The "Deploying the Spider Bundle" paragraph speaks of the 'pax-add-dependency' script, yet it should be the 'pax-import-bundle' script, as there is no 'pax-add-dependency' script (anymore?). The examples show the correct script name. This mistake is repeated on page 101.--Hendrik Busch #40754: The "Deploying the Spider Bundle" paragraph speaks of the 'pax-add-dependency' script, yet it should be the 'pax-import-bundle' script, as the ...more...
Michael Craig Walls says: Fixed for 2nd printing.
|
P1.0
16-Sep-09
|
|
|
101 |
#40763: I had to also add the wrapped compass depdendency to get spider to compile.
spider% pax-import-bundle -g com.dudewheresmyjar.dwmj -a org.compass-project.compass -v 2.1.1-001-SNAPSHOT
--Jason #40763: I had to also add the wrapped compass depdendency to get spider to compile.
spider% pax-import-bundle -g com.dudewheresmyjar.dwmj -a org.co ...more...
Michael Craig Walls says: I'm not sure why you had to do that, as importing the domain bundle should have pulled the compass bundle in transitively. In fact, I have just run through the examples again (by hand) and had no trouble building the spider bundle, so long as I added the domain and index bundles.
|
P1.0
17-Sep-09
|
|
| 104 |
|
#41890: The actual code for Maven Spider, from a synchronized threading perspective, is potentially broken.
public void run() {
try {
active = true;
crawl(repositoryUrl);
}
catch (Exception e) {
// blah...
}
}
public void stop() {
active = false;
}
private void crawl(final String baseUrl) throws Exception {
if (!active) return;
// blah
The problem with this code is that in the absence of synchronization there is no guarantee as to when, if ever, the stoppable thread will "see" a change in teh value of the "active" variable made by another thread - which is exactly what SpiderActivator tries to do:
public void stop(BundleContext context) throws Exception {
for (int i = 0; i < spiders.length; i++) {
spiders[i].stop();
Using properly synchronized cooperative thread termination would use something like (pseudo code):
public synchronized void requestStop() {
active = false;
}
public synchronized boolean isActive() {
return active;
}
private void crawl(final String baseUrl) throws Exception {
if (!isActive()) return;
// blah
fixed by simply synchronizing all access to the active field.--Richard Seldon #41890: The actual code for Maven Spider, from a synchronized threading perspective, is potentially broken.
public void run() {
try {
...more...
Michael Craig Walls says: Fixed as I work through stuff for a 2nd printing. This actual code doesn't appear in the book, but I will make a new download available with this fix in place.
|
P1.0
22-Dec-09
|
|
|
112 |
#44580: The Spring version has changed in the maven repository. 1.2.0 is not more accessible. Changing 1.2.0 by 1.2.6 works fine.
Maybe this has already be fixed.--ppacch #44580: The Spring version has changed in the maven repository. 1.2.0 is not more accessible. Changing 1.2.0 by 1.2.6 works fine.
Maybe this has alre ...more...
Michael Craig Walls says: I'm not sure why you had trouble with 1.2.0...I just tried that for myself and it worked fine. 1.2.6 is not even a valid Spring-DM version (1.2.1 is the latest GA version for Spring-DM).
|
P1.0
12-Aug-10
|
|
|
112 |
#40012: Need to add repository for spring bundles before importing the bundles.
pax-add-repository -i com.springsource.repository.bundles.external -u <link http repository.springsource.com/maven/bundles/external>--D Carey #40012: Need to add repository for spring bundles before importing the bundles.
pax-add-repository -i com.springsource.repository.bundles.external ...more...
Michael Craig Walls says: You may be right about this, but I need to dig into it a bit further to be sure that I'm not missing something else. (FWIW, I tried it without doing that and it worked fine, but I need to do more research to be sure).
|
P1.0
16-Jul-09
|
|
|
112 |
#39882: As the book enters the portion for Spring DM and its setup it asks to perform a pax-import-bundle from dwmjs. There are no prior references to this directory.--Kaz #39882: As the book enters the portion for Spring DM and its setup it asks to perform a pax-import-bundle from dwmjs. There are no prior references to ...more...
Michael Craig Walls says: I had used a separate dwmjs directory for the Spring version of the project. I'm recommending that all occasions of "dwmjs" be changed to "dwmj" for the 2nd printing.
|
P1.0
08-Jul-09
|
|
|
118 |
#44581: Both ss and bundle outputs are different.
Especially there is no entry under registered service ...
No sure it is a technical error.
3 ACTIVE org.ops4j.pax.logging.pax-logging-api_1.3.0
4 ACTIVE org.springframework.transaction_2.5.6
5 ACTIVE com.springsource.slf4j.org.apache.commons.logging_1.5.0
6 ACTIVE com.springsource.slf4j.api_1.5.0
Fragments=7
7 RESOLVED com.springsource.slf4j.log4j_1.5.0
Master=6
8 ACTIVE com.springsource.org.aopalliance_1.0.0
9 ACTIVE com.springsource.edu.emory.mathcs.backport_3.1.0
10 ACTIVE com.springsource.org.apache.log4j_1.2.15
11 ACTIVE com.springsource.javax.jms_1.1.0
12 ACTIVE com.springsource.javax.transaction_1.1.0
13 ACTIVE com.dudewheresmyjar.domain_1.0.0.SNAPSHOT
14 ACTIVE org.compass-project.compass_2.2.0
15 ACTIVE com.dudewheresmyjar.index_1.0.0.SNAPSHOT
16 ACTIVE com.dudewheresmyjar.spider_1.0.0.SNAPSHOT
osgi> bundle 15
com.dudewheresmyjar.index_1.0.0.SNAPSHOT [15]
Id=15, Status=ACTIVE Data Root=E:\workspace\java\osgi\dwmj\runner\equinox\org.eclipse.osgi\bundles\15\data
No registered services.
No services in use.
Exported packages
dwmj.index; version="1.0.0.SNAPSHOT"[exported]
Imported packages
dwmj.domain; version="1.0.0.SNAPSHOT"<com.dudewheresmyjar.domain_1.0.0.SNAPSHOT [13]>
org.apache.lucene; version="0.0.0"<org.compass-project.compass_2.2.0 [14]>
org.apache.lucene.document; version="0.0.0"<org.compass-project.compass_2.2.0 [14]>
org.apache.lucene.index; version="0.0.0"<org.compass-project.compass_2.2.0 [14]>
org.apache.lucene.queryParser; version="0.0.0"<org.compass-project.compass_2.2.0 [14]>
org.apache.lucene.search; version="0.0.0"<org.compass-project.compass_2.2.0 [14]>
org.apache.lucene.store; version="0.0.0"<org.compass-project.compass_2.2.0 [14]>
org.apache.lucene.util; version="0.0.0"<org.compass-project.compass_2.2.0 [14]>
org.compass.core; version="0.0.0"<org.compass-project.compass_2.2.0 [14]>
org.compass.core.cache.first; version="0.0.0"<org.compass-project.compass_2.2.0 [14]>
org.compass.core.config; version="0.0.0"<org.compass-project.compass_2.2.0 [14]>
org.compass.core.config.binding.metadata; version="0.0.0"<org.compass-project.compass_2.2.0 [14]>
org.compass.core.engine.naming; version="0.0.0"<org.compass-project.compass_2.2.0 [14]>
org.compass.core.executor.concurrent; version="0.0.0"<org.compass-project.compass_2.2.0 [14]>
org.compass.core.json.impl.converter; version="0.0.0"<org.compass-project.compass_2.2.0 [14]>
org.compass.core.lucene.engine.analyzer; version="0.0.0"<org.compass-project.compass_2.2.0 [14]>
org.compass.core.lucene.engine.optimizer; version="0.0.0"<org.compass-project.compass_2.2.0 [14]>
org.compass.core.transaction; version="0.0.0"<org.compass-project.compass_2.2.0 [14]>
org.osgi.framework; version="1.5.0"<org.eclipse.osgi_3.5.1.R35x_v20090827 [0]>
No fragment bundles
Named class space
com.dudewheresmyjar.index; bundle-version="1.0.0.SNAPSHOT"[provided]
No required bundles
--ppacch #44581: Both ss and bundle outputs are different.
Especially there is no entry under registered service ...
No sure it is a technical error.
3 ...more...
Michael Craig Walls says: If you see no published services under the index service bundle, then it's clear that something went wrong. That bundle should publish a service.
I can't say for certain what went wrong...but if you "ss" commend lists a different set of bundles, that's probably it. In fact, looking at the list of bundles you have installed, I don't see the Spring-DM bundles...so that'd certainly explain why your service isn't published. Now, the question is...why were the Spring-DM bundles installed for you?
I can't say, as I don't know what steps you followed up to this point. But page 112 shows what you need to do to get the Spring-DM bundles installed. I also see that you tried version 1.2.0 and had trouble, so you switched to 1.2.6. I'm not so sure that's the right answer. I just tried it with 1.2.0 and it worked for me. 1.2.6 is not even a valid Spring-DM version number (the latest GA version is 1.2.1).
|
P1.0
12-Aug-10
|
|
|
166 |
#41599: Same as #39847 (for PDF) Bundle IDs are referenced as 32 and 33 when they are listed as 35 and 36 respectively.--Per Holst
Michael Craig Walls says: Fixed for 2nd printing.
|
P1.0
23-Nov-09
|
|
| 168 |
|
#39847: Hi, thanks for a well-written book.
Just like to highlight that web bundle and UI fragment ids should be 35 and 36 respectively instead of 32 and 33.
Thanks!
henry--Henry Neo #39847: Hi, thanks for a well-written book.
Just like to highlight that web bundle and UI fragment ids should be 35 and 36 respectively instead of ...more...
Michael Craig Walls says: Fixed for 2nd printing
|
P1.0
07-Jul-09
|
|
|
192 |
#41601: index-context.xml has the "</beans>" tag in bold--Per Holst
Michael Craig Walls says: Fixed for 2nd printing.
|
P1.0
23-Nov-09
|
|
|
193 |
#41602: index-osgi.xml has the "</beans:beans>" tag in bold--Per Holst
Michael Craig Walls says: Fixed for 2nd printing
|
P1.0
23-Nov-09
|
|
| 2003 |
OwFPK |
#50113: AFAICT you've ceovred all the bases with this answer!--iTyarkmCZaPCSlz
|
P1.0
01-Nov-12
|
|