Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] broken resources?

Hmm, where does the resource that the SAXParser is trying to read from
live?  Is it possible that when building with ajc this resource is not
getting copied into the output directory / jar correctly?

On 16/08/05, Torsten Curdt <tcurdt@xxxxxxxxxx> wrote:
> 
> On 16.08.2005, at 12:07, Adrian Colyer wrote:
> 
> > Now that *is* odd.  It's a very low level failure... (native method).
> > Are you weaving xerces.jar itself? (ie. is xerces.jar on the inpath?).
> > If not, what's on the stack leading up to the call to
> > AbstractStackParser.parse() ?
> 
> Glad it's just not me that finds this odd ;)
> 
> I assume you mean AbstractSAXParser.parse()?
> 
> I am using it through maven and since I did
> not specify any properties for the jars only
> my original code should be weaved.
> 
> Here is the stacktrace I got
> 
> java.io.IOException: Bad file descriptor
>          at java.io.FileInputStream.read(Native Method)
>          at org.apache.xerces.impl.XMLEntityManager
> $RewindableInputStream.read(Unknown Source)
>          at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity
> (Unknown Source)
>          at
> org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown
> Source)
>          at org.apache.xerces.parsers.XML11Configuration.parse
> (Unknown Source)
>          at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
> Source)
>          at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>          at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> Source)
>          at
> org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.bu
> ild(DefaultConfigurationBuilder.java:254)
>          at
> org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.bu
> ild(DefaultConfigurationBuilder.java:202)
>          at
> com.managesoft.distribution.container.Builder.createContainer_aroundBody
> 0(Builder.java:64)
>          at
> com.managesoft.distribution.container.Builder.createContainer_aroundBody
> 1$advice(Builder.java:181)
>          at
> com.managesoft.distribution.container.Builder.createContainer
> (Builder.java)
>          at
> com.managesoft.distribution.AbstractComponentTestCase.setUpContainer
> (AbstractComponentTestCase.java:82)
>          at
> com.managesoft.distribution.AbstractComponentTestCase.setUp
> (AbstractComponentTestCase.java:130)
>          at junit.framework.TestCase.runBare(TestCase.java:125)
>          at junit.framework.TestResult$1.protect(TestResult.java:106)
>          at junit.framework.TestResult.runProtected(TestResult.java:124)
>          at junit.framework.TestResult.run(TestResult.java:109)
>          at junit.framework.TestCase.run(TestCase.java:118)
>          at junit.framework.TestSuite.runTest(TestSuite.java:208)
>          at junit.framework.TestSuite.run(TestSuite.java:203)
> 
> As you can see I am running it through junit
> The resource is being obtained inside the AbstractComponentTestCase
> setUpContainer() via
> 
>   final Class clazz = this.getClass();
>   final InputStream stream = clazz.getClassLoader
> ().getResourceAsStream(resource);
> 
> Any idea? Anything else I can do to provide more information?
> 
> cheers
> --
> Torsten
> 
> 
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
> 
> 
> 
> 


-- 
-- Adrian
adrian.colyer@xxxxxxxxx


Back to the top