crash on automated script step parameter replacement
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Goobi.Production | Status tracked in 1.10 | |||||
1.10 |
New
|
Undecided
|
Unassigned | |||
1.8 |
Fix Released
|
High
|
Henning Gerhardt |
Bug Description
When using automated script steps one can use a set of dynamic parameters to pass process parameters to external programs. An automated script call can look like this: /usr/local/
By looking at the source code, three selectors are available:
1- template Referring to a processes template
2- process Referring to the process itself
3- product Referring to product description
Unfortunately, the variable resolving mechanism is bound to a hibernate session which seem to have disappeared at time of the resolving. The application crashes on execution of the defined step:
ERROR 2012-08-22 14:54:20,413 (LazyInitializa
failed to lazily initialize a collection of role: de.sub.
org.hibernate.
at org.hibernate.
at org.hibernate.
at org.hibernate.
at org.hibernate.
at org.hibernate.
at java.util.
at de.sub.
at sun.reflect.
at sun.reflect.
at sun.reflect.
at java.lang.
at org.hibernate.
at de.sub.
at de.sub.
at de.sub.
at de.sub.
at de.sub.
Related branches
- Henning Gerhardt: Approve
-
Diff: 313 lines (+254/-14)4 files modifiedsrc/de/sub/goobi/helper/HelperSchritte.java (+20/-11)
src/de/sub/goobi/helper/ScriptThread.java (+0/-3)
src/org/goobi/thread/Supervisor.java (+123/-0)
test/src/org/goobi/thread/SupervisorTest.java (+111/-0)