Build Application for Dynamic SubVI

We have a Labview project for test different kinds of product, each product
has a subVi which got called by project via Reference Node. The whole
project works fine , that means the dynamic load in those subvi is right.
When we build executable application for this project , the file can load
some subVi, the test for this product can work , but some subvi can't loaded
into memory, then the test for this product can't work.
Any suggestion is appreciated.

When you build your application, on the Source Files tab, click Add Dynamic
VI and then select all of the VIs that you call by reference node.
"Samuel Zhang" wrote:
>>We have a Labview project for test different kinds of product, each product>has
a subVi which got called by project via Reference Node. The whole>project
works fine , that means the dynamic load in those subvi is right.>>When
we build executable application for this project , the file can load>>some
subVi, the test for this product can work , but some subvi can't loaded>into
memory, then the test for this product can't work. >Any suggestion is appreciated.>

Similar Messages

  • When will this happen? beta of Flash Professional CS5 with support for building applications for iPh

    When will this happen? beta of Flash Professional CS5 with support for building applications for iPhone by the end of 2009

    Sadly.... NEVER

  • Build applications with dynamic loaded subVI's as dll

    I want to build an application with some subVI's. The target would be to have an *.exe from the topVI and a seperate file for every subVI (I suppose this will then be a *.dll file)
    The topVI uses the "call by reference node" with a "type specifier VI refnum" reference.
    The path of the subVI's is read from a textfile and the subVI's are called dynamicly, all subVI's have the same connector layout.
    Until now I was not able to generate a *.exe file wich is able to dynamicly call subVI's which are not included in the *.exe file (I tried with *.vi, *.llb and *.dll versions of the subVI's).
    Building this application with all subVI's included in the *.exe is no problem and works fine, but is not what I want.
    The target would be to have the possibility to update only some subVI's without the need to build the whole application again.
    This way of working would increase the flexibility to have different combinations of versions a lot.
    I am using LV8.2.
    Is my question anyway possible and if yes can somebody tell me how?
    Thanks!

    Hello,
    A SubVI is actually what you call a sub-routine in text-based programming languages.
    So when you build an executable from a VI with SubVI's, it will simply build everything into one exe file.
    That's normal behaviour.
    If you would like to use dll's for flexibility, than you have to build VI's seperately for every dll you want to build.
    These dll's can than be called from within you main application executable.
    This practice is often used by system integrators to protect there code otherwise than a larger executable, but mainly because of easy maintenance.
    That is what I think you are also looking at.
    So what you would like to do is perfectly possible and common practice, you may only have to change your top view of the actual application.
    Best regards,
    Joeri
    National Instruments
    Applications Engineering
    http://www.ni.com/ask
    Make our forums great:
    If you like the answer, don't forget to "Kudos!".
    "Accept the Solution" if your question is answered!

  • Dynamically build URLS  for dynamic navigation

    hello all, I am trying to develop dynamic navigation for pl/sql portlets in oracle portal 10g. When admins place the portlets i develop on pages or tabs, etc, i would like to be able to query the database for there location(what page or tab its assigned to) dynamically so i can build links that would allow linking from portlet to portlet no matter where the admin placed them in the Portal. So my question is, what table or tables list the page_id or tab_id for portlets when they are added to a region on page or tab???

    The Content Area Views describe the information that you can access from PL/SQL.
    Peter

  • Use RT Communication Wizard to build application for PDA

    Hi,
    I am wondering if the RT Communication Wizard can be used to build the Host, NPL and TCL VIs for PDA touch screen pocket PC model NP 606S.
    I am familiar with using RT Communication Wizard to build RT set of VIs for communication between PC and cFP-2020 field point.
    Now I need to go step further and develop the similar VIs, one VI (NPL along TCL) that will run on the RT Target (my field point) and Host VI that I will compile and run from PDA (NP 606S). I am using cross-over Ethernet cable (TCP communication).
    If this is possible to do, are there any special instructions (rules) to complete the process properly.
    Thanks in advance,
    Peja

    I don't use the RT comm wizard, but after generating a small sample program, my answer would be yes. The RT part is only on the RT side. Programs written using the PDA module use the TCP VIs just like regular programs and I have used them to talk with a FP, so it should work. You should keep in mind that the display on PDAs is limited (no clusters, no arrays and so on). Since, according to this, the NP 606s isn't a PDA, it's possible it will be able to display them (although I doubt it).
    Try to take over the world!

  • Building SAP applications for iPhone, Android etc.

    Hi All,
    We have a requirement for building SAP online and offline applications for iPhone, Android, Windows phone. These applications would interface with SAP backend (ERP) for fetching data or for executing simple tasks like approvals etc. 
    We have developed thin client (online) applications using Webdynpro Java for Blackberry users. These applications are browser based applications (deployed on SAP Netweaver WAS) and are accessed through Blackberry browser. What I am not sure is whether the same approach/technology like Webdynpro for Java would work for handhelds like iPhone, Android and Windows phones.
    Secondly whether vendors (like Apple) of iPhones, Android etc. provide specific connectors or frameworks for building SAP online/offline applications (or in other words what would be the mechanism for integrating iPhones, Android with SAP)
    Lastly how (technology, architecture etc.) are SAP thick client or offline applications built for iPhone, Android etc.
    Any pointers would be of great help.
    Thanks & Regards,
    Suresh

    Hi Philipp,
    Thanks for your quick response. When you say integrating with "Integrating Custom Client with DOE", do you mean the usage of SAP Mobile Infrastructure (now know SAP NetWeaver Mobile).
    We are mainly looking at building online (thin client) applications and also parallely at building offline or thick client applications but that is second in priority.
    What we have done so far
    We have developed thin client (online) applications using Webdynpro Java (which interface with SAP backend systems)
    for Blackberry users. These applications are browser based applications and are accessed through Blackberry browser. We are looking at similarly building applications for iPhone, Android and Windows phones probably using the same technology like Webdynpro Java.  But we are not sure how well it would work on iPhone, Android etc. Also we were exploring to see if these vendors (iPhone, Android) provide some sort of connectors or framework for quickly developing and deploying SAP mobile thin client applications.
    Please note that we are aware that using webservices in one generic approach.
    Once again thank you very much for your response.
    Regards,
    Suresh

  • Error message when building an application for Labview PDA

    When using LabView PDA module to build an application for a PDA target, I receive the following message: "Error building executable. Unable to create file". Why is this happening?
    When looking at the error log, it reads "The system cannot find the file specified."
    This happens even when looking at one of the Labview PDA example VI's, so it is not a result of the VI containing functions of features not supported by Labview PDA.
    When installing Labview PDA, I installed files as follows, and in this order:
    (i) Labview 7.1 (installed previously)
    (ii) Microsoft eMbedded Visual C++ 4.0
    (iii) Microsoft eMbedded Visual C++ 4.0 SP 3.0
    (iv) Microsoft SDK for Windows Mobile 2003-based Pocket PCs
    (v) Microsoft ActiveSync 3.8
    (vi) NI Labview 7.1 PDA module for PocketPC
    (vii) DAQmx Base 1.0 for PDA or later
    Any ideas?

    Did you attempt to add the _wordsub.llb and _excelsub.llb files to the application as support files?  I believe in LabVIEW 8.0 instead of adding the entire LLBs you should just add the _Word Dynamic VIs.vi and _Excel Dynamic VIs.vi as dynamic VIs.  I think I've seen a similar post on the discussion forums in the past that recommended this.
    If this suggestion doesn't help, please reply, and attach a simple VI and .lvproj file demonstrating the problem so I can investigate further.
    Good luck,
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Forms building steps for 'summit application' is required ,please

    Hi
    i'm a beginner in oracle forms & adf and i want to do the summit application by both oracle forms & Jdeveloper
    actually i have the summit schema and the building steps for adf but,
    i don't have the building steps for the forms and i did a lot of searches but i couldn't get it..
    so i'll be grateful if any body could help me in this

    Hi Vishal,
    Recently, the content on OTN was moved, so the old links will no longer work. Our OTN pages have been updated with new link locations, including a new "Conversions" section on the Learn More page - http://www.oracle.com/technetwork/developer-tools/apex/learnmore/index.html. If you follow the link for Oracle Forms Conversions, that will take to you to the Oracle Application Express for Oracle Forms Developers page - http://www.oracle.com/technetwork/developer-tools/apex/apex-for-forms-098747.html - and at the end of this page you'll find a link to the related Oracle By Example (OBE) - http://www.oracle.com/technetwork/testcontent/apex32frmmigr-095892.html. The files associated with this OBE can be downloaded here:http://www.oracle.com/technetwork/testcontent/forms-conversion-133504.zip.
    I hope this helps.
    Regards,
    Hilary

  • Can I build an application for a linux machine from a windows machine?

    Is it possible, with LV2012, to build an application for a target other than the the machine type that I am working on?
    meaning, can I build an application to run on a linux machine from my development machine, which runs on windows?
    alternatively, can I build an applications to run (natively, no WOW) on a 32-bit OS from a development machine that is a 64-bit OS and 64-bit labview?
    Or does LV only build for similar targets as the development platform, and I would need to move the source code to another development machine to generate code for a different type of target machine?
    Thank you!
    Solved!
    Go to Solution.

    You can only do a build for the OS that you have a license for and for the OS bitness that you are using. In other words, you need LabVIEW for Linux or LabVIEW for Mac to build exe's for them and you need LabVIEW Windows 64-bit to build a 64 bit exe. It does require moving the source code to the other development systems.

  • Standards Recommendations for build applications

    Hello, I'd like to know if there is some "Standards & Guidelines" document to build applications using HTMLDB. I know there are How-tos, etc, is there any document that explain or describes techniques or standards to build better applications?
    Thanks!
    Daniela

    I found some interesting stuff here, besides the user's guide.
    http://www.oracle.com/technology/products/database/htmldb/pdf/B14377_01.pdf
    You can find the tutorials and how-tos here:
    http://www.oracle.com/technology/products/database/htmldb/index.html
    Bye,
    Flavio

  • Application for the post of an ORACLE DBA

    =================================================================
    ============
    ARUNKUMAR RAGHAVAN MSc,BEd,PGDMCH,(MBA)
    =================================================================
    ============
    CURRICULUM VITAE
    Covering letter
         From
    Arunkumar.R, email : [email protected],
    [email protected]
    No 16 /9 Nagendra nagar,
    Velachery main road, checkpost,
    Near jaya hospital,
    Chennai -600 042.
    Respected Sir / Madam,
    SUB : Application for the post of      
    ORACLE DBA / DBO - Reg
    I wish to submit the following few lines for your kind
    consideration.
    I feel more comfortable and satisfactory with this type of job
    as
    I am keen to serve as an employee of your esteemed organization,
    which has an intellectually stimulating and emotionally
    satisfying environment.
    I assure that, I will do my duty to the fullest satisfaction of
    my
    higher officials, colleagues and to the best of my knowledge and
    belief.
    I am attaching my CV, first 2 pages of my first book –“ORACLE
    ARCHITECTURE MADE EASY”, and a newsletter about Penta Media
    Graphics Ltd, my present employer.
    Expecting the favour of your earliest reply.
    Thanking you with respectful regard,
    Yours truly,
    (ARUNKUMAR.R)
    =================================================================
    ============
    CAREER OBJECTIVE
    1.     To be a dependable ORACLE DBA and to deploy an
    efficient DATA WAREHOUSE and DATA MART.
    2.     To write unique books on ORACLE DBA and DATA WAREHOUSING
    for enthusiastic learning
    Experience summary
    q     Five years and six months of overall experience in
    Software Industry.
    q     Over 24 months of work experience in the administering,
    and maintaining the Oracle Database of sizes 3 GB
    q     Training and authoring books, CBT’s,WBT’s for Oracle DBA
    and
    Data Warehousing .
    Technical skills
    Hardware               IBM PC, MAC
    Operating Systems          WINDOWS NT, 95/98/2K, MS-DOS,
    LINUX, MAC-OS
    RDBMS                    ORACLE 8I, DBASE, FoxPro,
    MSACCESS
    Internet Tools          HTML, IIS, FrontPage
    Responsibilities at PENTAMEDIA GRAPHICS LTD,
    (formerly known as PENTFOUR SOFTWARE EXPORTS LTD, SEI-CMM LEVEL
    4 COMPANY )
    1. Maintaining an "Oracle Pre-Production Database" of size 3 GB.
    2. In charge of the CBT's on Data Warehousing & ORACLE
    DBA.
    3. Installing and upgrading the Oracle server (Oracle 7.3,
    Oracle 8.0,
         ORACLE 8i,) and application tools.
    3.     Allocating system storage and planning future storage
    requirements
    for the database system.
    5. Creating Tablespaces for the different group of
    projects namely
         SOFTWARE, ENGINEERING, MANAGEMENT, and SCHOOL PROJECTS.
    6. Creating tables, views and modifying the database
    structure, as
         necessary, required by Project Leaders and Programmers.
    7. Enrolling users and maintaining system security and
    controlling and
         monitoring user access to the database.
    8. Backing up and restoring the database.
    Specific Achievements
    1. CBT's and WBT's authored (Reference:
    www.pentalearn.com )
    * Data Warehousing for beginners
    * Data Warehousing - Intermediate
    * Stepping into ORACLE DBA
    * ORACLE DBA - Security
    * ORACLE DBA - Backup & Recovery
    * Step by Step - ORACLE DBA
    * OCP GUIDE - Architecture & Administration
    Under Production
    * OCP GUIDE - Backup & Recovery
         2. Book's authored (Under compilation)
    * ORACLE ARCHITECTURE MADE EASY.
    * Learn ORACLE DBA in 23 days.
    4.     Knowledge of documentation and procedures for SEI CMM -
    ISO –
         QUALITY AUDITS.
    4. Academic Project - (Reference: [email protected])
    o Title           ORACLE QUESTION BANK
    o Outline           Training software for OCP
                   (Oracle Certified Professional)
    o Period           DEC 1998 - JAN 1999
    o Software           VB 5.0, M.S.ACCESS
         5. Awards :
    State first & district first in Vivekananda Academy
    of cultural
    Studies
    =================================================================
    ============
    Employment History
         1. Company Name           :     Pentamedia
    Graphics ltd
    Title          :     instructional designer
    Level           :     Senior Executive
    Specialization :     IT/Computer Systems/Software
    Function      :     Professional /
    Consultant / Specialist
    Industry :     Computer / Information
    Technology (Software)
    Date Joined :     12 oct 1999
    Duties           :     Responsible for CBT’s,
    WBT’s on DATA
                        WAREHOUSING & ORACLE DBA.
                        project guide for TEAM
    members.
                        Developed 5 training
    software.
                        Maintaining "ORACLE-
    PRODUCTION DATABASE"
                             of size 3GB.
    Reason for leaving:     working currently
    2. Company Name      :     S.A.International ltd
    Title           :     training officer
    Level           :     Senior Executive
    Specialization :     IT/Computer Systems/Software
    Function      :     Lecturer / Teacher /
    Trainer
    Industry :     Computer / Information
    Technology (Software)
    Date Joined :     08 Aug 1997
    Date Left      :     09 Sep 1999
    Duties :     At S.A.INTERNATIONAL LTD,(A joint
    venture company of ELCOT, GOVT OF TAMILNADU UNDERTAKING)
    Responsible for all training programmes.
                             Project guide
    for all college students.
                        Senior Faculty
    for "ORACLE DBA" classes.
    Accomplishment :     Wrote student guides on office
    2000                               and on ORACLE DBA
                        Developed 3 training
    software.
    Reason for
                   leaving      :     To get more
    experience on ORACLE DATABASE
                        MAINTENANCE
    3. Company Name      :     G.K.M.college of
    engineering & technology
    Title           :     lecturer
    Level           :     Junior Executive
    Specialization      :     Education
    Function      :     Lecturer / Teacher /
    Trainer
    Industry      :     Education
    Date Joined :     06 May 1996
    Date Left      :     09 Aug 1997
    Duties           :     Incharge of computer
    science department,
                        Conducting classes and
    all academic                                    
         activities.
    Accomplishment :     Wrote 2 student guides on office
    1997                                    and on
    ORACLE DBA.
    Reason for
                   leaving      :     To get more
    experience on ORACLE DBA
                        Activities
    4. Company Name      :     Infra computers pvt ltd
    Title           :     Asst.technical manager
    Level           :     Junior Executive
    Specialization :     Training & Development
    Function      :     Executive
    Industry      :     Computer / Information
    Technology
    Date Joined :     30 Apr 1995
    Date Left      :     06 Jun 1996
    Duties           :     Monitor the day to day
    operations of the
    SOFTWARE/HARDWARE SERVICE DEPARTMENT. Monitor the DEPARTMENT
    STOCK and cash flow position, Meeting executives for Business
    development activities
    Accomplishment :     Joined the Company since August 1994
    as Asst TECHNICAL MANAGER. Promoted to TECHNICAL MANAGER in july
    1996.
    Reason for
                   leaving      :     To study M.B.A
    (master business
                        Administration)
    ORACLE DBA SKILLS SELF EVALUATION FORM
    Oracle: SQL and PL/SQL Skills:          
                                       rate
    from
                                  0 = None
    through 5 = Guru
    Creating and maintaining database objects               3
    Store, retrieve, and manipulating data               3
    Create PL/SQL blocks of application code               1
    Familiarity with PL/SQL packages                    1
    Familiarity with PL/SQL tables and records          0
    Calling PL/SQL functions from within SQL statements     0
    Building reusable code                         
         0
    Crafting code that automatically adapts to changes     
         in data structures                         
         0
    Writing SQL inside PL/SQL programs               
         0
    Reading and writing operating system files          3
    Executing host commands and C programs               0
    Issuing database alerts                         
         1
    Analyzing memory utilization in your session          2
    Debugging and tracing program execution               1
    Manipulating raw data and large objects               1
    Building your own packages                    
         1
    Oracle Enterprise Manager Skills:               
                                       rate
    from
                                  0 = None
    through 5 = Guru
    Install Oracle Enterprise Manager                    5
    Administer and monitor Oracle database environments     5
    Oracle Enterprise Manager architecture               3
    Setup a console for your own environment               3
    Implement job and event based system management          3
    Understand the integration of shared administrator
         responsibilities                         
              3
         Tuning Pack                              
         1
    (which comprise Oracle Expert, Tablespace Manager
              and SQL Analyze)
    Diagnostic Pack                              
         0
    (which comprise Oracle Trace and Data Viewer,
         Performance Manager,
    Capacity Planner,and Top Sessions)
    Change Management Pack                         
         0
    (which comprise Database Alter, Capture, Diff,
         Propagate, Quick Change, and Plan Manager)
    Database Administration/ Backup and Recovery Skills:     
                                       rate
    from
                                  0 = None
    through 5 = Guru
    Familiarity with Oracle7 database environments          5
    Familiarity with Oracle8 database environments          5
    Set up, maintain, and troubleshoot database          4
    Plan and implement database backup and recovery
         strategies                              
              4
    Understanding of backup, restore and recovery
         operations                              
              4
    Oracle8 Recovery Manager                         4
    Network Administration Skills:                    
                                       rate from
                                  0 = None
    through 5 = Guru
    Familiarity with Oracle7 Server                    5
    Familiarity with Oracle8 Server                    5
    Familiarity with architecture of Net8               4
    Establishing connections between peers               5
    Client and a server node using various
         naming methods                              
         4
    Configuring middle tier systems                    0
    Familiarity with Names Server                    
         1
    Familiarity with Connection Manager               
         3
    Memory, I/O, physical structure and
    resource contention                         2
    Familiarity with dynamic performance views          4
    Familiarity with initialization parameters          5
    Familiarity with diagnostics and tuning guidelines     3
    Data Modeling and Relational Database Design Skills:     
                                       Arun's
    rate from
                                  0 = None
    through 5 = Guru
    Knowledge with entity-relationship models               2
    Knowledge of normalization and relational           
         database design                              
         1
    Defining business information requirements          3
    Creating entity-relationship models               
         3
    Transforming requirements into an initial
         database designs                         
              3
    Personal Strengths :
              INVOLVEMENT alone gives PERFORMANCE. With my
    spiritual base &
         MOTIVATION, I am confident that I will reach the
    pinnacle
    in the field of ORACLE DBA. I hope my right thinking &
    Hardworking nature will make me successful.
    Current Communication Address
              Address :     16/9, nagendra nagar, velachery
    main road,
                   near jaya hospital, chennai-42
                   chennai, 600042 India
    Tel [home]      :     91-44-2552406
    Tel [office]:     91-44-4839854
    Tel [mobile]:
         Email     :     [email protected],
    [email protected]
    Permanent Address
         Address      :     s/o N.Raghavan, laksminayackan
    patty(po)
                   thevaram(via), theni(dt), pin
    625530
                   laxminayakan patty,
                   625530 India
    Tel      :     91-4454-54739
    Email     :     [email protected], [email protected]
    Personal Particulars
    Date of Birth           :     05 Aug 1971
    Gender                :     Male
    Nationality           :     India
    Marital Status           :     married
         Permanent Residence of     :      India
              Passport Number          :     T465022
              Valid Upto                    Jan 2005
    EDUCATIONAL QUALIFICATION
    COURSE      UNIVERSITY/BOARD           Yr.of PASSING
         CLASS & %
    S.S.L.C      TAMILNADU SECONDARY           MAR 1986
         FIRST 85.40
    H.S.C      TAMILNADU HIGER SECONDARY     APR 1988
         FIRST 68.90
    B.Sc           MADURAI KAMARAJ UNIVERSITY      APR 1991
         FIRST 68.63
    (PHYSICS)      VIVEKANANDA COLLEGE
    M.Sc           MADURAI KAMARAJ UNIVERSITY     APR 1994
         FIRST 70.40
    (PHYSICS)
    BEd           MADURAI KAMARAJ UNIVERSITY      NOV 1995
         SECOND 52.20
    TECHNICAL QUALIFICATION
    COURSE           UNIVERSITY/INSTITUTION           Yr.of
    PASSING %
    PGDMCH#           St.JOSEPH'S COLLEGE           JULY
    1995 59.70
                   BHARATHIDASAN UNIVERSITY
    DPCS*           @ DOE & TC.T.S- NCVT TRADE      SEP 1996
    79.47
                   (AICTE^ APPROVED)
    # POST GRADUATE DIPLOMA IN MICROPROCESSOR AND COMPUTER
    HARDWARE
    * DATA PREPARATION AND COMPUTER HARDWARE
    @ DIRECTORATE OF EMPLOYMENT & TRAINING CRAFTSMEN TRAINING
    SCHEME
    ^ ALL INDIA COUNCIL OF TECHNICAL EDUCATION
    PROFESSIONAL
    TRAINING UNDERGONE
    Completed 'ORACLE DBA' Course at RADIANT SOFTWARE PVT LTD,
    WEST MABALAM,
    CHENNAI -33.
    Language Proficiency :
    Languages -          Proficiency (1=worst - 10=best)
                        Spoken               
         Written
    English          5                    6
    Tamil               9               
         9
    Supplementary
    If and when employed by the company
    Willing to Travel               :          yes
    Willing to be Relocated          :          yes
    Possess Own Transport     :          T465022 Valid
    Upto                    Jan 2005
    Expected Monthly Salary          :     
         Negotiable
    Availability               :     
         Immediately
    =================================================================
    ============

    Sorry, but according to Apple, iTunes Store: All Sales Are Final
    You can avoid accidental purchases.
    From the iTunes menu bar click iTunes / Preferences then select the Parental tab.
    Select:  iTunes Store
    Click OK.

  • The system could not find a javax.ws.rs.ext.MessageBodyWriter or a DataSourceProvider class for the com.rest.assignment.EmpBean type and application/json mediaType.  Ensure that a javax.ws.rs.ext.MessageBodyWriter exists in the JAX-RS application for the

    Hi,
    Im trying to create a Rest WS with a @GET method that will return me an Emp object. I need the output as a JSON string.
    I have created a dynamic web project and added javax RS jars:
    When im trying to run this, i'm getting the below mentioned error:
    FlushResultHa E org.apache.wink.server.internal.handlers.FlushResultHandler handleResponse The system could not find a javax.ws.rs.ext.MessageBodyWriter or a DataSourceProvider class for the com.rest.assignment.EmpBean type and application/json mediaType.  Ensure that a javax.ws.rs.ext.MessageBodyWriter exists in the JAX-RS application for the type and media type specified.
    RequestProces I org.apache.wink.server.internal.RequestProcessor logException The following error occurred during the invocation of the handlers chain: WebApplicationException (500 - Internal Server Error)
    Please help as im stuck with this from long.
    Thanks in advance.
    Below is the code for my service class:
    package com.rest.assignment;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.util.Enumeration;
    import java.util.HashSet;
    import java.util.Properties;
    import java.util.Set;
    import javax.ws.rs.GET;
    import javax.ws.rs.Path;
    import javax.ws.rs.Produces;
    import javax.ws.rs.core.Application;
    import javax.ws.rs.core.MediaType;
    import javax.ws.rs.core.Response;
    @Path("/restService")
    public class RestService extends Application {   
        @GET
        @Path("/getEmpDetails")
        @Produces(MediaType.APPLICATION_JSON)
        public Response getStringResponse()
            EmpBean empBean = new EmpBean();
            String filePath = "C:/Program Files/IBM/workspace/HelloWorld/src/com/rest/resources/EmpData.properties";
            Properties properties = new Properties();
            try {
                properties.load(new FileInputStream(filePath));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
             Enumeration e = properties.propertyNames();
             String result="";
            String[] empDetailsArr;
            while (e.hasMoreElements()) {
              String key = (String) e.nextElement();
              String empDetails = properties.getProperty(key);
              empDetailsArr=empDetails.split(",");    
              empBean.setFirstName(empDetailsArr[0]);
              empBean.setLastName(empDetailsArr[1]);
              empBean.setEmpId(empDetailsArr[2]);
              empBean.setDesignation(empDetailsArr[3]);
              empBean.setSkillSet(empDetailsArr[4]);
              result = empDetailsArr[1];
            //return empBean;
            return Response.ok(empBean).type(MediaType.APPLICATION_JSON_TYPE).build();
        @Override
        public Set<Class<?>> getClasses() {
            Set<Class<?>> classes = new HashSet<Class<?>>();
            classes.add(RestService.class);
            classes.add(EmpBean.class);
            return classes;
    and my empBean goes like this:
    package com.rest.assignment;
    public class EmpBean {
        private String firstName;
        private String lastName;
        private String empId;
        private String designation;
        private String skillSet;
        public String getFirstName() {
            return firstName;
        public void setFirstName(String firstName) {
            this.firstName = firstName;
        public String getLastName() {
            return lastName;
        public void setLastName(String lastName) {
            this.lastName = lastName;
        public String getEmpId() {
            return empId;
        public void setEmpId(String empId) {
            this.empId = empId;
        public String getDesignation() {
            return designation;
        public void setDesignation(String designation) {
            this.designation = designation;
        public String getSkillSet() {
            return skillSet;
        public void setSkillSet(String skillSet) {
            this.skillSet = skillSet;
    Web.xml goes like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
    <display-name>restWS</display-name>
    <welcome-file-list>
      <welcome-file>index.html</welcome-file>
      <welcome-file>index.htm</welcome-file>
      <welcome-file>index.jsp</welcome-file>
      <welcome-file>default.html</welcome-file>
      <welcome-file>default.htm</welcome-file>
      <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>
    <servlet>
      <servlet-name>REST</servlet-name>
      <servlet-class>com.ibm.websphere.jaxrs.server.IBMRestServlet</servlet-class>
      <init-param>
       <param-name>javax.ws.rs.Application</param-name>
       <param-value>com.rest.assignment.RestService</param-value>
      </init-param>
      <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
      <servlet-name>REST</servlet-name>
      <url-pattern>/rest/*</url-pattern>
    </servlet-mapping>
    </web-app>
    When i try to return a string from my get method, it gives me a proper response. i get this exception when im trying to return a JSON response.

    Hi,
    Im trying to create a Rest WS with a @GET method that will return me an Emp object. I need the output as a JSON string.
    I have created a dynamic web project and added javax RS jars:
    When im trying to run this, i'm getting the below mentioned error:
    FlushResultHa E org.apache.wink.server.internal.handlers.FlushResultHandler handleResponse The system could not find a javax.ws.rs.ext.MessageBodyWriter or a DataSourceProvider class for the com.rest.assignment.EmpBean type and application/json mediaType.  Ensure that a javax.ws.rs.ext.MessageBodyWriter exists in the JAX-RS application for the type and media type specified.
    RequestProces I org.apache.wink.server.internal.RequestProcessor logException The following error occurred during the invocation of the handlers chain: WebApplicationException (500 - Internal Server Error)
    Please help as im stuck with this from long.
    Thanks in advance.
    Below is the code for my service class:
    package com.rest.assignment;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.util.Enumeration;
    import java.util.HashSet;
    import java.util.Properties;
    import java.util.Set;
    import javax.ws.rs.GET;
    import javax.ws.rs.Path;
    import javax.ws.rs.Produces;
    import javax.ws.rs.core.Application;
    import javax.ws.rs.core.MediaType;
    import javax.ws.rs.core.Response;
    @Path("/restService")
    public class RestService extends Application {   
        @GET
        @Path("/getEmpDetails")
        @Produces(MediaType.APPLICATION_JSON)
        public Response getStringResponse()
            EmpBean empBean = new EmpBean();
            String filePath = "C:/Program Files/IBM/workspace/HelloWorld/src/com/rest/resources/EmpData.properties";
            Properties properties = new Properties();
            try {
                properties.load(new FileInputStream(filePath));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
             Enumeration e = properties.propertyNames();
             String result="";
            String[] empDetailsArr;
            while (e.hasMoreElements()) {
              String key = (String) e.nextElement();
              String empDetails = properties.getProperty(key);
              empDetailsArr=empDetails.split(",");    
              empBean.setFirstName(empDetailsArr[0]);
              empBean.setLastName(empDetailsArr[1]);
              empBean.setEmpId(empDetailsArr[2]);
              empBean.setDesignation(empDetailsArr[3]);
              empBean.setSkillSet(empDetailsArr[4]);
              result = empDetailsArr[1];
            //return empBean;
            return Response.ok(empBean).type(MediaType.APPLICATION_JSON_TYPE).build();
        @Override
        public Set<Class<?>> getClasses() {
            Set<Class<?>> classes = new HashSet<Class<?>>();
            classes.add(RestService.class);
            classes.add(EmpBean.class);
            return classes;
    and my empBean goes like this:
    package com.rest.assignment;
    public class EmpBean {
        private String firstName;
        private String lastName;
        private String empId;
        private String designation;
        private String skillSet;
        public String getFirstName() {
            return firstName;
        public void setFirstName(String firstName) {
            this.firstName = firstName;
        public String getLastName() {
            return lastName;
        public void setLastName(String lastName) {
            this.lastName = lastName;
        public String getEmpId() {
            return empId;
        public void setEmpId(String empId) {
            this.empId = empId;
        public String getDesignation() {
            return designation;
        public void setDesignation(String designation) {
            this.designation = designation;
        public String getSkillSet() {
            return skillSet;
        public void setSkillSet(String skillSet) {
            this.skillSet = skillSet;
    Web.xml goes like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
    <display-name>restWS</display-name>
    <welcome-file-list>
      <welcome-file>index.html</welcome-file>
      <welcome-file>index.htm</welcome-file>
      <welcome-file>index.jsp</welcome-file>
      <welcome-file>default.html</welcome-file>
      <welcome-file>default.htm</welcome-file>
      <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>
    <servlet>
      <servlet-name>REST</servlet-name>
      <servlet-class>com.ibm.websphere.jaxrs.server.IBMRestServlet</servlet-class>
      <init-param>
       <param-name>javax.ws.rs.Application</param-name>
       <param-value>com.rest.assignment.RestService</param-value>
      </init-param>
      <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
      <servlet-name>REST</servlet-name>
      <url-pattern>/rest/*</url-pattern>
    </servlet-mapping>
    </web-app>
    When i try to return a string from my get method, it gives me a proper response. i get this exception when im trying to return a JSON response.

  • Is there a solution for dynamic reports and using Denes' Export to Excel?

    Oracle 10.2.0.4.0
    Application Express 3.2.1.00.10
    Hello all!
    I am using Denes Kubicek's Export_Excel_Pkg in my application and I'm having trouble exporting reports based on report regions created using a PL/SQL function body returning SQL query. I realize this is not an Oracle supported package, but was hoping someone here could shed some light on it. When I open up the Excel file, I get an error such as: Report Values Error: ORA-06550: line 22, column 5: PL/SQL: ORA-00907: missing right parenthesis.
    I've searched the forum and already have done as others suggested by modifying the REPLACE on the v_sql variable in Export_Excel_Pkg.Get_Usable_SQL, but it did not work. My assumption is that there is an issue with the value being passed to the wwv_flow_utilities.get_binds function. I could not find documentation on this function, but I'm thinking that it cannot extract the bind variables within a PL/SQL block. The report only works when I have just use SQL with bind variables...doesn't work for PL/SQL. Nor does it work for dynamic SQL reports that use a "lexical" parameter (e.g. using WHERE &p_and_condition.) to build the WHERE clause.
    Has anyone come up with a work-around to this? I somehow need to be able to extract reports based on dynamic SQL (or PL/SQL) to Excel.
    Help is appreciated!
    This is my example of a report based on PL/SQL function:
    DECLARE
      v_sql VARCHAR2(4000);
    BEGIN
      v_sql := q'[SELECT UPPER(t1.olo_name) agency_title,
           t1.class_code,
           UPPER(t1.class_title) class_title,
           t1.pay_plan,
           t1.pay_grade_code,
           COUNT(t1.appt_fte) total_employees,
           SUM(t1.appt_fte) filled_fte,
           AVG(DECODE(t2.pay_cycle_code,
                      'UB',((t1.wage_type1_amt_for_pay * 26)/t1.appt_fte),
                      'UM',((t1.wage_type1_amt_for_pay * 12)/t1.appt_fte),
                       0)) avg_annual_rate
       FROM my_schema.table1 t1,
                my_schema.table2 t2,
                my_schema.table3 pro
      WHERE t1.pos_wk = t2.pos_wk
        AND t2.pos_rate_active_flag = 'Y'
        AND t1.ops_ind = 'N'
        AND t1.employee_type IN ('1','2')
        AND pro.ROLE_CODE = :F101_DW_ROLE
        AND pro.pos_role_orgs_active_flag = 'Y']';
      IF :P_MULTI_OLO IS NOT NULL THEN
        v_sql := v_sql || q'[ AND INSTR(':'||']' || v('P_MULTI_OLO') || q'['||':', ':'||t1.olo_code||':') > 0]';     
      END IF;
      v_sql := v_sql || q'[GROUP BY UPPER(t1.olo_name), t1.class_code, UPPER(t1.class_title), t1.pay_plan, t1.pay_grade_code ORDER BY t1.class_code ASC, avg_annual_rate]';
      RETURN v_sql;
    END;This is my example using a SQL statement with a lexical parameter:
    SELECT UPPER(t1.olo_name) agency_title,
           t1.class_code,
           UPPER(t1.class_title) class_title,
           t1.pay_plan,
           t1.pay_grade_code,
           COUNT(t1.appt_fte) total_employees,
           SUM(t1.appt_fte) filled_fte,
           AVG(DECODE(t2.pay_cycle_code,
                      'UB',((t1.wage_type1_amt_for_pay * 26)/t1.appt_fte),
                      'UM',((t1.wage_type1_amt_for_pay * 12)/t1.appt_fte),
                       0)) avg_annual_rate
       FROM my_schema.table1 t1,
                my_schema.table2 t2,
                my_schema.table3 pro
      WHERE t1.pos_wk = t2.pos_wk
        AND t2.pos_rate_active_flag = 'Y'
        AND t1.ops_ind = 'N'
        AND t1.employee_type IN ('1','2')
        AND pro.ROLE_CODE = :F101_DW_ROLE
        AND pro.pos_role_orgs_active_flag = 'Y'
        &P63_AND_CONDITION.
      GROUP BY UPPER(t1.olo_name),
               t1.class_code,
               UPPER(t1.class_title),
               t1.pay_plan,
               t1.pay_grade_code   
    ORDER BY t1.class_code ASC, avg_annual_rateThe *&P63_AND_CONDITION.* value is populated based on a "Before Header" computation under Page Rendering, using the logic below. It is then used by the SQL query defined in the reports region at run time.
    DECLARE
      v_sql VARCHAR2(4000) := NULL;
    BEGIN
      v_sql := ' ';
      IF :P_MULTI_OLO IS NOT NULL THEN
        v_sql := v_sql || q'[ AND INSTR(':'||']' || v('P_MULTI_OLO') || q'['||':', ':' || t1.olo_code || ':') > 0]';     
      END IF;
      RETURN v_sql;
    END;

    Did you get an answer for this?

  • Using external llb when building applications

    I would like to be able to update the SubVI's that an executable uses, but am having problems editing them after installation of the build application.
    I am using the option "Small target file with external file for SubVI's" in the application builder, but I don't seem to be able to open the VI's present in the external library ("data.llb") after installation. I get the error message "ressoruce not found", when trying to open the file in LabVIEW. Does anyone know what might be the problem.

    Caveman wrote:
    > I would like to be able to update the SubVI's that an executable uses,
    > but am having problems editing them after installation of the build
    > application.
    >
    > I am using the option "Small target file with external file for
    > SubVI's" in the application builder, but I don't seem to be able to
    > open the VI's present in the external library ("data.llb") after
    > installation. I get the error message "ressoruce not found", when
    > trying to open the file in LabVIEW. Does anyone know what might be the
    > problem.
    Those VIs get just as much stripped of their front panel and diagram
    unless you specifiy not to do that in the VI settings in Application
    Builder. Without front panel you can not load a VI in the LabVIEW
    editor. It is only good for calling
    by reference.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Error when building application with Excel included

    Hi All !
    I've read several post on problems with Report Generation Toolkit when building applications that uses Excel or Word interactivity.
    I've included both _Excel Dynamic VIs.vi and _Word Dynamic VIs.vi in my project and added them to the dynamic vis and support files.
    When building I get the error :
    The VI is broken. Open the VI in LabVIEW and fix the errors.
    C:\Programmer\National Instruments\LabVIEW 8.2\vi.lib\addons\_office\_exclsub.llb\_Excel Dynamic VIs.vi
    When opening that VI there is no broken arrow and all the vi's included in this is not broken either.
    I've tried mass compiling and so on but so far luck.
    Regards Morten Kahr
    Regards Kahr
    Certified LabVIEW Architect
    CIM A/S

    If you do a search on this forum you will find this to be a common and vexing problem. I myself had this same exact problem about a year ago, and it took me the better part of a day to track it down. As you will find by reading the various threads on this problem, there seems to be no specific cause for this, and it remains a mystery, and the solutions are no better than chanting voodoo, and probably just as effective.
    One thing you can try is to force a recompile of your VI hierarchy. Open you top-level VI. If it's set up to run when opened, stop it. Hold down the Control key and click the run button. This will force a recompile of the application. Sometimes this works, sometimes it doesn't. Like I said, voodoo.
    Another thing to look for is to check if you are using any diagram disable structures or case structures with a constant wired, as in trying to use the case structure to comment out code.
    Are you using classes and passing by reference? There was a mention of this here.

Maybe you are looking for

  • I cannot view my time line, all I see is the Project library

    Under Project Library I see my Hard Drives and cannot switch back to seeing the time line.   This has to be an easy fix.  Anyone know what I should do? thank you!

  • HD constantly needs repair

    If I were to run VERIFY DISK every day on my MacBook I would get the same results: files differ by one file and folders differ by one folder...requiring a REPAIR DISK. This is getting old...how can I determine which file is the culprit here? I obviou

  • IDoc to XLS file out

    Hi, I am trying to create an interface: (R/3)  - XI - Legacy. From R/3, IDoc proxy will generate flat file which will be passed to XI for output of XLS file. Can anyone give step by step for how to create XLS output file? Thanks.

  • Hue/saturation changing on loading in LR1

    I've got currently 3 collections defined in LR. One collection of JPG files has got a strange habit: when opening a picture in Develop mode, the first view, while still loading, is fine (and the same as in Photoshop; I've only imported the pictures,

  • Best way to retrieve previous FF 3.6.28 for my OS-X 10.4.11 Tiger

    I clicked on option to upgrade to FF 14, since prompt kept showing up, and it attempted to install, unsucessfully, and now I don't even have the old previous version. My old FF icon has a white "Do Not" symbol line through it and the statement "FF ap