HibernateAssembler problem loading object
I'm using LCDS (LiveCycle Data Services) 2.5.1 and I am
trying to load a Java object using hibernate and have it given to
my flex client.
I followed this tutorial:
http://blog.comtaste.com/2007/07/livecycle_data_services_and_hi.html
Only issue is that when I attempt to use the DataService
object (in flex client) to do a "getItem" I get the following
error:
Missing identity properties: id
My "data-management-config.xml" has this:
<destination id="hibernatePerson">
<adapter ref="java-dao" />
<channels>
<channel ref="my-rtmp" />
</channels>
<properties>
<source>flex.data.assemblers.HibernateAssembler</source>
<scope>application</scope>
<metadata>
<identity property="id" />
</metadata>
<server>
<hibernate-entity>foo.bean.Person</hibernate-entity>
<update-conflict-mode>PROPERTY</update-conflict-mode>
<delete-conflict-mode>OBJECT</delete-conflict-mode>
<fill-configuration>
<use-query-cache>false</use-query-cache>
<allow-hql-queries>true</allow-hql-queries>
</fill-configuration>
</server>
</properties>
</destination>
Any ideas?
I got it. After reading some of the documentation on
DataService.getItem I learned that the "ItemReference" object that
is given back extends "AsyncToken". This means you should either
bind to the "result" property of the ItemReference or add a
responder to it (i.e. itemRef.addResponder).
Then once the data is retrieved your "result" or "fault"
methods (from the mx.rpc.IResponder interface) will be
invoked.
Similar Messages
-
SQL Server 200 to Oracle - problem loading objects
Here's what I've done so far:
1. Download and install SQLDeveloper (C:\Oracle\sqldeveloper 1.2.1.32.13)
2. Create omwbuser (w/ role=dba) in Oracle test database (hc02) (9.2.0.7.0).
3. From Explorer, double-click sqldeveloper.exe
4. File > New > Database connection (clicked Test button, but whatever it was that popped up, disappeared before I could read it.)
5. Assuming it worked, click Connect button. Try a better test "select name from v$database;". Works.
6. Migration > Repository Management > Create Repository ("Repository Built Successfully")
7. Migration > SQL Server Offline Capture > Create Database Capture Scripts.
Choose C:\Oracle\sqldeveloper\sqldeveloper\temp
Generate for Windows Batch File
Microsoft SQL Server (2000)
8. Email scripts to Sql Server dba to execute. Get files back.
9. Copy 16 SS2K_SYS<objectname>S.dat files to C:\Oracle\sqldeveloper\sqldeveloper\temp
10. Migration > SQL Server Offline Capture > Load Database Capture Script Output
Open C:\Oracle\sqldeveloper\sqldeveloper\temp\sqlserver2000.ocp
Window pops up labelled "Capturing Database", but I don't see any entries under "Object Type" or "No of Objects Captured".
Lower down in the pop up window it says "Capture Done".
What am I missing?Hi,
Here is the detailed explanation.
Iam using the latest version of SQL Developer 1.5 EA2 with the thrid party JDBC driver as jtds 1.2.jar file. I have created connections of SQL Server 2000 and oracle 9i.
I have created the repository and associated it. I can able to view the structure of SQL Server Objects like tables, views, procedures etc.,
All the pre-migration check got success.
When i try to do "Quick Migrate Microsoft SQL Server", Iam getting the following exception in the trace window..
WARNING: Unknown directive: SetSkipJ2SDKCheck
DB Adapter warning: Replacing connection creator oracle.jdeveloper.db.adapter.My
SQLConnectionCreator for subtype MYSQL with oracle.dbtools.thirdparty.mysql.MySQ
LConnectionCreator
DB Adapter warning: Replacing connection creator oracle.jdeveloper.db.adapter.Or
acleConnectionCreator for subtype oraJDBC with oracle.dbtools.raptor.standalone.
connection.RaptorConnectionCreator
Exception occurred during event dispatching:
java.lang.NullPointerException
at javax.swing.plaf.basic.BasicTreeUI.paint(BasicTreeUI.java:1215)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)
at javax.swing.JComponent.paintComponent(JComponent.java:742)
at javax.swing.JComponent.paint(JComponent.java:1005)
at oracle.ide.controls.JTreeTable$TreeTableCellRenderer.paint(JTreeTable
.java:309)
at javax.swing.CellRendererPane.paintComponent(CellRendererPane.java:134
at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:2071)
at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:1972
at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:1895)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)
at javax.swing.JComponent.paintComponent(JComponent.java:742)
at javax.swing.JComponent.paint(JComponent.java:1005)
at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4963)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4916)
at javax.swing.JComponent._paintImmediately(JComponent.java:4859)
at javax.swing.JComponent.paintImmediately(JComponent.java:4666)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:451)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(System
EventQueueUtilities.java:114)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:153)
at java.awt.Dialog$1.run(Dialog.java:515)
at java.awt.Dialog.show(Dialog.java:536)
at java.awt.Component.show(Component.java:1300)
at java.awt.Component.setVisible(Component.java:1253)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
at oracle.dbtools.migration.workbench.core.ui.MigrationProgressBar.start
(MigrationProgressBar.java:338)
at oracle.dbtools.migration.workbench.core.ui.MigrationProgressBar.start
(MigrationProgressBar.java:233)
at oracle.dbtools.migration.workbench.core.ui.AbstractMigrationProgressR
unnable.start(AbstractMigrationProgressRunnable.java:127)
at oracle.dbtools.migration.workbench.core.FullMigrateInitiator.launch(F
ullMigrateInitiator.java:74)
at oracle.dbtools.raptor.controls.sqldialog.ObjectActionController.handl
eEvent(ObjectActionController.java:140)
at oracle.ide.controller.IdeAction.performAction(IdeAction.java:513)
at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:84
3)
at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:486)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:18
49)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
a:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1
000)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMen
uItemUI.java:1041)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
SELECT DISTINCT(REF_ID_FK), REF_TYPE FROM MD_ADDITIONAL_PROPERTIES WHERE PROP_KE
Y IN (?) AND CONNECTION_ID_FK = ?
The Migration log message says like this :
a USE database statement is not allowed in a procedure or trigger.
Also, Iam not even able to migrate single table.
The Migration log gives the same message as:
a USE database statement is not allowed in a procedure or trigger.
Kindly let me know if am not clear in my explanation.
Kindly help me to proceed as soon as possible.
Thanks & Regards,
Inigo Skylab
Message was edited by:
Inigo Skylab -
I started using JasperReports for my web application report generation. I'm using JSPs for web development.
I created a .jrxml file using iReport and used the following code to generate the report.
try {
JasperDesign jasperDesign = JRXmlLoader.load("C:\\tomcat\\webapps\\web\\JSP\\reports\\samples\\pmm-final.jrxml");
JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
// Second, create a map of parameters to pass to the report.
Map parameters = new HashMap();
parameters.put("Title", "JasperReport");
// Third, get a database connection
Connection conn = null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:driver={Microsoft Access Driver (*.mdb)};DBQ=C:/tomcat/webapps/db1/db1.mdb");
// Fourth, create JasperPrint using fillReport() method
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,
parameters, conn);
// You can use JasperPrint to create PDF
//JasperExportManager.exportReportToPdfFile(jasperPrint, "C:\\tomcat\\webapps\\web\\JSP\\reports\\TestReport.pdf");
JasperExportManager.exportReportToHtmlFile(jasperPrint, "C:\\tomcat\\webapps\\web\\JSP\\reports\\TestPMM.html");
JRXlsExporter exporter = new JRXlsExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, "C:\\tomcat\\webapps\\web\\JSP\\reports\\TestPMM.xls");
exporter.exportReport();
// Or to view report in the JasperViewer
//JasperViewer.viewReport(jasperPrint);
} catch (JRException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
The above pmm-final.jrxml uses a subreport 'top.jasper'. Error being thrown while loading top.jasper file. Error is as follows.
java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; lo
cal class incompatible: stream classdesc serialVersionUID = 604, local class ser
ialVersionUID = 606
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:86
at net.sf.jasperreports.engine.util.JRLoader.loadObjectFromLocation(JRLo
ader.java:236)
at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubre
port.java:295)
at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:
340)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageBand(JRVert
icalFiller.java:1224)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVe
rticalFiller.java:353)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRV
erticalFiller.java:205)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVertic
alFiller.java:119)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:
613)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:
483)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:77
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillMa
nager.java:248)
at org.apache.jsp.JSP.UserGuide_jsp._jspService(org.apache.jsp.JSP.UserG
uide_jsp:74)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:325)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
95)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:214)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
va:675)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Unknown Source)
NESTED BY :
java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; lo
cal class incompatible: stream classdesc serialVersionUID = 604, local class ser
ialVersionUID = 606
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:86
at net.sf.jasperreports.engine.util.JRLoader.loadObjectFromLocation(JRLo
ader.java:236)
at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubre
port.java:295)
at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:
340)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageBand(JRVert
icalFiller.java:1224)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVe
rticalFiller.java:353)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRV
erticalFiller.java:205)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVertic
alFiller.java:119)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:
613)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:
483)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:77
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillMa
nager.java:248)
at org.apache.jsp.JSP.UserGuide_jsp._jspService(org.apache.jsp.JSP.UserG
uide_jsp:74)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:325)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
95)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:214)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
va:675)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Unknown Source)
NESTED BY :
net.sf.jasperreports.engine.JRException: Error loading object from file : C:\tom
cat\webapps\web\JSP\reports\samples\top.jasper
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:90
at net.sf.jasperreports.engine.util.JRLoader.loadObjectFromLocation(JRLo
ader.java:236)
at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubre
port.java:295)
at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:
340)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageBand(JRVert
icalFiller.java:1224)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVe
rticalFiller.java:353)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRV
erticalFiller.java:205)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVertic
alFiller.java:119)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:
613)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:
483)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:77
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillMa
nager.java:248)
at org.apache.jsp.JSP.UserGuide_jsp._jspService(org.apache.jsp.JSP.UserG
uide_jsp:74)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:325)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
95)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:214)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
va:675)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBas
eReport; local class incompatible: stream classdesc serialVersionUID = 604, loca
l class serialVersionUID = 606
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:86
... 33 more
Anyone pls help. It's bit urgent. Thanks.I was using iReport v0.5.0 and it uses jasperreports-0.6.7.jar (v0.6.7) of
JasperReports. I compiled and i deployed my application in BEA weblogic server. I got the error listed below. Only after i saw your
response explaining that iReport was the issue, i checked the iReport lib directory and found this version of jasperreport jar.
iReport creates a java source file which is used to a jasper file.
iReport will link in the v0.6.7 version of jasperReports. When you
deploy your web application it will recognize this version through the compiled jasper file and give you the InvalidClassException, even
though you only have one jasperReport jar deployed with your war file.
The way i fixed this problem was to create my web application with the
jasperreport jar comes with iReport.
Thanks for mentioning iReport.
Christopher
Error:
Caused by: java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBas
eReport; local class incompatible: stream classdesc serialVersionUID = 607, local class serialVersionUID = 10002
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:463)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
... -
Problems loading the SCCM 2007 R2 console
Hello
One of our clients has been having problems loading the SCCM 2007 R2 console. When you open the console it returns the following error:
“The ConfigMgr console could not connect to the ConfigMgr site database. Verify that this computer has network connectivity to the SMS Provider computer and that your user account has Remote Activation permissions on both the ConfigMgr
site server and SMS Provider computers. For more information, see “”How to Configure DCOM Permissions for Configuration Manager Console””
We have checked the permissions of WMI and DCOM, and everything is configured as it should be:
http://technet.microsoft.com/en-us/library/bb932151.aspx
http://technet.microsoft.com/en-us/library/bb633148.aspx
The SmsAdminUI.log is logging the following error each time that we start the ConfigMgr console:
SQLMessage = "[HY018][11][Microsoft][ODBC SQL Server Driver][DBNETLIB]General network error. Check your network documentation.";
The same error is logged in the smsprov.log:
SQL Error: [HY018][11][Microsoft][ODBC SQL Server Driver][DBNETLIB]General network error. Check your network documentation.
Can't create instance of CSecuredSource for SMS_Site [HY018][11][Microsoft][ODBC SQL Server Driver][DBNETLIB]General network error. Check your network documentation.
The infrastructure is made of 2 servers:
1 Server with all the SCCM roles: Primary Site Server, SMS Provider, Distribution Point, etc.
1 Server which holds the site database: this server is hosting databases of other applications, and these other applications are working without any kind of problem.
The firewall on both servers is down. There is no firewall device between those servers.
Those servers are VMs hosted in a Hyper-V CSV Cluster.
I would appreciate all the help that you can provide me with this incident.
Thank you in advancedTo grant Remote Activation permissions to the SMS Admins group
From the Start menu, click Run and type Dcomcnfg.exe.
In Component Services, click Console root, expand Component Services, expand Computers, and then click My
Computer. On the Action menu, click Properties.
In the My Computer Properties dialog box, on the COM Security tab, in the Launch and Activation Permissions section,
click Edit Limits.
In the Launch Permissions dialog box, click Add.
In the Select User, Computers, or Groups dialog box, in the Enter the object names to select (examples): box, type SMS Admins and
click OK.
In the Permissions for SMS Admins section, select the check box to allow Remote Activation.
Click OK twice, and then close Computer Management.
http://technet.microsoft.com/en-us/library/bb633148.aspx
Kamala kannan.c| Please remember to click “Mark as Answer” or Vote as Helpful if its helpful for you. |Disclaimer: This posting is provided with no warranties and confers no rights -
Can't load object code to CIN. Mashine specific.
Suddenly all the VIs using CINs have lost their object
code. They are broken and any attempt to load the code fails. I have "object code is not loaded" error.
I've tried with simple test examples but LabVIEW simply refuses to load object code into VI. It isn't getting any bigger in size. This problem is specific only for one of my computers running LabVIEW. My CINs are used for computational purposes, they do not refer to any hardware. How to solve this problem ?One way for this to happen is for the VI to be saved on a different platform (Mac / Linux / Windows). If you open a VI on a different platform from the one it was compiled on, its object code is tossed. If that VI is saved in that state, the object code is removed from the file.
Normal (non-CIN) VIs are recompiled as needed. But CINs need external object files for the platform they're being compiled on.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com
Blog for (mostly LabVIEW) programmers: Tips And Tricks -
Problem – loading HTMLtext from a text file
Problem – loading HTMLtext from a text file
Hi, I have a dynamic text set up to render text as HTML and I
am loading the text into the text object by using the code below.
var loadText:LoadVars = new LoadVars();
loadText.load("Nyheter.txt");
loadText.onLoad = function(success){
if(success){
Nyheter_txt.htmlText = this.VariabelTekst;
The textfile looks like:
VariabelTekst=<p align
="Right">(13.11.2006)</p><p><b><font
size="12">This is the tittle</b></p><p>Here
comes the text</p>
It works almost fine but the first problem is that the
paragraph text in the textfile should be written in Norwegian. This
involves some Nordic characters. By default these characters are
just shown as small square in the text control when running the
flash file. If I try to enter these characters in the textbox
“Include these characters” within the dialog for
embedding, the text within the bold tag of the text file is not
shown when the text is rendered. It looks as if it effect the HTML
rendering of the text. The Nordic characters are still not showing
but instead the small square placeholders for the characters are
gone.
Am I doing it wrong, or is there a work around for solving
this problem?
Any ideas?
TIRislaaProblem – loading HTMLtext from a text file
Hi, I have a dynamic text set up to render text as HTML and I
am loading the text into the text object by using the code below.
var loadText:LoadVars = new LoadVars();
loadText.load("Nyheter.txt");
loadText.onLoad = function(success){
if(success){
Nyheter_txt.htmlText = this.VariabelTekst;
The textfile looks like:
VariabelTekst=<p align
="Right">(13.11.2006)</p><p><b><font
size="12">This is the tittle</b></p><p>Here
comes the text</p>
It works almost fine but the first problem is that the
paragraph text in the textfile should be written in Norwegian. This
involves some Nordic characters. By default these characters are
just shown as small square in the text control when running the
flash file. If I try to enter these characters in the textbox
“Include these characters” within the dialog for
embedding, the text within the bold tag of the text file is not
shown when the text is rendered. It looks as if it effect the HTML
rendering of the text. The Nordic characters are still not showing
but instead the small square placeholders for the characters are
gone.
Am I doing it wrong, or is there a work around for solving
this problem?
Any ideas?
TIRislaa -
Hi there,
The following code is in my main FLA....
quote:
// Request the content
var req:URLRequest = new URLRequest("PhotoViewer.swf");
// Create a loader object
var loader:Loader = new Loader();
// Load the content
loader.load(req);
// Add loader into the Display List
addChild(loader);
// Check loading progress
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
checkProgress);
// Update progress bar
function checkProgress(e:ProgressEvent):void
var percent:int = (e.currentTarget.bytesLoaded /
e.currentTarget.bytesTotal) * 100;
loadingBar.text = String(percent + '%');
mcLoadingBar.width = percent;
// Check when content is loaded
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
contentLoaded);
// Remove the progress bar objects
function contentLoaded(e:Event):void
removeChild(loadingBar);
removeChild(mcLoadingBar);
removeChild(loadingBarBorder);
The SWF "PhotoViewer.swf" is a file that another Flash
developer built and released as an open-source tutorial and the
file uses a Document Class to create a Photo Gallery from an XML
file. The PhotoViewer SWF works fine on it's own, but when I try to
load it within my main SWF I get the following error message....
quote:
TypeError: Error #1009: Cannot access a property or method of
a null object reference.
at PhotoViewer()
TypeError: Error #1009: Cannot access a property or method of
a null object reference.
at PhotoViewer/init()
at PhotoViewer/frame1()
I can post the code for the PhotoViewer.fla and
PhotoViewer.as if it will help locate the problem as to why I'm
getting the above error.
NOTE: The PhotoViewer.fla and PhotoViewer.as file has been
updated by myself. Originally the PhotoViewer.as file's constructor
would call a function called "init();" and the init function would
specify the url of the XML file to load, but I have removed this
init() function call from the constructor and instead I have placed
this in the first frame of the PhotoViewer.fla and also updated the
function call so it specifies the XML file to load (e.g.
init("Portfolio-Identity.xml");).
I thought it might be some problem with my ActionScript code
loading the PhotoViewer.swf file, but I changed the loading url to
another SWF that I built myself and it loaded the file fine.
I'm not sure why I'm getting this error?
Any help really appreciated!
Kind regards,
MarkMy main FLA that is loading in the PhotoViewer.swf file has
the following code....
quote:
// Request the content
var req:URLRequest = new URLRequest("PhotoViewer.swf");
// Create a loader object
var loader:Loader = new Loader();
// Load the content
loader.load(req);
// Add loader into the Display List
addChild(loader);
// Check loading progress
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
checkProgress);
// Update progress bar
function checkProgress(e:ProgressEvent):void
var percent:int = (e.currentTarget.bytesLoaded /
e.currentTarget.bytesTotal) * 100;
loadingBar.text = String(percent + '%');
mcLoadingBar.width = percent;
// Check when content is loaded
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
contentLoaded);
// Remove the progress bar objects
function contentLoaded(e:Event):void
removeChild(loadingBar);
removeChild(mcLoadingBar);
removeChild(loadingBarBorder);
The PhotoViewer.fla file has the following code....
quote:
init("Portfolio-Identity.xml");
And the PhotoViewer.as file has the following code (see
attached below)
Hope this helps.
Ta,
M. -
Add child loader object dynamically
Hi I wanna add loader object on stage dynamically but showing some error.
function addImage(str:String){
ld=new Loader()
ld.load(new URLRequest(str+'.png'))
ld.contentLoaderInfo.addEventListener(Event.COMPLETE,loadfinish)
function loadfinish(event:Event):void{
addChild(event.target.data)<<<this is showing error
error is :
ReferenceError: Error #1069: Property data not found on flash.display.LoaderInfo and there is no default value.
at imagesearch_fla::MainTimeline/loadfinish()If you look up the Loader class in the help documentation you will see that the error ois telling you what the problem is. There is no "data" property for the Loader class. The Loader class, since it deals primarily with visual elements, has a "content" property.
The URLLoader class has a data property and that is mainly because the URLLoader class is used for data files. -
Problems loading Adobe Flash SWF file
Our users are experienceing problems loading Adobe Flash SWF
files.
One example of a problem file is:
http://www.adobe.com/enterprise/accessibility/popup_acr8_accessibility.html
User traffic is flowing through a Cisco ASA firewall - these
problems do not seem to occur from home networks or a Netscreen
firewall. The Cisco ASA does NOT have http deep packet inspection
turned on, and any traffic initiated by clients inside the firewall
should be allowed. The symptom is that Internet Explorer will begin
to download the video, but will hang at some point along the way
(for this particular URL it hangs at about 7%). No error messages
are displayed, but the video never displays on the screen either. I
would appreciate hearing from anyone who may have run into this
before, or if someone can explain what is different about this type
of file from regular Adobe Flash, that might help figure out what
the ASA is objecting to. The ASA does not appear to generate any
log messages about denying this type of traffic either.
Thanks in advance for any help you can provide...Thanks, but I use publish/export settings with GPU hardware acceleration and flash version 11.2 (and 11.8) but nothing happening.
And why gif file is not all transparenty then I insert on lightblue background? It can't export good quality? Also I use Photoshop, After Effects, Adobe Edge Animate. And nothing happening. Egde animate file .oam is not good for old website navigation. It can't be inserted in freeshop site from navigation... I use logo file .oam just for example here - http://e-shoptagras.graphicsrim.eu
In reality I want swf file, but we don't find why logo flickering? here http://tagraseshop.graphicsrim.eu
All file's are transparenty - https://mega.co.nz/#!f8B2CD5R!J8uCJt9Sdq4Suz4HLhTHz8bzJcSWXMBIKcKZgkD3z8c
I need help! Please! -
I have an experiment setup that has a bunch of common equipment and a
chamber that supports 3 different experiment rigs. I created a Lookout
4.0.1 process for the common equipment and a separate process for each
experiment rig, (e.g., Common_Process, A_Process, B_Process,
C_Process). Only two processes need to be loaded and running
simulatneously (the common process and a specific experiment's process).
The common process is always loaded. I created a radio button selection
list to allow the operator to choose loading Experiment A, B, C or
None. I then created a loader object for each experiment. Here is my
annoyance. For Experiment A, the Loader object loads the process when
the radiobutton for Experiment A is selected (no prob
lems here). But
the trigger for unloading is when any of the other 3 radio buttons are
selected. The result is whenever we change experiments, I get a 2 error
messages. Process:Common_Process, Area:Comm, Description:"Unload:
Process not found: X_Process" where X is the name of the other
processes. Is there a better way to trigger an unload such that it will
not try to also unload the other processes?
Please remove the DELETE from my address and respond both directly to me
and to this NI usegroup.
TIA,
Alan
<><><><><><><><><><><><><><><><><><><><><>
Historical, though non-PC, quote of the day:
"We have staked the whole future of America's civilization,
not upon the power of government, far from it.
We have staked the future of all our political institutions
...upon the capacity of each and all of us to govern ourselves
according to the Ten Commandments of God." - James MadisonFYI - here is the response I got directly mailed to me from NI Support.
The solution works great. - Alan
=============================
From: [email protected]
Date: Tue, 25 Jul 2000 14:41:53 -0500
Subject: Re: Loader object - Unloading Logic Problem
Alan,
I have found a solution to your problem that you are receiving when you try
to
unload a process that has not been previously loaded. If you place the
following code in the unload portion of the Loader object (modifying it
accordingly) will eliminate the errors you were seeing.
if(Loader2.Load,if(!Radio1.2,1,0),0)
The code above checks to see if the process has been loaded by checking the
load
attribute of the Loader object. If the process has been loaded, then we
check
to see if we have selected a different process to load, if we have checked a
different process, then we tell the load object to unload the process.
Hope the above helps you in your development of your application.
Best Regards,
John Meier
National Instruments
http://www.ni.com/support
Alan Richard wrote:
> I have an experiment setup that has a bunch of common equipment and a
> chamber that supports 3 different experiment rigs. I created a Lookout
> 4.0.1 process for the common equipment and a separate process for each
> experiment rig, (e.g., Common_Process, A_Process, B_Process,
> C_Process). Only two processes need to be loaded and running
> simulatneously (the common process and a specific experiment's process).
>
> The common process is always loaded. I created a radio button selection
> list to allow the operator to choose loading Experiment A, B, C or
> None. I then created a loader object for each experiment. Here is my
> annoyance. For Experiment A, the Loader object loads the process when
> the radiobutton for Experiment A is selected (no problems here). But
> the trigger for unloading is when any of the other 3 radio buttons are
> selected. The result is whenever we change experiments, I get a 2 error
> messages. Process:Common_Process, Area:Comm, Description:"Unload:
> Process not found: X_Process" where X is the name of the other
> processes. Is there a better way to trigger an unload such that it will
> not try to also unload the other processes?
>
> Please remove the DELETE from my address and respond both directly to me
> and to this NI usegroup.
>
> TIA,
> Alan
>
> <><><><><><><><><><><><><><><><><><><><><>
>
> Historical, though non-PC, quote of the day:
>
> "We have staked the whole future of America's civilization,
> not upon the power of government, far from it.
> We have staked the future of all our political institutions
> ...upon the capacity of each and all of us to govern ourselves
> according to the Ten Commandments of God." - James Madison
<><><>><><><><><><><><><><><><><><><><><><>
Historical, though non-PC, quote of the day:
"We have staked the whole future of America's civilization,
not upon the power of government, far from it.
We have staked the future of all our political institutions
....upon the capacity of each and all of us to govern ourselves
according to the Ten Commandments of God." - James Madison -
When I try to open contacts from the icloud control panel on my windows 7 PC, I get an error message: can't load contacts. There was a problem loading the application.
-
no link to open access to the internet. I used Yahoo Messenger, clicked on the 'mail icon' and since Firefox is my default it opened and I was able to continue from there. If I try to click File, open New Page, I get the "problem loading webpage" and "connection timed out" messages
changed my homepage to Yahoo. Now Firrefox works but still cannot access ANYTHING 'Google"!
-
i cant access my mobsters account through myspace. every time i try to access it i get "problem loading page" "this page cannot be found" "404 error" and it wont let me access it. myspace works fine but as soon as i click on the mobsters app i get the 404 error, this page cannot be found, problem loading page! can you please help?
== This happened ==
Every time Firefox opened
== i try to access mobsters game through myspaceI dont understand the answer
'''''""The problem can be solved by opening FF and choosing Tools...Add On's...select the SEARCH addon and choose UNINSTALL...restart FF browser when asked, then reload Mobsters. This worked for me. The suggestion on the 404 that says to remove Search via Add/Remove Programs is completely BS, as Search doesnt show there. ""''''' -
When I open Firefox, a lot of tabs try to open at the same time. They all say Problem loading the page. It happened after I tried to download a owners manual for Harley Davidson motor cycles. How can I stop all but one tab from opening.
This can be a problem with the file [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
Delete [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.
See:
* http://kb.mozillazine.org/Session_Restore -
Problem loading Query Designer Add-in
Hi All,
Can anyone please help me on my below issue.
Whenever user is trying to start a new query in Essbase , he is getting below error message. It will not allow user to build a fresh Essbase pull
Problem loading Query Designer Add-in. Workbook Activate,open & close operations may not be fully propogated
Thanks in advance.
Regards
VishalHi Vishal,
1) Try to remove the addin and then add again.(Before doing this close all the excel process from the task Manager)
2) Check weather essexcln.xll and essxleqd.xla are corrupted.
Maybe you are looking for
-
Set JArray values with invalid key value: "LastUpdatedTime" on new alert rule creation
Hey all! I'm trying to create a new alert rule using version 0.9.11 of the Monitoring Library and am getting this error on alertsClient.rules.CreateOrUpdate: "Set JArray values with invalid key value: "LastUpdatedTime". Array position index expected.
-
How to make transperent widget.
Hi all, I am new to this xlet things and it has been long time since I worked on java. so, this might have a simple solution which I am overlooking. I have HStaticIcon in the background and trying to put HStaticText on the top. I want to make static
-
Create address labels in Pages
How do I import an Avery address label template into Pages?
-
HT4410 How do I download Windows 7 ISO image to my flash drive
I have a new mac mini and want to use it's boot camp assistant to set up windows 7, but I am having trouble finding a way to download the Windows 7 ISO image to a USB flash drive. Where can I buy and download this? With the mini, no optical drive i
-
After updating my OS I keep getting logged out
After updatting my OS everything went down south. I keep getting logged out of my account automatically and I would have to log in again and lose all my work. My camera stops working too. Any idea of whats going on and how I can fix it?