You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Antony Hutchison (Commented) (JIRA)" <ji...@apache.org> on 2011/10/04 13:02:34 UTC

[jira] [Commented] (FELIX-3146) Using Ehcache with Felix gives an IOException

    [ https://issues.apache.org/jira/browse/FELIX-3146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13120006#comment-13120006 ] 

Antony Hutchison commented on FELIX-3146:
-----------------------------------------

I get this response when starting Felix with the bundle deployed:


D:\felix-framework-4.0.0>java -jar bin\felix.jar
____________________________
Welcome to Apache Felix Gogo

g! SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
net.sf.ehcache.CacheException: Unable to load class net.sf.ehcache.terracotta.StandaloneTerracottaClusteredInstanceFactory. Initial cause was null
        at net.sf.ehcache.util.ClassLoaderUtil.createNewInstance(ClassLoaderUtil.java:109)
        at net.sf.ehcache.terracotta.TerracottaClusteredInstanceHelper.newClusteredInstanceFactory(TerracottaClusteredInstanceHelper.java:178)
        at net.sf.ehcache.terracotta.TerracottaClient.createNewClusteredInstanceFactory(TerracottaClient.java:199)
        at net.sf.ehcache.terracotta.TerracottaClient.createClusteredInstanceFactory(TerracottaClient.java:151)
        at net.sf.ehcache.CacheManager.init(CacheManager.java:345)
        at net.sf.ehcache.CacheManager.<init>(CacheManager.java:300)
        at antonyh.poc.ehcache.Activator.start(Activator.java:28)
        at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:641)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1977)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1895)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)
        at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ExceptionInInitializerError
        at net.sf.ehcache.terracotta.StandaloneTerracottaClusteredInstanceFactory.<init>(StandaloneTerracottaClusteredInstanceFactory.java:37)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at net.sf.ehcache.util.ClassLoaderUtil.createNewInstance(ClassLoaderUtil.java:92)
        ... 12 more
Caused by: java.lang.RuntimeException: java.io.IOException: FakeURLStreamHandler can not be used!
        at org.terracotta.express.ClientFactoryImpl.<init>(ClientFactoryImpl.java:112)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at java.lang.Class.newInstance0(Unknown Source)
        at java.lang.Class.newInstance(Unknown Source)
        at org.terracotta.express.Util.getImplInstance(Util.java:11)
        at org.terracotta.express.ClientFactory.<clinit>(ClientFactory.java:12)
        ... 18 more
Caused by: java.io.IOException: FakeURLStreamHandler can not be used!
        at org.apache.felix.framework.FakeURLStreamHandler.openConnection(FakeURLStreamHandler.java:39)
        at java.net.URL.openConnection(Unknown Source)
        at java.net.URL.openStream(Unknown Source)
        at org.terracotta.express.ClientFactoryImpl.<init>(ClientFactoryImpl.java:81)
        ... 26 more

g!
g! gosh: stopping framework

D:\felix-framework-4.0.0>

                
> Using Ehcache with Felix gives an IOException
> ---------------------------------------------
>
>                 Key: FELIX-3146
>                 URL: https://issues.apache.org/jira/browse/FELIX-3146
>             Project: Felix
>          Issue Type: Bug
>          Components: Main
>    Affects Versions: framework-4.0.0
>         Environment: Win7, JDK 1.6_20
>            Reporter: Antony Hutchison
>
> Deploying a bundle which uses Ehcache internally gives java.io.IOException: FakeURLStreamHandler can not be used.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira