My Environment: WireBox 1.5.0 Railo 3.3.1 Tomcat 7 Java 7 Amazon Linux
I was getting an error with the shutdown method related to trying to shutdown cacheBox. I'm not currently using cacheBox so the instance.cacheBox variable wasn't set in the injector which caused the instance.cacheBox.shutdown() command to fail (line 190 in wirebox-1.5). I made a small change to the shutdown method in "wirebox.system.ioc.Injector" to get it to work.
The original code was: // standalone cachebox? Yes, then shut it down baby! if( NOT isColdBoxLinked() ){ instance.cacheBox.shutdown(); }
I changed it to: // standalone cachebox? Yes, then shut it down baby! if( isCacheBoxLinked() ){ instance.cacheBox.shutdown(); }
With the change, the shutdown completes without errors, but if I should be doing something else please let me know.
Gliffy Diagrams
Activity
Show:
Luis MajanoDecember 5, 2013 at 6:33 PM
already fixed in dev branch
Fixed
Pinned fields
Click on the next to a field label to start pinning.
This issue was discovered as part of a forum discussion: https://groups.google.com/d/topic/coldbox/BeQry05OujI/discussion
My Environment:
WireBox 1.5.0
Railo 3.3.1
Tomcat 7
Java 7
Amazon Linux
I was getting an error with the shutdown method related to trying to shutdown cacheBox. I'm not currently using cacheBox so the instance.cacheBox variable wasn't set in the injector which caused the instance.cacheBox.shutdown() command to fail (line 190 in wirebox-1.5). I made a small change to the shutdown method in "wirebox.system.ioc.Injector" to get it to work.
The original code was:
// standalone cachebox? Yes, then shut it down baby!
if( NOT isColdBoxLinked() ){
instance.cacheBox.shutdown();
}
I changed it to:
// standalone cachebox? Yes, then shut it down baby!
if( isCacheBoxLinked() ){
instance.cacheBox.shutdown();
}
With the change, the shutdown completes without errors, but if I should be doing something else please let me know.