dev@glassfish.java.net

Re: Build failure on Windows : UnsatisfiedDepedencyException

From: Byron Nevins <Byron.Nevins_at_Sun.COM>
Date: Thu, 01 Oct 2009 10:15:01 -0700

On our SVN -- pretty much all files are treated as binary -- not ASCII.
I see it all the time and do propset on files one at a time.
I filed a high-priority bug on this a year or so ago.

Maybe that is the issue -- try this

svn propset svn:eol-style native FILENAME

Sathyan Catari wrote:
> Which version of SVN is in use here? I have seen some versions of SVNs
> during checkout adding
> additional characters to the lines in the text file(s). Could be that
> the "svn co" makes a mess of
> file format, causing "java.io.EOFexception"?
>
> -Sathyan
>
>
> Paul Sterk wrote:
>> Sekhar,
>>
>> Here is one possibility. I also saw this problem on my Windows Vista
>> box. The key line in the stack trace is: Caused by:
>> java.lang.IllegalStateException: java.io.EOFException. See my
>> earlier post 'Re: Windows Build Broken' on 9/16/2009 9:46 AM. Here
>> is a snippet:
>>
>> I see one problem on Vista (at least on my box). These two files
>> exist, but are empty:
>>
>> "${user.home}\.glassfishv3-build\config\keystore.jks"
>> "${user.home}\.glassfishv3-build\config\cacerts.jks"
>>
>> IIRC, the keystore loading code does not handle cases where the
>> keystore file exists and is empty. That explains the EOFException.
>> Some further investigation is needed to determine why the keystore
>> files are empty in the current build.
>>
>> Paul
>>
>>> I did update my workspace yesterday and even blew away the workspace
>>> and started fresh . But I still got the error below.
>>> Issue 9599 seems to have been fixed on Sept 19, 2009.
>>> So, the fix should be in my workspace.
>>>
>>> But I will give it one more try right now.
>>>
>>> Thanks,
>>> Sekhar
>>>
>>> Jane Young wrote:
>>>> This is related to
>>>> https://glassfish.dev.java.net/issues/show_bug.cgi?id=9599
>>>>
>>>> Please update your workspace and recompile.
>>>>
>>>> Thanks,
>>>> Jane
>>>>
>>>>
>>>> Sekhar Vajjhala wrote:
>>>>> I am trying to build GF v3 from trunk using the instructions
>>>>> http://wiki.glassfish.java.net/Wiki.jsp?page=V3FullBuildInstructions
>>>>> on Windows XP. The build is failing with
>>>>> UnsatisfiedDepedencyException - stack trace below.
>>>>>
>>>>> Any suggestions ?
>>>>>
>>>>> It looks like the Windows GF build on Hudson (
>>>>> http://hudson.glassfish.org/job/gf-trunk-build-windows/ ) is
>>>>> successful, though.
>>>>>
>>>>> Thanks,
>>>>> Sekhar
>>>>>
>>>>> ------------------------------------------
>>>>> SEVERE: Exception while deploying the app
>>>>> org.jvnet.hk2.component.UnsatisfiedDepedencyException: Unsatisfied
>>>>> dependency ex
>>>>> ception : private com.sun.enterprise.security.ssl.SSLUtils
>>>>> com.sun.enterprise.se
>>>>> curity.SecurityLifecycle.sslUtils
>>>>> at
>>>>> org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java
>>>>> :102)
>>>>> at
>>>>> com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:1
>>>>> 70)
>>>>> at
>>>>> com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:91)
>>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>> at
>>>>> com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java
>>>>> :88)
>>>>> at
>>>>> com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
>>>>> at
>>>>> com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.jav
>>>>> a:58)
>>>>> at
>>>>> com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
>>>>> at
>>>>> com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantIm
>>>>> pl.java:60)
>>>>> at
>>>>> com.sun.enterprise.security.SecuritySniffer.setup(SecuritySniffer.jav
>>>>> a:105)
>>>>> at
>>>>> com.sun.enterprise.v3.server.ContainerStarter.startContainer(Containe
>>>>> rStarter.java:99)
>>>>> at
>>>>> com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainer(Appl
>>>>> icationLifecycle.java:671)
>>>>> at
>>>>> com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos
>>>>> (ApplicationLifecycle.java:419)
>>>>> at
>>>>> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationL
>>>>> ifecycle.java:232)
>>>>> at
>>>>> org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDep
>>>>> loyerImpl.java:186)
>>>>> at
>>>>> org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDep
>>>>> loyerImpl.java:146)
>>>>> at
>>>>> org.glassfish.ejb.embedded.EJBContainerImpl.deploy(EJBContainerImpl.j
>>>>> ava:112)
>>>>> at
>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContaine
>>>>> r(EJBContainerProviderImpl.java:120)
>>>>> at
>>>>> javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.jav
>>>>> a:102)
>>>>> at
>>>>> org.glassfish.distributions.test.UnitTest.test(UnitTest.java:63)
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>>>> java:39)
>>>>> at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>>>> sorImpl.java:25)
>>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>>> at
>>>>> org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMet
>>>>> hodRunner.java:99)
>>>>> at
>>>>> org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethod
>>>>> Runner.java:81)
>>>>> at
>>>>> org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAn
>>>>> dAfterRunner.java:34)
>>>>> at
>>>>> org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunne
>>>>> r.java:75)
>>>>> at
>>>>> org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java
>>>>> :45)
>>>>> at
>>>>> org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(Te
>>>>> stClassMethodsRunner.java:66)
>>>>> at
>>>>> org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethod
>>>>> sRunner.java:35)
>>>>> at
>>>>> org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClass
>>>>> Runner.java:42)
>>>>> at
>>>>> org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAn
>>>>> dAfterRunner.java:34)
>>>>> at
>>>>> org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:5
>>>>> 2)
>>>>> at
>>>>> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.
>>>>> java:62)
>>>>> at
>>>>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
>>>>> tSet(AbstractDirectoryTestSuite.java:140)
>>>>> at
>>>>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
>>>>> stractDirectoryTestSuite.java:165)
>>>>> at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>>>> java:39)
>>>>> at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>>>> sorImpl.java:25)
>>>>> at java.lang.reflect.Method.invoke(Method.java:597)
>>>>> at
>>>>> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
>>>>> refireBooter.java:289)
>>>>> at
>>>>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
>>>>> ava:1005)
>>>>> Caused by: org.jvnet.hk2.component.UnsatisfiedDepedencyException:
>>>>> Unsatisfied de
>>>>> pendency exception :
>>>>> com.sun.enterprise.server.pluggable.SecuritySupport com.sun
>>>>> .enterprise.security.ssl.SSLUtils.secSupp
>>>>> at
>>>>> org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java
>>>>> :102)
>>>>> at
>>>>> com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:1
>>>>> 70)
>>>>> at
>>>>> com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:91)
>>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>> at
>>>>> com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java
>>>>> :88)
>>>>> at
>>>>> com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
>>>>> at
>>>>> com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.jav
>>>>> a:58)
>>>>> at
>>>>> com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
>>>>> at
>>>>> com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantIm
>>>>> pl.java:60)
>>>>> at org.jvnet.hk2.component.Habitat.getBy(Habitat.java:599)
>>>>> at org.jvnet.hk2.component.Habitat.getByType(Habitat.java:580)
>>>>> at
>>>>> com.sun.hk2.component.AbstractWombImpl$1.getValue(AbstractWombImpl.ja
>>>>> va:149)
>>>>> at
>>>>> org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java
>>>>> :81)
>>>>> ... 43 more
>>>>> Caused by: org.jvnet.hk2.component.ComponentException: Failed to
>>>>> create class co
>>>>> m.sun.enterprise.security.ssl.SecuritySupportImpl
>>>>> at
>>>>> com.sun.hk2.component.ConstructorWomb.create(ConstructorWomb.java:80)
>>>>>
>>>>> at
>>>>> com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:71)
>>>>> at
>>>>> com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.jav
>>>>> a:58)
>>>>> at
>>>>> com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
>>>>> at
>>>>> com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantIm
>>>>> pl.java:60)
>>>>> at
>>>>> org.jvnet.hk2.component.Habitat.getComponent(Habitat.java:358)
>>>>> at
>>>>> com.sun.hk2.component.AbstractWombImpl$1.getValue(AbstractWombImpl.ja
>>>>> va:144)
>>>>> at
>>>>> org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java
>>>>> :81)
>>>>> ... 55 more
>>>>> Caused by: java.lang.IllegalStateException: java.io.EOFException
>>>>> at
>>>>> com.sun.enterprise.security.ssl.SecuritySupportImpl.loadStores(Securi
>>>>> tySupportImpl.java:156)
>>>>> at
>>>>> com.sun.enterprise.security.ssl.SecuritySupportImpl.initJKS(SecurityS
>>>>> upportImpl.java:107)
>>>>> at
>>>>> com.sun.enterprise.security.ssl.SecuritySupportImpl.<init>(SecuritySu
>>>>> pportImpl.java:86)
>>>>> at
>>>>> com.sun.enterprise.security.ssl.SecuritySupportImpl.<init>(SecuritySu
>>>>> pportImpl.java:81)
>>>>> at
>>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>>>>
>>>>> at
>>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
>>>>> orAccessorImpl.java:39)
>>>>> at
>>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
>>>>> onstructorAccessorImpl.java:27)
>>>>> at
>>>>> java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>>>> at java.lang.Class.newInstance0(Class.java:355)
>>>>> at java.lang.Class.newInstance(Class.java:308)
>>>>> at
>>>>> com.sun.hk2.component.ConstructorWomb.create(ConstructorWomb.java:72)
>>>>>
>>>>> ... 62 more
>>>>> Caused by: java.io.EOFException
>>>>> at java.io.DataInputStream.readInt(DataInputStream.java:375)
>>>>> at
>>>>> sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:628)
>>>>> at
>>>>> sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:3
>>>>> 8)
>>>>> at java.security.KeyStore.load(KeyStore.java:1185)
>>>>> at
>>>>> com.sun.enterprise.security.ssl.SecuritySupportImpl.loadKS(SecuritySu
>>>>> pportImpl.java:194)
>>>>> at
>>>>> com.sun.enterprise.security.ssl.SecuritySupportImpl.loadStores(Securi
>>>>> tySupportImpl.java:147)
>>>>> ... 72 more
>>>>> Sep 29, 2009 7:14:55 AM
>>>>> org.glassfish.ejb.embedded.EJBContainerProviderImpl crea
>>>>> teEJBContainer
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>