java.io.FileNotFoundException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Hi, Max from user list kindly redirected me to fill a bug here. Here it goes as I described it on list. I didn't attached a test case b/c doing it is non-trivial, maybe you'll just know what is the problem and I provided a patch that works for me. But if test case is needed - I'll do it. -------------- I'm having problems with bundling hibernate and my ejb model in eclipse RCP application. I managed to solve all classloading problems but one, related to InputStreamZippedJarVisitor class. Simplifying things I have: hibernate plugin which registers itself for buddy classloading policy dbmodel plugin which depends on hibernate and is a buddy of hibernate application plugin which depends on hibernate and dbmodel and is a buddy of hibernate. This application plugin has hibernate.cfg.xml in self. When I run this project from eclipse IDE, all is fine except the warning message in logs while creating EntityManager: 2006-10-20 09:07:23 org.hibernate.ejb.packaging.InputStreamZippedJarVisitor doProcessElements WARNING: Unable to find file (ignored): bundleresource://101 java.io.FileNotFoundException: C:\Documents and Settings\mkostrze\sv-head2\com.pentacomp.dbmodel (Access denied) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at org.eclipse.osgi.framework.util.SecureAction.getFileInputStream(SecureAction.java:99) at org.eclipse.osgi.baseadaptor.bundlefile.FileBundleEntry.getInputStream(FileBundleEntry.java:50) at org.eclipse.osgi.framework.internal.core.BundleURLConnection.connect(BundleURLConnection.java:53) at org.eclipse.osgi.framework.internal.core.BundleURLConnection.getInputStream(BundleURLConnection.java:99) at java.net.URL.openStream(URL.java:1007) at org.hibernate.ejb.packaging.InputStreamZippedJarVisitor.doProcessElements(InputStreamZippedJarVisitor.java:33) at org.hibernate.ejb.packaging.JarVisitor.getMatchingEntries(JarVisitor.java:215) at org.hibernate.ejb.Ejb3Configuration.addMetadataFromVisitor(Ejb3Configuration.java:253) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:229) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:120) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51) at com.pentacomp.dicom.viewer.ViewerContstants.createEntityManager(ViewerContstants.java:170) at com.pentacomp.dicom.viewer.DicomViewerMainFrame$InitRepositoriesTask.call(DicomViewerMainFrame.java:146) I suppose hibernate tries to inspect the model jar for some reason, but in IDE this jar location is resolved to directory containing the plugin. But things get worse when I export the project into java webstart application. I'm getting NullPointerException instead of warning in the same place. I investigated the source and the problem is here: protected void doProcessElements() throws IOException { JarInputStream jis; try { jis = new JarInputStream( jarUrl.openStream() ); } catch (IOException ze) { log.warn( "Unable to find file (ignored): " + jarUrl, ze ); return; } The jarUrl is a bundleresource:// url which resolves to DirZipBundleEntry which in turn returns null in getInputStream(). Thus JarInputStream thows NPE. Here's what I've tried to solve this: - configure the dbmodel to be unpacked or packed after install - tried dbmodel with jar inside or with unpacked classes inside - set hibernate.archive.autodetection to 'none'. (I did it passing parameters map to createEntityManager method) - change the hibernate sources and replace IOException with Exception in doProcessElement method. This one worked I guess most likely I did something wrong to my deploy - any ideas please? But if not, perhaps such a change in code may make hibernate more robust (?) Hibernate version: 3.2.0 GA best regards, Michal Kostrzewa
    via by Michał Kostrzewa,
  • Hi, Max from user list kindly redirected me to fill a bug here. Here it goes as I described it on list. I didn't attached a test case b/c doing it is non-trivial, maybe you'll just know what is the problem and I provided a patch that works for me. But if test case is needed - I'll do it. -------------- I'm having problems with bundling hibernate and my ejb model in eclipse RCP application. I managed to solve all classloading problems but one, related to InputStreamZippedJarVisitor class. Simplifying things I have: hibernate plugin which registers itself for buddy classloading policy dbmodel plugin which depends on hibernate and is a buddy of hibernate application plugin which depends on hibernate and dbmodel and is a buddy of hibernate. This application plugin has hibernate.cfg.xml in self. When I run this project from eclipse IDE, all is fine except the warning message in logs while creating EntityManager: 2006-10-20 09:07:23 org.hibernate.ejb.packaging.InputStreamZippedJarVisitor doProcessElements WARNING: Unable to find file (ignored): bundleresource://101 java.io.FileNotFoundException: C:\Documents and Settings\mkostrze\sv-head2\com.pentacomp.dbmodel (Access denied) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at org.eclipse.osgi.framework.util.SecureAction.getFileInputStream(SecureAction.java:99) at org.eclipse.osgi.baseadaptor.bundlefile.FileBundleEntry.getInputStream(FileBundleEntry.java:50) at org.eclipse.osgi.framework.internal.core.BundleURLConnection.connect(BundleURLConnection.java:53) at org.eclipse.osgi.framework.internal.core.BundleURLConnection.getInputStream(BundleURLConnection.java:99) at java.net.URL.openStream(URL.java:1007) at org.hibernate.ejb.packaging.InputStreamZippedJarVisitor.doProcessElements(InputStreamZippedJarVisitor.java:33) at org.hibernate.ejb.packaging.JarVisitor.getMatchingEntries(JarVisitor.java:215) at org.hibernate.ejb.Ejb3Configuration.addMetadataFromVisitor(Ejb3Configuration.java:253) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:229) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:120) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51) at com.pentacomp.dicom.viewer.ViewerContstants.createEntityManager(ViewerContstants.java:170) at com.pentacomp.dicom.viewer.DicomViewerMainFrame$InitRepositoriesTask.call(DicomViewerMainFrame.java:146) I suppose hibernate tries to inspect the model jar for some reason, but in IDE this jar location is resolved to directory containing the plugin. But things get worse when I export the project into java webstart application. I'm getting NullPointerException instead of warning in the same place. I investigated the source and the problem is here: protected void doProcessElements() throws IOException { JarInputStream jis; try { jis = new JarInputStream( jarUrl.openStream() ); } catch (IOException ze) { log.warn( "Unable to find file (ignored): " + jarUrl, ze ); return; } The jarUrl is a bundleresource:// url which resolves to DirZipBundleEntry which in turn returns null in getInputStream(). Thus JarInputStream thows NPE. Here's what I've tried to solve this: - configure the dbmodel to be unpacked or packed after install - tried dbmodel with jar inside or with unpacked classes inside - set hibernate.archive.autodetection to 'none'. (I did it passing parameters map to createEntityManager method) - change the hibernate sources and replace IOException with Exception in doProcessElement method. This one worked I guess most likely I did something wrong to my deploy - any ideas please? But if not, perhaps such a change in code may make hibernate more robust (?) Hibernate version: 3.2.0 GA best regards, Michal Kostrzewa
    via by Michał Kostrzewa,
  • Hi, I've been experimenting a while now with EasyBeans for OSGI. Eventually, I would like to be able to develop bundles in eclipse and then run/deploy them right out of the eclipse using the standard plugin builder. A prerequisite for this would be to be able to deploy "exploded" bundles, but this does not even work with the delivered example bundle easybeans-examples-entitybean. When I start the bundle as jar file everthing works fine. When I unzip the delivered bundle into my target folder then the bundle won't deploy. So, I am not sure if this works as designed (and I have to continue using my ant script to create a jar) or this is a bug. Any help/input is much appreciated. Thanks, Clemens This is my console output: osgi> 4/23/09 9:21:30 PM (W) Activator.start : Cannot find User configuration (easybeans.xml) for Easybeans. Using default configuration 4/23/09 9:21:32 PM (I) Activator.start : Starting Bundle initial@reference:file:plugins/easybeans-component-carol-1.1.0-M3.jar/ [24] 4/23/09 9:21:32 PM (I) Activator.start : Starting Bundle initial@reference:file:plugins/easybeans-component-quartz-1.1.0-M3.jar/ [23] 4/23/09 9:21:32 PM (I) Activator.start : Starting Bundle initial@reference:file:plugins/easybeans-component-jotm-1.1.0-M3.jar/ [9] 4/23/09 9:21:32 PM (I) Activator.start : Starting Bundle initial@reference:file:plugins/easybeans-component-joram-1.1.0-M3.jar/ [16] 4/23/09 9:21:32 PM (I) Activator.start : Starting Bundle initial@reference:file:plugins/easybeans-component-event-1.1.0-M3.jar/ [25] 4/23/09 9:21:32 PM (I) Activator.start : Starting Bundle initial@reference:file:plugins/easybeans-component-jmx-1.1.0-M3.jar/ [22] 4/23/09 9:21:32 PM (I) Activator.start : Starting Bundle initial@reference:file:plugins/easybeans-component-statistic-1.1.0-M3.jar/ [15] 4/23/09 9:21:32 PM (I) Activator.start : Starting Bundle initial@reference:file:plugins/easybeans-component-hsqldb-1.1.0-M3.jar/ [17] 4/23/09 9:21:32 PM (I) Activator.start : Starting Bundle initial@reference:file:plugins/easybeans-component-jdbcpool-1.1.0-M3.jar/ [5] 4/23/09 9:21:34 PM (I) TraceCarol.infoCarol : Name service for jrmp is started on port 1099 4/23/09 9:21:35 PM (I) EZBComponentServiceFactory.updated : Component with pid org.ow2.easybeans.component.carol.carolcomponent-1240546891953-2 created 4/23/09 9:21:35 PM (I) EZBCoreService.activate : Activating EasyBeans/OSGi/Core 4/23/09 9:21:35 PM (I) Embedded.start : Configuring EasyBeans with the configuration URLs '[]' 4/23/09 9:21:35 PM (I) JMXRemoteHelper.init : Creating JMXRemote connector with URL 'service:jmx:rmi:///jndi/rmi://localhost:1099/EasyBeansConnector' 4/23/09 9:21:36 PM (I) Embedded.start : Startup of EasyBeans '1.1.0-M3' was done in '437' ms. 4/23/09 9:21:36 PM (I) EZBComponentServiceFactory.updated : Component with pid org.ow2.easybeans.component.event.eventcomponent-1240546891921-1 created 4/23/09 9:21:36 PM (I) EZBCoreService.deactivate : Deactivating EasyBeans/OSGi/Core 4/23/09 9:21:36 PM (I) Embedded.stop : EasyBeans '1.1.0-M3' is now stopped. 4/23/09 9:21:36 PM (I) ComponentRegistry.unregister : Unregistering component with name org.ow2.easybeans.component.carol.CarolComponent. 4/23/09 9:21:36 PM (I) ComponentRegistry.unregister : Unregistering component with name org.ow2.easybeans.component.event.EventComponent. 4/23/09 9:21:36 PM (I) EZBCoreService.activate : Activating EasyBeans/OSGi/Core 4/23/09 9:21:36 PM (I) Embedded.start : Configuring EasyBeans with the configuration URLs '[]' 4/23/09 9:21:36 PM (I) JMXRemoteHelper.init : Creating JMXRemote connector with URL 'service:jmx:rmi:///jndi/rmi://localhost:1099/EasyBeansConnector' 4/23/09 9:21:36 PM (I) Embedded.start : Startup of EasyBeans '1.1.0-M3' was done in '0' ms. 4/23/09 9:21:36 PM (I) EZBComponentServiceFactory.updated : Component with pid org.ow2.easybeans.component.jmx.jmxcomponent-1240546892218-12 created 4/23/09 9:21:36 PM (I) HSQLDBComponent.start : Starting 'HSQLDB server' '1.8.0' on port '9001' 4/23/09 9:21:36 PM (I) HSQLDBComponent.start : HSQLDB server started with URL jdbc:hsqldb:hsql://localhost:9001/jdbc_1 4/23/09 9:21:36 PM (I) EZBComponentServiceFactory.updated : Component with pid org.ow2.easybeans.component.hsqldb.hsqldbcomponent-1240546892046-5 created 4/23/09 9:21:36 PM (I) HSQLDBComponent.start : Starting 'HSQLDB server' '1.8.0' on port '9002' 4/23/09 9:21:36 PM (I) HSQLDBComponent.start : HSQLDB server started with URL jdbc:hsqldb:hsql://localhost:9002/jdbc_2 4/23/09 9:21:36 PM (I) EZBComponentServiceFactory.updated : Component with pid org.ow2.easybeans.component.hsqldb.hsqldbcomponent-1240546892093-6 created 4/23/09 9:21:36 PM (I) QuartzScheduler.<init> : Quartz Scheduler v.1.6.0 created. 4/23/09 9:21:36 PM (I) RAMJobStore.initialize : RAMJobStore initialized. 4/23/09 9:21:36 PM (I) StdSchedulerFactory.instantiate : Quartz scheduler 'EasyBeans' initialized from an externally provided properties instance. 4/23/09 9:21:36 PM (I) StdSchedulerFactory.instantiate : Quartz scheduler version: 1.6.0 4/23/09 9:21:36 PM (I) QuartzScheduler.start : Scheduler EasyBeans_$_NON_CLUSTERED started. 4/23/09 9:21:36 PM (I) EZBComponentServiceFactory.updated : Component with pid org.ow2.easybeans.component.quartz.quartzcomponent-1240546891859-0 created 4/23/09 9:21:36 PM (I) Jotm.<init> : JOTM started with a local transaction factory which is not bound. 4/23/09 9:21:36 PM (I) Jotm.<init> : CAROL initialization 4/23/09 9:21:36 PM (I) Current.<init> : JOTM 2.0.10 4/23/09 9:21:36 PM (I) JOTMComponent.start : Register javax.transaction.UserTransaction as transaction manager object 4/23/09 9:21:36 PM (I) EZBComponentServiceFactory.updated : Component with pid org.ow2.easybeans.component.jotm.jotmcomponent-1240546891984-3 created 4/23/09 9:21:36 PM (I) JDBCPoolComponent.start : DS 'jdbc_2', URL 'jdbc:hsqldb:hsql://localhost:9002/jdbc_2', Driver = 'org.hsqldb.jdbcDriver'. 4/23/09 9:21:36 PM (I) EZBComponentServiceFactory.updated : Component with pid org.ow2.easybeans.component.jdbcpool.jdbcpoolcomponent-1240546892156-9 created 4/23/09 9:21:36 PM (I) JDBCPoolComponent.start : DS 'jdbc_1', URL 'jdbc:hsqldb:hsql://localhost:9001/jdbc_1', Driver = 'org.hsqldb.jdbcDriver'. 4/23/09 9:21:36 PM (I) EZBComponentServiceFactory.updated : Component with pid org.ow2.easybeans.component.jdbcpool.jdbcpoolcomponent-1240546892140-8 created 4/23/09 9:21:36 PM (W) JDBCPoolComponent.start : Entry with JNDI name jdbc_2 already exist 4/23/09 9:21:36 PM (I) JDBCPoolComponent.start : DS 'jdbc_2', URL 'jdbc:hsqldb:hsql://localhost:9002/jdbc_2', Driver = 'org.hsqldb.jdbcDriver'. 4/23/09 9:21:36 PM (I) EZBComponentServiceFactory.updated : Component with pid org.ow2.easybeans.component.jdbcpool.jdbcpoolcomponent-1240546892156-9 created 4/23/09 9:21:36 PM (W) JDBCPoolComponent.start : Entry with JNDI name jdbc_1 already exist 4/23/09 9:21:36 PM (I) JDBCPoolComponent.start : DS 'jdbc_1', URL 'jdbc:hsqldb:hsql://localhost:9001/jdbc_1', Driver = 'org.hsqldb.jdbcDriver'. 4/23/09 9:21:36 PM (I) EZBComponentServiceFactory.updated : Component with pid org.ow2.easybeans.component.jdbcpool.jdbcpoolcomponent-1240546892140-8 created 4/23/09 9:21:36 PM (I) EZBCoreService.deactivate : Deactivating EasyBeans/OSGi/Core 4/23/09 9:21:36 PM (I) EZBComponentServiceFactory.deleted : Component with pid org.ow2.easybeans.component.jdbcpool.jdbcpoolcomponent-1240546892156-9 deleted 4/23/09 9:21:36 PM (I) EZBComponentServiceFactory.deleted : Component with pid org.ow2.easybeans.component.jdbcpool.jdbcpoolcomponent-1240546892140-8 deleted 4/23/09 9:21:36 PM (I) Embedded.stop : EasyBeans '1.1.0-M3' is now stopped. 4/23/09 9:21:36 PM (I) ComponentRegistry.unregister : Unregistering component with name org.ow2.easybeans.component.carol.CarolComponent. 4/23/09 9:21:36 PM (I) ComponentRegistry.unregister : Unregistering component with name org.ow2.easybeans.component.event.EventComponent. 4/23/09 9:21:36 PM (I) ComponentRegistry.unregister : Unregistering component with name org.ow2.easybeans.component.jmx.JmxComponent. 4/23/09 9:21:36 PM (I) ComponentRegistry.unregister : Unregistering component with name org.ow2.easybeans.component.hsqldb.HSQLDBComponent. 4/23/09 9:21:36 PM (I) ComponentRegistry.unregister : Unregistering component with name org.ow2.easybeans.component.hsqldb.HSQLDBComponent2. 4/23/09 9:21:36 PM (I) ComponentRegistry.unregister : Unregistering component with name org.ow2.easybeans.component.quartz.QuartzComponent. 4/23/09 9:21:36 PM (I) ComponentRegistry.unregister : Unregistering component with name org.ow2.easybeans.component.jotm.JOTMComponent. 4/23/09 9:21:36 PM (I) ComponentRegistry.unregister : Unregistering component with name org.ow2.easybeans.component.jdbcpool.JDBCPoolComponent. 4/23/09 9:21:36 PM (I) ComponentRegistry.unregister : Unregistering component with name org.ow2.easybeans.component.jdbcpool.JDBCPoolComponent2. 4/23/09 9:21:36 PM (I) ComponentRegistry.unregister : Unregistering component with name org.ow2.easybeans.component.jdbcpool.JDBCPoolComponent23. 4/23/09 9:21:36 PM (I) ComponentRegistry.unregister : Unregistering component with name org.ow2.easybeans.component.jdbcpool.JDBCPoolComponent234. 4/23/09 9:21:36 PM (I) EZBCoreService.activate : Activating EasyBeans/OSGi/Core 4/23/09 9:21:36 PM (I) Embedded.start : Configuring EasyBeans with the configuration URLs '[]' 4/23/09 9:21:36 PM (I) JMXRemoteHelper.init : Creating JMXRemote connector with URL 'service:jmx:rmi:///jndi/rmi://localhost:1099/EasyBeansConnector' 4/23/09 9:21:36 PM (I) Embedded.start : Startup of EasyBeans '1.1.0-M3' was done in '16' ms. 4/23/09 9:21:36 PM (I) EZBComponentServiceFactory.updated : Component with pid org.ow2.easybeans.component.statistic.statisticcomponent-1240546892250-13 created 4/23/09 9:21:37 PM (I) JoramComponent.start : Joram version '5.1.0' started on localhost:16030. WorkManager[minTx=5,maxTx=100,txTimeout=60s] 4/23/09 9:21:37 PM (I) EZBComponentServiceFactory.updated : Component with pid org.ow2.easybeans.component.joram.joramcomponent-1240546892000-4 created 4/23/09 9:21:37 PM (I) JDBCPoolComponent.start : DS 'jdbc_2', URL 'jdbc:hsqldb:hsql://localhost:9002/jdbc_2', Driver = 'org.hsqldb.jdbcDriver'. 4/23/09 9:21:37 PM (I) EZBComponentServiceFactory.updated : Component with pid org.ow2.easybeans.component.jdbcpool.jdbcpoolcomponent-1240546892156-9 created 4/23/09 9:21:37 PM (I) JDBCPoolComponent.start : DS 'jdbc_1', URL 'jdbc:hsqldb:hsql://localhost:9001/jdbc_1', Driver = 'org.hsqldb.jdbcDriver'. 4/23/09 9:21:37 PM (I) EZBComponentServiceFactory.updated : Component with pid org.ow2.easybeans.component.jdbcpool.jdbcpoolcomponent-1240546892140-8 created ss Framework is launched. id State Bundle 0 ACTIVE org.eclipse.osgi_3.4.0.v20080605-1900 1 ACTIVE org.apache.felix.dependencymanager_1.1.0.10 2 ACTIVE slf4j.api_1.5.2 Fragments=26 3 ACTIVE org.eclipse.equinox.cm_1.0.0.v20080509-1800 4 ACTIVE org.eclipse.equinox.ds_1.0.0.v20080427-0830 5 ACTIVE org.ow2.easybeans.component.jdbcpool_1.1.0.M3 6 ACTIVE org.ow2.bundles.ow2-util-jmx-impl_1.0.11 7 ACTIVE org.eclipse.osgi.services_3.1.200.v20071203 8 ACTIVE org.ow2.easybeans.core_1.1.0.M3 9 ACTIVE org.ow2.easybeans.component.jotm_1.1.0.M3 10 ACTIVE org.eclipse.equinox.util_1.0.0.v20080414 11 RESOLVED org.ow2.easybeans.examples.entitybean_1.1.0.M3 12 ACTIVE org.ow2.bundles.ow2-util-event-api_1.0.11 13 ACTIVE org.apache.commons.logging_1.0.4.v20080605-1930 14 ACTIVE org.ow2.bundles.ow2-bundles-externals-commons-modeler_1.0.11 15 ACTIVE org.ow2.easybeans.component.statistic_1.1.0.M3 16 ACTIVE org.ow2.easybeans.component.joram_1.1.0.M3 17 ACTIVE org.ow2.easybeans.component.hsqldb_1.1.0.M3 18 RESOLVED dummy_0.0.0 19 ACTIVE org.eclipse.equinox.common_3.4.0.v20080421-2006 20 ACTIVE org.ow2.bundles.ow2-util-jmx-api_1.0.11 21 ACTIVE org.ow2.bundles.ow2-util-event-impl_1.0.11 22 ACTIVE org.ow2.easybeans.component.jmx_1.1.0.M3 23 ACTIVE org.ow2.easybeans.component.quartz_1.1.0.M3 24 ACTIVE org.ow2.easybeans.component.carol_1.1.0.M3 25 ACTIVE org.ow2.easybeans.component.event_1.1.0.M3 26 RESOLVED slf4j.jcl_1.5.2 Master=2 27 ACTIVE org.ow2.easybeans.agent_1.1.0.M3 osgi> bundle 11 initial@reference:file:plugins/easybeans-examples-entitybean-1.1.0-M3/ [11] Id=11, Status=RESOLVED Data Root=C:\workspace_bizob_3_4\.metadata\.plugins\org.eclipse.pde.core\remobee_rap\org.eclipse.osgi\bundles\11\data No registered services. No services in use. No exported packages Imported packages javax.ejb; version="3.0.0"<initial@reference:file:plugins/easybeans-core-1.1.0-M3.jar/ [8]> javax.naming; version="1.5.0"<System Bundle [0]> javax.persistence; version="1.0.0"<initial@reference:file:plugins/easybeans-core-1.1.0-M3.jar/ [8]> org.ow2.easybeans.osgi.ejbjar; version="0.0.0"<initial@reference:file:plugins/easybeans-core-1.1.0-M3.jar/ [8]> No fragment bundles Named class space org.ow2.easybeans.examples.entitybean; bundle-version="1.1.0.M3"[provided] No required bundles osgi> start 11 4/23/09 9:22:24 PM (I) Activator.startContainer : Creating Container from the Bundle Archive 'bundleentry://11/' 4/23/09 9:22:24 PM (I) Enhancer.enhance : Beans found are [SessionFacade] 4/23/09 9:22:25 PM (I) JPersistenceUnitInfoHelper.loadDefaultValues : Default persistence provider set to value org.hibernate.ejb.HibernatePersistence. 4/23/09 9:22:25 PM (I) JPersistenceUnitInfoHelper.getPersistenceUnitInfoList : No persistence provider was set, set to default value org.hibernate.ejb.HibernatePersistence. 4/23/09 9:22:25 PM (I) JCLLoggerAdapter.info : Hibernate Annotations 3.4.0.GA 4/23/09 9:22:25 PM (I) JCLLoggerAdapter.info : Hibernate 3.3.1.GA 4/23/09 9:22:25 PM (I) JCLLoggerAdapter.info : hibernate.properties not found 4/23/09 9:22:25 PM (I) JCLLoggerAdapter.info : Bytecode provider name : javassist 4/23/09 9:22:25 PM (I) JCLLoggerAdapter.info : using JDK 1.4 java.sql.Timestamp handling 4/23/09 9:22:25 PM (I) JCLLoggerAdapter.info : Hibernate EntityManager 3.4.0.GA 4/23/09 9:22:25 PM (I) JCLLoggerAdapter.info : Processing PersistenceUnitInfo [ name: entity ...] org.osgi.framework.BundleException: Exception in org.ow2.easybeans.osgi.ejbjar.Activator.start() of bundle org.ow2.easybeans.examples.entitybean. at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1028) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257) at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:257) 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.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:150) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:302) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:287) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:223) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.RuntimeException: Error while reading bundleentry://11/ at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:620) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:360) at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:131) at org.ow2.easybeans.persistence.JPersistenceContext.init(JPersistenceContext.java:72) at org.ow2.easybeans.persistence.JPersistenceContext.<init>(JPersistenceContext.java:65) at org.ow2.easybeans.persistence.PersistenceUnitManager.addExtraPersistenceUnitInfos(PersistenceUnitManager.java:88) at org.ow2.easybeans.persistence.PersistenceUnitManager.<init>(PersistenceUnitManager.java:64) at org.ow2.easybeans.persistence.xml.PersistenceXmlFileAnalyzer.analyzePersistenceXmlFile(PersistenceXmlFileAnalyzer.java:192) at org.ow2.easybeans.container.JContainer3.start(JContainer3.java:384) at org.ow2.easybeans.osgi.ejbjar.Activator.startContainer(Activator.java:150) at org.ow2.easybeans.osgi.ejbjar.Activator.start(Activator.java:102) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003) ... 14 more Caused by: java.io.FileNotFoundException: C:\eclipse3_4\configuration\org.eclipse.rap.target-1.1.1\eclipse\plugins\easybeans-examples-entitybean-1.1.0-M3\META-INF (Access is denied) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at org.eclipse.osgi.framework.util.SecureAction.getFileInputStream(SecureAction.java:124) at org.eclipse.osgi.baseadaptor.bundlefile.FileBundleEntry.getInputStream(FileBundleEntry.java:50) at org.eclipse.osgi.framework.internal.core.BundleURLConnection.connect(BundleURLConnection.java:53) at org.eclipse.osgi.framework.internal.core.BundleURLConnection.getInputStream(BundleURLConnection.java:99) at org.hibernate.ejb.packaging.BundleVisitor.doProcessElements(BundleVisitor.java:95) at org.hibernate.ejb.packaging.AbstractJarVisitor.getMatchingEntries(AbstractJarVisitor.java:139) at org.hibernate.ejb.Ejb3Configuration.addScannedEntries(Ejb3Configuration.java:287) at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:614) ... 27 more Nested Exception: java.lang.RuntimeException: Error while reading bundleentry://11/ at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:620) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:360) at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:131) at org.ow2.easybeans.persistence.JPersistenceContext.init(JPersistenceContext.java:72) at org.ow2.easybeans.persistence.JPersistenceContext.<init>(JPersistenceContext.java:65) at org.ow2.easybeans.persistence.PersistenceUnitManager.addExtraPersistenceUnitInfos(PersistenceUnitManager.java:88) at org.ow2.easybeans.persistence.PersistenceUnitManager.<init>(PersistenceUnitManager.java:64) at org.ow2.easybeans.persistence.xml.PersistenceXmlFileAnalyzer.analyzePersistenceXmlFile(PersistenceXmlFileAnalyzer.java:192) at org.ow2.easybeans.container.JContainer3.start(JContainer3.java:384) at org.ow2.easybeans.osgi.ejbjar.Activator.startContainer(Activator.java:150) at org.ow2.easybeans.osgi.ejbjar.Activator.start(Activator.java:102) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257) at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:257) 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.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:150) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:302) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:287) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:223) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.FileNotFoundException: C:\eclipse3_4\configuration\org.eclipse.rap.target-1.1.1\eclipse\plugins\easybeans-examples-entitybean-1.1.0-M3\META-INF (Access is denied) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at org.eclipse.osgi.framework.util.SecureAction.getFileInputStream(SecureAction.java:124) at org.eclipse.osgi.baseadaptor.bundlefile.FileBundleEntry.getInputStream(FileBundleEntry.java:50) at org.eclipse.osgi.framework.internal.core.BundleURLConnection.connect(BundleURLConnection.java:53) at org.eclipse.osgi.framework.internal.core.BundleURLConnection.getInputStream(BundleURLConnection.java:99) at org.hibernate.ejb.packaging.BundleVisitor.doProcessElements(BundleVisitor.java:95) at org.hibernate.ejb.packaging.AbstractJarVisitor.getMatchingEntries(AbstractJarVisitor.java:139) at org.hibernate.ejb.Ejb3Configuration.addScannedEntries(Ejb3Configuration.java:287) at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:614) ... 27 more Nested Exception: java.io.FileNotFoundException: C:\eclipse3_4\configuration\org.eclipse.rap.target-1.1.1\eclipse\plugins\easybeans-examples-entitybean-1.1.0-M3\META-INF (Access is denied) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at org.eclipse.osgi.framework.util.SecureAction.getFileInputStream(SecureAction.java:124) at org.eclipse.osgi.baseadaptor.bundlefile.FileBundleEntry.getInputStream(FileBundleEntry.java:50) at org.eclipse.osgi.framework.internal.core.BundleURLConnection.connect(BundleURLConnection.java:53) at org.eclipse.osgi.framework.internal.core.BundleURLConnection.getInputStream(BundleURLConnection.java:99) at org.hibernate.ejb.packaging.BundleVisitor.doProcessElements(BundleVisitor.java:95) at org.hibernate.ejb.packaging.AbstractJarVisitor.getMatchingEntries(AbstractJarVisitor.java:139) at org.hibernate.ejb.Ejb3Configuration.addScannedEntries(Ejb3Configuration.java:287) at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:614) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:360) at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:131) at org.ow2.easybeans.persistence.JPersistenceContext.init(JPersistenceContext.java:72) at org.ow2.easybeans.persistence.JPersistenceContext.<init>(JPersistenceContext.java:65) at org.ow2.easybeans.persistence.PersistenceUnitManager.addExtraPersistenceUnitInfos(PersistenceUnitManager.java:88) at org.ow2.easybeans.persistence.PersistenceUnitManager.<init>(PersistenceUnitManager.java:64) at org.ow2.easybeans.persistence.xml.PersistenceXmlFileAnalyzer.analyzePersistenceXmlFile(PersistenceXmlFileAnalyzer.java:192) at org.ow2.easybeans.container.JContainer3.start(JContainer3.java:384) at org.ow2.easybeans.osgi.ejbjar.Activator.startContainer(Activator.java:150) at org.ow2.easybeans.osgi.ejbjar.Activator.start(Activator.java:102) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257) at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:257) 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.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:150) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:302) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:287) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:223) at java.lang.Thread.run(Thread.java:619) Nested Exception: java.lang.RuntimeException: Error while reading bundleentry://11/ at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:620) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:360) at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:131) at org.ow2.easybeans.persistence.JPersistenceContext.init(JPersistenceContext.java:72) at org.ow2.easybeans.persistence.JPersistenceContext.<init>(JPersistenceContext.java:65) at org.ow2.easybeans.persistence.PersistenceUnitManager.addExtraPersistenceUnitInfos(PersistenceUnitManager.java:88) at org.ow2.easybeans.persistence.PersistenceUnitManager.<init>(PersistenceUnitManager.java:64) at org.ow2.easybeans.persistence.xml.PersistenceXmlFileAnalyzer.analyzePersistenceXmlFile(PersistenceXmlFileAnalyzer.java:192) at org.ow2.easybeans.container.JContainer3.start(JContainer3.java:384) at org.ow2.easybeans.osgi.ejbjar.Activator.startContainer(Activator.java:150) at org.ow2.easybeans.osgi.ejbjar.Activator.start(Activator.java:102) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257) at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:257) 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.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:150) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:302) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:287) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:223) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.FileNotFoundException: C:\eclipse3_4\configuration\org.eclipse.rap.target-1.1.1\eclipse\plugins\easybeans-examples-entitybean-1.1.0-M3\META-INF (Access is denied) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at org.eclipse.osgi.framework.util.SecureAction.getFileInputStream(SecureAction.java:124) at org.eclipse.osgi.baseadaptor.bundlefile.FileBundleEntry.getInputStream(FileBundleEntry.java:50) at org.eclipse.osgi.framework.internal.core.BundleURLConnection.connect(BundleURLConnection.java:53) at org.eclipse.osgi.framework.internal.core.BundleURLConnection.getInputStream(BundleURLConnection.java:99) at org.hibernate.ejb.packaging.BundleVisitor.doProcessElements(BundleVisitor.java:95) at org.hibernate.ejb.packaging.AbstractJarVisitor.getMatchingEntries(AbstractJarVisitor.java:139) at org.hibernate.ejb.Ejb3Configuration.addScannedEntries(Ejb3Configuration.java:287) at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:614) ... 27 more Nested Exception: java.io.FileNotFoundException: C:\eclipse3_4\configuration\org.eclipse.rap.target-1.1.1\eclipse\plugins\easybeans-examples-entitybean-1.1.0-M3\META-INF (Access is denied) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at org.eclipse.osgi.framework.util.SecureAction.getFileInputStream(SecureAction.java:124) at org.eclipse.osgi.baseadaptor.bundlefile.FileBundleEntry.getInputStream(FileBundleEntry.java:50) at org.eclipse.osgi.framework.internal.core.BundleURLConnection.connect(BundleURLConnection.java:53) at org.eclipse.osgi.framework.internal.core.BundleURLConnection.getInputStream(BundleURLConnection.java:99) at org.hibernate.ejb.packaging.BundleVisitor.doProcessElements(BundleVisitor.java:95) at org.hibernate.ejb.packaging.AbstractJarVisitor.getMatchingEntries(AbstractJarVisitor.java:139) at org.hibernate.ejb.Ejb3Configuration.addScannedEntries(Ejb3Configuration.java:287) at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:614) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:360) at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:131) at org.ow2.easybeans.persistence.JPersistenceContext.init(JPersistenceContext.java:72) at org.ow2.easybeans.persistence.JPersistenceContext.<init>(JPersistenceContext.java:65) at org.ow2.easybeans.persistence.PersistenceUnitManager.addExtraPersistenceUnitInfos(PersistenceUnitManager.java:88) at org.ow2.easybeans.persistence.PersistenceUnitManager.<init>(PersistenceUnitManager.java:64) at org.ow2.easybeans.persistence.xml.PersistenceXmlFileAnalyzer.analyzePersistenceXmlFile(PersistenceXmlFileAnalyzer.java:192) at org.ow2.easybeans.container.JContainer3.start(JContainer3.java:384) at org.ow2.easybeans.osgi.ejbjar.Activator.startContainer(Activator.java:150) at org.ow2.easybeans.osgi.ejbjar.Activator.start(Activator.java:102) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:265) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:257) at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:257) 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.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:150) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:302) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:287) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:223) at java.lang.Thread.run(Thread.java:619) osgi>
    via by Clemens Gantert,
    • java.io.FileNotFoundException: C:\Documents and Settings\mkostrze\sv-head2\com.pentacomp.dbmodel (Access denied) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at org.eclipse.osgi.framework.util.SecureAction.getFileInputStream(SecureAction.java:99) at org.eclipse.osgi.baseadaptor.bundlefile.FileBundleEntry.getInputStream(FileBundleEntry.java:50) at org.eclipse.osgi.framework.internal.core.BundleURLConnection.connect(BundleURLConnection.java:53) at org.eclipse.osgi.framework.internal.core.BundleURLConnection.getInputStream(BundleURLConnection.java:99) at java.net.URL.openStream(URL.java:1007) at org.hibernate.ejb.packaging.InputStreamZippedJarVisitor.doProcessElements(InputStreamZippedJarVisitor.java:33) at org.hibernate.ejb.packaging.JarVisitor.getMatchingEntries(JarVisitor.java:215) at org.hibernate.ejb.Ejb3Configuration.addMetadataFromVisitor(Ejb3Configuration.java:253) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:229) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:120) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51) at com.pentacomp.dicom.viewer.ViewerContstants.createEntityManager(ViewerContstants.java:170) at com.pentacomp.dicom.viewer.DicomViewerMainFrame$InitRepositoriesTask.call(DicomViewerMainFrame.java:146)

    Users with the same issue

    Unknown visitor1 times, last one,
    krisztian.puska
    54 times, last one,
    jstrayer
    1 times, last one,
    jf-ast
    2 times, last one,
    carloscharx
    2 times, last one,
    179 more bugmates