Mantis - Resin
Viewing Issue Advanced Details
3675 minor always 09-04-09 12:57 09-04-09 14:27
hontvari  
ferg  
normal  
closed 4.0.1  
fixed  
none    
none 4.0.2  
0003675: CanDI custom scope and /tmp/caucho/qa/temp.class
I tried to use a custom scope but Resin stops with a FileNotFoundException: \tmp\caucho\qa\temp.class

I noticed that there was an empty C:\tmp\caucho directory on the hard disk. I created a subdirectory named "qa", and then Reson didn't throw the exception.
Here is the full stack trace:
[09-09-04 21:08:57.671] {main} InjectManager[web-app:http://default/test] [^] bind(MailTransaction,[@javax.enterprise.inject.Current()]) -> [InjectBean[ManagedBeanImpl[MailTransaction
[09-09-04 21:08:57.703] {main} WebApp[http://default/test] [^] error
[09-09-04 21:08:57.703] {main} com.caucho.config.ConfigException: test.RefuseBlacklisted.mailTransaction: java.lang.RuntimeException: java.io.FileNotFoundException: \tmp\caucho\qa
[09-09-04 21:08:57.703] {main} at com.caucho.config.ConfigException.create(ConfigException.java:104)
[09-09-04 21:08:57.703] {main} at com.caucho.config.ConfigException.create(ConfigException.java:127)
[09-09-04 21:08:57.703] {main} at com.caucho.config.inject.InjectionTargetImpl$FieldInjectProgram.inject(InjectionTargetImpl.java:838)
[09-09-04 21:08:57.703] {main} at com.caucho.config.inject.InjectionTargetImpl.inject(InjectionTargetImpl.java:315)
[09-09-04 21:08:57.703] {main} at com.caucho.config.types.XmlBean.inject(XmlBean.java:156)
[09-09-04 21:08:57.703] {main} at com.caucho.config.types.XmlBean.create(XmlBean.java:121)
[09-09-04 21:08:57.703] {main} at com.caucho.config.scope.ScopeContext.get(ScopeContext.java:97)
[09-09-04 21:08:57.703] {main} at com.caucho.config.inject.InjectManager.getInstanceRec(InjectManager.java:1425)
[09-09-04 21:08:57.703] {main} at com.caucho.config.inject.InjectManager.getReference(InjectManager.java:1338)
[09-09-04 21:08:57.703] {main} at com.caucho.config.inject.XmlStandardPlugin.processAfterValidation(XmlStandardPlugin.java:193)
[09-09-04 21:08:57.703] {main} at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[09-09-04 21:08:57.703] {main} at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[09-09-04 21:08:57.703] {main} at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[09-09-04 21:08:57.703] {main} at java.lang.reflect.Method.invoke(Unknown Source)
[09-09-04 21:08:57.703] {main} at com.caucho.config.inject.InjectManager$ExtensionObserver.notify(InjectManager.java:3155)
[09-09-04 21:08:57.703] {main} at com.caucho.config.inject.ObserverMap.fireEvent(ObserverMap.java:88)
[09-09-04 21:08:57.703] {main} at com.caucho.config.inject.InjectManager.fireEventImpl(InjectManager.java:1783)
[09-09-04 21:08:57.703] {main} at com.caucho.config.inject.InjectManager.fireEvent(InjectManager.java:1757)
[09-09-04 21:08:57.703] {main} at com.caucho.config.inject.InjectManager.bind(InjectManager.java:2457)
[09-09-04 21:08:57.703] {main} at com.caucho.config.inject.InjectManager.environmentBind(InjectManager.java:2492)
[09-09-04 21:08:57.703] {main} at com.caucho.loader.EnvironmentClassLoader.bind(EnvironmentClassLoader.java:720)
[09-09-04 21:08:57.703] {main} at com.caucho.loader.EnvironmentClassLoader.start(EnvironmentClassLoader.java:737)
[09-09-04 21:08:57.703] {main} at com.caucho.server.webapp.WebApp.start(WebApp.java:2358)
[09-09-04 21:08:57.703] {main} at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:693)
[09-09-04 21:08:57.703] {main} at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
[09-09-04 21:08:57.703] {main} at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:557)
[09-09-04 21:08:57.703] {main} at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160)
[09-09-04 21:08:57.703] {main} at com.caucho.server.webapp.WebAppContainer.startImpl(WebAppContainer.java:707)
[09-09-04 21:08:57.703] {main} at com.caucho.server.host.Host.startImpl(Host.java:496)
[09-09-04 21:08:57.703] {main} at com.caucho.server.webapp.WebAppContainer.start(WebAppContainer.java:687)
[09-09-04 21:08:57.703] {main} at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:693)
[09-09-04 21:08:57.703] {main} at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
[09-09-04 21:08:57.703] {main} at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:557)
[09-09-04 21:08:57.703] {main} at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:160)
[09-09-04 21:08:57.703] {main} at com.caucho.server.host.HostContainer.start(HostContainer.java:484)
[09-09-04 21:08:57.703] {main} at com.caucho.server.cluster.Server.start(Server.java:1817)
[09-09-04 21:08:57.703] {main} at com.caucho.server.resin.Resin.createServer(Resin.java:950)
[09-09-04 21:08:57.703] {main} at com.caucho.server.resin.Resin.start(Resin.java:1021)
[09-09-04 21:08:57.703] {main} at com.caucho.server.resin.Resin.initMain(Resin.java:1494)
[09-09-04 21:08:57.703] {main} at com.caucho.server.resin.Resin.main(Resin.java:1683)
[09-09-04 21:08:57.703] {main} Caused by: java.lang.RuntimeException: java.io.FileNotFoundException: \tmp\caucho\qa\temp.class (The system cannot find the path specified)
[09-09-04 21:08:57.703] {main} at com.caucho.config.bytecode.ScopeAdapter.generateProxy(ScopeAdapter.java:178)
[09-09-04 21:08:57.703] {main} at com.caucho.config.bytecode.ScopeAdapter.<init>(ScopeAdapter.java:61)
[09-09-04 21:08:57.703] {main} at com.caucho.config.bytecode.ScopeAdapter.create(ScopeAdapter.java:66)
[09-09-04 21:08:57.703] {main} at com.caucho.config.inject.ManagedBeanImpl.getScopeAdapter(ManagedBeanImpl.java:204)
[09-09-04 21:08:57.703] {main} at com.caucho.config.inject.InjectManager$InjectBean.getScopeAdapter(InjectManager.java:3215)
[09-09-04 21:08:57.703] {main} at com.caucho.config.inject.InjectManager.getInjectableReference(InjectManager.java:1499)
[09-09-04 21:08:57.703] {main} at com.caucho.config.inject.InjectionTargetImpl$FieldInjectProgram.inject(InjectionTargetImpl.java:834)
[09-09-04 21:08:57.703] {main} ... 37 more
[09-09-04 21:08:57.703] {main} Caused by: java.io.FileNotFoundException: \tmp\caucho\qa\temp.class (The system cannot find the path specified)
[09-09-04 21:08:57.703] {main} at java.io.FileOutputStream.open(Native Method)
[09-09-04 21:08:57.703] {main} at java.io.FileOutputStream.<init>(Unknown Source)
[09-09-04 21:08:57.703] {main} at java.io.FileOutputStream.<init>(Unknown Source)
[09-09-04 21:08:57.703] {main} at com.caucho.vfs.FilePath.openWriteImpl(FilePath.java:560)
[09-09-04 21:08:57.703] {main} at com.caucho.vfs.Path.openWrite(Path.java:1097)
[09-09-04 21:08:57.703] {main} at com.caucho.config.bytecode.ScopeAdapter.generateProxy(ScopeAdapter.java:168)
[09-09-04 21:08:57.703] {main} ... 43 more
[09-09-04 21:08:57.718] {main} InjectManager[host:default] fireEvent BeforeBeanDiscoveryImpl[InjectManager[host:default]]
[09-09-04 21:08:57.718] {main} InjectManager[host:default] fireEvent AfterBeanDiscoveryImpl[InjectManager[host:default]]
[09-09-04 21:08:57.718] {main} InjectManager[host:default] fireEvent AfterDeploymentValidationImpl[InjectManager[host:default]]
[09-09-04 21:08:57.718] {main} Host[default] active

There are no notes attached to this issue.