lukefitzwolfgang / icatproject

Automatically exported from code.google.com/p/icatproject
0 stars 0 forks source link

Lucene is not optional #151

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I commented out the Lucence specific lines in the icat.properties file.

group = c.service.search(c.getSessionId(), "Group")[0]
rule = c.factory.create("rule")
rule.grouping = group
rule.crudFlags = "CRUD"
rule.what = "Investigation"

c.service.create(c.getSessionId(), rule)

This throws the following Exception:

Client side:
WebFault: Server raised fault: 'IllegalStateExceptionTransaction is not active 
in the current thread.'

Server side:
[2015-02-09T16:52:10.357+0100] [glassfish 4.0] [WARNING] [ejb.system_exception] 
[javax.enterprise.system.container.ejb.com.sun.ejb.containers] [tid: 
_ThreadID=40 _ThreadName=jk-connector(3)] [timeMillis: 1423497130357] 
[levelValue: 900] [[
  EJB5184:A system exception occurred during an invocation on EJB LuceneSingleton, method: public void org.icatproject.core.manager.LuceneSingleton.addDocument(org.icatproject.core.entity.EntityBaseBean) throws org.icatproject.core.IcatException]]

Original issue reported on code.google.com by dr.s.m.f...@gmail.com on 12 Feb 2015 at 11:19

GoogleCodeExporter commented 9 years ago
This used to work but stopped working when multiple ICATs were supported in 
4.3.3.
A fix is now checked in.

Original comment by dr.s.m.f...@gmail.com on 17 Feb 2015 at 11:33