Results 1 to 3 of 3
  1. #1
    nayanjyoti is offline Member
    Join Date
    Apr 2011
    Posts
    7
    Rep Power
    0

    Post Problem in calling report containing subreport

    Hi,

    I have created a master report and subreport using iReport3.7.6. But while I call the master report file from java file the below errors are occurred. So, my kind request to help me in solving this problem.
    My email ID nayan@nesoftwares.com

    My code
    public void call_report()
    {
    HashMap param=new HashMap();
    param.put("Customer ID-", txtcustomer_id.getText());
    MyiReportViewer viewer=new MyiReportViewer("src/report/current_room_info.jrxml",param);
    viewer.setVisible(true);

    }
    //should i have to put other things in the above code.
    //master report and subreport are both in report directory.

    The generated error............

    net.sf.jasperreports.engine.JRRuntimeException: Unknown hyperlink target 0
    at net.sf.jasperreports.engine.JRHyperlinkHelper.getL inkTarget(JRHyperlinkHelper.java:269)
    at net.sf.jasperreports.engine.base.JRBaseTextField.n ormalizeLinkTarget(JRBaseTextField.java:313)
    at net.sf.jasperreports.engine.base.JRBaseTextField.r eadObject(JRBaseTextField.java:377)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at java.io.ObjectStreamClass.invokeReadObject(ObjectS treamClass.java:974)
    at java.io.ObjectInputStream.readSerialData(ObjectInp utStream.java:1849)
    at java.io.ObjectInputStream.readOrdinaryObject(Objec tInputStream.java:1753)
    at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1329)
    at java.io.ObjectInputStream.readObject(ObjectInputSt ream.java:351)
    at java.util.ArrayList.readObject(ArrayList.java:593)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at java.io.ObjectStreamClass.invokeReadObject(ObjectS treamClass.java:974)
    at java.io.ObjectInputStream.readSerialData(ObjectInp utStream.java:1849)
    at java.io.ObjectInputStream.readOrdinaryObject(Objec tInputStream.java:1753)
    at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1329)
    at java.io.ObjectInputStream.defaultReadFields(Object InputStream.java:1947)
    at java.io.ObjectInputStream.readSerialData(ObjectInp utStream.java:1871)
    at java.io.ObjectInputStream.readOrdinaryObject(Objec tInputStream.java:1753)
    at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1329)
    at java.io.ObjectInputStream.readArray(ObjectInputStr eam.java:1667)
    at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1323)
    at java.io.ObjectInputStream.defaultReadFields(Object InputStream.java:1947)
    at java.io.ObjectInputStream.readSerialData(ObjectInp utStream.java:1871)
    at java.io.ObjectInputStream.readOrdinaryObject(Objec tInputStream.java:1753)
    at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1329)
    at java.io.ObjectInputStream.defaultReadFields(Object InputStream.java:1947)
    at java.io.ObjectInputStream.defaultReadObject(Object InputStream.java:480)
    at net.sf.jasperreports.engine.base.JRBaseReport.read Object(JRBaseReport.java:732)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at java.io.ObjectStreamClass.invokeReadObject(ObjectS treamClass.java:974)
    at java.io.ObjectInputStream.readSerialData(ObjectInp utStream.java:1849)
    at java.io.ObjectInputStream.readOrdinaryObject(Objec tInputStream.java:1753)
    at java.io.ObjectInputStream.readObject0(ObjectInputS tream.java:1329)
    at java.io.ObjectInputStream.readObject(ObjectInputSt ream.java:351)
    at net.sf.jasperreports.engine.util.JRLoader.loadObje ct(JRLoader.java:90)
    at net.sf.jasperreports.engine.util.JRLoader.loadObje ctFromLocation(JRLoader.java:246)
    at net.sf.jasperreports.engine.fill.JRFillSubreport.e valuateSubreport(JRFillSubreport.java:317)
    at net.sf.jasperreports.engine.fill.JRFillSubreport.e valuate(JRFillSubreport.java:266)
    at net.sf.jasperreports.engine.fill.JRFillElementCont ainer.evaluate(JRFillElementContainer.java:256)
    at net.sf.jasperreports.engine.fill.JRFillBand.evalua te(JRFillBand.java:482)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller. fillColumnBand(JRVerticalFiller.java:1423)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller. fillDetail(JRVerticalFiller.java:725)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller. fillReportStart(JRVerticalFiller.java:252)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller. fillReport(JRVerticalFiller.java:110)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill (JRBaseFiller.java:908)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill (JRBaseFiller.java:811)
    at net.sf.jasperreports.engine.fill.JRFiller.fillRepo rt(JRFiller.java:59)
    at net.sf.jasperreports.engine.JasperFillManager.fill Report(JasperFillManager.java:417)
    at hotel_project.MyiReportViewer.<init>(MyiReportView er.java:30)
    at hotel_project.customer_checkout.call_report(NDcust omer_checkout.java:620)
    at hotel_project.customer_checkout.actionPerformed(ND customer_checkout.java:453)
    at javax.swing.AbstractButton.fireActionPerformed(Abs tractButton.java:1995)
    at javax.swing.AbstractButton$Handler.actionPerformed (AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultB uttonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(BasicButtonListener.java:236)
    at java.awt.Component.processMouseEvent(Component.jav a:6263)
    at javax.swing.JComponent.processMouseEvent(JComponen t.java:3267)
    at java.awt.Component.processEvent(Component.java:602 8)
    at java.awt.Container.processEvent(Container.java:204 1)
    at java.awt.Component.dispatchEventImpl(Component.jav a:4630)
    at java.awt.Container.dispatchEventImpl(Container.jav a:2099)
    at java.awt.Component.dispatchEvent(Component.java:44 60)
    at java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:4574)
    at java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:4238)
    at java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.jav a:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2478 )
    at java.awt.Component.dispatchEvent(Component.java:44 60)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java: 599)
    at java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:122)

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default

    Don't double post the same question. The other thread you started has been removed.

    db

  3. #3
    nayanjyoti is offline Member
    Join Date
    Apr 2011
    Posts
    7
    Rep Power
    0

    Default

    I apologize...........
    Sir, please help me in solving my problem...........

Similar Threads

  1. Report Problem
    By amitabh in forum NetBeans
    Replies: 9
    Last Post: 05-09-2011, 07:50 AM
  2. IReport - Subreport problem
    By easycodes in forum Advanced Java
    Replies: 0
    Last Post: 02-16-2011, 05:40 AM
  3. Calling a crystal report from swing form
    By sams in forum AWT / Swing
    Replies: 2
    Last Post: 05-14-2010, 05:59 AM
  4. Replies: 1
    Last Post: 08-28-2009, 11:46 AM
  5. Replies: 0
    Last Post: 03-04-2009, 09:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •