Error compiling examples from DAQmx Base 3.6 on Scientific Linux 6.4 x86_64

I installed NAQmx Base 3.6, and it didn't output any errors, but when I try to make the examples given in /usr/local/natinst/nidaqmxbase/examples/ai, it returns a lot of errors (attached). Is there a way to fix this? I also tried just compiling the files without the make file, but it returned divide by 0 errors.
System specs:
# uname -a
Linux localhost.localdomain 2.6.32-358.6.2.el6.x86_64 #1 SMP Thu May 16 11:21:38 CDT 2013 x86_64 x86_64 x86_64 GNU/Linux
I did notice that nilsdev isn't found. lsmod gives the following:
# lsmod | grep ni
nimxdfk               668960  1
nipxirmk              272550  1
nimdbgk               520774  3 nimxdfk,nipxirmk
nidimk                421013  2 nipxirmk
niorbk                126140  4 nimxdfk,nipxirmk,nimdbgk,nidimk
nipalk               1595877  8 NiViPciK,nimxdfk,nipxirmk,nimdbgk,nidimk,niorbk
nikal                  86684  2 nipxirmk,nipalk
cnic                   55511  2 bnx2fc,bnx2i
uio                    10462  1 cnic
ipv6                  321454  32 ip6t_REJECT,nf_conntrack_ipv6,nf_defrag_ipv6,cnic
What should I do?
Thanks!
Attachments:
error.log ‏39 KB

The errors look like the system is missing the 32-bit C++ library. Do you have the 32-bit libraries installed [1]?
error.log:
/usr/bin/ld: warning: libstdc++.so.6, needed by /usr/local/lib/liblvrtdark.so.12.0, not found (try using -rpath or -rpath-link)
[1] Unable to Build DAQmx Base C Application on 64-bit RedHat
http://digital.ni.com/public.nsf/allkb/93C92D41B25341B286257A4D007BACB8
Joe Friedchicken
NI VirtualBench Application Software
Get with your fellow hardware users :: [ NI's VirtualBench User Group ]
Get with your fellow OS users :: [ NI's Linux User Group ] [ NI's OS X User Group ]
Get with your fellow developers :: [ NI's DAQmx Base User Group ] [ NI's DDK User Group ]
Senior Software Engineer :: Multifunction Instruments Applications Group
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)

Similar Messages

  • Error Code -50150 from DAQmx Create Channel (AI-Voltag​e-Basic).v​i

    I have an executable, built from Labview 7.1 VI's. All it is doing is reading 6 voltages back from a 6008 USB-DAQ, and reporting the results back. Occasionally, it is throwing an Error -50150 from DAQmx Create Channel (AI-Voltage-Basic).vi. The full error message is:
    Error Code: -50150
    DAQmx Create Channel (AI-Voltage-Basic).vi<append>
    <B>Task Name: </B>_unnamedTask<0>
    Can anyone shed some light on this problem?
    Cheers.

    Hi fellas,
    I have a really similar problem to the one Neilelph had, but I can´t see how to solve it from your answers. I attached a picture of my main .VI.
    It´s basically a photodiode measurment system working as follows:
    1. First the moving stages for the system get ready (X-Y moving stages for the Photodiode and Z stage for the Laser). That´s the CONFIG subVI in the left.
    2. Then there is a For Loop, that repeats N times depending on the Initial Z, final Z and step values. So in this .VI the laser moving stage is the only one changing.
    3. In each loop, the stages go to the X,Y,Z(t) posiition (MOV subVI), wait for the movement (WAIT subVI) and read the position. After that, the DAQmx acquistion part starts. I just sample the output DC voltage coming from the  Photodiode (Dev1/ao1), 1000 samples in 1 second, and then I make an average of all of them with the Basic DC/rms block. So at the end I have 1 position of Z and one DC value. And it worked perfectly. At least for small number of iterations I have no problems. 
    The problem comes with small steps and a great number of iterations. For example last night I ran a measurement. 10000 iterations, the whole range of Z, and today i checked it. It worked fine until 5000 give or take, the half of the range. From that point, the DC ouput recorded in the .lvm file is just 0.00000. It´s the second time it happens, so I´m wondering what´s wrong because I´m affraid to make more long measurments and obtain the same results. 
    The error message I obtained is the same than in the thread title: -50150  DAQmx Create Channel (AI-Voltage-Basic).vi:6<append> <B>Task Name: </B>_unnamedTask<53BC>
    Maybe it would be useful to mention that, sometimes, there is no error and I have some DC Output Voltage value, for random Z potitions, but since the first error message, that barely happens. The output is almost always 0.
    Sorry for my writting skills in English. I hope you can understand my situation.
    Thank you in advance.
    Kind regards,
    frilance.
    Attachments:
    Diagram.JPG ‏83 KB

  • Problem when compiling example from TechEd 2008

    Hi,
    I' am using sap sneak preview 7.01 and I'm trying to compile the ZMHO_EX3_*  webdynpro example.
    I get the error :
    "syntax error : long text".
    When I check the syntax I have allways the same error :
    Field ")" is unknown...
    each time the source code follow this structure :
    wd_this->mr_message_manager = wd_this->wd_get_api ( )->get_message_manager( ).
    All the attributes of the assistance class ZCL_MHO_WD_SERVICE are red highlight.
    I need to use FlashIsland to create mockups for a ramp up client, can you help me to solve this this problem ?
    Thanks,
    Regards

    Hi,
    thank you very much for answering me so quickly, I really appreciate this.
    I'have already try to fix the problem by splitting the line code, but it doesn't work.
    I paste bellow my piece of code, it is located in the method wdoinit of the component controller
    METHOD wdoinit .
    data l_api type ref to if_componentcontroller .
    l_api = wd_this->wd_get_api( ) .
    wd_this->mr_message_manager = l_api->get_message_manager( ) .
    wd_this->init_new_record( so_id = '00000000005000000010' ) .
    wd_this->read_products( ) .
    ENDMETHOD.
    I get the following error :
    The result type of the function method cannot be converted into the type of l_api type of l_api.
    Instead of if_componentcontroller I tried ig_componentcontroller too, but it doesn't work too.
    The long text error at the origin of my post as a lot of occurences in the syntax error window when I check this application: about 10 errors with the same origin.
    All attributes of the assistance class ZCL_MHO_WD_SERVICE are allways displayed in red, is it normal ?
    Have I to setup/upgrade something on my system in order it will work ?
    (There is a lot of errors, since is there a global solution to fix it in one shoot ?)
    Thank you,
    Regards.

  • [Solved]Error compiling kernel from abs

    Hello Everyone,
    I've hit a wall trying to compile the kernel from the abs. I get this error message:
    patching file fs/fat/inode.c
    Hunk #1 succeeded at 800 (offset 74 lines).
    HOSTCC scripts/basic/fixdep
    /bin/sh: scripts/basic/fixdep: cannot execute binary file
    make[2]: *** [scripts/basic/fixdep] Error 126
    make[1]: *** [scripts_basic] Error 2
    SYSHDR arch/x86/syscalls/../include/generated/asm/unistd_32.h
    SYSHDR arch/x86/syscalls/../include/generated/asm/unistd_64.h
    make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
    make: *** Waiting for unfinished jobs....
    HOSTCC scripts/basic/fixdep
    SYSHDR arch/x86/syscalls/../include/generated/asm/unistd_x32.h
    SYSTBL arch/x86/syscalls/../include/generated/asm/syscalls_32.h
    /bin/sh: scripts/basic/fixdep: cannot execute binary file
    make[1]: *** [scripts/basic/fixdep] Error 126
    make: *** [scripts_basic] Error 2
    ==> ERROR: A failure occurred in build().
    Aborting...
    While trying to figure this out I came across this post: https://bbs.archlinux.org/viewtopic.php?id=99089 and have tried the solutions presented. I did end up having to change my fstab to include defaults,
    /dev/sda3 /home ext4 defaults,exec,rw,relatime,data=ordered 0 2
    and the permissions on scripts/basic/fixdep are: -rwxr-xr-x which i think it correct.
    Unfortunately, the problem still exists and I don't know how to continue trouble shooting. Can someone point me in a direction to troubleshoot this?
    Last edited by magyarm (2012-12-20 01:55:00)

    magyarm wrote:So now, I need to figure out a good way to handle multiple compilers on my system to prevent this from happening again. If anyone has any tips I would love to hear them.
    Set up a file that you source from bash to prepend the cross compiler to your path, that would only be active for that shell, and when you're done just close it. Means you only activate the cross compiler when you need it.

  • Error Compiling eapol_test from wpa_supplicant

    I'm trying to build eapol_test from wpa_supplicant. When I execute "make eapol_test", I get the following error:
    /usr/bin/ld: cannot find -lnl
    collect2: error: ld returned 1 exit status
    Makefile:1625: recipe for target 'eapol_test' failed
    make: *** [eapol_test] Error 1
    I have libnl installed. Can someone explain why the build fails?

    Works fine here, form where did you get the sources? And what is the output of the following commands?
    pacman -Qi libnl
    ldconfig -p | grep libnl
    -- edit:
    I think the best method is to download the package sources using ABS and then edit the PKGBUILD to compile  eapol_test
    Last edited by mauritiusdadd (2015-05-28 07:02:09)

  • USB 6009 and DAQmx Base Concerns

    Hello,
    I just received a USB-6009 multifunction DAQ device along with DAQmx Base for use on Windows XP with LabWindows/CVI ver 7.1.  Both the 6009 and DAQmxBase are successfully installed however I have several questions, I hope I am missing something obvious:
    1. The Task Configuration Utility is not needed for use with LabWindows/CVI?  I believe I read this in the Getting Started Guide.
    2. There is no function panel for the DAQmxBase functions?  I even searched the installation CD and found no .fp files.  So the only way to know what functions are available with DAQmxBase is to open the NIDAQmxBase.h file and search through the function prototypes?  Then, to know what a function does it is necessary to open the C Function Reference Manual via the Windows Start button and search for the function name of interest?
    3. When creating a digital input or output channel with DAQmxBaseCreateDIChan or DOChan is it only possible to setup a "channel" as an entire port?  Is it not possible to setup a channel as a single input or output line?  Similarly, once the channel is configured is it only possible to read or write an entire port with DAQmxBaseReadDigitalU8 or WriteDigitalU8?  I was expecting something similar to the DIG_out_line function used in Traditional NI-DAQ where a board number, port number, line number and state are passed so that a signal output line can be set on or off.
    Thanks in advance for the assistance,
    - Aaron

    Aaron T. wrote:
    Hello,   I just received a USB-6009 multifunction DAQ device along with DAQmx Base for use on Windows XP with LabWindows/CVI ver 7.1.  Both the 6009 and DAQmxBase are successfully installed however I have several questions, I hope I am missing something obvious:   1. The Task Configuration Utility is not needed for use with LabWindows/CVI?  I believe I read this in the Getting Started Guide.  
    **The Task Configuration Utility is not necessary, except that there is significant functionality missing from DAQmx Base but present in the utility. That includes a lot of what DAQmx calls "proerties", and includes things like the convert rate for AI scanning.
    2. There is no function panel for the DAQmxBase functions?  I even searched the installation CD and found no .fp files.  So the only way to know what functions are available with DAQmxBase is to open the NIDAQmxBase.h file and search through the function prototypes?  Then, to know what a function does it is necessary to open the C Function Reference Manual via the Windows Start button and search for the function name of interest?  
    **I don't use CVI so I don't know anything about this. It strikes me that even if you have such a panel reading the documentation is a good idea
    3. When creating a digital input or output channel with DAQmxBaseCreateDIChan or DOChan is it only possible to setup a "channel" as an entire port?  Is it not possible to setup a channel as a single input or output line?  Similarly, once the channel is configured is it only possible to read or write an entire port with DAQmxBaseReadDigitalU8 or WriteDigitalU8?  I was expecting something similar to the DIG_out_line function used in Traditional NI-DAQ where a board number, port number, line number and state are passed so that a signal output line can be set on or off.  
    **Well, the ReadMe file says that USB-6008/9 is supported with both Line I/O and Port I/O. On the other hand, the documentation for DAQmxBaseCreateDOChan and DAQmxBaseCreateDIChan say for the lineGrouping parameter, "Always pass DAQmx_Val_ChanForAllLines." So your question is a good one! Perhaps one of the NI engineers can comment on this.
    - Aaron
    Thanks in advance for the assistance,
    John Weeks
    WaveMetrics, Inc.
    Phone (503) 620-3001
    Fax (503) 620-6754
    www.wavemetrics.com

  • NI Daqmx Base tutorial

    Hi,
    I am now using a data acquisition CompactFlash-6004 and i have installed the NI DAQmx Base 3.1 driver. The problem now is i can't find any tutorials for NI DAQmx base.Any kind person please direct me to the correct source?

    The LabVIEW NI-DAQmx Base Help gives a lot of information on the LabVIEW VI's and properties. In LabVIEW, select Help » Search the LabVIEW Help and the VI reference help section for NI-DAQmx Base.
    Also, please see the KB below for the location of examples for DAQmx Base and the Developer Zone article for some getting started information with DAQ.
    Where Can I Find NI-DAQmx Base Examples?
    http://digital.ni.com/public.nsf/allkb/BEA8C88ED8B09AF286256ED0004544F7?OpenDocument
    Complete Data Acquisition Tutorial
    http://zone.ni.com/devzone/cda/tut/p/id/3116
    Regards,
    Chris Delvizis
    National Instruments

  • NI DAQmx Base error

    We're trying to use the NI USB 9233 DAQ card with DAQmx Base 3.4 on Windows 7 and we're getting a lot of errors in the process.
    The card seems to be recognized properly, as it shows in the Measurement and Automation Explorer (the one that came with DAQmx Base).
    But when we open the NI Data Logger, it says "Error 200036 at Requested Sample Clock Rate not supported by device".
    We're tried changing the sample rate quite a few times, and to a lot of different values, with the same result.
    Also, in the NI Nase Configuration Utility, we're unable to create a task. The Device simply shows up at "Dev1" i.e. without any name. And when we try to create a task, the "OK" button is greyed out.
    Any ideas what may be going wrong?
    Thank you in advance
    Sarthak

    Wow, I did not know there were two different things... I thought it just meant it was a base error.
    Neil, can you provide all of the code that you have that controls your DAQmx stuff? You're showing a small part of the whole DAQmx process and it's just not enough information to get to the root of the problem.

  • LABVIEW PDA/DAQmx Base error

    I'm building a VI for a PDA (pocketPC 2003)
    In a Functions Panel, when I'm going in a menu "Measurement I/O" => "DAQmx Base", it misses many icons. I have installed and uninstalled three time DaqmxBase 2.2 with the same result (icon.jpg). I have installed Daqmx Base 3.0 and the problem is always there. Moreover, when I'm going in menu "Select VI" in a Functions Panels, I can open anothers Daqmx Base VI, but there is many errors (error.jpg).
    Labview 8.2.1
    Labview PDA 8.2.1
    DAQ6062E
    Attachments:
    error4.JPG ‏108 KB
    icon.JPG ‏130 KB

    Hi,
    LabVIEW PDA support for DAQ is limited.  The number of DAQ VI's available on LabVIEW PDA is also limited. 
    I could not clearly view your error list but I did run across a possibly useful Knowledge Base article. I am also including the Known Issues with LabVIEW PDA 8.2.1 . I hope this helps!
    Regards,
    Ima
    Applications Engineer
    National Instruments
    LabVIEW Introduction Course - Six Hours
    Getting Started with NI-DAQmx

  • I'm having this message when I try to export my video from Premiere Pro:  "Error compiling movie. Unknown error"

    I'm having this message when i try to export my video from Premiere Pro:
    "Error compiling movie. Unknown error" Do anybody knows what to do?

    1st, I moved your message to the correct forum
    2nd, More information needed for someone to help... please click below and provide the requested information
    -Premiere Pro Video Editing Information FAQ http://forums.adobe.com/message/4200840
    3rd, Error Compiling Movie... some past discussions and ideas
    -http://helpx.adobe.com/premiere-pro/kb/error-compiling-movie-rendering-or.html
    -http://helpx.adobe.com/premiere-elements/kb/error-error-compiling-movie-render.html
    -and nested sequences http://forums.adobe.com/thread/955172
    -and WMV files frame rate http://forums.adobe.com/message/4629210

  • Getting error -200452 using DAQmx Base Trigger (Digital Edge).

    I'm trying to set up AI and counter output, and I'm using digital output as trigger for to start AI and counter at the same time. I get error 200452 "Specified property is not supported by the devise..." not consistently, but around 5 runs out of 100. Below the error description, the error box shows "This error code is undefined. No one has provided a description for this code..." If I "Retain Wire Values" in Block Diagram, the error first appears after 'Start Digital Edge' block in top counter output line.
    Using LabView 8.5 on MAC OS X and DAQmxBase 3.2
    The MAC I have is not Intel base, so I can't upgrade LabView and DAQmxBase to latest version
    Note: The file contains just a small portion of the program, but the rest of the program does not have any other DAQmxBase blocks accessing the channels used here in code attached.
    Attachments:
    Combined V 1.5.41_sm.vi ‏98 KB

    Hi Azotov,
    It looks like the DAQmx Base driver readme includes Mac OS X support for LabVIEW 8.5.  Could you specify what hardware you are using?
    I found one KnowledgeBase specifying that error code occurs when you try to use certain properties with certain devices.  Of course, this would most likely occur every time you run the task, not 5% of the time.
    Since I'm running Windows, it's a little difficult to see if you have DAQmx Base "Reset Device" functionality with that version of the driver.  You might check if you can run that functionality before using your device, though.
    National Instruments

  • OAS Error with Servelet example from OTN

    I have followed the servelet example
    from OTN Oracle Java Roadmap and it works
    in JDeveloper. THen I followed the steps for
    deployment to OAS and I get the following
    02-22-2000 13:21:43 0 demlwo193 `JAVAWEB` 445 7 0x400fff `Java cartridge runtime intialize..., thr_id: 19
    `
    02-22-2000 13:21:43 0 demlwo193 `JAVAWEB` 445 7 0x400fff `Notify object content initialized to null`
    02-22-2000 13:21:43 0 demlwo193 `JAVAWEB` 445 7 0x400fff `config flag: MAX_HEAP value: 64M
    `
    02-22-2000 13:21:43 0 demlwo193 `JAVAWEB` 445 7 0x400fff `config flag: SYSTEM_PROPERTY value: java.naming.factory.initial=oracle.oas.naming.jndi.CartxInitCtxFactory
    `
    02-22-2000 13:21:43 0 demlwo193 `JAVAWEB` 445 7 0x400fff `config flag: SYSTEM_PROPERTY value: ORACLE_HOME=e:\oracle\oas
    `
    02-22-2000 13:21:43 0 demlwo193 `JAVAWEB` 445 7 0x400fff `config flag: SYSTEM_PROPERTY value: ORAWEB_HOME=e:\oracle\oas\ows\4.0
    `
    02-22-2000 13:21:43 0 demlwo193 `JAVAWEB` 445 7 0x400fff `Using Servlet runtime
    `
    02-22-2000 13:21:43 0 demlwo193 `JAVAWEB` 445 7 0x400fff `config flag: RUNTIME_MODE value: JSERVLET
    `
    02-22-2000 13:21:43 0 demlwo193 `JAVAWEB` 445 7 0x400fff `CLASSPATH=e:\oracle\oas\ows\4.0\jdk\lib\classes.zip;e:\oracle\oas\ows\4.0\classes\services.jar;e:\oracle\oas\ows\cartx\jweb\classes\jweb.jar;e:\oracle\oas\ows\cartx\jweb\classes\j servlet.jar;e:\oracle\oas\orb\classes\yoj.jar;e:\oracle\oas\ows\4.0\classes\cosnam.jar;e:\oracle\oas\orb\classes\session.jar;e:\oracle\oas\orb\classes\cache.jar;e:\oracle\oas\jdbc\ lib\classes111.zip;e:\oracle\oas\ots\classes\oraclejts.jar;e:\oracle\oas\ots\classes\jtsjdbc.jar;e:\oracle\oas\ows\4.0\classes\ecoapi.jar;e:\oracle\oas\ows\4.0\classes\ejbapi.jar;e :\oracle\oas\ows\4.0\classes\oasdeploy.jar;c:\ctxdemo\DemoDBServelet.jar;c:\jCVS-5.1.1\jcvsii.jar
    `
    02-22-2000 13:21:47 0 demlwo193 `JAVAWEB` 445 0 0x400fff `Exception `
    02-22-2000 13:21:47 0 demlwo193 `JAVAWEB` 445 0 0x400fff `in thread `
    02-22-2000 13:21:47 0 demlwo193 `JAVAWEB` 445 0 0x400fff `"Thread-5"`
    02-22-2000 13:21:47 0 demlwo193 `JAVAWEB` 445 0 0x400fff ` `
    02-22-2000 13:21:47 0 demlwo193 `JAVAWEB` 445 0 0x400fff `Exception happend in executing:oracle.OAS.servlet.servletrunner.main(String[])
    `
    null

    1. Which version of JDK you are using. OAS 4081 is certified for JDK 1.1.6. If you are using JDeveloper3.0 (JDK 1.2.2), please change over to JDeveloper3.0 (JDK 1.1.8).
    2. Similarly, which version of JVM is used with OAS. You may have to edit your wrb.app to make necessary changes.
    Jayakumar
    null

  • NI-DAQmx Base - "Read or Write task without first setting line states"

    I am writing an application to interface with the USB-6501 hardware platform. In my application, I am first initializing all the lines on each digital port to be either read or write lines. After these lines have been initialized to the correct state, I would like to write data to a specific port, or read data from that port, without having to again define the line states (i.e. I'd like to write data to the port based on the already configured lines).
    Here's how I approach the problem. On initialization, my program will create a DAQmxBase task which will set the lines I specify as "Write" lines for port0, following this is another task which specifically sets the "Read" lines for port0. When I create a task to simply read or write data to a port (without again defining which lines are write and which lines are read) I receive the error "-200428 - Value passed to the Task/Channels In control is invalid.". If I define the read and write lines as a step in the same task which reads or writes data (respectively), the process seems to work ok.
    Can anybody offer any insight to whether or not I should be able to accomplish this task using this approach?
    Thank you for your help.

    Hello DarkCloud. Thank you for contacting National Instruments. If you create a task in the DAQmx Base Configuration Utility and set the direction of the line, you don't need to reset the direction in LabVIEW. There are some examples of how to do this at Start>>All Programs>>National Instruments>>NI-DAQmx Base>>Examples>>LabVIEW 7.1. Open the static example for DIO>>Write Dig Port. Please let me know if you have any questions. Have a great day!
    Marni S.
    National Instruments

  • NI-DAQmx Base 2.0 and Win Mobile 5

    Hi,
    Can anybody tell me if NI-DAQmx Base 2.0 is compatable with Win Mobile 5 devices?
    I'm trying to capture analogue voltages and my app builds fine and loads to the PDA, but the PDA is not seeing the PCMCIA DAQ card (6062E) that I'm using.
    I have run the "Base" installer which has copied the Base driver file/s to the PDA (and I have the Base task setup OK in the VI), but the PDA comes up with an "Unrecognized Card" error. I have removed the Base driver/s from the PDA and reinstalled them but with no luck.
    Is this just because Base 2.0 is not compatable with Win Mobile 5?
    Is there any way I can get Base 2.1 to work with LV-Pro-8 and PDA-8 or is there some other way I can get the drivers onto the PDA that will handle the 6062 card under Win Mobile 5.
    Any help would be greatly appreciated,
    Thanks,
    Paul.
    Solved!
    Go to Solution.

    Hi Paul,
    Good afternoon and I hope your well. 
    One thing to bear-in-mind is that DAQmx Base doesn't offically support Windows Moble 6 devices - even though they have been seen to work. This is not to get confused with LabVIEW 8.6 which does support Windows Mobile 6. i.e. just not DAQ applications/DAQ hardware. 
    I am another customer, here at NI UK Support and I have another customer with the an issue with WM6 and DAQ CF, I'd like to work more with you on this.. could you please provide more details on how it goes tomorrow and the tests you do. 
    For reference please look at these links: 
    http://zone.ni.com/devzone/cda/tut/p/id/7705#toc0
    http://digital.ni.com/public.nsf/allkb/F6576C46AD7B42768625758200510715?OpenDocument
    Thanks
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!

  • Net.sf.jasperreports.engine.JRException: Error loading object from file : C

    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)
    ...

Maybe you are looking for

  • Error in smartform japaneese output allignment when we get thatby email.

    Hi ALL , I am getting the following output when i am sending an email . I am using a smartform for that display. My problem is field allignment as shown in the below records. Because of small characters in japaneese language we are not getting the pr

  • How to get photos from txt msgs into gallery, and to my home pc

    I have no problem getting photos from Gallery into my home PC (Windows 7) using the USB cord.  I cannot figure out how to save a photo which has been sent to me via txt msg.  tried the bottom left menu, and nothing there to help.

  • In OS X Lion, Finder will not "Arrange By Name" in "Column view".

    If I select "Arrange By > Name" in "Column View" in any window, nothing happens. This is a massive inconvenience. I attached an image of a finder window of my applications below, in which the Column view with arrange by Name is configured, but the ap

  • Re NOT EXISTS SQL QUERY

    Hai , I am having doubt regarding NOT EXISTS sql query, I want to select rows from table1 where column2 < column3 and column1 value should not exists in another two tables. When i tried with NOT IN clause i got the answer but i didnt get when i tried

  • Layer limit to importing Photoshop to Premiere

    I have a photoshop file with 27 folders containing approx4 layers each (text layers and some grpahics) each layer is separate and named accordingly. However, upon importing this file to Premiere (all layers turned on/visible) Premiere will only impor