
|
If you were logged in you would be able to see more operations.
|
|
|
|
|
| Component/s: |
Jobs
|
| Affects Version/s: |
1.6.1
|
| Fix Version/s: |
None
|
|
|
Environment:
|
Oracle JDeveloper using OC4J (-userThreads turned on)
|
|
|
1.6.1 RC1
In the getLastModifiedDate() of FileScanJob.java, there is an attempt to load the file via
URL resource = Thread.currentThread().getContextClassLoader().getResource(fileName);
Issue: The context is limited to files in the threads context, hence only file in /WEB-INF/lib are allowed to be loaded. Not very helpful.
Issue: If the getResource() fails, the URL resource is null, and a subsequent line throws a null pointer exception.
Tried with quartz.properties
threadsInheritContextClassLoaderOfInitializingThread = false
and threadsInheritContextClassLoaderOfInitializingThread = true
with no difference.
The production 1.6.0 version works (getLastModifiedDate() uses File() in this version)
Try getResource() first, if that returns null, revert to File() as in 1.6.0, If that fails throw a more useful error.
Extra Suggestion: Allow a File object to be passed to the FileScanJob in addtion to the String fileName.
|
|
Description
|
1.6.1 RC1
In the getLastModifiedDate() of FileScanJob.java, there is an attempt to load the file via
URL resource = Thread.currentThread().getContextClassLoader().getResource(fileName);
Issue: The context is limited to files in the threads context, hence only file in /WEB-INF/lib are allowed to be loaded. Not very helpful.
Issue: If the getResource() fails, the URL resource is null, and a subsequent line throws a null pointer exception.
Tried with quartz.properties
threadsInheritContextClassLoaderOfInitializingThread = false
and threadsInheritContextClassLoaderOfInitializingThread = true
with no difference.
The production 1.6.0 version works (getLastModifiedDate() uses File() in this version)
Try getResource() first, if that returns null, revert to File() as in 1.6.0, If that fails throw a more useful error.
Extra Suggestion: Allow a File object to be passed to the FileScanJob in addtion to the String fileName.
|
Show » |
|
private Set jobListeners = SetUtils.orderedSet(new HashSet());
I would think you would just define it null, and initialize it in a constructor, where you can catch an error (like not having the latest commons-collections). That was 1/2 hour of research.
I agree with removing the dependence on commons.