Anonymous_User Absent Member.
Absent Member.
1182 views

Problems setting up iReport for SLM development


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/sentinel_development_environment.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.IndexedLogSearchServiceRemoteImpl.startSearch(Ind
exedLogSearchServiceRemoteImpl.java:54)
at
com.novell.reports.jasper.data.event.EventDataSource.nextEvent(EventD
ataSource.java:156)
at
com.novell.reports.jasper.data.event.EventDataSource.next(EventDataSo
urce.java:145)
at
com.novell.reports.jasper.data.event.ConnectionCheck.main(ConnectionC
heck.java:66)
Caused by: esecurity.base.exceptions.RemoteException:
at
esecurity.base.datamodel.method.MethodResult.setException(MethodResul
t.java:55)
at
esecurity.base.ccs.comp.BaseRemoteObjectTask.execute(BaseRemoteObject
Task.java:120)
at
esecurity.base.ccs.comp.GenericRemoteObjectTask.processRequest(Generi
cRemoteObjectTask.java:86)
at
esecurity.base.ccs.comp.GenericTask.process(GenericTask.java:91)
at
esecurity.base.ccs.comp.GenericTask.process(GenericTask.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$Worker.run(PooledExec
utor.java:732)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
esecurity.base.ccs.comp.BaseRemoteObjectTask.execute(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.getDataObjectValue(ObjMetho
d.java:107)
at
esecurity.db.object.IndexedLogSearchServiceServerStub._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.strategy.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\\.activemqclientkeystore.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.LuceneEventQueryExecutorFactory 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(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.jav
a:216)
at
org.apache.commons.digester.SetNextRule.end(SetNextRule.java:216)
at org.apache.commons.digester.Rule.end(Rule.java:230)
at
org.apache.commons.digester.Digester.endElement(Digester.java:1130)
at
it.businesslogic.ireport.compiler.xml.SourceTraceDigester.endElement(
SourceTraceDigester.java:159)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source
)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown
Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown S
ource)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)

at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.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(Digester.java:1647)
at
net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:
239)
at
net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:
226)
at
it.businesslogic.ireport.IReportCompiler.loadJasperDesign(IReportComp
iler.java:2125)
at
it.businesslogic.ireport.DesignVerifyerThread.verifyDesign(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.LuceneEventQueryE
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.setQuery(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.JRQueryExecuterUtils.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.loadClassForRealName(J
RClassLoader.java:179)
at
net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(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

0 Likes
12 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Problems setting up iReport for SLM development


Hi there,

I think there are multiple problems here. First off, it doesn't look
like you're actually able to connect to your SLM system. I'd try editing
your configuration.xml file:
- Am I to assume that you'd x'd out your real IP address? I hope you
aren't actually using 'x.x.x.x' 😉
- Maybe try a path that doesn't include any spaces in it as a location
for the JKS file?

Before you proceed to iReport, make sure you can get that connection
test working without errors.

Then in iReport, it looks to me like you haven't properly added the
relevant JARs to the classpath. It seems like iReport sometimes "loses"
that information, and you have to redo it.


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

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Problems setting up iReport for SLM development


> Am I to assume that you'd x'd out your real IP address? I hope you

aren't actually using 'x.x.x.x' 😉

It's a public IP address, so yes, I had to comment out the address.
🙂

> - Maybe try a path that doesn't include any spaces in it as a

location for the JKS file?

Yes, I thought that might be a problem but since writing this message I
tried to install on a server - this time without spaces in the name. But
I get exactly the same problems. Both the server and the PC are 64-bit,
though - could that cause problems?

>Before you proceed to iReport, make sure you can get that connection

test working
>without errors.


Every time I try the connection test I get the same result,
unfortunately. Even on the freshly installed server...

>Then in iReport, it looks to me like you haven't properly added the

relevant JARs to
>the classpath. It seems like iReport sometimes "loses" that

information, and you
>have to redo it.


I'm aware of that potential problem, but I've actually reviewed the
classpath parameters at least three times - and they are correct. But
I'll add all the paths once more, just to make sure I haven't missed
anything.

Thanks for your help, btw, and my apologies for the late reply. I
turned on the subscribe to replies option, but I didn't actually get any
notification when you replied. But I'll check periodically from now
on... 🙂

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

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Problems setting up iReport for SLM development


Hi there,

I recently updated the SDK install instructions; it seems that a couple
people have had better luck in iReport adding the chartcustomizer.jar
explicitly, rather than its containing folder. See 'Sentinel Development
Environment'
(http://www.novell.com/developer/sentinel_development_environment.html)

I've also asked the developer of the SLM Lucene driver to take a look
at your issue and provide some troubleshooting steps. Hopefully he will
respond soon.


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

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Problems setting up iReport for SLM development


Not sure if if you are working with Carl on this... As this problem
sounds very similar to what he was running into... So just in case let
me reply....

It sounds like you are getting this error when attempting the command
line connection check?

Whenever I see something like an "InvocationTargetException",
"NoSuchMethodException", "ClassNotFoundException" or a "no param"
error... It usually turns out to be a mismatch of the .jar files in your
SDK and the .jar files on the SLM system you are connecting to.

So I would try doing the following to make sure your SDK is using the
exact same .jars as the SLM system you are connecting to:

STEP 1: In your SDK, make a backup of your content/dev/sdk/build
directory ... just in case. (This is the same directory your ESEC_HOME
should be pointing to and should contain such jar files as ccsbase.jar,
ccsapp.jar, dataobjects.jar, reports.jar.... and several others.

STEP 2: Copy the corresponding .jar files from the $APP_HOME/lib
directorectory (a.k.a. /opt/novell/sentinel_log_mgr/lib) of your SLM box
back to the content/dev/sdk/build directory of your SDK. (The most
important jars are ccsbase.jar, ccsapp.jar, dataobjects.jar,
reports.jar... but it is fine to just copy all of the jars for your
$APP_HOME/lib directory to your sdk/build directory). (This will
essentially ensure that your SDK is using the same .jars as the SLM
system you are trying to connect to.)

STEP 3: Try the ConnectionCheck again! It will hopefully work now.

NOTE: As we get more versions of SLM and soon versions of Sentinel
7/Proof that also use the Lucene interface to report on Event Data... I
imagine this problem will come up more often. That is, the .jars in the
SDK will not necessarily match the system you are developing reports
against. We may need to just update the SDK instructions to make the
above steps of copying the .jar files from the server you are trying to
connect to ... part of the standard SDK setup procedure. TBD.


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

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Problems setting up iReport for SLM development


That fixed the problem with the connection check - thank you! But I
still have two problems left:
1) When I create a new report in Eclipse and try to compile it in
iReport I get the following error:
Compiling to file... C:\proj\content\dev\reports\Testing\Test av
rapportlaging\6.1\TemplateReport.jasper ->
C:\proj\content\dev\reports\Testing\Test av
rapportlaging\6.1\TemplateReport.java
net.sf.jasperreports.engine.design.JRValidationFault@2f14441e*java.lang.ClassNotFoundException:*TemplateReportClass
Line:*21,*Column:*36*JRXML*Element:*/jasperReport
Exception*in*thread*"AWT-EventQueue-0"*java.lang.ArrayIndexOutOfBoundsException:*2*>=*2
****at*java.util.Vector.elementAt(Unknown*Source)
****at*javax.swing.plaf.basic.BasicTabbedPaneUI.getTextViewForTab(Unknown*Source)
****at*javax.swing.plaf.basic.BasicTabbedPaneUI.calculateTabHeight(Unknown*Source)
****at*javax.swing.plaf.basic.BasicTabbedPaneUI.calculateMaxTabHeight(Unknown*Source)
****at*javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.calculateTabRects(Unknown*Source)
****at*javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.calculateLayoutInfo(Unknown*Source)
****at*javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.layoutContainer(Unknown*Source)
****at*java.awt.Container.layout(Unknown*Source)
****at*java.awt.Container.doLayout(Unknown*Source)
****at*java.awt.Container.validateTree(Unknown*Source)
****at*java.awt.Container.validateTree(Unknown*Source)
****at*java.awt.Container.validateTree(Unknown*Source)
****at*java.awt.Container.validateTree(Unknown*Source)
****at*java.awt.Container.validateTree(Unknown*Source)
****at*java.awt.Container.validateTree(Unknown*Source)
****at*java.awt.Container.validateTree(Unknown*Source)
****at*java.awt.Container.validate(Unknown*Source)
****at*javax.swing.RepaintManager.validateInvalidComponents(Unknown*Source)
****at*javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown*Source)
****at*java.awt.event.InvocationEvent.dispatch(Unknown*Source)
****at*java.awt.EventQueue.dispatchEvent(Unknown*Source)
****at*java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown*Source)
****at*java.awt.EventDispatchThread.pumpEventsForFilter(Unknown*Source)
****at*java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown*Source)
****at*java.awt.EventDispatchThread.pumpEvents(Unknown*Source)
****at*java.awt.EventDispatchThread.pumpEvents(Unknown*Source)
****at*java.awt.EventDispatchThread.run(Unknown*Source)
Exception*in*thread*"AWT-EventQueue-0"*java.lang.ArrayIndexOutOfBoundsException:*2*>=*2
****at*java.util.Vector.elementAt(Unknown*Source)
****at*javax.swing.plaf.basic.BasicTabbedPaneUI.getTextViewForTab(Unknown*Source)
****at*javax.swing.plaf.basic.BasicTabbedPaneUI.calculateTabHeight(Unknown*Source)
****at*javax.swing.plaf.basic.BasicTabbedPaneUI.calculateMaxTabHeight(Unknown*Source)
****at*javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.calculateTabRects(Unknown*Source)
****at*javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.calculateLayoutInfo(Unknown*Source)
****at*javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.layoutContainer(Unknown*Source)
****at*java.awt.Container.layout(Unknown*Source)
****at*java.awt.Container.doLayout(Unknown*Source)
****at*java.awt.Container.validateTree(Unknown*Source)
****at*java.awt.Container.validateTree(Unknown*Source)
****at*java.awt.Container.validateTree(Unknown*Source)
****at*java.awt.Container.validateTree(Unknown*Source)
****at*java.awt.Container.validateTree(Unknown*Source)
****at*java.awt.Container.validateTree(Unknown*Source)
****at*java.awt.Container.validateTree(Unknown*Source)
****at*java.awt.Container.validate(Unknown*Source)
****at*javax.swing.RepaintManager.validateInvalidComponents(Unknown*Source)
****at*javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown*Source)
****at*java.awt.event.InvocationEvent.dispatch(Unknown*Source)
****at*java.awt.EventQueue.dispatchEvent(Unknown*Source)
****at*java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown*Source)
****at*java.awt.EventDispatchThread.pumpEventsForFilter(Unknown*Source)
****at*java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown*Source)
****at*java.awt.EventDispatchThread.pumpEvents(Unknown*Source)
****at*java.awt.EventDispatchThread.pumpEvents(Unknown*Source)
****at*java.awt.EventDispatchThread.run(Unknown*Source)
net.sf.jasperreports.engine.design.JRValidationException:*Report*design*not*valid*:*
*****1.*java.lang.ClassNotFoundException:*TemplateReportClass
****at*net.sf.jasperreports.engine.design.JRAbstractCompiler.verifyDesign(JRAbstractCompiler.java:260)
****at*net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:144)
****at*it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:591)
****at*java.lang.Thread.run(Unknown*Source)
In Ant I see the following:
Buildfile: C:\proj\content\dev\reports\Testing\Test av
rapportlaging\6.1\build.xml
_checkrelease:
[echo]
[echo] The current release of this plug-in is version:
[echo] "1" --> (Testing Test av rapportlaging_6.1r1)
[echo] Do you want to increment the release number and create a
new release?
_newrelease:
_init:
[echo] Author information loaded from
C:\proj\content/dev/dev.properties
_typeInit:
scrub:
build-release:
_build-checks:
_init:
[echo] Author information loaded from
C:\proj\content/dev/dev.properties
_typeInit:
build-zip:
[delete] Deleting directory
C:\proj\content\build\Testing_Test-av-rapportlaging_6.1r1
_copy-plugin:
[copy] Copying 1 file to
C:\proj\content\build\Testing_Test-av-rapportlaging_6.1r1\plugin
[copy] Copying 1 file to
C:\proj\content\build\Testing_Test-av-rapportlaging_6.1r1\tmp
[copy] Copying 9 files to
C:\proj\content\build\Testing_Test-av-rapportlaging_6.1r1\plugin
[copy] Copying 6 files to
C:\proj\content\build\Testing_Test-av-rapportlaging_6.1r1\plugin
[copy] Copying 2 files to
C:\proj\content\build\Testing_Test-av-rapportlaging_6.1r1\plugin
[copy] Copying 1 file to
C:\proj\content\build\Testing_Test-av-rapportlaging_6.1r1\plugin
[copy] Copying 1 file to
C:\proj\content\build\Testing_Test-av-rapportlaging_6.1r1\plugin
[move] Moving 1 file to
C:\proj\content\build\Testing_Test-av-rapportlaging_6.1r1\plugin
[javac] Compiling 1 source file to
C:\proj\content\build\Testing_Test-av-rapportlaging_6.1r1\plugin
[javac] C:\proj\content\dev\reports\Testing\Test av
rapportlaging\6.1\TemplateReportScriptlet.java:4: package
it.businesslogic.ireport does not exist
[javac] public class TemplateReportScriptlet extends
it.businesslogic.ireport.IReportScriptlet {
[javac]
^
[javac] C:\proj\content\dev\reports\Testing\Test av
rapportlaging\6.1\TemplateReportScriptlet.java:24: cannot find symbol
[javac] symbol : variable super
[javac] location: class TemplateReportScriptlet
[javac] super.beforeColumnInit();
[javac] ^
[javac] C:\proj\content\dev\reports\Testing\Test av
rapportlaging\6.1\TemplateReportScriptlet.java:30: cannot find symbol
[javac] symbol : variable super
[javac] location: class TemplateReportScriptlet
[javac] super.afterDetailEval();
[javac] ^
[javac] C:\proj\content\dev\reports\Testing\Test av
rapportlaging\6.1\TemplateReportScriptlet.java:36: cannot find symbol
[javac] symbol : variable super
[javac] location: class TemplateReportScriptlet
[javac] super.afterGroupInit(groupName);
[javac] ^
[javac] C:\proj\content\dev\reports\Testing\Test av
rapportlaging\6.1\TemplateReportScriptlet.java:42: cannot find symbol
[javac] symbol : variable super
[javac] location: class TemplateReportScriptlet
[javac] super.afterPageInit();
[javac] ^
[javac] 5 errors
As I recall, I can fix this by adding the right .JAR file to the dev
directory of the report, so it's not a huge problem.

2) When I try to preview a report with an active connection I get the
following error:
net.sf.jasperreports.engine.JRRuntimeException:
net.sf.jasperreports.engine.JRException: Class
com.novell.jasper.data.event.LuceneEventQueryExecutorFactory not found
This is something I haven't found a fix for, unfortunately. Any ideas?

PS:
My apologies for the late reply - I was on holiday last week and was
swamped both before going and once I got back.

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

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Problems setting up iReport for SLM development


Forget issue #1 - that was a typo on my part. And here is the log output
from iReport on issue #2:
*Filling report...
*Locale: English (United States)
*Time zone: Europe/Oslo (Central European Time)
Error*filling*print...*SEN-10003::Synchronous*call*Timed*out*for*request*{0}*method*{1}*of*object*{2}::9F50B820-11CF-102E-BB7B-0050568C0077::startSearch::IndexedLogSearchService::

Loading*Sentinel*Report*properties*from:*C:\proj\content\dev\sdk\build\config\sentinelreport.properties*
Loaded*the*following*Sentinel*Report*properties:*
--*listing*properties*--*
java.runtime.name=Java(TM)*SE*Runtime*Environment*
sun.boot.library.path=C:\Program*Files\Java\jre6\bin*
java.vm.version=19.0-b09* java.vm.vendor=Sun*Microsystems*Inc.*
java.vendor.url=http://java.sun.com/* path.separator=;*
java.vm.name=Java*HotSpot(TM)*64-Bit*Server*VM*
file.encoding.pkg=sun.io* user.country=US*
sun.java.launcher=SUN_STANDARD* sun.os.patch.level=*
sun.swing.enableImprovedDragGesture=*
java.vm.specification.name=Java*Virtual*Machine*Specification*
user.dir=C:\Program*Files*(x86)\iReport-3.0.0*
org.xml.sax.driver=org.apache.xerces.parsers.SAXParser*
java.runtime.version=1.6.0_23-b05*
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment*
java.endorsed.dirs=C:\Program*Files\Java\jre6\lib\endorsed*
os.arch=amd64*
jasper.reports.compile.temp=C:\Program*Files*(x86)\iReport-3.0.0*
java.io.tmpdir=C:\Users\ragsto\AppData\Local\Temp\4\* line.separator=* *
java.vm.specification.vendor=Sun*Microsystems*Inc.* user.variant=*
novell.sentinel.reports.initiatinguser=admin*
os.name=Windows*Server*2008*R2*
esecurity.dataobjects.config.file=/xml/iReportMetaData.xml*
sun.jnu.encoding=Cp1252*
java.library.path=C:\Windows\system32;.;C:\Windows\Sun\...*
java.specification.name=Java*Platform*API*Specification*
java.class.version=50.0*
sun.management.compiler=HotSpot*64-Bit*Server*Compiler*
ireport.home=C:\Program*Files*(x86)\iReport-3.0.0* os.version=6.1*
user.home=C:\Users\ragsto* user.timezone=Europe/Berlin*
java.security.policy=C:\Program*Files*(x86)\iReport-3.0.0/...*
java.awt.printerjob=sun.awt.windows.WPrinterJob*
java.specification.version=1.6* file.encoding=Cp1252*
esecurity.remote.timeout=180* user.name=ragsto*
java.class.path=;.\classes\;.\fonts\;;.\lib\antlr-2.7...*
java.vm.specification.version=1.0* sun.arch.data.model=64*
java.home=C:\Program*Files\Java\jre6*
java.specification.vendor=Sun*Microsystems*Inc.* user.language=en*
esecurity.communication.service=WebUI*
awt.toolkit=sun.awt.windows.WToolkit* java.vm.info=mixed*mode*
java.version=1.6.0_23*
java.ext.dirs=C:\Program*Files\Java\jre6\lib\ext;C:...*
sun.boot.class.path=C:\Program*Files\Java\jre6\lib\resour...*
java.vendor=Sun*Microsystems*Inc.* file.separator=\*
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport...*
sun.cpu.endian=little* sun.io.unicode.encoding=UnicodeLittle*
sun.desktop=windows*
com.esecurity.configurationfile=C:\proj\content\dev\sdk\build\config\...*
sun.cpu.isalist=amd64*
Using*the*following*user*to*execute*the*search:*admin*
Feb*3,*2011*3:36:23*PM*com.novell.reports.jasper.data.event.LuceneEventQueryExecutor*getSearchTargets*
WARNING:*Unable*to*obtain*SEARCH_TARGETS*parameter.*
Feb*3,*2011*3:39:23*PM*esecurity.base.datamodel.service.ServiceManager*execute*
WARNING:*Synchronous*call*for*request*ID*9F50B820-11CF-102E-BB7B-0050568C0077*method*startSearch*of*IndexedLogSearchService*timed*out*
esecurity.base.exceptions.RemoteException:*SEN-10003*Synchronous*call*Timed*out*for*request*9F50B820-11CF-102E-BB7B-0050568C0077*method*startSearch*of*object*IndexedLogSearchService*
****at*esecurity.base.datamodel.service.ServiceManager.execute(ServiceManager.java:551)*
****at*esecurity.base.datamodel.service.ServiceManager.execute(ServiceManager.java:476)*
****at*esecurity.base.datamodel.service.RemoteServiceObject.execute(RemoteServiceObject.java:22)*
****at*esecurity.db.object.IndexedLogSearchServiceRemoteImpl.startSearch(IndexedLogSearchServiceRemoteImpl.java:181)*
****at*com.novell.reports.jasper.data.event.EventDataSource.nextBatch(EventDataSource.java:71)*
****at*com.novell.reports.jasper.data.event.AbstractEventDataSource.nextEvent(AbstractEventDataSource.java:120)*
****at*com.novell.reports.jasper.data.event.AbstractEventDataSource.next(AbstractEventDataSource.java:112)*
****at*net.sf.jasperreports.engine.data.JRSortableDataSource.<init>(JRSortableDataSource.java:118)*
****at*net.sf.jasperreports.engine.fill.JRFillDataset.initDatasource(JRFillDataset.java:595)*
****at*net.sf.jasperreports.engine.fill.JRBaseFiller.setParameters(JRBaseFiller.java:1196)*
****at*net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:833)*
****at*net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:123)*
****at*net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:420)*
****at*net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:256)*
****at*it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:1053)*
****at*java.lang.Thread.run(Unknown*Source)*
Print was not filled. Try using an EmptyDataSource...

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

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Problems setting up iReport for SLM development


Hi there,

So that's a timeout, which implies that either there was some
communication problem or that the search never completed on the SLM
side. Are you sure the server is up and running correctly? Do web UI
searches work fine?


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

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Problems setting up iReport for SLM development


The server is up and running and web UI searches work perfectly, yes. I
can even generate a .PDF report now that contains data. It contains only
one event, but that's all the data I have for this report so that's
fine.

Note:
- I've requested a change in the log format from the people that
generate the log, which will take them a day or two at least to fix. So
I might not be able to test for a little while, since I've already
implemented my part of this change

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

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Problems setting up iReport for SLM development


Hmm, OK I dug into this a little more deeply and noticed this message:
*Unable*to*obtain*SEARCH_TARGETS*parameter

So the SEARCH_TARGETS parameter is actually supposed to be supplied by
the SLM framework, and of course iReport has no idea how to set it
correctly. This is used to search other SLM nodes for a distributed
search, and is included in the template to show how it is used.

It may be possible to define a default or something, but in the
meantime you might try removing it from the report query entirely and
see if that works. I suspect that if the framework doesn't set it, then
iReport can't construct the query properly and hence you get those
timeouts.


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

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Problems setting up iReport for SLM development


DCorlette;2072711 Wrote:
> Hmm, OK I dug into this a little more deeply and noticed this message:
> *Unable*to*obtain*SEARCH_TARGETS*parameter
>
> So the SEARCH_TARGETS parameter is actually supposed to be supplied by
> the SLM framework, and of course iReport has no idea how to set it
> correctly. This is used to search other SLM nodes for a distributed
> search, and is included in the template to show how it is used.
>
> It may be possible to define a default or something, but in the
> meantime you might try removing it from the report query entirely and
> see if that works. I suspect that if the framework doesn't set it, then
> iReport can't construct the query properly and hence you get those
> timeouts.


Wohoo! I finally managed to fix it, and there were two problems I
found:
1) When I compiled just now, iReports complained that it wasn't able to
find Color_RGB.csv in the classpath. I had added both the .CSV files as
per the instructions, but when adding the directory
\proj\content\dev\reports\AA-common\src the error disappeared
2) Once this problem was taken care of, I was back to the
"SEARCH_TARGETS" problem. One thing I noticed was that iReport
complained about not being able to find "logo.jpg". The logo is not
really needed in my report, so I just removed it from the layout. And
hey presto - I finally got a preview report with data!

I am going to have a look to see if I can find out where the logo file
should be for the report to function even with it in the layout and will
post my findings if I find a solution. I'm not going to spend much time
on it, though, so don't hold your breath...

Anyway, for anyone else who's struggling with iReport here's what I
learned:
1) Follow the instructions to letter when setting up the development
environment - and start by double-checking all settings if you see
problems
2) Make sure that the .JAR files in your proj-directory matches what is
on the SLM server
3) When naming a new report, type a name with no spaces that only
contains US ASCII characters. Norwegian characters translated into ?,
for instance - not something Windows was very happy about...
4) It's not very hard to completely mess up a report if you do too many
changes at once, so create reports using babysteps, testing each step
and doing a backup after each successful step
5) Look carefully at the error message if you get one - you may simply
be missing a file or a path in the classpath, even if the error message
leads you to think it may be something else

Thanks for all the help, both of you! You've been very patient and most
helpful. 😄

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

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Problems setting up iReport for SLM development


1) Follow the instructions to letter when setting up the development
environment - and start by double-checking all settings if you see
problems
2) Make sure that the .JAR files in your proj-directory matches what is
on the SLM server
3) When naming a new report, type a name with no spaces that only
contains US ASCII characters. Norwegian characters translated into ?,
for instance - not something Windows was very happy about...
4) It's not very hard to completely mess up a report if you do too many
changes at once, so create reports using babysteps, testing each step
and doing a backup after each successful step
5) Look carefully at the error message if you get one - you may simply
be missing a file or a path in the classpath, even if the error message
leads you to think it may be something else
6) I'm not sure why, but the "oDoc" variable ends up with a value of
null if you use non-US ASCII characters in the DESC1 field in the
TemplateReport.properties file after running the following line in the
OO macro:
oDoc = StarDesktop.loadComponentFromURL( cURL, "_blank", 0,
Array(MakePropertyValue( "Hidden", True ), MakePropertyValue(
"UpdateDocMode", com.sun.star.document.UpdateDocMode.ACCORDING_TO_CONFIG
))
You then get an error when running the macro that creates the
plugin.pdf file when running the following line:
oDoc.storeToURL( cURL, Array( MakePropertyValue( "FilterName",
"writer_pdf_Export" )
It IS possible to use non-US ASCII in the RPT_NAME field, however -
just not in the description. Weird...

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

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Problems setting up iReport for SLM development


Glad you got this working!

The oDoc thing is weird, can't explain that at all. BTW, spaces in
report names work fine - we use them all the time, at least on
US-English systems.


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

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.