created an attachment (id=169457)
report

build number:2.6.0.v20100521-0630

steps to reproduce:
1. preview attached report. the report has script in label onprepare which add a hyperlink on the label

expected result:hyperlink is added

actual result:exception. 

error log:
label (id = 7): 
- there are errors evaluating script "ac = this.getreport().createaction();
ac.setlinktype(this.constants.action_link_type_hyperlink);
ac.seturi("\'http://www.actuate.com\'");
ac.settargetwindow("_parent");
this.addaction(ac);
":
wrapped org.eclipse.birt.report.model.api.metadata.propertyvalueexception: the value "org.eclipse.birt.report.model.api.elements.structures.action@1c23196" is invalid with the type "structure". (/report/body/label[@id="7"]/method[@name="onprepare"]#5) 
birt.core.javascriptcommonerror ( 1 time(s) )
detail : org.eclipse.birt.report.engine.api.engineexception: there are errors evaluating script "ac = this.getreport().createaction();
ac.setlinktype(this.constants.action_link_type_hyperlink);
ac.seturi("\'http://www.actuate.com\'");
ac.settargetwindow("_parent");
this.addaction(ac);
":
wrapped org.eclipse.birt.report.model.api.metadata.propertyvalueexception: the value "org.eclipse.birt.report.model.api.elements.structures.action@1c23196" is invalid with the type "structure". (/report/body/label[@id="7"]/method[@name="onprepare"]#5)
	at org.eclipse.birt.report.engine.executor.executioncontext.addexception(executioncontext.java:1210)
	at org.eclipse.birt.report.engine.api.impl.scripteddesignhandler.processonpreparescript(scripteddesignhandler.java:202)
	at org.eclipse.birt.report.engine.api.impl.scripteddesignhandler.handleonprepare(scripteddesignhandler.java:109)
	at org.eclipse.birt.report.engine.api.impl.scripteddesignvisitor.visitlabel(scripteddesignvisitor.java:270)
	at org.eclipse.birt.report.model.api.designvisitorimpl$forwarder.visitlabel(designvisitorimpl.java:1005)
	at org.eclipse.birt.report.model.elements.label.apply(label.java:60)
	at org.eclipse.birt.report.model.api.designvisitorimpl.apply(designvisitorimpl.java:127)
	at org.eclipse.birt.report.engine.api.impl.scripteddesignvisitor.visitreportdesign(scripteddesignvisitor.java:106)
	at org.eclipse.birt.report.model.api.designvisitorimpl$forwarder.visitreportdesign(designvisitorimpl.java:1211)
	at org.eclipse.birt.report.model.elements.reportdesign.apply(reportdesign.java:65)
	at org.eclipse.birt.report.model.api.designvisitorimpl.apply(designvisitorimpl.java:127)
	at org.eclipse.birt.report.engine.api.impl.enginetask.preparedesign(enginetask.java:1660)
	at org.eclipse.birt.report.engine.api.impl.runandrendertask.dorun(runandrendertask.java:96)
	at org.eclipse.birt.report.engine.api.impl.runandrendertask.run(runandrendertask.java:75)
	at org.eclipse.birt.report.service.reportengineservice.runandrenderreport(reportengineservice.java:920)
	at org.eclipse.birt.report.service.birtviewerreportservice.runandrenderreport(birtviewerreportservice.java:973)
	at org.eclipse.birt.report.service.actionhandler.birtgetpageallactionhandler.__execute(birtgetpageallactionhandler.java:131)
	at org.eclipse.birt.report.service.actionhandler.abstractbaseactionhandler.execute(abstractbaseactionhandler.java:90)
	at org.eclipse.birt.report.soapengine.processor.abstractbasedocumentprocessor.__executeaction(abstractbasedocumentprocessor.java:47)
	at org.eclipse.birt.report.soapengine.processor.abstractbasecomponentprocessor.executeaction(abstractbasecomponentprocessor.java:143)
	at org.eclipse.birt.report.soapengine.processor.birtdocumentprocessor.handlegetpageall(birtdocumentprocessor.java:183)
	at sun.reflect.nativemethodaccessorimpl.invoke0(native method)
	at sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39)
	at sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25)
	at java.lang.reflect.method.invoke(method.java:597)
	at org.eclipse.birt.report.soapengine.processor.abstractbasecomponentprocessor.process(abstractbasecomponentprocessor.java:112)
	at org.eclipse.birt.report.soapengine.endpoint.birtsoapbindingimpl.getupdatedobjects(birtsoapbindingimpl.java:66)
	at sun.reflect.nativemethodaccessorimpl.invoke0(native method)
	at sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39)
	at sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25)
	at java.lang.reflect.method.invoke(method.java:597)
	at org.apache.axis.providers.java.rpcprovider.invokemethod(rpcprovider.java:397)
	at org.apache.axis.providers.java.rpcprovider.processmessage(rpcprovider.java:186)
	at org.apache.axis.providers.java.javaprovider.invoke(javaprovider.java:323)
	at org.apache.axis.strategies.invocationstrategy.visit(invocationstrategy.java:32)
	at org.apache.axis.simplechain.dovisiting(simplechain.java:118)
	at org.apache.axis.simplechain.invoke(simplechain.java:83)
	at org.apache.axis.handlers.soap.soapservice.invoke(soapservice.java:454)
	at org.apache.axis.server.axisserver.invoke(axisserver.java:281)
	at org.apache.axis.transport.http.axisservlet.dopost(axisservlet.java:699)
	at org.eclipse.birt.report.servlet.birtsoapmessagedispatcherservlet.dopost(birtsoapmessagedispatcherservlet.java:265)
	at javax.servlet.http.httpservlet.service(httpservlet.java:727)
	at org.apache.axis.transport.http.axisservletbase.service(axisservletbase.java:327)
	at javax.servlet.http.httpservlet.service(httpservlet.java:820)
	at org.eclipse.birt.report.servlet.birtsoapmessagedispatcherservlet.service(birtsoapmessagedispatcherservlet.java:122)
	at org.eclipse.equinox.http.registry.internal.servletmanager$servletwrapper.service(servletmanager.java:180)
	at org.eclipse.equinox.http.servlet.internal.servletregistration.service(servletregistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.proxyservlet.processalias(proxyservlet.java:126)
	at org.eclipse.equinox.http.servlet.internal.proxyservlet.service(proxyservlet.java:60)
	at javax.servlet.http.httpservlet.service(httpservlet.java:820)
	at org.eclipse.equinox.http.jetty.internal.httpservermanager$internalhttpserviceservlet.service(httpservermanager.java:318)
	at org.mortbay.jetty.servlet.servletholder.handle(servletholder.java:511)
	at org.mortbay.jetty.servlet.servlethandler.handle(servlethandler.java:390)
	at org.mortbay.jetty.servlet.sessionhandler.handle(sessionhandler.java:182)
	at org.mortbay.jetty.handler.contexthandler.handle(contexthandler.java:765)
	at org.mortbay.jetty.handler.handlerwrapper.handle(handlerwrapper.java:152)
	at org.mortbay.jetty.server.handle(server.java:326)
	at org.mortbay.jetty.httpconnection.handlerequest(httpconnection.java:542)
	at org.mortbay.jetty.httpconnection$requesthandler.content(httpconnection.java:939)
	at org.mortbay.jetty.httpparser.parsenext(httpparser.java:756)
	at org.mortbay.jetty.httpparser.parseavailable(httpparser.java:212)
	at org.mortbay.jetty.httpconnection.handle(httpconnection.java:404)
	at org.mortbay.io.nio.selectchannelendpoint.run(selectchannelendpoint.java:409)
	at org.mortbay.thread.queuedthreadpool$poolthread.run(queuedthreadpool.java:582)
caused by: org.eclipse.birt.core.exception.coreexception: there are errors evaluating script "ac = this.getreport().createaction();
ac.setlinktype(this.constants.action_link_type_hyperlink);
ac.seturi("\'http://www.actuate.com\'");
ac.settargetwindow("_parent");
this.addaction(ac);
":
wrapped org.eclipse.birt.report.model.api.metadata.propertyvalueexception: the value "org.eclipse.birt.report.model.api.elements.structures.action@1c23196" is invalid with the type "structure". (/report/body/label[@id="7"]/method[@name="onprepare"]#5)
	at org.eclipse.birt.report.engine.javascript.javascriptengine.evaluate(javascriptengine.java:287)
	at org.eclipse.birt.core.script.scriptcontext.evaluate(scriptcontext.java:152)
	at org.eclipse.birt.report.engine.executor.executioncontext.evaluate(executioncontext.java:746)
	at org.eclipse.birt.report.engine.executor.executioncontext.evaluate(executioncontext.java:726)
	at org.eclipse.birt.report.engine.executor.executioncontext.evaluate(executioncontext.java:708)
	at org.eclipse.birt.report.engine.api.impl.scripteddesignhandler.processonpreparescript(scripteddesignhandler.java:194)
	... 62 more
caused by: org.mozilla.javascript.wrappedexception: wrapped org.eclipse.birt.report.model.api.metadata.propertyvalueexception: the value "org.eclipse.birt.report.model.api.elements.structures.action@1c23196" is invalid with the type "structure". (/report/body/label[@id="7"]/method[@name="onprepare"]#5)
	at org.mozilla.javascript.context.throwasscriptruntimeex(context.java:1654)
	at org.mozilla.javascript.memberbox.invoke(memberbox.java:175)
	at org.mozilla.javascript.nativejavamethod.call(nativejavamethod.java:243)
	at org.mozilla.javascript.optimizer.optruntime.call1(optruntime.java:66)
	at org.mozilla.javascript.gen.c14._c0(/report/body/label[@id="7"]/method[@name="onprepare"]:5)
	at org.mozilla.javascript.gen.c14.call(/report/body/label[@id="7"]/method[@name="onprepare"])
	at org.mozilla.javascript.contextfactory.dotopcall(contextfactory.java:401)
	at org.mozilla.javascript.scriptruntime.dotopcall(scriptruntime.java:3003)
	at org.mozilla.javascript.gen.c14.call(/report/body/label[@id="7"]/method[@name="onprepare"])
	at org.mozilla.javascript.gen.c14.exec(/report/body/label[@id="7"]/method[@name="onprepare"])
	at org.eclipse.birt.report.engine.javascript.javascriptengine.evaluate(javascriptengine.java:282)
	... 67 more
caused by: org.eclipse.birt.report.model.api.metadata.propertyvalueexception: the value "org.eclipse.birt.report.model.api.elements.structures.action@1c23196" is invalid with the type "structure".
	at org.eclipse.birt.report.model.metadata.structpropertytype.validatevalue(structpropertytype.java:107)
	at org.eclipse.birt.report.model.metadata.propertydefn.dovalidatevaluewithexpression(propertydefn.java:905)
	at org.eclipse.birt.report.model.metadata.propertydefn.validatevalue(propertydefn.java:872)
	at org.eclipse.birt.report.model.command.propertycommand.validatevalue(propertycommand.java:857)
	at org.eclipse.birt.report.model.command.propertycommand.setproperty(propertycommand.java:257)
	at org.eclipse.birt.report.model.command.propertycommand.setproperty(propertycommand.java:134)
	at org.eclipse.birt.report.model.api.designelementhandle.setproperty(designelementhandle.java:520)
	at org.eclipse.birt.report.model.simpleapi.label.addaction(label.java:161)
	at sun.reflect.nativemethodaccessorimpl.invoke0(native method)
	at sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39)
	at sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25)
	at java.lang.reflect.method.invoke(method.java:597)
	at org.mozilla.javascript.memberbox.invoke(memberbox.java:160)
	... 76 more
fixed in 2.6.0 branch.
verified in 2.6.0.v20100525-1629