HELP! Unsuccessful using JPublisher generated file

Working with oracle 8i on Soloaris: My stored procedure written in
java expects an oracle object (named outer_objtyp) which contains two
fields. One field is another oracle object(inner_objtyp) and the
other field is a varchar2. I did jpublisher on the Inner_Objtyp and
Outer_Obtyp,loaded these java classes to oracle, and type mapped these
java classes to the proper corresponding oracle object. When I do jpub
using the -usertypes=oracle option everything works well
and the stored procedure is executed properly. But when I do jpub
using -usertypes=jdbc, upon executing the stored procedure, I get an
Inconsistent Datatype error (and a class cast exception too.) I don't
know what I need to do in order to get the usertypes=jdbc to work
correctly. WHAT DID I LEAVE OUT? What am I missing? Here's the syntax:
THE ORACLE OBJECT:
CREATE TYPE inner_objtyp AS OBJECT(inner_fld VARCHAR2(25))
CREATE TYPE outer_objtyp AS OBJECT
(inner_obj inner_objtyp,outer_fld VARCHAR2(25))
THE STORED PROCEDURE'S PUBLICATION:
CREATE OR REPLACE PACKAGE sub_clss_proc AS
PROCEDURE proc_sub_clss
(outer2 IN OUTER_OBJTYP
END sub_clss_proc;
CREATE OR REPLACE PACKAGE BODY sub_clss_proc AS
PROCEDURE proc_sub_clss
(outer2 IN OUTER_OBJTYP
AS LANGUAGE JAVA
NAME 'SubClssProc.procOuter(Outer_Objtyp)';
END sub_clss_proc;
JPUB STATMENT THAT WORKS:
jpub -user=$SIGNON \
-sql=inner_objtyp:Inner_Objtyp,outer_objtyp:Outer_Objtyp \
-case=mixed -methods=none \
-usertypes=oracle
JPUB STATEMENT THAT CAUSES INCONSISTENT DATA ERROR:
jpub -user=$SIGNON \
-sql=inner_objtyp:Inner_Objtyp,outer_objtyp:Outer_Objtyp \
-case=mixed -methods=none \
-usertypes=jdbc
I'd like to add the stored procedure's code to the original question.
It might be helpful to anyone that's trying to help me.The type
mapping written there. Maybe I left out something in the type mapping.
//THE STORED PROCEDURE
import java.sql.*;
import Inner_Objtyp;
import Outer_Objtyp;
public class SubClssProc
public static void procOuter(Outer_Objtyp outerObj) throws Exception
Connection conn = new
oracle.jdbc.driver.OracleDriver().defaultConnection();
try {
// DB MAPPING
java.util.Map map = conn.getTypeMap();
map.put("MACH_ADMN.OUTER_OBJTYP",
Class.forName("Outer_Objtyp"));
map.put("MACH_ADMN.INNER_OBJTYP",
Class.forName("Inner_Objtyp"));
conn.setTypeMap(map);
System.out.println("Here1");
System.out.println("outerObj.outer_fld " +
outerObj.getOuterFld() +
"outerObj.innerObj.inner_fld " +
outerObj.getInnerObj().getInnerFld());
catch (Exception e) {
if (e instanceof SQLException)
System.out.println( String.valueOf( ((SQLException)
e).getSQLState() );
e.printStackTrace();
System.out.println("Message: " + e.getMessage());
} // End Catch
} // End Method
} // End Class
Please respond ASAP. Thanx.

You may want to post this question on an oracle newsgroup(try
http://technet.oracle.com) to get a faster response. This newsgroup is
specific for WebLogic jdbc issues.
sree
"deejay" <[email protected]> wrote in message
news:[email protected]...
Working with oracle 8i on Soloaris: My stored procedure written in
java expects an oracle object (named outer_objtyp) which contains two
fields. One field is another oracle object(inner_objtyp) and the
other field is a varchar2. I did jpublisher on the Inner_Objtyp and
Outer_Obtyp,loaded these java classes to oracle, and type mapped these
java classes to the proper corresponding oracle object. When I do jpub
using the -usertypes=oracle option everything works well
and the stored procedure is executed properly. But when I do jpub
using -usertypes=jdbc, upon executing the stored procedure, I get an
Inconsistent Datatype error (and a class cast exception too.) I don't
know what I need to do in order to get the usertypes=jdbc to work
correctly. WHAT DID I LEAVE OUT? What am I missing? Here's the syntax:
THE ORACLE OBJECT:
CREATE TYPE inner_objtyp AS OBJECT(inner_fld VARCHAR2(25))
CREATE TYPE outer_objtyp AS OBJECT
(inner_obj inner_objtyp,outer_fld VARCHAR2(25))
THE STORED PROCEDURE'S PUBLICATION:
CREATE OR REPLACE PACKAGE sub_clss_proc AS
PROCEDURE proc_sub_clss
(outer2 IN OUTER_OBJTYP
END sub_clss_proc;
CREATE OR REPLACE PACKAGE BODY sub_clss_proc AS
PROCEDURE proc_sub_clss
(outer2 IN OUTER_OBJTYP
AS LANGUAGE JAVA
NAME 'SubClssProc.procOuter(Outer_Objtyp)';
END sub_clss_proc;
JPUB STATMENT THAT WORKS:
jpub -user=$SIGNON \
-sql=inner_objtyp:Inner_Objtyp,outer_objtyp:Outer_Objtyp \
-case=mixed -methods=none \
-usertypes=oracle
JPUB STATEMENT THAT CAUSES INCONSISTENT DATA ERROR:
jpub -user=$SIGNON \
-sql=inner_objtyp:Inner_Objtyp,outer_objtyp:Outer_Objtyp \
-case=mixed -methods=none \
-usertypes=jdbc
I'd like to add the stored procedure's code to the original question.
It might be helpful to anyone that's trying to help me.The type
mapping written there. Maybe I left out something in the type mapping.
//THE STORED PROCEDURE
import java.sql.*;
import Inner_Objtyp;
import Outer_Objtyp;
public class SubClssProc
public static void procOuter(Outer_Objtyp outerObj) throws Exception
Connection conn = new
oracle.jdbc.driver.OracleDriver().defaultConnection();
try {
// DB MAPPING
java.util.Map map = conn.getTypeMap();
map.put("MACH_ADMN.OUTER_OBJTYP",
Class.forName("Outer_Objtyp"));
map.put("MACH_ADMN.INNER_OBJTYP",
Class.forName("Inner_Objtyp"));
conn.setTypeMap(map);
System.out.println("Here1");
System.out.println("outerObj.outer_fld " +
outerObj.getOuterFld() +
"outerObj.innerObj.inner_fld " +
outerObj.getInnerObj().getInnerFld());
catch (Exception e) {
if (e instanceof SQLException)
System.out.println( String.valueOf( ((SQLException)
e).getSQLState() );
e.printStackTrace();
System.out.println("Message: " + e.getMessage());
} // End Catch
} // End Method
} // End Class
Please respond ASAP. Thanx.

Similar Messages

  • How to use JPublisher generated package in JSP

    I am finding difficulty in using JDeveloper genereted (Using JPublisher) package ( from PL?SQL packages of Oracle) using in JSP . can any body help
    Prashant

    Can you be more specific on what you are doing and what problem you are facing.
    You can refer JPublisher documentation here.
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/java.920/a96658/toc.htm
    JPub help with Jdeveloper
    http://otn.oracle.com/jdeveloper/help/
    Go to using SQL in Java Programs ->Accessing Oracle Objects and PL/SQL Packages using Java
    Also you can see how JPub generated classes can be used in SQLJandJPublisherSample at following url. You can apply similar concept for JSPs.
    http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/9i_sqlj/9i_sqlj.html
    Chandar

  • How to use a ".generate" file in JDeveloper 11g ?

    hi
    Using JDeveloper 11g (11.1.1.0.1) I created a Database Diagram and dropped both SCOTT.EMP and SCOTT.DEPT tables on it, creating Offline Database Objects.
    After that I used the "Generate..." option from the right-click menu on the SCOTT Offline Database Source in JDeveloper, to generate a SQL script.
    Step 6 of 6 allowed me to "Save settings for reuse", resulting in a ".generate" file (see GenerateSQLFromDatabaseObjectsStep6Of6.png).
    question
    How should I be able to reuse such a ".generate" file, the right-click menu does not have a "Generate" option (like JDeveloper 10g has) or something similar, see GenerateSQLRightClickMenuForGenerateFile.png.
    many thanks
    Jan Vervecken

    Thanks for your reply Susan.
    You were not able to access it via metalink as it was categorized as an internal bug rather than a production version bug. Since it has now been fixed it is unlikely that I can get it changed to allow it to be seen via metalink.about "unlikely", see also ...
    ... Steve Muench : "Re: Request for "WHERE  -   IN" Combination with Bind Variables."
    ... Keimpe Bronkhorst : "Re: Generics : compiler option : unchecked conversion warnings"
    ... Brian Duff : "Re: Surround With Try/Catch : comments issue"
    ... Frank Nimphius : "Re: Jdev 11g: Warnings in structure window for jspx (makeCurrent)"
    But there is probably an explanation.
    regards
    Jan

  • I am trying to use firefox to access MySQL tables using PHP generated files. How do I do it?

    Sorry, I hit the enter button and it sent an incomplete message

    Hi,
    I use a Kensingtom USB controller that I have had for years.  It has forward and back, laser pointer and screen blackout function keys.  It doesn't act as a media controlller with volume, play, forward and back.

  • Using a data file in jsp to generate xml file

    hi
    can anybody help me to
    how to use a data file generated in unix in jsp to generate xml file.
    by using beans i am able to generate the xml.
    thanks in advance.

    You haven't provided adequate relevant information. If you need help provide proper relevant details.

  • Need a help: how to recover using backup control file?

    Please a help:
    First computer
    1. I create a database
    2. put it in archive mode,
    3. shutdown and made a cold backup
    4. Created backup control file (alter database backup control file to trace)
    5. I started up and created some archived log files.
    Second Computer
    1. I copied all files created in the step 3 above except the control file
    2. I create all the same map directory on the 2nd computer as in the 1st computer
    3. I recreate the control file from the script got in the step 4 above
    4. I Copy archived log files generated at the step 5 in the local directory in the second computer
    5. I set the logsource and set the autorecovery to on
    6. I recover the database: RECOVER DATABASE USING BACKUP CONTROL FILE UNTIL CANCEL
    Error got:
    the archived log file applied do not go beyond the first one?,How could I do to applied all archived log files copied from the first computer to the second computer to have the same data?
    Thank you very much

    archived log sequeces in the first computerSQL> select sequence#,first_change#,next_change# from v$log_history;
    SEQUENCE# FIRST_CHANGE# NEXT_CHANGE#
    1 553723 555484
    2 555484 557345
    Actions I did in the second Computer(after copied the former two archived log files from the 1st computer)
    SQL> CREATE CONTROLFILE REUSE DATABASE "ORCL" RESETLOGS ARCHIVELOG
    2 MAXLOGFILES 16
    3 MAXLOGMEMBERS 3
    4 MAXDATAFILES 100
    5 MAXINSTANCES 8
    6 MAXLOGHISTORY 292
    7 LOGFILE
    8 GROUP 1 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO01.LOG' SIZE 50M,
    9 GROUP 2 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO02.LOG' SIZE 50M,
    10 GROUP 3 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG' SIZE 50M
    11 -- STANDBY LOGFILE
    12 DATAFILE
    13 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF',
    14 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF',
    15 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF',
    16 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF'
    17 CHARACTER SET WE8ISO8859P1
    18 ;
    Control file created.
    SQL> archive log list;
    Database log mode Archive Mode
    Automatic archival Disabled
    Archive destination USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence 0
    Next log sequence to archive 0
    Current log sequence 0
    SQL> alter database archivelog;
    Database altered.
    SQL> set logsource C:\local_destination1_orcl
    SQL> set autorecovery on;
    SQL> recover database using backup controlfile until cancel;
    ORA-00279: change 555611 generated at 01/18/2007 14:14:14 needed for thread 1
    ORA-00289: suggestion :
    C:\LOCAL_DESTINATION1_ORCL\ARCH.1_1_612194518_43F17CF5.ARC
    ORA-00280: change 555611 for thread 1 is in sequence #1
    ORA-00328: archived log ends at change 555483, need later change 555611
    ORA-00334: archived log:
    'C:\LOCAL_DESTINATION1_ORCL\ARCH.1_1_612194518_43F17CF5.ARC'
    Idon't know where the change 555611 is coming from?

  • What's the detailed GPS protol used to generated GPS bin file?

    I encountered a problem recently.
    ) When we used actual GPS signals instead of simulated signals generated from the PXI-5671, the receiver functioned normally.
    2) When we streamed bin file to generate signals repeatedly using the PXI-5671, the receiver could receive correctly for the first time, while at the rest of it the receiver couldn't receive the signals nor display how many satellites there were and what the signal strengths were.
    The R&D engineers of the receiver in German want to know the detailed GPS protocol used to generated GPS bin file. They want to find the differences between the receiver and NI GPS generator.
    Could you give me the detailed GPS protocol? thanks!

    Hello,
    In the ni GPS bin file ther header is is stored as following.
    Of the first 8 bytes the first two bytes are version of GPS toolkit it was use to save the data, the next 4 bytes will be IQ rate, the next 4 bytes will be peak power in dBm and then rest 488 bytes will be just buffer data or 0 padding. Here is the screenshot of that. The actual data is stored as I16 format as I and Q data block. Hence the actual offset from the starting of the file is 512 bytes. 
    Hope this helps. For reference you can look at the  niGPS Streaming From File.vi located in C:\Program Files\National Instruments\LabVIEW 2009\examples\RF Toolkits\GPS\Programming
    Thanks
    NI-khil 
    Message Edited by NIyer on 05-14-2010 12:40 PM

  • Help with uploading an excel file to a table using an application

    Hello,
    Can anyone please help me out with this issue. I have apex application where in the end users upload an excel file to a table. For this I have followed the solution provided in this link
    http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
    Using the above solution, I was able to upload the excel data to a table "sample_tbl1" successfully with fields Id,acct_no,owner_name,process_dt. But the thing is I want accomdate a particular condition while uploading the file data, to check see if the acct_no already exists in another table say "sample_tbl2" or not. If acct_nos already exists in sample_tbl2 then give out an error displaying the list of account numbers that already exists in the database. Below is the code which I am using to upload file data to a table.
    DECLARE
    v_blob_data       BLOB; 
    v_blob_len        NUMBER; 
    v_position        NUMBER; 
    v_raw_chunk       RAW(10000); 
    v_char            CHAR(1); 
    c_chunk_len       number       := 1; 
    v_line            VARCHAR2 (32767)        := NULL; 
    v_data_array      wwv_flow_global.vc_arr2; 
    v_rows            number; 
    v_sr_no           number         := 1; 
    l_cnt             BINARY_INTEGER := 0;
    l_stepid          NUMBER := 10;
    BEGIN
    --Read data from wwv_flow_files</span> 
    select blob_content into v_blob_data 
    from wwv_flow_files 
    where last_updated = (select max(last_updated) from wwv_flow_files where UPDATED_BY = :APP_USER) 
    and id = (select max(id) from wwv_flow_files where updated_by = :APP_USER); 
    v_blob_len := dbms_lob.getlength(v_blob_data); 
    v_position := 1; 
    /* Evaluate and skip first line of data
    WHILE (v_position <= v_blob_len ) LOOP
    v_raw_chunk := dbms_lob.substr(v_blob_data,c_chunk_len,v_position);
    v_char :=  chr(hex_to_decimal(rawtohex(v_raw_chunk)));
    v_line := v_line || v_char;
    v_position := v_position + c_chunk_len;
    -- When a whole line is retrieved
    IF v_char = CHR(10) THEN
    -- Clear out 
    v_line := NULL;
    EXIT;
    END IF;
    END LOOP;
    -- Read and convert binary to char</span> 
    WHILE ( v_position <= v_blob_len ) LOOP 
    v_raw_chunk := dbms_lob.substr(v_blob_data,c_chunk_len,v_position); 
    v_char :=  chr(hex_to_decimal(rawtohex(v_raw_chunk))); 
    v_line := v_line || v_char; 
    v_position := v_position + c_chunk_len; 
    -- When a whole line is retrieved </span> 
    IF v_char = CHR(10) THEN
    -- Convert comma to : to use wwv_flow_utilities </span> 
    v_line := REPLACE (v_line, ',', ':'); 
    -- Convert each column separated by : into array of data </span> 
    v_data_array := wwv_flow_utilities.string_to_table (v_line); 
    -- Insert data into target table
    EXECUTE IMMEDIATE 'insert into sample_tbl1(ID,ACCT_NO,OWNER_NAME,PROCESS_DT) 
    values (:1,:2,:3,:4)'
    USING 
    v_sr_no, 
    v_data_array(1), 
    v_data_array(2),
    to_date(v_data_array(3),'MM/DD/YYYY');
    -- Clear out 
    v_line := NULL; 
    v_sr_no := v_sr_no + 1; 
    l_cnt := l_cnt + SQL%ROWCOUNT;
    END IF; 
    END LOOP;
    delete from wwv_flow_files
    where last_updated = (select max(last_updated) from wwv_flow_files where UPDATED_BY = :APP_USER)
    and id = (select max(id) from wwv_flow_files where updated_by = :APP_USER);
    l_stepid  := 20;
    IF l_cnt = 0 THEN
    apex_application.g_print_success_message := apex_application.g_print_success_message || '<p><span style="font-size:14;font-weight:bold">Please select a file to upload.</span></p>' ;
    ELSE
    apex_application.g_print_success_message := apex_application.g_print_success_message || '<p><span style="font-size:14;font-weight:bold;color:green">File uploaded and processed ' || l_cnt || ' record(s) successfully.</span></p>';
    END IF;
    l_stepid  := 30;
    EXCEPTION WHEN OTHERS THEN
    ROLLBACK;
    apex_application.g_print_success_message := apex_application.g_print_success_message || '<p><span style="font-size:14;font-weight:bold;color:red">Failed to upload the file. '||REGEXP_REPLACE(SQLERRM,'[('')(<)(>)(,)(;)(:)(")('')]{1,}', '') ||'</span></p>';
    END;
    {code}
    Can anyone please help me, how do i accomdate the condition within my existing code.
    thanks,
    Orton                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Orton,
    From your code it appears that the account No comes in the second column of the file = > v_data_array(1)
    So You can put a conditional block around the execute immediate code that inserts the records
    For instance
      SELECT count(1) INTO ln_account_no_exists from <"sample_tbl2> where account_no = v_data_array(1);
      IF (  ln_account_no_exists > 0 ) THEN
         --Account No: already exists
        <Do what you want to do here >
      ELSE
        EXECUTE IMMEDIATE ...
      END IF:
    {code}
    Inorder to handle the account no records which exists you can
      <li>Raise an exception
      <li> Write record to table or insert into collection and then use a report region in the page based on this table/collection to show error records
      <li> Append errored account No:s to the Success Message Variable programmatically(this variable is used by PLSQL process success/error message )
       {code}
        IF ( record exists)
          apex_application.g_print_success_message := apex_application.g_print_success_message||','|| v_data_array(1) ; -- Comma separated list of errored account no:s
        ELSE ...
       {code}
    Hope it helps                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • I have to upload video from my hewlett packard t200 camcorder to my mac. but mac won't recognize the camcorder files. i even bought flip4mac by tele stream which so far is useless. please help me use my camcorder with my iMac os mountain lion 10.8.2

    i have to upload video from my hewlett packard t200 camcorder to my mac. but mac won't recognize the camcorder files. i even bought flip4mac by tele stream which so far is useless. please help me use my camcorder with my iMac os mountain lion 10.8.2
    i tried to get the installation disc for the camcorder but mac wont' recognize it becaue it is windows based i guess.
    i just bought the camcorder a few months ago and when my computer crashed thought i'm finally getting a mac...it's been a costly venture which has resulted in more frustration than before my pc.
    now the things i want to use with my mac that i thought would be even simpler...are not even useable...
    help

    That camera shoots H.264 in an .avi wrapper.
    You will have to transfer the files via the Finder.
    Get a free copy of MPEG Streamclip and convert them to QuickTime .mov using the H.264 codec if you are presumably editing in iMovie.
    Note that your list of video codecs won't look like mine as I have Final Cut Pro, but H.264 is definitely an option for you.

  • Help I can't open files as I don't know what browser I need to open them as I've already experienced problems when I used the default Mozilla browser?

    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    I have no idea what browser I should be using to open files in Firefox, i used the default Mozilla browser initially which caused me a lot of problems so I stopped using it but don't know the alternatives, could someone help please as I can't open any files at all now.
    == This happened
    ==
    Every time Firefox opened
    == As soon as I stopped using the Mozilla default browser
    ==
    == Troubleshooting information
    ==
    Application Basics
    Name
    Firefox
    Version
    3.6
    Profile Directory
    Open Containing Folder
    Installed Plugins
    about:plugins
    Build Configuration
    about:buildconfig
    Extensions
    Name
    Version
    Enabled
    ID
    Microsoft .NET Framework Assistant
    1.1
    true
    {20a82645-c095-46ed-80e3-08825760534b}
    Google Toolbar for Firefox
    7.0.20100326W
    true
    {3112ca9c-de6d-4884-a869-9855de68056c}
    Norton IPS
    2.0
    true
    Norton Toolbar
    4.6
    true
    {2D3F3651-74B9-4795-BDEC-6DA2F431CB62}
    Java Quick Starter
    1.0
    true
    [email protected]
    Java Console
    6.0.20
    true
    Modified Preferences
    Name
    Value
    accessibility.typeaheadfind.flashBar
    0
    browser.fixup.alternate.enabled
    false
    browser.history_expire_days.mirror
    180
    browser.places.importBookmarksHTML
    false
    browser.places.importDefaults
    false
    browser.places.leftPaneFolderId
    -1
    browser.places.migratePostDataAnnotations
    false
    browser.places.smartBookmarksVersion
    2
    browser.places.updateRecentTagsUri
    false
    browser.startup.homepage_override.mstone
    rv:1.9.2
    extensions.lastAppVersion
    3.6
    general.useragent.extra.microsoftdotnet
    (.NET CLR 2.0.50727)
    network.cookie.prefsMigrated
    true
    places.last_vacuum
    1270458866
    print.print_printer
    Canon iP1600
    print.printer_Canon_iP1600.print_bgcolor
    false
    print.printer_Canon_iP1600.print_bgimages
    false
    print.printer_Canon_iP1600.print_command
    print.printer_Canon_iP1600.print_downloadfonts
    false
    print.printer_Canon_iP1600.print_edge_bottom
    0
    print.printer_Canon_iP1600.print_edge_left
    0
    print.printer_Canon_iP1600.print_edge_right
    0
    print.printer_Canon_iP1600.print_edge_top
    0
    print.printer_Canon_iP1600.print_evenpages
    true
    print.printer_Canon_iP1600.print_footercenter
    print.printer_Canon_iP1600.print_footerleft
    &PT
    print.printer_Canon_iP1600.print_footerright
    &D
    print.printer_Canon_iP1600.print_headercenter
    print.printer_Canon_iP1600.print_headerleft
    &T
    print.printer_Canon_iP1600.print_headerright
    &U
    print.printer_Canon_iP1600.print_in_color
    true
    print.printer_Canon_iP1600.print_margin_bottom
    0.5
    print.printer_Canon_iP1600.print_margin_left
    0.5
    print.printer_Canon_iP1600.print_margin_right
    0.5
    print.printer_Canon_iP1600.print_margin_top
    0.5
    print.printer_Canon_iP1600.print_oddpages
    true
    print.printer_Canon_iP1600.print_orientation
    0
    print.printer_Canon_iP1600.print_pagedelay
    500
    print.printer_Canon_iP1600.print_paper_data
    9
    print.printer_Canon_iP1600.print_paper_height
    11.00
    print.printer_Canon_iP1600.print_paper_size_type
    0
    print.printer_Canon_iP1600.print_paper_size_unit
    1
    print.printer_Canon_iP1600.print_paper_width
    8.50
    print.printer_Canon_iP1600.print_reversed
    false
    print.printer_Canon_iP1600.print_scaling
    1.00
    print.printer_Canon_iP1600.print_shrink_to_fit
    true
    print.printer_Canon_iP1600.print_to_file
    false
    print.printer_Canon_iP1600.print_unwriteable_margin_bottom
    0
    print.printer_Canon_iP1600.print_unwriteable_margin_left
    0
    print.printer_Canon_iP1600.print_unwriteable_margin_right
    0
    print.printer_Canon_iP1600.print_unwriteable_margin_top
    0
    privacy.sanitize.migrateFx3Prefs
    true
    security.warn_viewing_mixed.show_once
    false
    == Firefox version
    ==
    3.6
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2) Gecko/20100115 Firefox/3.6 GTB7.0 (.NET CLR 2.0.50727)
    == Plugins installed
    ==
    *-Zylom Plugin
    *Coupons, Inc. Coupon Printer DLL
    *Default Plug-in
    *NPRuntime Script Plug-in Library for Java(TM) Deploy
    *Shockwave Flash 10.0 r45
    *3.0.50106.0
    *Google Updater pluginhttp://pack.google.com/
    *6.0.12.1483
    *RealPlayer(tm) LiveConnect-Enabled Plug-In
    *RealJukebox Netscape Plugin
    *RealArcade_NPAPI_Plugin
    *Google Update
    *Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *Npdsplay dll
    *DRM Store Netscape Plugin
    *DRM Netscape Network Object

    Ignore this question, I've now solved it.

  • Not generate file using ItemAdded Event in SharePoint Online

    I develop a list item event receiver For Sharepoint online.I upload the .wsp file in solution and activate the feature On ItemAdded event I create/generate document on 15 document library based on library template.
    Some time it generate all 15 files and sometime it generate 8/10/12 files.
    i.e not generate files in all the document library.
    It work fine in my local server.
    Please Help me.

    &nbsp;****1.design_Pre_Order_Meeting_Template [=========== ] System.ArgumentException: Value does not fall within the expected range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****2.design_Checklist_T [=========== ] System.ArgumentException: Value does not fall within the expected range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****3.design_Drawing_Change_Schedule [=========== ] System.ArgumentException: Value does not fall within the
    expected range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****4.design_Responsibility_Matrix_Template [=========== ] System.ArgumentException: Value does not fall within
    the expected range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****5.design_Review_Record_Template [=========== ] System.ArgumentException: Value does not fall within the expected
    range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****6.design_Risk_Assesment_Template [=========== ] System.ArgumentException: Value does not fall within the
    expected range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****7.design_Supplier_Material_Sheet [=========== ] System.ArgumentException: Value does not fall within the
    expected range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****8.design_Team_Meeting_T [=========== ] System.ArgumentException: Value does not fall within the expected
    range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****9.pc_Key_Isssue_Schedule [=========== ] System.ArgumentException: Value does not fall within the expected
    range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****10.pc_Client_Progress_Report [=========== ] System.ArgumentException: Value does not fall within the expected
    range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****11.pc_Design_Change_Register [=========== ] System.ArgumentException: Value does not fall within the expected
    range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****12.pc_rfi_schedule [=========== ] System.ArgumentException: Value does not fall within the expected range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****13.pc_Drawing_Progress_Schedule_T [=========== ] System.ArgumentException: Value does not fall within the
    expected range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****14.pc_Technical_Submittal_Schedule [=========== ] System.ArgumentException: Value does not fall within the
    expected range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****16.pc_Drawing_Issue_Schedule [=========== ] System.ArgumentException: Value does not fall within the expected
    range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****19.proc_Pre_Order_Meeting_T [=========== ] System.ArgumentException: Value does not fall within the expected
    range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties) ****20.proc_Preferred_Supplier_List [=========== ] System.ArgumentException: Value does not fall within the expected
    range.
    Server stack trace:  
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
    Exception rethrown at [0]:  
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    &nbsp;&nbsp;&nbsp;at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb_SubsetProxy.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile__Inner(String strUrl)
    &nbsp;&nbsp;&nbsp;at Microsoft.SharePoint.SPWeb.GetFile(String strUrl)
    &nbsp;&nbsp;&nbsp;at new_contract_request.pc_contract_request_form.pc_contract_request_form.ItemAdded(SPItemEventProperties properties)

  • Help required in using same excel file as both Input and Output source

    Hello Programmers, Here I am trying to read, modify and write an excel file using JAVA, I have successfully employed Jakarta POI and read the file but the problem is that I can''t make changes in the same file and save it.
    I can't use the same file for "FileInputStream" and "FileOutputStream" I think this is causing major hurdle. Any kind of suggestion and help is truly appreciated and welcome. Thank you for your time. Here I am posting my code its a bit crude please pardon.
    * @(#)attempt4.java
    * attempt4
    * @author
    * @version 1.00 2008/3/26
    import java.io.*;
    import java.util.*;
    import org.apache.poi.poifs.filesystem.*;
    import org.apache.poi.hssf.usermodel.*;
    public class attempt4 {
    public static void main(String[] args) {
    try{
    File xlFile = new File("C:\\Drifter\\Study\\Krishnan\\Test.xls");
    FileInputStream readFile = new FileInputStream(xlFile);
    POIFSFileSystem fileSys = new POIFSFileSystem(readFile);
    HSSFWorkbook xlSheetBook = new HSSFWorkbook(fileSys);
    for(int i = 0; i < xlSheetBook.getNumberOfSheets(); i++) {
    HSSFSheet sheetNow = xlSheetBook.getSheetAt(i);
    System.out.println("\n Now Opening Sheet Number" + (i+1));
    if(sheetNow.getPhysicalNumberOfRows() > 0) {
    int numOfRows = sheetNow.getLastRowNum();
    int numOfColumns = 0;
    for(int cols = 0; cols < numOfRows; cols++) {
    HSSFRow rowNow = sheetNow.getRow(cols);
    if(rowNow != null) {
    if(numOfColumns < sheetNow.getRow(cols).getLastCellNum()) {
    numOfColumns = sheetNow.getRow(cols).getLastCellNum();
    System.out.println("\n There are " + (numOfRows+1) + " Number of Rows");
    System.out.println("\n There are " + numOfColumns + " Number of Columns");
    for(int j = 0; j < numOfColumns; j++) {
    float colTotal = 0;
    int numOfNumericCells = 0;
    for(int k = 0; k < numOfRows; k++) {
    HSSFRow rowReading = sheetNow.getRow(k);
    if(rowReading != null) {
    HSSFCell cellReading = rowReading.getCell((short)j);
    if(cellReading != null) {
    if(cellReading.getCellType() == 0) {
    colTotal += cellReading.getNumericCellValue();
    numOfNumericCells ++;
    else if(cellReading.getCellType() != 0) {
    cellReading.setCellValue((double) 0.00);
    System.out.println(" \nSum of Column " + (j+1) + " is " + colTotal);
    System.out.println(" \nAverage of Column " + (j+1) + " is " + (colTotal/numOfNumericCells));
    readFile.close();
    catch(FileNotFoundException ex1) {
    ex1.printStackTrace();
    catch(IOException ex2) {
    ex2.printStackTrace();
    catch(NullPointerException ex3) {
    ex3.printStackTrace();
    The above code can successfully read the excel document and caliculates the sum and averages of the columns, can any one please help me in writing the same into the same file in additional rows. Thank you very much for your time.

    May be you can try to create a temporary copy of the file, do your update on it and then overwrite the original.
    Edited by: jgagarin on Jun 3, 2008 6:55 PM

  • Unable to generate csr, Please use a valid file name

    I've been attempting to generate a new certificate signing request on our Exchange 2013 server.  In the past we've never had a problem but we seem to be stuck today.  When we try to output the new csr to one of our network shares we see the following
    error.  
    "Please use a valid file name when you run the New-ExchangeCertificate cmdlet on server server1 with the -RequestFile parameter. The file should not exist in target folder. Parameter name: RequestFile"
    We've use this share location before without problems, the Exchange Trusted Subsystem has write intermissions on this location as described online but we still receive the error.  I've tried creating new locations but haven't had any success.
    Any suggestions?
    Thanks

    Hi,
    We can access the Exchange Certificate Management UI through the EAC in Exchange 2013 by selecting
    Servers and then Certificates to create a new certificate to have a try.
    Alternatively, we can try the following command:
    $Data = New-ExchangeCertificate -GenerateRequest -SubjectName "c=US, o=contoso inc, cn=server.contoso.com" -DomainName mail.contoso.com, contoso.com, autodiscover.contoso.com -PrivateKeyExportable $true
    Set-Content -path "C:\Certificates\MyCertRequest.req" -Value $Data
    Regards,
    Winnie Liang
    TechNet Community Support

  • Generate SQL Insert Statement using EXPORTED dmp file

    Dear DBAs,
    Kindly inform me that is it possible to generate SQL script file using the exported file dmp,
    I am looking for some option in import utility that generates script without import any rows in the database
    Secondly is there any other way to check the validity of exported dmp file data validity without importing it back into the database.
    Regards,
    Asif

    Hi Satish,
    Yes you are correct the insert into statements won't be avaliable using either the indexfile or the show parameter.I had given these two options as per his 1st post requirement where he had mentioned
    >
    it possible to generate SQL script file using the exported file dmp,I am looking for some option in import utility that generates script without import any rows in the database
    >
    So, i thought he needed to see whats all objects are in the .dmp
    Apologies for my 2nd post.
    Anand

  • I am trying to stream music from my iMac using iTunes music files to my Cocktail Audio X10 music streamer. I have allowed my files to be shared the X10 sees the files but when I try to accsess them it gives me the message files not mounted. Please help?

    I am trying to stream music from my iMac using iTunes music files to my Cocktail Audio X10 music streamer. I have allowed my files to be shared the X10 sees the files but when I try to accsess them it gives me the message files not mounted. Please help?

    No, I have the music I want to move from the laptop to the phone selected. Then I go under file, devices, and try to click sync but it is not available to click.

Maybe you are looking for

  • Translate AS2 code to AS3

    sliceArray=["slice1","slice2","slice3","slice4","slice5","slice6","slice7", "slice8","slice9","slice10"]; function rotateMC(num:Number)     for (i=0;i<= sliceArray.length;i++)             var myName=eval(sliceArray[i]);             myName._rotation+=

  • Documentation for Activity Universe for XIR3.1SP2

    Is there Documentation for the Audit and Activity Universe for XIR3.1SP2.  We have migrated from XIR2, but I have yet to track down documentation to best utilize any new capabilities.  I am currently most interested in how to capture SQL Generated fr

  • How can you tell what generation apple tv you have?

    How can you tell what generation apple tv you have?

  • What is the use of "oracle.jbo.client.svc.ADFApplicationLifecycleListener"

    Hi All, We are currently developing some data services using ADF-BC, can someone tell me what is the use of "oracle.jbo.client.svc.ADFApplicationLifecycleListener" listener? We are using this listener in weblogic applicaion xml but no idea why its us

  • MaxL script invocation solution?

    I need to use maxl script to refresh data. But before doing this I have to call an oracle sql package to do something first like prepare data. After finishing that maxl script I also need to do something else. And furthermore I need to catch exceptio