Error trying to insert a File in a Folder

Wed, 04 Apr 2001 12:06:16 GMT
ORA-06510: PL/SQL: excepcisn definida por el usuario no tratada
ORA-06512: en "PORTAL30.WWDOC_DOCU_BRI_TRG", lmnea 60
ORA-06510: PL/SQL: excepcisn definida por el usuario no tratada
ORA-04088: error durante la ejecucisn del disparador 'PORTAL30.WWDOC_DOCU_BRI_TRG'
DAD name: portal30
PROCEDURE : PORTAL30.wwv_add_wizard.edititem
URL : http://icisi34.cemi.malaga.es:80/pls/portal30/PORTAL30.wwv_add_wizard.edititem
PARAMETERS :
===========
ENVIRONMENT:
============
PLSQL_GATEWAY=WebDb
GATEWAY_IVERSION=2
SERVER_SOFTWARE=Apache/1.3.12 (Win32) ApacheJServ/1.1 mod_ssl/2.6.4 OpenSSL/0.9.5a mod_perl/1.22
GATEWAY_INTERFACE=CGI/1.1
SERVER_PORT=80
SERVER_NAME=icisi34.cemi.malaga.es
REQUEST_METHOD=POST
QUERY_STRING=
PATH_INFO=/pls/portal30/PORTAL30.wwv_add_wizard.edititem
SCRIPT_NAME=/pls
REMOTE_HOST=
REMOTE_ADDR=129.115.115.128
SERVER_PROTOCOL=HTTP/1.0
REQUEST_PROTOCOL=HTTP
REMOTE_USER=
HTTP_CONTENT_LENGTH=8325
HTTP_CONTENT_TYPE=multipart/form-data; boundary=---------------------------7d128a39984
HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 5.01; Windows 95)
HTTP_HOST=icisi34.cemi.malaga.es
HTTP_ACCEPT=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
HTTP_ACCEPT_ENCODING=gzip, deflate
HTTP_ACCEPT_LANGUAGE=es
HTTP_ACCEPT_CHARSET=
HTTP_COOKIE=portal30=3.0,es,e,SPAIN,196905976051C990E11FFD39DCAD321F12C4C4A23B4D10055552A905E07697747898CC6B2048D065CFF9509EB6E579242F7CE94CD94F38CA2C5FE68BDB13AA57B00A2F483BAF7719 09D4C9216206A397A6DEF1A42CE824A2D18BAFFABB18EB47; portal30_sso=3.0,en,us,AMERICA,61DCCBA96C86EDC3119959053B236866BD87108E24F4505F3AA4E88F0603DF11746FEF897B6A47CB03413132D0ED8869F144F7B4F75E3B278822A566149BF29C186B95FB63B4791AD8988 AFF30951031C18E2525992DB65B3195B5D5D0128383
Authorization=
HTTP_IF_MODIFIED_SINCE=
null

File upload crashes if the language is not English.
The error is in check_priv_on_document procedure in package wwsec_validation.
It seems like you're on NT, so you must be using 3.0.7.
Here is what you can do :
Backup the secval.pkb file (located in ORACLE_HOME/portal30/admin/plsql/wwc).
Open it and modify the check_priv_on_document
with the following :
procedure check_priv_on_document
p_object_type_name in varchar2,
p_owner in varchar2,
p_name in varchar2,
p_can_grant out number
is
l_sequence_currval number;
l_name_id number;
begin
if wwsec_api.has_privilege
p_object_type_name => p_object_type_name,
p_owner => p_owner,
p_name => p_name,
p_privilege => wwsec_api.OWN_PRIV
) then
p_can_grant := 1;
else
-- check the value
-- for the document name sequence.
-- if wwdoc_docu_pk_seq.currval matches p_name
-- then the current user was the creator and p_can_grant = 1
-- else p_can_grant equals 0
select wwdoc_docu_pk_seq.currval
into l_sequence_currval
from dual;
if instr(p_name,'.') > 1 then
-- BUG UPLOAD Correction
-- l_name_id := to_number(substr(p_name,1,instr(p_name,'.')));
l_name_id := to_number(substr(p_name,1,instr(p_name,'.')-1));
else
l_name_id := to_number(p_name);
end if;
if to_number(l_sequence_currval) >= l_name_id then
p_can_grant := 1;
else
p_can_grant := 0;
end if;
end if;
exception
when others then
p_can_grant := 0;
end check_priv_on_document;
Then load the new secval.pkb file into portal30 and portal30_sso schemas.
If it does not work or if things get worse, you can revert to the backed up version of secval.pkb.

Similar Messages

  • PowerPoint 2010 Hangs when trying to insert audio file

    I am trying to insert audio into a PowerPoint slide program.  I have done this quite often with previous versions of PowerPoint on a Dell computer, so I don't think it is user error - although I am open to the possibility - anything to get this fixed!
    Details:
    Lenovo T520 4239CTO, Bios: 8AET52WW, Win 7 Prof 64-bit, Microsoft Office Prof 2010, PowerPoint 2010 32-bit version 14.0.6112.5000.
    When I try to insert an audio file (MP3) I see a progress bar at the bottom (PowerPoint is inserting media) but it never progresses, and I also see a pop-up frame with this msg: "Inserting media. To cancel press the ESC key."  The system hangs - I must use the Control-alt-delete to get the task manager in order to stop the application. 
    I have tried turing off all Norton Internet Security - no difference.
    All recommended and most optional updates have been done from Lenovo and Microsoft, using their update service.
    I suspect that even though I can't find out what is causing the hang, that it might be related to security software.  The music files were downloaded from Amazon, they are MP3 format, and should theoretically be okay in a PowerPoint slide show.
    I would be most grateful for any help resolving this issue, since PowerPoint is basically useless to me unless I can insert various media files. 
    Solved!
    Go to Solution.

    When trying to insert the Win 7 sample music the same thing happens:
    Here is event log details:
    Log Name:      Application Source:        Windows Error Reporting Date:          12/12/2011 3:09:55 PM Event ID:      1001 Task Category: None Level:         Information Keywords:      Classic User:          N/A Computer:      Arleen-THINK Description: Fault bucket 2610993906, type 5 Event Name: Office12AssertTimer Response: Not available Cab Id: 0
    Problem signature: P1: p1ml P2: 14.0.6029.0 P3: 3 P4: 512 P5: P6: P7: P8: P9: P10:
    Attached files: C:\Users\Arleen\AppData\Local\Temp\powerpnt.exe.p1​ml512.dmp C:\Users\Arleen\AppData\Local\Temp\powerpnt.exe.p1​ml512.cvr
    These files may be available here: C:\Users\Arleen\AppData\Local\Microsoft\Windows\WE​R\ReportArchive\NonCritical_p1ml_2e33eca65bd39977a​7b43b27361ac1362d71d0_19d1870a
    Analysis symbol: Rechecking for solution: 0 Report Id: 658d6d2f-2516-11e1-8a82-f0def1703a71 Report Status: 0 Event Xml: <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/ev​ent">   <System>     <Provider Name="Windows Error Reporting" />     <EventID Qualifiers="0">1001</EventID>     <Level>4</Level>     <Task>0</Task>     <Keywords>0x80000000000000</Keywords>     <TimeCreated SystemTime="2011-12-12T23:09:55.000000000Z" />     <EventRecordID>14899</EventRecordID>     <Channel>Application</Channel>     <Computer>Arleen-THINK</Computer>     <Security />   </System>   <EventData>     <Data>2610993906</Data>     <Data>5</Data>     <Data>Office12AssertTimer</Data>     <Data>Not available</Data>     <Data>0</Data>     <Data>p1ml</Data>     <Data>14.0.6029.0</Data>     <Data>3</Data>     <Data>512</Data>     <Data>     </Data>     <Data>     </Data>     <Data>     </Data>     <Data>     </Data>     <Data>     </Data>     <Data>     </Data>     <Data> C:\Users\Arleen\AppData\Local\Temp\powerpnt.exe.p1​ml512.dmp C:\Users\Arleen\AppData\Local\Temp\powerpnt.exe.p1​ml512.cvr</Data>     <Data>C:\Users\Arleen\AppData\Local\Microsoft\Wind​ows\WER\ReportArchive\NonCritical_p1ml_2e33eca65bd​39977a7b43b27361ac1362d71d0_19d1870a</Data>     <Data>     </Data>     <Data>0</Data>     <Data>658d6d2f-2516-11e1-8a82-f0def1703a71</Data>     <Data>0</Data>   </EventData> </Event>
    Here is error report in Windows WER file:
    Version=1 EventType=Office12AssertTimer EventTime=129682049931131104 Consent=1 UploadTime=129682049931651134 ReportIdentifier=658d6d2f-2516-11e1-8a82-f0def1703​a71 WOW64=1 Response.BucketId=2610993906 Response.BucketTable=5 Response.type=4 Sig[0].Name=Problem Signature 01 Sig[0].Value=p1ml Sig[1].Name=Problem Signature 02 Sig[1].Value=14.0.6029.0 Sig[2].Name=Problem Signature 03 Sig[2].Value=3 Sig[3].Name=Problem Signature 04 Sig[3].Value=512 DynamicSig[1].Name=OS Version DynamicSig[1].Value=6.1.7601.2.1.0.256.48 DynamicSig[2].Name=Locale ID DynamicSig[2].Value=1033 UI[2]=C:\Program Files (x86)\Common Files\Microsoft Shared\office14\mso.dll Sec[0].Key=LCID Sec[0].Value=1033 Sec[1].Key=skulcid Sec[1].Value=1033 State[0].Key=Transport.DoneStage1 State[0].Value=1 FriendlyEventName=Stopped responding temporarily ConsentKey=Office12AssertTimer AppName=Microsoft PowerPoint AppPath=C:\Windows\SysWOW64\DWWIN.EXE ReportDescription=Microsoft PowerPoint had an unexpected error.  It was not critical so you were not interrupted when the problem occurred.

  • CS4 programme error trying to save picture files!

    Hi,
    I have a frustrating error when trying to save some of my older picture files with CS4 Extended.  The ones that I am looking at are 5 years old and taken with my Canon 5D.  When I open a file and then try to save it the save option is grey and only save as is available.  When I try to save as I get the error Could not complete your request because of a programme error.
    I have been trouble shooting the problem images and see that I cannot get File Info on these images with the following error, Could not complete the File Info command because of a problem with the File Info module.  When I look at some earlier D10 pictures they operate perfectly as do my more recent 5DMkII images.  I have tried removing the Exif data from the problem files and all the problems go away so I must be something to do with this embedded data.  The problem images don't have corrupt data... it is all there and looks correct.
    I keep track of my photos with IDimager V4.
    Does anyone have a explaination or a cure for this problem as the last thing I want to do is loose my File Info for all those old picture that I still need to work on and use.
    Many thanks,
    Nick
    System info:
    Adobe Photoshop Version: 11.0.1 (11.0.1x20090218 [20090218.r.523 2009/02/18:02:00:00 cutoff; r branch])
    Operating System: Windows XP 32-bit
    Version: 5.1 Service Pack 3
    System architecture: Intel CPU Family:6, Model:15, Stepping:11 with MMX, SSE Integer, SSE FP, SSE2
    Physical processor count: 4
    Processor speed: 2405 MHz
    Video Card: NVIDIA GeForce 8800 GT
    Video Mode: 1280 x 1024 x 4294967296 colors
    Video Card Driver: nv4_disp.dll
    Driver Version: 6.14.11.8122
    Built-in memory: 3327 MB
    Free memory: 2267 MB
    Memory available to Photoshop: 1688 MB
    Memory used by Photoshop: 60 %
    Image cache levels: 4
    Serial number: ************
    Application folder: C:\Program Files\Adobe\Adobe Photoshop CS4\

    Open the photo in another software program such as GIMP or Paint Shop Pro X2 and save as in that software. After that open it in CS4.
    Cs4 sometimes is flaky with damaged files and won't open them. Others will and re-saving it in different software will fix the problem.

  • I am getting a Eula error trying to open PDF file, not allowing me to open...what should I do?

    I have tried reinstalling software and didn't work. 
    How do I fix this eula error and open up PDF files again?

    I think I fixed it using help from another post...agreeing to license agreement in program files eula.exe
    I think Eula is a licensing agreement term (not quite sure because I just heard of it when error happened). 

  • Error While reading an Excel file from KM Folder.

    Hi Guru's,
    In my PDK Application I am trying to read an Excel file from KM Folder.
    Workbook workbook = Workbook.getWorkbook(new File("/irj/go/km/docs/documents/test/Test.xls"));
    It gives an error:
    Error:java.io.FileNotFoundException: \irj\go\km\docs\documents\test\Test.xls (The system cannot find the path specified)
    Details of appli:
    In my JspDynpage I am calling a utility Java file.
    There I have to read an  Excel and to passit to JSP.
    Details of jar files  used:
      jxl-2.6
      com.sap.security.api.jar
    Regards,
    Ram

    Hi,
    You are trying to read file wrong way. In the tutorial of Java Excel Api: "JExcelApi can read an Excel spreadsheet from a file stored on the local filesystem or from some input stream.". You are trying to read from file system. So you must get file input stream then you can read it. Please search forums KM file read.

  • RUNTIME ERROR - Trying to INSERT dbtab FROM dynamic itab

    Hi guys,
    I'm trying to do this
    INSERT (l_nametab) FROM TABLE <dynamic_table>.
    where:
    DATA: l_nametab TYPE TABNAME VALUE 'PA0002'.
    FIELD-SYMBOLS: <dynamic_table> TYPE STANDARD TABLE.
    DATA: dy_table2 type ref to data.
    CREATE DATA dy_table2 TYPE STANDARD TABLE OF (l_nametab).
    ASSIGN dy_table2->* TO <dynamic_table>
    ... but I received this runtime error:
    DBIF_RSQL_INTERNAL_ERROR
    Internal error when accessing a table.
    The current ABAP/4 program terminated due to
    an internal error in the database interface.
    An internal error in the database interface occurred during access to
    the data of table "PA0002 ".
    The situation points to an internal error in the SAP software
    or to an incorrect status of the respective work process.
    For further analysis the SAP system log should be examined
    (transaction SM21).
    For a precise analysis of the error, you should supply
    documents with as many details as possible.
    Does anybody know how can it be solved?
    I'll really apreciate it.
    Thanks and Regards.

    Hi Max,
    How can I upload this data if I'm reading the info from an Input File.
    The FM HR_INFOTYPE_OPERATION is useless because the UNAME fild doesn't remain into the record. They really need these field.
    The main idea of these program is to read the Input File Line, wich can belong to any infotype.
    I'm already reading the Infotype data from the input file and I need to transfer it to the PAXXXX table.
    Next, a little explanation of it:
    This program is to INSERT DATA INTO HR TABLES...
    The FM HR_INFOTYPE_OPERATION is useless in this process...
    Only with INSERT dbtab it has to be done!!!
    1.- Read HR data from an input file. The data type of the file lines is PRELP.
    2.- Get the input file data into an internal table (TYPE PRELP) using the ABAP Method CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD.
    3.- Get the DDic. Table Name using CONCATENATE 'PA' wa_file-infty INTO l_nametab.
    4.- Get the DDic.Struct.Name using CONCATENATE 'P' wa_file-infty INTO l_nametype.
    5.- Assign values with the same code:
      FIELD-SYMBOLS: <dyn_table> type standard table,
                     <dyn_wa>,
                     <dyn_field>.
      FIELD-SYMBOLS: <dyn_table2> type standard table,
                     <dyn_wa2>,
                     <dyn_field2>.
      DATA: dy_table2 type ref to data,
            dy_line2  type ref to data.
      DATA: dy_table type ref to data,
            dy_line  type ref to data,
                CREATE DATA dy_table TYPE STANDARD TABLE OF (l_nametype).
                ASSIGN dy_table->* TO <dyn_table>.
                " Create dynamic work area and assign to FS
                CREATE DATA dy_line LIKE LINE OF <dyn_table>.
                ASSIGN dy_line->* TO <dyn_wa>.
                CREATE DATA dy_table2 TYPE STANDARD TABLE OF (l_nametab).
                ASSIGN dy_table2->* TO <dyn_table2>.
                " Create dynamic work area and assign to FS
                CREATE DATA dy_line2 LIKE LINE OF <dyn_table2>.
                ASSIGN dy_line2->* TO <dyn_wa2>.
    6.- Convert the Input File Line from PRELP type to PNNNN type with the ABAP method
          CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN            EXPORTING        PRELP  = wa_file
                                                                                    IMPORTING        PNNNN  = <dyn_wa>.
    7.- As <dyn_wa2> and <dyn_table2> are of PANNNN Data Type, there is an structure with the MANDT field to be assigned to it:
    " Type Definition
    TYPES: BEGIN OF type_mandt,
              mandt TYPE MANDT,
           END OF type_mandt.
    " Structure Definition
    DATA: wa_mandt TYPE type_mandt.
    " Structure value assignation
    wa_mandt-mandt = sy-mandt.
    8.- Assign corresponding values and INSERT INTO dbtab
              MOVE-CORRESPONDING <dyn_wa> TO <dyn_wa2>. "XXXX
              MOVE-CORRESPONDING wa_mandt TO <dyn_wa2>.
              APPEND <dyn_wa2> TO <dyn_table2>.
             INSERT (l_nametab) FROM TABLE <dyn_table2> ACCEPTING DUPLICATE KEYS.
    9.- In these code line, the menctioned runtime error appears.
    I hope it can be solved...
    Thanks and regards...

  • Error message when inserting .FLV file

    I have Captivate 6 and have downloaded all updates that appeared when I went to the Help menu > Updates.
    I am going to Video > Insert Video and browse for my .FLV file (this is a Multi-Slide Synchronized Video). I then select "Modify slide duration to accomodate video" and click OK. I am prompted with the following error:  "Video encountered an internal error"
    The .FLV file was downloaded from a Virtual Classroom recording in Adobe Connect and is 49,329 KB.
    Can anyone help me with this?

    Hi Vikram -
    Thank you for your reply.
    I have  version 6.0.1.240
    I receive the same error when I try to insert the video as an Event Video
    The error happens in all projects. I have tried several blank projects, and a few existing to test it out.
    Below is a screenshot of the options I select when inserting a video, along with a screenshot of the error message I receive after clicking OK.

  • Error trying to open a file using java.io.* in an Applet

    I have a file called wordlist.txt and I am using java.io.* to open it. When I try it
    in Applet Viewer it runs without a hitch. But when I try to run it in a
    browser as an Applet, it errors out saying:
    com.ms.security.SecurityExceptionEx[package3/SpellCheck.setWordList]: cannot access file wordlist.txt
    I have tried adding this file to my Project and accessing it that way but I still get
    the same message. If anyone can help with this, I sure would appreciate it.
    My code is as follows:
    String inWord = new String("zzz");
    try {
    File myWordList = new File("wordlist.txt");
    BufferedReader inWordList = new BufferedReader(
    new FileReader(myWordList));
    inWord = inWordList.readLine();
    while (inWord != null) {
    wordList.addElement(inWord);
    inWord = inWordList.readLine();
    } // end while
    inWordList.close();
    } // end try
    catch (Exception e1) {
    // Pr is equivalent System.out.println();
    Pr("Error Reading this line " + '\n' + inWord + '\n' + e1);
    } // end catch
    } // end setWordList()

    Applets are generally prevented from reading as well as writing files, but appletviewer can load files from the hard drive, so, that is the cause of the behaviour you have observed. To know more about enabling applets load files, you have to sign your applets,
    learn more at
    http://java.sun.com/sfaq/#prevent

  • Error occured while inserting XML file data into table.

    Hello,
    I m trying to load xml data into table by following code.but getting below error
    Error at line 1
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00222: error received from SAX callback function
    ORA-06512: at "SYS.DBMS_XMLSTORE", line 78
    ORA-06512: at line 21
    DECLARE
      xmldoc   clob;
      insCtx   DBMS_XMLStore.ctxType;
      dname    varchar2(20) := 'MDIR';
      rows  number;
    BEGIN
        xmldoc := dbms_xslprocessor.read2clob(dname, 'try_xm3.xml');
        insCtx := DBMS_XMLStore.newContext('try1');
    dbms_output.put_line('1');
        DBMS_XMLStore.setRowTag(insCtx, 'cajas');
    rows := DBMS_XMLStore.insertXML(insCtx, xmlDoc);
    commit;
      dbms_output.put_line('INSERT DONE '||TO_CHAR(rows));
      DBMS_XMLStore.closeContext(insCtx);
    END;
    <?xml version="1.0" encoding="utf-8"?>
    <cajas xmlns="PBcion.Caja" fec="2011-03-02T14:20:14" codDeleg="093">
      <caj codPrev="80001223" fechaInicio="2011-03-02" fec="2011-09-02" couta="01" idPerio="1" caj="32"></caj>
    </cajas>can you please look into this?
    I m using oracle 10g

    SQL> create table try1
      2  (
      3  codPrev number,
      4  fechaInicio varchar2(25),
      5  fec varchar2(25),
      6  couta number,
      7  idPerio number,
      8  caj number
      9  );
    Table created
    SQL>
    SQL> insert into try1 (codprev, fechainicio, fec, couta, idperio, caj)
      2  select x.codprev, x.fechainicio, x.fec, x.couta, x.idperio, x.caj
      3  from xmltable(
      4         xmlnamespaces(default 'PBcion.Caja')
      5       , '/cajas/caj'
      6         passing xmltype(bfilename('TEST_DIR','try_xm3.xml'), nls_charset_id('AL32UTF8'))
      7         columns codPrev     number       path '@codPrev'
      8               , fechaInicio varchar2(25) path '@fechaInicio'
      9               , fec         varchar2(25) path '@fec'
    10               , couta       number       path '@couta'
    11               , idPerio     number       path '@idPerio'
    12               , caj         number       path '@caj'
    13       ) x
    14  ;
    1 row inserted
    SQL> select * from try1;
       CODPREV FECHAINICIO               FEC                            COUTA    IDPERIO        CAJ
      80001223 2011-03-02                2011-09-02                         1          1         32
    Since the two date attributes are coming in the W3C's xs:date format, you can directly define the corresponding columns as DATE and use a DATE projection in XMLTable :
    SQL> alter table try1 modify (fechainicio date);
    Table altered
    SQL> alter table try1 modify (fec date);
    Table altered
    SQL>
    SQL> insert into try1 (codprev, fechainicio, fec, couta, idperio, caj)
      2  select x.codprev, x.fechainicio, x.fec, x.couta, x.idperio, x.caj
      3  from xmltable(
      4         xmlnamespaces(default 'PBcion.Caja')
      5       , '/cajas/caj'
      6         passing xmltype(bfilename('TEST_DIR','try_xm3.xml'), nls_charset_id('AL32UTF8'))
      7         columns codPrev     number       path '@codPrev'
      8               , fechaInicio date         path '@fechaInicio'
      9               , fec         date         path '@fec'
    10               , couta       number       path '@couta'
    11               , idPerio     number       path '@idPerio'
    12               , caj         number       path '@caj'
    13       ) x
    14  ;
    1 row inserted
    SQL> select * from try1;
       CODPREV FECHAINICIO FEC              COUTA    IDPERIO        CAJ
      80001223 02/03/2011  02/09/2011           1          1         32

  • Error while trying to move a file from a folder to another

    Hi,
    I have created an application that processes files. When a file is processed, the application moves it to another subfolder.
    I am working on Netweaver Developer Studio 7.2. The application is a standard DC Web Dynpro.
    The code used to move the file is the following:
    File destFolder = new File(destinationFolder);
    if (!destFolder.exists())
         repCible.mkdirs();
    if (destFolder.exists()) {
         File fileToMove = new File(parentFolder + "\" + fileName);
         boolean isFileMoved = fileToMove.renameTo(new File(
                   destinationFolder + "\" + fileName));
         disp("Etat du déplacement du fichier: " + isFileMoved);
    The code is surrounded with a try catch to catch any SecurityException or NullPointerException. None of these exception is caught, and the isFileMoved boolean always return false.
    When the destination folder does not exist, it is created but the file isn't moved. Since the files and folders are situated in a network folder, I have tried to implement the exact same code in a stand alone Java application (not WDPJ). The code works fine. What is wrong with my Web Dynpro DC ? Any thoughts ?
    Thanks in advance for your help,
    Thibault

    Problem solved: I used the Scanner to extract data from the files and forgot to close the scanner.
    As a result, the file was still processed by thread and could not be deleted or moved !!

  • Error trying to insert xml into Oracle table

    Hi -
    I am trying to (a)read a row from emp table and output the results in xml format
    and (b) insert this row to another emp_new table (same structure as emp).
    When I run it here is what I get:
    OUTPUT IS:
    <?xml verions='1.0'?>
    <Employee>
    <Emp num="1">
    <EMPNO>7369</EMPNO>
    <ENAME>Smith</ENAME>
    <JOB>Clerk</JOB>
    <MGR>7902</MGR>
    <HIREDATE>12/7/1980</HIREDATE>
    <SAL>800</SAL>
    <DEPTNO>20</DEPTNO>
    </Emp>
    </Employee>
    Exception in thread "main" oracle.xml.sql.OracleXMLSQLException:
    No rows to modify -- the row enclosing tag is missing. Specify
    the correct row enclosing tag.
    etc...
    The row enclosing tag is given by setRowTag("Emp").
    What's wrong here? Any ideas?
    PS: To Ambrose Padilla: Your response was helpful. Thank you.
    Program
    import java.sql.*;
    import oracle.xml.sql.query.*;
    import oracle.jdbc.driver.*;
    import oracle.xml.sql.dml.*;
    class testXML
    public static void main(String[] args) throws SQLException
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    //initialize a JDBC connection
    Connecton conn = DriverManager.getConnection("jdbc:oracle:thin:mytest:1521:acme", "scott", "tiger");
    //initialize the OracleXMLQuery
    OracleXMLQuery qry =
    new OracleXMLQuery(conn,"select * from emp where rownum < 2");
         // set the document name
         qry.setRowsetTag("Employee");
         // set the row element name
         qry.setRowTag("Emp");
         // get the XML result
         String xmlString = qry.getXMLString();
         // print result
         System.out.println(" OUPUT IS:\n"+xmlString);
         OracleXMLSave sav = new OracleXMLSave(conn,"emp_new");
         sav.insertXML(xmlString);
         sav.close();
    }

    Try inserting
    sav.setRowTag("emp");
    before calling insertXML.

  • Unsupported class version error trying to run jar file on windows machine

    Hi,
    i've written a program that connects to an access database to get its data. Created a jar file with the class files, the access database and other required files.
    works fine on my home windows computer but when i try to run it on another machine i get an error.
    here's what i write on the cmd: java -Xmx128m -jar myFile.jar
    heres the error i get:
    Exception in thread "main" java.lang.UnsupportedClassVersionError: StartUp(Unsupported major.minor version 49.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    and so on.
    It seems like it might be quite a basic error but i'm lost, can anyone please shed some light and tell me where i'm going wrong?
    cheers in advance

    hey there, in case anyone was going to reply, i've worked it out now. couldn't work out what was wrong at first so just pulled out all my classes and put them into a brand new jar file. now use javaw -jar instead of java and it worked fine! wierd...

  • Getting error trying to insert a Lead... SBL-EAI-04316

    Hi,
    I've insert leads succesfully till now. I've been receiving this error:
    Error al procesar el argumento urn:/crmondemand/xml/lead:ListOfLead para la operaci??n LeadInsert(SBL-EAI-04316)
    Here's my code:
    private Lead1 InsertLead(Session mySession, clientePotencial cpo)
    try
    // instanciamos el servicio proxy
    SiebelOnDemand.LeadWS.Lead proxy = new SiebelOnDemand.LeadWS.Lead();
    // obtenemos URL de acceso
    proxy.Url = mySession.GetURL();
    proxy.CookieContainer = mySession.GetCookieContainer();
    LeadWS_LeadInsert_Input input = new LeadWS_LeadInsert_Input();
    input.ListOfLead = new Lead1[1];
    input.ListOfLead[0] = new Lead1();
    input.ListOfLead[0].ExternalSystemId = cpo.cpo_autoID.ToString();
    input.ListOfLead[0].LeadLastName = cpo.cpo_nif;
    input.ListOfLead[0].LeadFirstName = cpo.LeadFirstName;
    input.ListOfLead[0].StreetAddress = cpo.cpo_billing;
    input.ListOfLead[0].Company = cpo.cpo_businessName;
    input.ListOfLead[0].PrimaryPhone = cpo.cpo_primaryPhone.ToString();
    input.ListOfLead[0].NumberEmployees = cpo.cpo_employeesNumber.ToString();
    input.ListOfLead[0].cpo_regime = cpo.cpo_regime;
    input.ListOfLead[0].cpo_cnae = cpo.cpo_cnae.ToString();
    input.ListOfLead[0].cpo_cnaeDescription = cpo.cpo_cnaeDescription;
    input.ListOfLead[0].cpo_atInstallments = cpo.cpo_atInstallments.ToString();
    input.ListOfLead[0].cpo_atProfit_percent = cpo.cpo_atProfit_percent.ToString();
    input.ListOfLead[0].cpo_atProfit = cpo.cpo_atProfit.ToString();
    input.ListOfLead[0].cpo_management = cpo.cpo_management;
    input.ListOfLead[0].cpo_source = cpo.cpo_source;
    input.ListOfLead[0].Country = cpo.Country;
    input.ListOfLead[0].City = cpo.cpo_municipality;
    input.ListOfLead[0].ZipCode = cpo.cpo_zipCode;
    input.ListOfLead[0].Province = cpo.cpo_province;
    input.ListOfLead[0].Source = cpo.Source;
    input.ListOfLead[0].LeadOwner = cpo.LeadOwner;
    input.ListOfLead[0].ReassignLeadOwner = cpo.ReassignLeadOwner;
    input.ListOfLead[0].cpo_lastComercialManager = cpo.cpo_lastComercialManager;
    input.ListOfLead[0].cpo_added = "N";
    //llamada al método de inserción de Leads del Web Service
    LeadWS_LeadInsert_Output output = null;
    output = proxy.LeadInsert(input); <- I get the error here...
    return output.ListOfLead[0];
    I don't know how can I resolve it!
    Please some help would be apreciated!
    Thanks in advance,
    Noël

    Look for error details in the exception, there should be more information there.

  • Bad Magic Number error trying to deploy WAR file from Netweaver Studio

    We hae an application that runs fine as a WAR in both Tomcat and Weblogic and we are trying to deploy it on Netweaver.  I tried both to use the External deployment archives and the Workspace Deployable Archives.  In both cases, the deployment fails with error:
    Bad magic number, found 0x80CCF1C3, expected 0xCAFEBABE.
    I know the server is working because I can deploy a very simple test application with no errors.  The server is a new installation of 7.1.
    Any help on how to get past this error or how to troubleshoot further is appreciated.

    Looks like it's complaining about a missing shared library. Check weblogic.xml for library-ref elements and make sure the domain you are deploying to has those libraries deployed.

  • Error trying to import raw files from NIKON to Lightroom

    I am an amateur photographer. I just purchased a brand new NIKON D3300 took a few pictures, signed up for the Adobe annual Photographers Creative Cloud annual program and my first task to have Lightroom import a few test photos fails and I have no clue why my raw + jpgs can't be imported. at the outset In Lightroom I also got a "Preview unavailable for this file" message for every image file when I pointed to the memory card I had connected to my computer:
    The files are not recognized by the raw format support in Lightroom. (35)
        DSC_0376.NEF
        DSC_0377.NEF
        DSC_0378.NEF
        DSC_0379.NEF
        DSC_0380.NEF
        DSC_0381.NEF
        DSC_0382.NEF
        DSC_0383.NEF
        DSC_0384.NEF
        DSC_0385.NEF
        DSC_0386.NEF
        DSC_0387.NEF
    I've also attached a screen shot. I would sincerely appreciate any advice and guidance. I would really like to use Lightroom and all the Adobe products but I have no clue why it won't work with my NIKON test pictures. :-(
    Thank you,
    Brian.

    NIKON D3300
    The Nikon D3300 Raw format is not yet supported in Lightroom 5 (currently 5.3).
    http://helpx.adobe.com/creative-suite/kb/camera-raw-plug-supported-cameras.html
    Raw file formats are proprietary to each camera manufacturer and specific to each camera model. Adobe's Camera Raw engine (used by both Adobe Camera Raw - as a plugin to Photoshop - and Lightroom) must be constantly updated with every new camera make and model which arrives on the market in order to read and edit Raw files from that camera.
    Adobe has added support for the D3300 to Camera Raw 8.4 which is about to be released. It is a Release Candidate (RC status) at the moment. So D3300 Raw support will probably be added to the next soon-to-be-released Lightroom update (5.4).
    http://labs.adobe.com/technologies/cameraraw8-4-cc/?tabID=details#tabTop
    In the meantime, you can download the free Adobe DNG Converter 8.4
    http://labs.adobe.com/downloads/cameraraw8-4.html
    Using the DNG converter, you can then convert the D3300 Raw files to DNGs then open and edit the DNGs in Lightroom 5.3.
    Once Lightroom 5.4 is released (assuming it also has D3300 support) the DNG conversion will no longer be required.

Maybe you are looking for

  • HT4314 Can you delete game date on a Game Center account?

    I'm new to this but basically I want to restart a game I'm playing (Animal Voyage - Adventure Island), I have tryed resetting my Ipad and uninstalling the game but it keeps taking me back to the same point of the game, so I'm assuming its because the

  • My ipod touch 3rd gen is disabled how do  I restore it

    I have an Ipod touch 3rd generation and its disabled and it says try again in 23 million mins how do i  fix it?

  • Firefox window will not shrink

    Since I upgraded to Firefox 31 clicking on the shrink button causes only minimal reduction in window size, while windows open in other programmes reduce to half size. In addition, the task bar disappears. This is more than annoying. Is there a fix?

  • Can I just drag and drop song files into iTunes?

    I have about 50 folders on my PC (Windows 7), each containing between 5 and 15 songs. These are under My Music/ on the PC. On my Mac, I have about 1000 songs with about 25 Playlists. Some of these Playlists on the Mac contain the same songs as in the

  • LDAP Corporate Directory lookup won't work on Win 2008 64-bit

    I just spent like 20 hours chasing this problem so I thought I'd post the solution here. We host the IP Phone Corporate Directory on a Win 2003 web server and it works fine, but failed when we tried to move it to a Win 2008 server. When the multidire