Pro*c errors in 11g. -- Compiles fine in 10g.

Hi,
We are planning to migrate from 10g to 11g so started compiling our Pro*c code in to 11g. Got several errors and couldn't trace. So to investigate further I have written a basic pro*c program as follows:
#include <stdio.h>
#include <sqlca.h>
/*#include <sqlcpr.h>*/
#include <oraca.h>
#include <sqlda.h>
/* Declare error handling function. */
void sql_error();
int main(int argc, char** argv)
char user[]="myusername";
char pwd[]="mypassword";
char msg_buf[51]="";
/* Register sql_error() as the error handler. */
EXEC SQL WHENEVER SQLERROR DO sql_error("ORACLE error\n");
EXEC SQL CONNECT :user IDENTIFIED BY :pwd;
EXEC SQL
INSERT INTO hello_world
VALUES ('Hello world!');
EXEC SQL COMMIT;
EXEC SQL
SELECT msg
INTO :msg_buf
FROM hello_world
WHERE rownum <= 1;
printf("%s\n", msg_buf);
return(0);
void sql_error(char *msg)
char err_msg[128];
int buf_len, msg_len;
EXEC SQL WHENEVER SQLERROR CONTINUE;
printf("%s\n", msg);
buf_len = sizeof (err_msg);
sqlglm(err_msg, &buf_len, &msg_len);
if (msg_len > buf_len)
msg_len = buf_len;
printf("%.*s\n", msg_len, err_msg);
EXEC SQL ROLLBACK RELEASE;
exit(1);
}And then did the following:
proc iname=hellodb.pc MODE=ORACLE it has created a .c file.
Now run
/opt/ansic/bin/cc -g  -I. -I${ORACLE_HOME}/precomp/public -c hellodb.c -o hellodbwhich gave me a big list of errors / warnings.
"hellodb.c", line 117: warning #2837-D: omission of explicit type is
          nonstandard ("int" assumed)
  extern sqlcxt ( void **, unsigned int *,
         ^
"hellodb.c", line 119: warning #2837-D: omission of explicit type is
          nonstandard ("int" assumed)
  extern sqlcx2t( void **, unsigned int *,
         ^
"hellodb.c", line 121: warning #2837-D: omission of explicit type is
          nonstandard ("int" assumed)
  extern sqlbuft( void **, char * );
         ^
"hellodb.c", line 122: warning #2837-D: omission of explicit type is
          nonstandard ("int" assumed)
  extern sqlgs2t( void **, char * );
         ^
"hellodb.c", line 123: warning #2837-D: omission of explicit type is
          nonstandard ("int" assumed)
  extern sqlorat( void **, unsigned int *, void * );
         ^
"hellodb.c", line 316: warning #2223-D: function "sqlglm" declared implicitly
  sqlglm(err_msg, &buf_len, &msg_len);
  ^
"hellodb.c", line 342: warning #2223-D: function "exit" declared implicitly
  exit(1);I did the same in another server which is having 10g installation and it went on well and created the exe hellodb.
Any idea what these errors are?
Thanks in advance,
Deep.
Edited by: user11984804 on 06-Apr-2010 03:49

Hello,
We face the similar problem.Our database is migrated to 11.2.0.2 from 10g.
PRO*C compilation is not happening with so many warnings and 1 error below
error #4313-D: no prototype or definition in scope for call to memory allocation routine "malloc".
Could you please provide the solution.
we are using the following command to compile PRO*C
make -f $ORACLE_HOME/precomp/demo/proc/demo_proc.mk EXE=$program OBJS=$program.o PROCFLAGS="sqlcheck=full userid=<username>/<password>@oraclesid" build
Edited by: user12058331 on 30-Jun-2011 04:02
Edited by: user12058331 on 30-Jun-2011 04:05

Similar Messages

  • Errors driving me crazy! But, it all compiles fine

    Errors driving me crazy! although compiles fine
    I am working on a project for an online class - I am teaching myself really! My last assignment I cannot get to work. I had a friend who "knows" what he is doing help me. Well that didn't work out too well, my class is a beginner and he put stuff in that I never used yet. I am using Jgrasp and Eclipse. I really am trying but, there really is no teacher with this online class. I can't get questions answered in time and stuff goes past due. I am getting this error:
    Exception in thread "main" java.lang.NullPointerException
    at java.io.Reader.<init>(Reader.java:61)
    at java.io.InputStreamReader.<init>(InputStreamReader .java:55)
    at java.util.Scanner.<init>(Scanner.java:590)
    at ttest.main(ttest.java:54)
    ----jGRASP wedge2: exit code for process is 1.
    ----jGRASP: operation complete.
    This is my code:
    import java.util.*;
    import java.io.*;
    public class ttest
    static Scanner console = new Scanner(System.in);
    public static void main(String[] args)throws IOException
    FileInputStream fin = null; // input file reference
    PrintStream floser = null; // output file references
    PrintStream fwinner = null;
    Scanner rs; // record scanner
    Scanner ls; // line scanner
    String inputrec; // full record buffer
    int wins; // data read from each record
    int losses;
    double pctg;
    String team;
    String best = null; // track best/worst team(s)
    String worst = null;
    double worst_pctg = 2.0; // track best/worst pctgs
    double best_pctg = -1.0;
    int winner_count = 0; // counters for winning/losing records
    int loser_count = 0;
    // should check args.length and if not == 1 generate error
    try
    Scanner inFile = new Scanner(new FileReader("football.txt"));
    catch( FileNotFoundException e )
    System.exit( 1 );
    try
    floser = new PrintStream( new FileOutputStream( "loser.txt" ) );
    fwinner = new PrintStream( new FileOutputStream( "winner.txt" ) );
    catch( FileNotFoundException e )
    System.out.printf( "unable to open an output file: %s\n", e.toString() );
    System.exit( 1 );
    try
    rs = new Scanner( fin );
    while( rs.hasNext( ) )
    inputrec = rs.nextLine( ); /* read next line */
    ls = new Scanner( inputrec ); /* prevents stumble if record has more than expected */
    team = ls.next( );
    wins = ls.nextInt();
    losses = ls.nextInt();
    if( wins + losses > 0 )
    pctg = ((double) wins)/(wins + losses);
    else
    pctg = 0.0;
    if( pctg > .5 )
    if( pctg > best_pctg )
    best_pctg = pctg;
    best = team;
    else
    if( pctg == best_pctg )
    best += ", " + team;
    fwinner.printf( "%10s %2d %2d %5.3f\n", team, wins, losses, pctg );
    winner_count++;
    else
    if( pctg < worst_pctg )
    worst_pctg = pctg;
    worst = team;
    else
    if( pctg == worst_pctg )
    worst += ", " + team;
    floser.printf( "%10s %2d %2d %5.3f\n", team, wins, losses, pctg );
    loser_count++;
    fin.close( );
    floser.close( );
    fwinner.close( );
    catch( IOException e ) {
    System.out.printf( "I/O error: %s\n", e.toString() );
    System.exit( 1 );
    System.out.printf( "%d teams have winning records; %d teams have losing records\n", winner_count, loser_count );
    System.out.printf( "Team(s) with best percentage: %5.3f %s\n", best_pctg, best );
    System.out.printf( "Team(s) with worst percentage: %5.3f %s\n", worst_pctg, worst );
    The assignment is:
    Create a Java program to read in an unknown number of lines from a data file. You will need to create the data file. The contents of the file can be found at the bottom of this document. This file contains a football team's name, the number of games they have won, and the number of games they have lost.
    Your program should accomplish the following tasks:
    1. Process all data until it reaches the end-of-file. Calculate the win percentage for each team.
    2. Output to a file ("top.txt") a listing of all teams with a win percentage greater than .500. This file should contain the team name and the win percentage.
    3. Output to a file ("bottom.txt") a listing of all teams with a win percentage of .500 or lower. This file should contain the team name and the win percentage.
    4. Count and print to the screen the number of teams with a record greater then .500 and the number of teams with a record of .500 and below, each appropriately labeled.
    5. Output in a message box: the team with the highest win percentage and the team with the lowest win percentage, each appropriately labeled. If there is a tie for the highest win percentage or a tie for the lowest win percentage, you must output all of the teams.
    Dallas 5 2
    Philadelphia 4 3
    Washington 3 4
    NY_Giants 3 4
    Minnesota 6 1
    Green_Bay 3 4

    If you are working in Eclipse IDE, you can set a breakpoint and single step through your code to determe what line crashes. You can also examine variable values before the crash. Locate a line before the crash and set a breakpoint by double clicking on the vertical blue line that appears immediately to the left of the line of code. A blue 'dot' will appear on the line. Then,from the menu, select 'debug as application'. This will run your main() function up to that break point. In the menu, there are icons to allow you to single step through lines of code from that point, and another icon to step over lines of code if you want.
    Alternatively to setting break points, you can sprinkle your code with piles of System.out.println statements. Example: you have System.out.println("1"), and in another part of your code System.out.println("2"). If you code runs and prints out "1", but not "2", then you code crashed between them. I use breakpoints and System.out.println to debug.
    In your trace, you have "at java.util.Scanner.<init>(Scanner.java:590)" which means it crashed at line 590 (note in all the tracings, Scanner.java is a name of one of your custom classes and not a vendor class, thats how you can quickly find what part of the trace is important to you).
    NullPointerException means you tried to call a function on an object that is not instansiated (its null).
    Example: person.getName() will not work if person is null. Its the call to getName() that crashes.
    Debugging code is a very important skill set that you have to develop in which you have to logically track down and isolate problems.

  • Compile participant lists based on rulesets error [BPM 11g]

    Hi,
    I created a Humantask with participant lists based on rulesets, which I followed the steps in the documents: http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10224/bp_hwfmodel.htm#insertedID3. The section is [To specify participant lists based on rulesets:].
    I got the error message during compile:
    Buildfile: C:\Oracle\Middleware\jdev_bpm\jdeveloper\bin\ant-sca-compile.xml
    scac:
    [scac] Validating composite "C:\JDeveloper\mywork\TestApp\TestProj\composite.xml"
    [scac] FATAL_ERROR: BPM-71504: 对 'oramds:///soa/shared/workflow/TaskEvidenceService.xsd' 进行语法分析时出现意外错误. Cause: oracle.mds.exception.MDSException: MDS-00054: 要加载 oramds:/soa/shared/workflow/TaskEvidenceService.xsd 的文件不存在。. Action: 请确保文件有效且可以访问
    [scac] WARNING: in test.task: Task title not specified
    [scac] WARNING: in test.task: Error assignee not specified
    [scac] WARNING: in test.task: Payload not specified
    BUILD FAILED
    C:\Oracle\Middleware\jdev_bpm\jdeveloper\bin\ant-sca-compile.xml:236: Java returned: 1 Check log file : C:\JDeveloper\mywork\TestApp\TestProj\SCA-INF\classes\scac.log for errors
    Total time: 8 seconds
    It said cannot find oramds:/soa/shared/workflow/TaskEvidenceService.xsd. I have tried many times, even for a new generated project (with no code).
    Thanks

    This is a known issue, I've opened an SR on it already.
    The fix is to manually open the generated .xsd files in your project and change the invalid MDS schema path.
    Do a search for oramds:///soa/shared/workflow/TaskEvidenceService.xsd and replace it with oramds:/soa/shared/workflow/TaskEvidenceService.xsd
    It appears 2 extra leading slashes get generated erroneously by JDeveloper. Removing the extra slashes should fix it.

  • Error message when compiling book "file is corrupt" referring to a photo.  Or "cannot find original photo".  Can you use photos that have been "edited" out of "Book Mode"?

    Error message when compiling book "file is corrupt" referring to a photo.  Or "cannot find original photo".  Can you use photos that have been "edited" out of "Book Mode"?

    I did copy it to my desktop, but it still won't let me open it.  I think the file on the disc might be corrupt or something like that though the cd itself checks out fine as far as viruses go.  I was able to verify the disc, but that's about it.  My husband tried it on his iMac and we have the same issue.  It's unzipping the folder, but won't let us open the folder on both the Mac Book Pro or the iMac by double clicking, going to file/open or right clicking.  It just keeps saying the same message as I posted above.  I think I'm just going to have the client put the pictures on either a memory card or a USB memory stick so she won't have to compress the files for zipping purposes.  It's been too frustrating trying to open this folder on this cd she gave me.  She said she created/zipped the cd on her Mac Book Pro but it sure won't open on mine.

  • Windows Update Loop - Win 7 Pro - x64 :: Error 80071A91

    Hi, I've been referred to this forum by the Microsoft community from this post: answers.microsoft.com  /en-us/windows/forum/windows_7-system/windows-update-loop-win-7-pro-x64-error-80071a91/b17c5bc5-7977-4f8b-9b45-ecb265886381 (same as below)
    Any assistance is appreciated. dave_ned at hotmail.com.
    Hi,
    "There is a system repair pending which requires reboot to complete. Restart Windows and run sfc again"
    I've got the error (80071A91) that others have experiences while trying windows update and for the life of me I cannot get the updates to install.
    Looking for the past 4 hours via Google, trying different recommended things and still no luck
    http://answers.microsoft.com/en-us/windows/forum/windows_vista-windows_update/unable-to-install-updates-getting-error-code/27a21977-f964-4376-bfab-2f29ea127c6a
    # SFC /scannow causes the "repair status message" and asks for reboot.
    I've downloaded fix-it, tried booting into a system repair/restore disk using command line to run
    #sfc /scannow /offline....
    using the dispart to LIST VOLUMES  (based on this http://mikemstech.blogspot.com.au/2011/12/how-to-perform-offline-system-integrity.html )
    I've tried #fsutils resourse set autorevert=true (or something, can't find the exact post as I've rebooted so many times)
    I've tried dismc.exe (or similar without success)
    Basically I'm stuck with these updates (~10 of them) always sitting there downloading, installing every time I shut down the PC.
    Running a system repair disk created in windows still does not allow #sfc /scannow....
    My Last system restore was 04/08/14 and I cannot even restore the system to this point as the restore fails and asks to remove itself once I restart the system.
    Details:
    OEM version of windows purchased legally and genuine microsoft logo in system dashboard.
    Intel Core I5 -3330
    16GB RAM
    Windows 7 Pro - 64bit OS
    Service pack 1
    **NOTE** I have the C drive hooked up in RAID 0. Two(2) * 60GB SSD disks in RAID 0 used as C: via BIOS RAID
    Secondary storage disk a D:
    Been working and updating fine for the past 5-6 months.
    I have the Optical drive setup as O: and a Daemon tools virtual drive as drive E:
    While running DISKPART and using LIST VOLUME I see this:
    currently the system seems to have lost all update history
    Any information or help on this is appreciated. I don't want to reformat and reinstall, I don't really want to 'repair' and wipe my current software installation so I'm hoping there is a way.
    Anyway I can get the 'pending state' removed.?
    Thanks in advance
    David

    Hi, I've rebooted into Repair mode (Console), (because repair said windows is installed on E:) run dism.exe /image:E:\ /cleanup-image /revertpendingactions
    This gave a message about small scratch space but did say something out a fix. Upon reboot into safemode with console I received the same message 
    "C:\Windows\system32>sfc /scannow
    Beginning system scan.  This process will take some time.
    There is a system repair pending which requires reboot to complete.  Restart Windows and run sfc again."
    I then rebooted and tried SCF again, no luck... Same message, same updates still sitting there.
    Partition info: (as mentioned earlier C is in RAID 0 with 2 SSD disks)
    DISKPART> list volume
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      Volume 0     O                       DVD-ROM         0 B  No Media
      Volume 1     E                       DVD-ROM         0 B  No Media
      Volume 2         System Rese  NTFS   Partition    100 MB  Healthy    System
      Volume 3     C                NTFS   Partition    111 GB  Healthy    Boot
      Volume 4     D   GB320        NTFS   Partition    298 GB  Healthy

  • Epson Stylus Pro 9800 errors on 32-bit Windows 7 with Adobe CS4

    Epson Stylus Pro 9800 errors on 32-bit Windows 7 with Adobe CS4
    Question: We are experiencing some major errors with printing to our Epson Stylus 9800 Pro. Some of our large files are spooling about 16K, then crashing Photoshop. Sometimes we are getting partial prints (the left most 3-4 inches of print, or the file starting to print about 1/2 way into the file itself), sometimes it just spools for a few minutes, then stops, with nothing coming from the printer at all.
    At Epson's request, we have tried the following:
    reinstalling Windows 7 print driver
    Reinstalling Adobe CS 4
    Installed NEW NIC in printer
    Installed new network line to printer
    Installed new main board on printer
    Printed from a PC directly connected to printer via USB and crossover cable
    This issue is very bizarre in that it is random and sporatic. Same file will cause one of the above errors, then, another attempt to print same file will be successful. We have several Windows 7 machines that get the issue, while several Windows XP machines are fine. Epson instructed us to install the newest (win7) driver on the XP machines, issue then affects XP machines. Uninstalling new driver and re-installing old driver on XP machines resolves issue on XP machines.
    Is this an issue with the Epson driver? CS4 on Windows 7? Or some other malady?
    When Photoshop crashes, the following error log is created: Log Name:      Application
    Source:        Application Error
    Date:          10/6/2010 1:31:16 PM
    Event ID:      1000
    Task Category: (100)
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      _PCNAME_._OUR_DOMAIN_.com
    Description:
    Faulting application name: Photoshop.exe, version: 11.0.2.0, time stamp: 0x4bf2d4f6
    Faulting module name: E_FJBLDBE.DLL, version: 0.1.1.7, time stamp: 0x469dea6c
    Exception code: 0xc0000005
    Fault offset: 0x0001c9ba
    Faulting process id: 0x1cf8
    Faulting application start time: 0x01cb657c010cac1c
    Faulting application path: C:\Program Files\Adobe\Adobe Photoshop CS4\Photoshop.exe
    Faulting module path: C:\Windows\system32\spool\DRIVERS\W32X86\3\E_FJBLDBE.DLL
    Report Id: 85870535-d16f-11df-b849-406186f3bc8f
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Application Error" />
        <EventID Qualifiers="0">1000</EventID>
        <Level>2</Level>
        <Task>100</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2010-10-06T17:31:16.000000000Z" />
        <EventRecordID>5497</EventRecordID>
        <Channel>Application</Channel>
        <Computer>_PCNAME_._OUR_DOMAIN_.com</Computer>
        <Security />
      </System>
      <EventData>
        <Data>Photoshop.exe</Data>
        <Data>11.0.2.0</Data>
        <Data>4bf2d4f6</Data>
        <Data>E_FJBLDBE.DLL</Data>
        <Data>0.1.1.7</Data>
        <Data>469dea6c</Data>
        <Data>c0000005</Data>
        <Data>0001c9ba</Data>
        <Data>1cf8</Data>
        <Data>01cb657c010cac1c</Data>
        <Data>C:\Program Files\Adobe\Adobe Photoshop CS4\Photoshop.exe</Data>
        <Data>C:\Windows\system32\spool\DRIVERS\W32X86\3\E_FJBLDBE.DLL</Data>
        <Data>85870535-d16f-11df-b849-406186f3bc8f</Data>
      </EventData>
    </Event>

    Giving that a go.
    Thanks!

  • Adobe Acrobat 9 Pro Reinstallation Errors

    My hard drive crashed on my computer (replaced with new one) and I had to reinstall my Adobe CS5 and Adobe Acrobat 9 Pro. All of CS5 reinstalled fine. However, everytime I reinstall Adobe Acrobat 9 Pro, it errors every time. It will install, but whenever you open the program, it immediately stops working and errors out saying Adobe Acrobat 9.3 stopped working. Windows cannot find a solution and then closes. 
    It never gives me the chance to enter my product key or register the product. I went to the Adobe Product page and tried downloading and installing all the updates, but nothing works. No matter what I do it closes right away. Any ideas?
    My PC is on Windows 7 - I had to initially install Acrobat on this PC when I got it a year or so ago and it worked fine. Not sure what's changed.
    Thanks.

    I just tried reinstalling it - again, it wasnt giving me the option to register it or anything. Would close the minute I opened Acrobat.
    So I opened the Acrobat Distiller that installed with Acrobat and that asked me to accept the agreement and register the product. Once I did that - Acrobat started working again!

  • Error Loading External Library - worked on 10g, now upgraded to 11g and not

    I have an external C library that have been using for years to extracy binary data (images, docs, pdfs etc) from a blob column in a table
    This has been working on Oracle 10.2.0.1 on Windows 32 bit for years.
    I have a new server, Windows 2008 64 bit, have installed 11.2.0.1, created a database and done a full datapump export and import.
    My application seems to work fine with the exception of this external dll
    I have made sure the dll is in the correct directory on the server and the library is pointing to it :
    create or replace library EXTERNPROCEDURES as 'C:\oracle\extern\extern.dll';I then have the same wrapper code that works fine on 10g, is there something I need to do on 11g to "authorise" the external dll or anything as I know the security is tighter or is there an issue with the fact this is 64bit Oracle?
    I have set the listener.ora to be the same as on 10g
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS_LIST =
            (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
          (ADDRESS_LIST =
            (ADDRESS = (PROTOCOL = TCP)(HOST = DB12)(PORT = 1521))
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ENVS = "EXTPROC_DLLS=ANY")
          (ORACLE_HOME = c:\oracle\ora11g)
          (PROGRAM = extproc)
        (SID_DESC =
          (GLOBAL_DBNAME = UPAD)
          (ORACLE_HOME = c:\oracle\ora11g)
          (SID_NAME = UPAD)
      )And the TNS names file
    EXTPROC_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
        (CONNECT_DATA =
          (SID = PLSExtProc)
          (PRESENTATION = RO)
      )Wrapper:
    create or replace procedure OutputString(
      p_Path in varchar2,
      p_Message in varchar2,
      p_mode in varchar2,
      p_NumLines in binary_integer)
    as
    external
      library externProcedures
      name "OutputString"
      with context
      parameters (context,
                  p_Path string,
                  p_path INDICATOR,
                  p_Message string,
                  p_message INDICATOR,
                  p_mode string,
                  p_mode INDICATOR,
                  p_NumLines int,
                  p_numlines INDICATOR)
    ;And the actual pl/sql code
    create or replace procedure extract_b
    (pname in varchar2
    ,ppath in varchar2
    is
         vBlob          blob;
         vLen          number;
         vRaw          raw(10000);
         i          number;
         j          number := 10000;
    begin
         select blob_content into vBlob from wwv_document$ where name = pName;
         -- find the length of the blob column
         vLen :=  DBMS_LOB.GETLENGTH(vBlob);
         -- Read 10000 bytes at a time
         i := 1;
         if vLen < 10000 then
         -- If the col length is < 10000
              DBMS_LOB.READ(vBlob,vLen,i,vRaw);
              outputstring(pPath,rawtohex(vRaw),'wb',2*vLen);
         -- You have to convert the data to rawtohex format. Directly sending the buffer data will not work
         -- That is the reason why we are sending the length as the double the size of the data read
         else
         -- If the col length is > 10000
              DBMS_LOB.READ(vBlob,j,i,vRaw);
              outputstring(pPath,rawtohex(vRaw),'wb',2*j);
         end if;
         i := i + 10000;
         while (i < vLen ) loop
         -- loop till entire data is fetched
              DBMS_LOB.READ(vBlob,j,i,vRaw);
              outputstring(pPath,rawtohex(vRaw),'ab',2*j);
              i := i + 10000 ;
         end loop;
    end;Any ideas?
    Thanks
    Robert

    I call extract_b from sqlplus, which calls outputstring which fails with the error message posted
    Not really sure what else I can provide as I've posted the code for outputstring
    The problem is the for some reason Oracle cannot load the dll, I think the code is fine as it has run on 10g, I think the issue is maybe along the lines that there is something extra in 11g I need to do to set the external library up or it's not happy with the fact it's 64bit or the listener.ora needs to be different in 11g or something like that but I am at a loss as where to look

  • XSLT Exception: FATAL ERROR:  'Could not compile stylesheet'

    Hi....
    Am getting Folowing Exception while parsing the XSL file. Am using java 1.4 and MSXML4.2 SP2 parser andSDK.
    but when I installed SQLServer2005, with that MSXML 6.0 Parser is Installed.
    It is working fine before instalation of SQLServer2005.
    java.lang.NullPointerException
         at com.sun.org.apache.xalan.internal.xsltc.compiler.FunctionCall.translate(FunctionCall.java:826)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.ValueOf.translate(ValueOf.java:114)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.SyntaxTreeNode.translateContents(SyntaxTreeNode.java:490)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.XslAttribute.translate(XslAttribute.java:252)
    Compiler warnings:
    file:///F:/Data/JRun4/servers/ABC/MainXSL.xsl: line 155: Attribute 'LenderBranchIdentifier' outside of element.
    file:///F:/Data/JRun4/servers/ABC/MainXSL.xsl: line 156: Attribute 'LenderRegistrationIdentifier' outside of element.
    ERROR: 'null'
    FATAL ERROR: 'Could not compile stylesheet'
    javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:753)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:548)
         at com.ls.lsglobal.common.CLOUTSQLXML.TransXml2Xml(CLOUTSQLXML.java:274)
    And My XSL is
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="2.5" xmlns:lsjava1="com.ls.lsglobal.common" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="lsjava1" >
         <xsl:output method="xml" indent="yes" encoding="utf-8" doctype-system="MyRequest.1.3.DTD"/>
         <xsl:template match="/" >
              <REQUEST_GROUP>
                                       <TRANSMITTAL_DATA>
                                            <xsl:if test="AppraisedVal!=''">
                                                 <xsl:attribute name="AppraisedValueAmount"><xsl:value-of select="AppraisedVal"/></xsl:attribute>
                                            </xsl:if>
                                            <xsl:if test="StatedVal!=''">
                                                 <xsl:attribute name="EstimatedValueAmount"><xsl:value-of select="StatedVal"/></xsl:attribute>
                                            </xsl:if>
                                            <xsl:for-each select="ROOT/AppMain/MyLoop/Liab">
                                                 <xsl:if test=" normalize-space(LiabTypCd) = 'SMG' and (normalize-space(PresFutTypCd) = 'BOTH' or normalize-space(PresFutTypCd) = 'PRES') and PresLienPos='1' and normalize-space(RefCd) != 'LOAN'">
                                                      <xsl:attribute name="CurrentFirstMortgageHolderType"><xsl:value-of select="LiabId"/></xsl:attribute>
                                                 </xsl:if>
                                            </xsl:for-each>
                                            <xsl:attribute name="LenderBranchIdentifier">0001</xsl:attribute>
                                            <xsl:attribute name="LenderRegistrationIdentifier"><xsl:value-of select="ROOT/AppMain/MyNum"/></xsl:attribute>
                                       </TRANSMITTAL_DATA>
              </REQUEST_GROUP>
         </xsl:template>
    </xsl:stylesheet>
    And My Java Code is
    public String TransXml2Xml(String xmlInFile, String xslFile, String xmlOutFile) throws Exception
              try
                   DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                   factory.setIgnoringElementContentWhitespace(true);
                   Document document;
                   File stylesheet = new File(xslFile);
                   File dataInfile = new File(xmlInFile);
                   DocumentBuilder builder = factory.newDocumentBuilder();
                   document = builder.parse(dataInfile);
                   System.err.println("-->AVC:::xslFile="+xslFile+" xmlInFile="+xmlInFile+" xmlOutFile="+xmlOutFile);
                   StreamSource stylesource = new StreamSource(stylesheet);
                   TransformerFactory t=TransformerFactory.newInstance();
                   Transformer transformer = t.newTransformer(stylesource);
                   DOMSource source = new DOMSource(document);
                   javax.xml.transform.stream.StreamResult result = new javax.xml.transform.stream.StreamResult(new File(xmlOutFile));
                   transformer.setOutputProperty(javax.xml.transform.OutputKeys.INDENT , "yes");
                   transformer.setOutputProperty(javax.xml.transform.OutputKeys.ENCODING, "UTF-8");
                   transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2");
                   if(strCLUTDTD_PATH.equals(""))
                        java.util.Properties props = new java.util.Properties();
                        java.io.FileInputStream fis = new java.io.FileInputStream("DataFileBasePath.properties");
                        props.load(fis);
                        fis.close();
                        strCLUTDTD_PATH = checkNull(props.get("CLUTREQDTD_PATH"));
                   transformer.setOutputProperty(javax.xml.transform.OutputKeys.DOCTYPE_SYSTEM , strCLUTDTD_PATH);
                   transformer.transform(source, result);
              catch(Exception e)
                   e.printStackTrace();
                   throw e;
              return "";
    can any one know what solution for this problem. It is very help full for me.

    So look at your code and find out what you are passing to the TransformerFactory. Then find out why it's null. Don't just sit there and say "Duh", it's your code.
    And remember that nobody but you can see it yet. If you like you could post it here and then others could see it and comment on it.

  • Error message after compiling -  java/lang/NoClassDefFoundError

    Hi
    My program compiles fine, no errors, but when the emulator is running and I click on the MIDlet I want to run I get the following error message, even tho
    I have that class defined in my library:
    Uncaught exception java/lang/NoClassDefFoundError: org/bouncycastle/crypto/InvalidCipherTextException.
    Does anyone know how I can get rid of this error?
    Thanks a million for your help

    Littlen12 wrote:
    I�ve tried adding all the bouncy castle libraries (even though I don�t need them all), then only the ones I�ve needed and >the cldc_class.zip and cldc_crypto.zip files. But I still get the following error -
    Uncaught exception java/lang/NoClassDefFoundError: org/bouncycastle/crypto/InvalidCipherTextExceptionThat means it still can not find the classes when compiling the project. Make sure your reference points to the right place. If you are using netbean, you will need to know how to add user libraries to the project.
    For user library like bouncy caste libraries,
    cldc_crypto.zip
    cldc_classes.zip
    you can try to add user library as following in netbean,
    1. Right-click the your project node in Projects window and select Properties
    2. Select Build / Libraries & Resources in properties tree
    3. Click Add Jar/Zip
    I am not sure if it is right way to add user libraries in netbean, but here you can read more about it.
    http://www.netbeans.org/kb/articles/mobile-class-library.html
    Hope it helps.
    Edited by: CostaChung on Dec 4, 2007 6:02 AM

  • Xpath error in 11g, works in 10g

    Hi all,
    We have migrated all reports from 10g to 11g and I have an issue on one of them.
    When I run the template in the template viewer I managed to get the logs and it says:
    [041912_095152537][oracle.xdo.common.xml.XSLTWrapper][ERROR] XSL error:
    <Line 132, Column 380>: XML-23002: (Error) internal xpath error
    @Line 132 ==> <xsl:value-of select="xdoxslt:set_variable($_XDOCTX, 'BUDGET_DIFF', (xdoxslt:get_variable($_XDOCTX, 'NUV_TOT') - xdoxslt:get_variable($_XDOCTX, 'BUDGET_TOT')))" xdofo:field-name="xdoxslt:set_variable($_XDOCTX, 'BUDGET_DIFF', (xdoxslt:get_variable($_XDOCTX, 'NUV_TOT') - xdoxslt:get_variable($_XDOCTX, 'BUDGET_TOT')))"/>
    Can anyone give me a hint on this one?
    As I mentioned it is working just fine in 10g.
    Thanks
    Magnus

    We're facing the same issue. Looking for solution.

  • When I export a video I get export errors. It compiled no problem.  Now I will do this as HD h.264 youtube HD

    I exported a movie and now every time I do the same project i get errors in media encoder and the logs say :
    08/14/2014 10:20:58 PM : Encoding Failed
    Export Error
    Error compiling movie.
      Unknown error.
      - Encoding Time: 00:04:21
    08/14/2014 10:28:45 PM : Encoding Failed
    Export Error
    Error compiling movie.
      Unknown error.
      - Encoding Time: 00:10:39
    08/15/2014 04:33:40 PM : Encoding Failed
    Export Error
    Error compiling movie.
      Unknown error.
    I do quicktime it works or SD and its a hit and miss as SD in h.264  any ideas? I never had this problem before....

    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

  • Premiere Pro CC2014 error ComponentFactory.cpp-69

    I tried to open a project that I started with CS6 and tried to open in CC2014. It contains prores422 .mov files, Premiere Pro Debug Event pop up appears with message,
    Premiere Pro has encountered an error.
    [..\..\Src\Component\ComponentFactory.cpp-69]
    I noticed someone (drbuhion Mar 19, 2014 1:07 AM) asked this question (Premiere Pro CC error ComponentFactory.cpp-69) and there was no answer. Any chance of resolving it?

    Thanks Mark. I just reinstalled Premiere Pro CC 2014 a few days ago and used the Adobe Cleaner to resolve a different issue this week. (It worked.)
    I had to start a project with a client’s laptop, which has CS6, then finish it at my home office, where I use CC 2014 (which I love). Granted, I’ll probably be in a jam if I have to edit it on that client’s laptop for some reason, but I don’t think that will happen.
    Oddly, a different project that I did on that client’s laptop with CS6 opened fine (which actually will benefit from the features of CC 2014).
    For what it’s worth, I worked around the problem by starting over with a new project to re-do the problematic one, using my PC with CC 2014.
    Bill

  • Package in all_objects shows invalid but compiles fine

    I have a package with 2 procedures. the package compiles fine and executes without error.
    when i looked at dba_objects, it showed the package and 2 procedures within as invalid. i compiled the package through sqlplus and the package name dissapeared from the list of invalid objects but the procedures remained.
    any body have any idea what could be causing this?
    10.2

    Even though you've got it sorted now, remember the following.
    A package can have an "invalid" status without actually having any errors in it.
    If an object changes (i.e. table dropped and recreated etc.) that the package has a dependency on, then the package is marked as "invalid" indicating that it needs recompilation. You can either manually recompile the package, or you can just make a call to the package which will automatically compile the package.
    SQL> create table t (x number);
    Table created.
    SQL> create package mypackage as
      2    procedure myproc;
      3  end;
      4  /
    Package created.
    SQL> create package body mypackage as
      2    procedure myproc is
      3      cursor mycur is
      4        select count(*) from t;
      5      v_cnt number;
      6    begin
      7      open mycur;
      8      fetch mycur into v_cnt;
      9      close mycur;
    10      dbms_output.put_line('Count: '||v_cnt);
    11    end;
    12  end;
    13  /
    Package body created.
    SQL> exec mypackage.myproc;
    Count: 0
    PL/SQL procedure successfully completed.
    SQL> drop table t purge;
    Table dropped.
    SQL> create table t (x number, y number);
    Table created.
    SQL> select object_type, status
      2  from user_objects
      3  where object_name = 'MYPACKAGE'
      4  and object_type like 'PACKAGE%';
    OBJECT_TYPE         STATUS
    PACKAGE             VALID
    PACKAGE BODY        INVALID
    SQL> exec mypackage.myproc;
    Count: 0
    PL/SQL procedure successfully completed.
    SQL> select object_type, status
      2  from user_objects
      3  where object_name = 'MYPACKAGE'
      4  and object_type like 'PACKAGE%';
    OBJECT_TYPE         STATUS
    PACKAGE             VALID
    PACKAGE BODY        VALID
    SQL> drop table t purge;
    Table dropped.
    SQL> create table t (x number);
    Table created.
    SQL> select object_type, status
      2  from user_objects
      3  where object_name = 'MYPACKAGE'
      4  and object_type like 'PACKAGE%';
    OBJECT_TYPE         STATUS
    PACKAGE             VALID
    PACKAGE BODY        INVALID
    SQL> alter package mypackage compile;
    Package altered.
    SQL> select object_type, status
      2  from user_objects
      3  where object_name = 'MYPACKAGE'
      4  and object_type like 'PACKAGE%';
    OBJECT_TYPE         STATUS
    PACKAGE             VALID
    PACKAGE BODY        VALID
    SQL> exec mypackage.myproc;
    Count: 0
    PL/SQL procedure successfully completed.
    SQL>There's also the issue of session states (the one where you get the message "Package state has been discarded" and you app falls over), but that's another kettle of fish which I won't explain here.
    ;)

  • How to fix export error - unable to compile movie?

    I can seem to find any concrete / concise solution for this.

    I am not having any lucky fixing this export error (unable to compile movie) in Premiere Pro CC.  All available articles seem to run me in circles and dont seem to help.  I am running on macbook pro 17" and OS X 10.8.4.
    I have about 200 GB available for storage and 8 GB RAM. 
    This problem just began a couple of days ago and has been frustrating to say the least.   I have uninstalled program and reinstalled it to no avail.
    Help.
    Bill

Maybe you are looking for