Hi!

I've been trying to set up Eclipse and iReport so that I can create
some custom reports for SLM, but this has proven difficult. I'll explain
what I've done and where it fails:
1) I've followed all instructions on this page:
'Sentinel Development Environment'
(http://www.novell.com/developer/sent...vironment.html)
I get the following error in step 4 in the section entitled
"Enabling Previewing
Reports That Query The Sentinel Log Manager Event Store"
Exception in thread "main" 05.jan.2011 14:37:12
esecurity.base.error.SentinelErrorCodes <clinit>
INFO: There are 71 defined error codes.
esecurity.base.exceptions.RemoteException:
at
esecurity.db.object.IndexedLogSearchServiceRemoteI mpl.startSearch(Ind
exedLogSearchServiceRemoteImpl.java:54)
at
com.novell.reports.jasper.data.event.EventDataSour ce.nextEvent(EventD
ataSource.java:156)
at
com.novell.reports.jasper.data.event.EventDataSour ce.next(EventDataSo
urce.java:145)
at
com.novell.reports.jasper.data.event.ConnectionChe ck.main(ConnectionC
heck.java:66)
Caused by: esecurity.base.exceptions.RemoteException:
at
esecurity.base.datamodel.method.MethodResult.setEx ception(MethodResul
t.java:55)
at
esecurity.base.ccs.comp.BaseRemoteObjectTask.execu te(BaseRemoteObject
Task.java:120)
at
esecurity.base.ccs.comp.GenericRemoteObjectTask.pr ocessRequest(Generi
cRemoteObjectTask.java:86)
at
esecurity.base.ccs.comp.GenericTask.process(Generi cTask.java:91)
at
esecurity.base.ccs.comp.GenericTask.process(Generi cTask.java:65)
at esecurity.base.ccs.comp.BaseTask.run(BaseTask.java :52)
at
esecurity.base.ccs.comp.threadpool.TaskThreadPool$ RunWrapper.run(Task
ThreadPool.java:89)
at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Wo rker.run(PooledExec
utor.java:732)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
esecurity.base.ccs.comp.BaseRemoteObjectTask.execu te(BaseRemoteObject
Task.java:113)
... 7 more
Caused by: java.lang.RuntimeException: No param auditInfo for method id
= _start
Search_,name = startSearch
param=startTime, type=java.util.Date, value=nullparam=limit, type=long,
value=1p
aram=sortFields, type=java.util.List, value=nullparam=searchString,
type=String,
value=sev:[9 TO 9] MAXCOUNT=1param=pageSize, type=integer,
value=10000param=end
Time, type=java.util.Date, value=nullparam=user, type=String,
value=admin
at
esecurity.base.datamodel.method.ObjMethod.getParam (ObjMethod.java:250
)
at
esecurity.base.datamodel.method.ObjMethod.getDataO bjectValue(ObjMetho
d.java:107)
at
esecurity.db.object.IndexedLogSearchServiceServerS tub._startSearch_(I
ndexedLogSearchServiceServerStub.java:66)
... 12 more

I noticed another thread on this error, but as you can see from the
configuration.xml file I am using the system user so rights shouldn't be
the cause here:
<strategy active="yes" id="sentinel_client"
location="com.esecurity.common.communication.strat egy.jmsstrategy.activemq.ActiveMQStrategyFactory"
name="ActiveMQ">
<jms
brokerURL="ssl://x.x.x.x:61616??wireFormat.maxInactivityDuration=0"
interceptors="compression"
keystore="C:\\Users\\ragsto\\Development\\Sentinel
SDK\\content\\dev\\sdk\\build\\config\\.activemqcl ientkeystore.jks"
keystorePassword="password" password="832f515a51412dec5ec22dfa756693ab"
username="system"/>
</strategy>

I decided test the reports even with this error, but whenever I open a
TemplateReport.jrxml I immediately get the following error:
net.sf.jasperreports.engine.JRRuntimeException:
net.sf.jasperreports.engine.JRException: Class
com.novell.reports.jasper.data.event.LuceneEventQu eryExecutorFactory not
found.

In the DOS window where I started iReport from, I get the following
error:
Can't find the translation for key =
gui.elementpropertiessheet.sheetProperty.re
nderType: using default (Render type)
Can't find the translation for key =
gui.elementpropertiessheet.sheetProperty.re
nderType: using default (Render type)
End event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.commons.beanutils.MethodUtils.invokeMet hod(MethodUtils.jav
a:216)
at
org.apache.commons.digester.SetNextRule.end(SetNex tRule.java:216)
at org.apache.commons.digester.Rule.end(Rule.java:230 )
at
org.apache.commons.digester.Digester.endElement(Di gester.java:1130)
at
it.businesslogic.ireport.compiler.xml.SourceTraceD igester.endElement(
SourceTraceDigester.java:159)
at
org.apache.xerces.parsers.AbstractSAXParser.endEle ment(Unknown Source
)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endName spaceScope(Unknown
Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleE ndElement(Unknown S
ource)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endElem ent(Unknown Source)

at
org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanEndElement(
Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse (Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse (Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse( Unknown
Source)
at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser .parse(Unknown Sour
ce)
at
org.apache.commons.digester.Digester.parse(Digeste r.java:1647)
at
net.sf.jasperreports.engine.xml.JRXmlLoader.loadXM L(JRXmlLoader.java:
239)
at
net.sf.jasperreports.engine.xml.JRXmlLoader.loadXM L(JRXmlLoader.java:
226)
at
it.businesslogic.ireport.IReportCompiler.loadJaspe rDesign(IReportComp
iler.java:2125)
at
it.businesslogic.ireport.DesignVerifyerThread.veri fyDesign(DesignVeri
fyerThread.java:145)
at
it.businesslogic.ireport.DesignVerifyerThread.run( DesignVerifyerThrea
d.java:92)
at java.lang.Thread.run(Unknown Source)
Caused by: net.sf.jasperreports.engine.JRRuntimeException:
net.sf.jasperreports.
engine.JRException: Class
com.novell.reports.jasper.data.event.LuceneEventQu eryE
xecutorFactory not found.
at
net.sf.jasperreports.engine.design.JRDesignDataset .queryLanguageChang
ed(JRDesignDataset.java:914)
at
net.sf.jasperreports.engine.design.JRDesignDataset .setQuery(JRDesignD
ataset.java:448)
at
net.sf.jasperreports.engine.design.JasperDesign.se tQuery(JasperDesign
.java:806)
... 28 more
Caused by: net.sf.jasperreports.engine.JRException: Class
com.novell.reports.jas
per.data.event.LuceneEventQueryExecutorFactory not found.
at
net.sf.jasperreports.engine.util.JRSingletonCache. createInstance(JRSi
ngletonCache.java:98)
at
net.sf.jasperreports.engine.util.JRSingletonCache. getCachedInstance(J
RSingletonCache.java:78)
at
net.sf.jasperreports.engine.util.JRQueryExecuterUt ils.getQueryExecute
rFactory(JRQueryExecuterUtils.java:60)
at
net.sf.jasperreports.engine.design.JRDesignDataset .queryLanguageChang
ed(JRDesignDataset.java:903)
... 30 more
Caused by: java.lang.ClassNotFoundException:
com.novell.reports.jasper.data.even
t.LuceneEventQueryExecutorFactory
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
net.sf.jasperreports.engine.util.JRClassLoader.loa dClassForRealName(J
RClassLoader.java:179)
at
net.sf.jasperreports.engine.util.JRClassLoader.loa dClassForName(JRCla
ssLoader.java:119)
at
net.sf.jasperreports.engine.util.JRSingletonCache. createInstance(JRSi
ngletonCache.java:88)
... 33 more
locationFileName does not exisit

It looks to me like there's a problem with the Lucene connection, but
the connection test works..?

When I try to compile the report, I get the following errors:
The method DatePrepare(String, String, String) is undefined for the
type TemplateReportScriptlet
The method DatePrepare(String, String, String) is undefined for the
type TemplateReportScriptlet
The method getKeyColors() is undefined for the type
TemplateReportScriptlet
The method getKeyColors() is undefined for the type
TemplateReportScriptlet
The method DatePrepare(String, String, String) is undefined for the
type TemplateReportScriptlet

This is similar to another users error, but I wasn't able to solve my
problem by compiling in iReport 3.7.6 - I just get different errors.
Since I am not very familiar with Java, I have no idea on how to
troubleshoot this. Can anyone assist, please?

Ragnar StorstrÝm


--
rstorstrom
------------------------------------------------------------------------
rstorstrom's Profile: http://forums.novell.com/member.php?userid=5064
View this thread: http://forums.novell.com/showthread.php?t=429304