Error while approving file programmatically

Hi All,
I am getting the following error while approving the file(.aspx) programatically which is in the pages library of a subsite in a sitecollection.
The file pages/abc.aspx has been modified by SHAREPOINT\\system on etc.,
Please help me regarding this issue.
Let me know if you have any queries?
Regards,
Kumar.

Hi Hemendra,
Thanks for your response.
Plz check the below code and let me know if you need any clarifications?
                  SPSecurity.RunWithElevatedPrivileges(delegate()
using (SPSite siteColl = new SPSite(strSiteChild)) // connectting to Sub site.
using (SPWeb Childweb = siteColl.OpenWeb())
SPList objList = Childweb.Lists["pages"];
SPDocumentLibrary objLib = null;
objLib = (SPDocumentLibrary)objList;
SPFolder rFolder = objLib.RootFolder;
SPFile objFile = null;
byte[] byteArr = null;
String fileName = System.IO.Path.GetFileName(strFile);
FileStream fileStream = File.OpenRead(strFile);
// Upload document ROW Research Teams
SPFile file = objLib.RootFolder.Files[Path.GetFileName(strFile)];
Childweb.AllowUnsafeUpdates = true;
file.CheckOut();                                                 
rFolder.Files.Add(fileName, fileStream, true);                                
file.CheckIn("Checkin by coding");                                       
file.Publish("Published");
System.Threading.Thread.Sleep(1000 * 10);
file.Approve("Approved");
file.Update();
objLib.Update();
web.Update();
Childweb.AllowUnsafeUpdates = false;
Regards,
Kumar.

Similar Messages

  • Error while uploading file in BPS

    Hi all,
    I am getting an error while uploading file to BPS through web interface
    I get a red stop button with error message : error while calling up RFC.
    when i double click the red stop button, i get no long text but the error message I get is UPC 202
    please advice me to resolve this issue.
    many thanks in advance,
    Ravi

    The informations are really not much to have an idea about the problem.
    The problem can be located in the fm that calls the file because is trying to search the file on a system where there are some kind of problems in the communication between the systems involved to read and pass the file. Did u map the file name with logical filenames ? Very strange problem. Can you browse in the server where the file is located . Is it on your pc ?
    Or, there is some problem in the datas provided, but this problem should arise more when you save than when you just press to load.
    With this kind of imformations is very hard to have an idea. You need to debug to see what s going on
    Regards

  • Error while uploading file into KM

    Hi Experts,
    I m getting error while uploading file into KM. Its throwing an error message like " Syngenta-POC.doc" does not exist, or file is empty; you cannot upload empty files"
    please assists me.

    Shantanu,
    Please check the files which you are upload is empty or unknown format. If everything seems valid then try to check for the corresponding SAP Note in service.sap.com
    Ram

  • Creating database problem with ORA-01519: error while processing file '' ne

    Dear all,
    I am having rough time with creating database manually. can anyone help me with the following errors.
    ALERT LOGFILE:-
    Sun May 31 12:00:39 2009
    Errors in file d:\oracle\product\10.1.0\admin\oracle5\udump\oracle5_ora_3444.trc:
    ORA-01501: CREATE DATABASE failed
    ORA-01519: error while processing file '%ORACLE_HOME%\RDBMS\ADMIN\SQL.BSQ' near line 5744
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01119: error in creating database file 'D:\oracle\product\10.1.0\oradata\ORACLE5 \datafile\undotbs1.dbf'
    ORA-27040: file create error, unable to create file
    OSD-04002: unable to open file
    O/S-Error: (OS 3) The system cannot find the path specified.
    Error 1519 happened during db open, shutting down database
    USER: terminating instance due to error 1519
    Sun May 31 12:00:39 2009
    Errors in file d:\oracle\product\10.1.0\admin\oracle5\bdump\oracle5_reco_3416.trc:
    ORA-01519: error while processing file '' near line
    CREATE DATABASE SCRIPT:-
    create database ORACLE5
    user sys identified by bala
    user system identified by bala
    logfile
    group 1 ('D:\oracle\product\10.1.0\oradata\ORACLE5\logfile\redo01.log') SIZE 50M,
    group 2 ('D:\oracle\product\10.1.0\oradata\ORACLE5\logfile\redo02.log') SIZE 50M,
    group 3 ('D:\oracle\product\10.1.0\oradata\ORACLE5\logfile\redo03.log') SIZE 50M
    maxlogfiles 5
    maxlogmembers 5
    maxloghistory 1
    maxdatafiles 50
    maxinstances 1
    datafile 'D:\oracle\product\10.1.0\oradata\ORACLE5\datafile\system01.dbf' size 200m autoextend on maxsize unlimited extent management local
    undo tablespace UNDOTBS1 datafile 'D:\oracle\product\10.1.0\oradata\ORACLE5 \datafile\undotbs1.dbf' size 10m autoextend on maxsize unlimited
    sysaux datafile 'D:\oracle\product\10.1.0\oradata\ORACLE5\datafile\sysaux01.dbf' size 100m autoextend on maxsize unlimited
    default temporary tablespace temp tempfile 'D:\oracle\product\10.1.0\oradata\ORACLE5 \datafile\temp01.dbf' size 10m autoextend on maxsize unlimited
    character set US7ASCII
    NATIONAL CHARACTER SET AL16UTF16
    INIT.ORA FILE:-
    # Copyright (c) 1991, 2001, 2002 by Oracle Corporation
    # Archive
    log_archive_format=ARC%S_%R.%T
    # Cache and I/O
    db_block_size=8192
    db_cache_size=25165824
    db_file_multiblock_read_count=16
    # Cursors and Library Cache
    open_cursors=300
    # Database Identification
    db_domain=""
    db_name=oracle5
    # Diagnostics and Statistics
    background_dump_dest=D:\oracle\product\10.1.0\admin\oracle5\bdump
    core_dump_dest=D:\oracle\product\10.1.0\admin\oracle5\cdump
    user_dump_dest=D:\oracle\product\10.1.0\admin\oracle5\udump
    # File Configuration
    #db_create_file_dest=D:\oracle\product\10.1.0\oradata
    db_recovery_file_dest=D:\oracle\product\10.1.0\flash_recovery_area
    db_recovery_file_dest_size=2147483648
    # Job Queues
    job_queue_processes=10
    # Miscellaneous
    compatible=10.1.0.2.0
    # Pools
    java_pool_size=50331648
    large_pool_size=8388608
    shared_pool_size=83886080
    # Processes and Sessions
    processes=150
    # Security and Auditing
    remote_login_passwordfile=EXCLUSIVE
    # Shared Server
    dispatchers="(PROTOCOL=TCP) (SERVICE=oracle5XDB)"
    # Sort, Hash Joins, Bitmap Indexes
    pga_aggregate_target=25165824
    sort_area_size=65536
    # System Managed Undo and Rollback Segments
    undo_management=AUTO
    undo_tablespace=UNDOTBS1
    control_files=("D:\ORACLE\PRODUCT\10.1.0\ORADATA\ORACLE5\CONTROLFILE\control01.CTL", "D:\ORACLE\PRODUCT\10.1.0\FLASH_RECOVERY_AREA\ORACLE5\CONTROLFILE\control02.CTL")

    Hi,
    undo tablespace UNDOTBS1 datafile 'D:\oracle\product\10.1.0\oradata\ORACLE5 \datafile\undotbs1.dbf' size 10m autoextend on maxsize unlimited
    After ORACLE5 there is a space character. Typo? Create proper directory or delete this character.
    Bartek

  • ORA-01519: error while processing file '?/rdbms/admin/sql.bsq' near line 401

    I receive the following error by creating dataabse as below sql:
    ORA-01501: CREATE DATABASE failed
    ORA-01519: error while processing file '?/rdbms/admin/sql.bsq' near line 401
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01119: error in creating database file '/sisdev04/dbs/users01.dbf'
    ORA-27039: create file failed, file size limit reached
    Additional information: 1
    CREATE DATABASE SISDEV04
         LOGFILE GROUP 1 ('/sisdev04/dbs/log01a.dbf','/sisdev04/dbs/log01b.dbf') SIZE 10M,
              GROUP 2 ('/sisdev04/dbs/log02a.dbf','/sisdev04/dbs/log02b.dbf') SIZE 10M
         NOARCHIVELOG
         CHARACTER SET ZHT16BIG5
         NATIONAL CHARACTER SET ZHT16BIG5
         DATAFILE '/sisdev04/dbs/system01.dbf'      
              SIZE 210M AUTOEXTEND OFF
         , '/sisdev04/dbs/rbs01.dbf'
    SIZE 105M AUTOEXTEND OFF
         , '/sisdev04/dbs/temp01.dbf'
    SIZE 105M AUTOEXTEND OFF
         , '/sisdev04/dbs/users01.dbf'
    SIZE 1050M AUTOEXTEND OFF
         , '/sisdev04/dbs/ts_index_ivr01.dbf'
    SIZE 105M AUTOEXTEND OFF
         , '/sisdev04/dbs/ts_ivr01.dbf'
    SIZE 21M AUTOEXTEND OFF
         , '/sisdev04/dbs/ts_ems01.dbf'
    SIZE 21M AUTOEXTEND OFF
         , '/sisdev04/dbs/ts_index_ems01.dbf'
    SIZE 21M AUTOEXTEND OFF
    I have issue df to check the directory sisuat04
    / >df
    Filesystem 512-blocks Free %Used Iused %Iused Mounted on
    /dev/hd4 98304 45664 54% 2446 10% /
    /dev/hd2 2097152 78992 97% 30280 12% /usr
    /dev/hd9var 65536 20536 69% 308 4% /var
    /dev/hd3 294912 262432 12% 147 1% /tmp
    /dev/hd1 49152 5712 89% 1290 21% /home
    /dev/mfcobol 81920 25520 69% 608 6% /mfcobol
    /dev/magiclv 81920 22304 73% 346 4% /usr/magic
    /dev/sispro02lv 6553600 6347792 4% 18 1% /sisdev02
    /dev/sispro03lv 6553600 6347784 4% 19 1% /sisdev03
    /dev/sisappllv 229376 173288 25% 1846 7% /sisappl
    /dev/lvbaklog 98304 85552 13% 68 1% /app/bak_log
    /dev/noteslv0 1048576 541352 49% 2195 2% /notes
    /dev/noteslv1 4194304 1479304 65% 5269 2% /notesrv
    /dev/noteslv2 2097152 898128 58% 51 1% /notesrv/sitesch
    /dev/lvoracle 2097152 237240 89% 8280 4% /opt/oracle
    /dev/u01lv 4194304 128720 97% 11697 3% /u01
    /dev/sisdev01lv 4096000 3021552 27% 27 1% /sisdev04
    Is is still a not enough space problem?

    I receive the following error by creating dataabse as below sql:
    ORA-01501: CREATE DATABASE failed
    ORA-01519: error while processing file '?/rdbms/admin/sql.bsq' near line 401
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01119: error in creating database file '/sisdev04/dbs/users01.dbf'
    ORA-27039: create file failed, file size limit reached
    Additional information: 1
    CREATE DATABASE SISDEV04
         LOGFILE GROUP 1 ('/sisdev04/dbs/log01a.dbf','/sisdev04/dbs/log01b.dbf') SIZE 10M,
              GROUP 2 ('/sisdev04/dbs/log02a.dbf','/sisdev04/dbs/log02b.dbf') SIZE 10M
         NOARCHIVELOG
         CHARACTER SET ZHT16BIG5
         NATIONAL CHARACTER SET ZHT16BIG5
         DATAFILE '/sisdev04/dbs/system01.dbf'      
              SIZE 210M AUTOEXTEND OFF
         , '/sisdev04/dbs/rbs01.dbf'
    SIZE 105M AUTOEXTEND OFF
         , '/sisdev04/dbs/temp01.dbf'
    SIZE 105M AUTOEXTEND OFF
         , '/sisdev04/dbs/users01.dbf'
    SIZE 1050M AUTOEXTEND OFF
         , '/sisdev04/dbs/ts_index_ivr01.dbf'
    SIZE 105M AUTOEXTEND OFF
         , '/sisdev04/dbs/ts_ivr01.dbf'
    SIZE 21M AUTOEXTEND OFF
         , '/sisdev04/dbs/ts_ems01.dbf'
    SIZE 21M AUTOEXTEND OFF
         , '/sisdev04/dbs/ts_index_ems01.dbf'
    SIZE 21M AUTOEXTEND OFF
    I have issue df to check the directory sisuat04
    / >df
    Filesystem 512-blocks Free %Used Iused %Iused Mounted on
    /dev/hd4 98304 45664 54% 2446 10% /
    /dev/hd2 2097152 78992 97% 30280 12% /usr
    /dev/hd9var 65536 20536 69% 308 4% /var
    /dev/hd3 294912 262432 12% 147 1% /tmp
    /dev/hd1 49152 5712 89% 1290 21% /home
    /dev/mfcobol 81920 25520 69% 608 6% /mfcobol
    /dev/magiclv 81920 22304 73% 346 4% /usr/magic
    /dev/sispro02lv 6553600 6347792 4% 18 1% /sisdev02
    /dev/sispro03lv 6553600 6347784 4% 19 1% /sisdev03
    /dev/sisappllv 229376 173288 25% 1846 7% /sisappl
    /dev/lvbaklog 98304 85552 13% 68 1% /app/bak_log
    /dev/noteslv0 1048576 541352 49% 2195 2% /notes
    /dev/noteslv1 4194304 1479304 65% 5269 2% /notesrv
    /dev/noteslv2 2097152 898128 58% 51 1% /notesrv/sitesch
    /dev/lvoracle 2097152 237240 89% 8280 4% /opt/oracle
    /dev/u01lv 4194304 128720 97% 11697 3% /u01
    /dev/sisdev01lv 4096000 3021552 27% 27 1% /sisdev04
    Is is still a not enough space problem? i think you have specified 1050m for users01.dbf file, your file system /sisdev04 has something like
    1.5gb of free space. it failed because of lack of free space. may be you can reduce your datafile size or try to
    create in another filesystem.

  • Error while executing file in Background

    Hi All,
    I need to schedule a job in background.where i need to read data from  excel file.
    while executing in background mode its saying 'Error while reading file'.
    but in foreground i can able to execute it.can anybody help me out.
    Thanks
    Sudha

    hi Sudha,
    I think the program tries to read from presentation server (with GUI_UPLOAD or something similary), which is not possible in background (because in background there is no presentation server).
    hope this helps
    ec

  • Error while reading file entries from the database

    Hi there,
    We are running a instance of xmii 12 in a VM (VMware) and after somebody shutdown the host machine without shutting down the VM (great idea isn't it?) we keep getting this message when trying to access xMII:
    "Application cannot be started.
      Details:   com.sap.engine.services.deploy.container.ExceptionInfo: Error while reading file entries from the database."
    Any clue? Any suggestion on how we can recover from that?
    Thanks a whole lot,
    Dom
    Server log:
    #1.5 #000C29A3B1F20002000000C400000F2800044829A35270F8#1205243578005#/System/Server##com.sap.engine.services.dbpool.deploy.ContainerImpl####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.dbpool.deploy.ContainerImpl#Plain###DataSources or DataSource aliases of 'sap.com/tcmonitoringsysteminfo' application started successfully.#
    #1.5 #000C29A3B1F20002000000C500000F2800044829A3527A6C#1205243578005#/System/Server##com.sap.engine.services.servlets_jsp.server.container.WebContainer####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.servlets_jsp.server.container.WebContainer#Plain###application [] Start of application [sap.com/tcmonitoringsysteminfo] finished successfully on Web Container.#
    #1.5 #000C29A3B1F20002000000C600000F2800044829A3527DB5#1205243578005#/System/Server##com.sap.engine.services.deploy####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.deploy#Plain###
    Operation startApp over application sap.com/tcmonitoringsysteminfo finished successfully on server 305221750#
    #1.5 #000C29A3B1F20002000000C700000F2800044829A3527E03#1205243578005#/System/Server##com.sap.engine.services.deploy####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.deploy#Plain###
    Operation startApp on application sap.com/tcmonitoringsysteminfo finished on current cluster node for 221 ms.#
    #1.5 #000C29A3B1F20002000000C800000F2800044829A3528B49#1205243578005#/System/Server##com.sap.engine.services.deploy####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Error#1#com.sap.engine.services.deploy#Plain###Error occurred while initially starting application sap.com/xappsxmiiear:Error while reading file entries from the database.#
    #1.5 #000C29A3B1F20002000000CA00000F2800044829A352922B#1205243578015#/System/Server##com.sap.engine.services.deploy####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.deploy#Plain###The synchronization of applications with DB completed for 39304 ms.#
    #1.5 #000C29A3B1F200040000000200000F2800044829B290A4F8#1205243834341#/System/Server/SLDService##com.sap.sldserv.DataCollector####n/a##0da42150ef7311dcb908000c29a3b1f2#SAPEngine_System_Thread[impl:5]_7##0#0#Warning#1#com.sap.sldserv.DataCollector#Plain###Communication configuration is incomplete. No data transfer possible until corrected.#

    Well thanks for the hint. Actually, the DB was up but corrupted. I managed to solve the bug by re-deploying xMII (using the SDM tool) which kept all my data but redeployed both the config db of (x)mii and the class files.

  • Error while approving work item

    Hi All,
    I am getting error while approving a claim request; error is:
    error while inserting claim record xxxxxxx in cluster for employee xxxxxxxx
    This does not happen always, some time I am able to approve and sometime i got the error.
    I am using same set of user ids and same perspnal nos; does this thing matters and causing this issue or this should not cause this problem.
    Please advice!
    Thanks and Regards,
    Honey

    Hi Honey,
    Could you please check note number: 1374072 which is for the PY-IN-PS.  I don't think that this warning message that you are seeing is applicable to the UWL or generated from the UWL component.  Error messages like this are usually generated from the ABAP system and more specifically from the application area.  Another hint would be to check ST22 to see if there is a short dump occuring in the backend system.
    According to the note, this error will be thrown when:
    "Error on Approver Screen stating "Error while inserting claim
    record <Reference Number> in cluster for employee <Employee
    Number>". This happens only when the approver tries approving the
    request almost immediately after the employee has submitted the
    request."
    I hope that this information is helpful to you.
    Regards,
    Beth Maben
    EP - Senior Support Consultant
    AGS Primary Support, Business Suite & Technology
    Please see the UWL Wiki @
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/bpx/uwl+faq  ***

  • ERROR WHILE ENCODING FILE

    Hi Everyone
    While burning a DVDSP3 disk of about 3.5 gigs, I get this error message: "error while encoding file". This happens about 7 hours into the burn. I have tried it twice. The second time after fixing preferences, etc.
    I am using a G-4 laptop with a Lacie RAID 5 external drive.
    Reading this forum, I see the problem is not unusual. But I never encountered this problem in the past.
    So why is this happening now?
    Also, to fix it the most frequent suggestion is to export from FCP-4 using compressor.
    Does this solve the problem?
    And what preset should I use?
    The compressor help menu has a lot of information but does not specifically tell you what preset to use for a standard DVD-R burned on DVD SP 3.
    The DVD-R, like most DVD's, has to play on any NTSC television or any computer.
    If anyone can help me with this, I would greatly appreciate it. Because I am stumped.

    On the pane issue, it will be different because you are running an earlier version of Compressor.
    On the A.Pack side of things when you launch the Application you will see tabs where you can set the same things in the image on the website (dialog normalization to -31 etc.) Let me know if you find them, or I can get some screenshots
    On the settings you can try one of the settings that will fit your video. 60 Minutes will be too short, so you need one of the 90 minutes settings (or longer, which knocks down the video bitrate a bit, but may prevent stutters, but for the short term use a 90 minute setting.) The difference between the settings (Good, Fast etc, I do not remember all of the Compressor 1 variations and not in front of a computer right now with it loaded, can look later if you like) if using different types of encoding- VBR, CBR http://dvdstepbystep.com/faqs_4.php).
    I am pretty sure rates are adjusted based on the lesser time being higher rates, while speed/quality is VBR/CBR. Take a look at the video rates being used, and makee sure the MAX Rate does not exceed 7.4 (or a bit less to be safe)
    You may just want to try the fast setting first to see if it cures the build issue, then move on if you are in the clear. (Or you can try the two pass build for overnight). Make sure you have room on the disc where you are building the encoded file.

  • Connection refused Error while writing file to FTP server.

    Hi All,
    We got below error while writing file to FTP server. Any one have any idea on this?
    sABCS_1.0_8e88588d4fb54ebd2ac7ef66c8421d52.tmp/writeEncryptedFile.wsdl [ Put_ptt::Put(opaque) ] - Could not invoke operation 'Put' against the 'FTP Adapter' due to:
    ORABPEL-11429
    Error sending file to FTP Server.
    Unable to send file to server. [Caused by: Connection refused]
    Please ensure 1. Specified remote output Dir has write permission 2. Output filename has not exceeded the max chararters allowed by the OS and 3. Remote File System has enough space.

    Hmmm ...
    Same issue as your post from three months' earlier?
    Re: Error while putting file in sftp location.

  • Error while transferring file :: Error while issuing ssh command.

    Hi All,
    I am having a JSP based website application.
    I am getting the following exception in my logs.
    [ERROR] 05/04/2007 03:43:44 - Error while transferring file :: Error while issuing ssh command.
    java.net.ConnectException: Connection timed out
                at java.net.PlainSocketImpl.socketConnect(Native Method)
                at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
                at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
                at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
                at java.net.Socket.connect(Socket.java:464)
                at java.net.Socket.connect(Socket.java:414)
                at java.net.Socket.<init>(Socket.java:310)
                at java.net.Socket.<init>(Socket.java:125)
                at com.sshtools.j2ssh.net.SocketTransportProvider.<init>(Unknown Source)
                at com.sshtools.j2ssh.net.TransportProviderFactory.connectTransportProvider(Unknown Source)
                at com.sshtools.j2ssh.SshClient.connect(Unknown Source)
                at com.sshtools.j2ssh.SshClient.connect(Unknown Source)
                at com.sshtools.j2ssh.SshClient.connect(Unknown Source)
                at com.novartis.util.DataExporter.transportFile(DataExporter.java:127)
                at com.novartis.util.DataExporter.export(DataExporter.java:101)
                at com.novartis.businessmanagers.SandosSignupManagerPojoImpl.export(SandosSignupManagerPojoImpl.java:103)
                at com.novartis.util.DataExportJob.process(DataExportJob.java:48)
                at com.novartis.util.ExclusiveJob.execute(ExclusiveJob.java:35)
                at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
                at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)Any help would be appreciated.
    Thanks.

    This means that the SSH server you're trying to connect to isn't listening. Is the SSH server running? Are you trying to connect to the right machine?

  • Loadjava Error while opening file: –resolve  Exception java.io.FileNotFound

    Dears,
    I'm having Oracle 11gr2 on Windows 2008r2. I have very strange issue while trying to load ordinary Java source. I get error that loadjava can't open file. I'm using the following command in loading:
    %ORACLE_HOME%\dbhome_1\BIN\loadjava -thin -user ORAMQ/***@localhost:1521:DEVAR -verbose -fileout %C:\temp\loadjava-9-MQReasonCodeResolver.java.log C:\src\MQReasonCodeResolver.java –resolve-----
    I got the following error in the verbose file out:
    arguments: '-user' 'ORAMQ/***@localhost:1521:DEVAR' '-thin' '-verbose' '-fileout' 'C:\temp\loadjava-9-MQReasonCodeResolver.java.log' 'C:\src\MQReasonCodeResolver.java' '–resolve'
    creating : source MQReasonCodeResolver
    loading  : source MQReasonCodeResolver
    Error while opening file: –resolve
        Exception java.io.FileNotFoundException: –resolve (The system cannot find the file specified)
    creating :  –resolve
    The following operations failed
         –resolve: opening file-----
    The code is very simple and doesn't have any issue:
    import java.lang.reflect.Field;
    public class MQReasonCodeResolver
        public MQReasonCodeResolver()
        public static final String MQ_EXCEPTION_CLASS = "com.ibm.mq.MQException";
        public static final String RC_FIELD_PREFIX = "MQRC_";
        public static final String RC_VALUE_FIELD = "reasonCode";
        public static String resolve( Exception mqex )
            if ( !canResolve( mqex ) )
                return mqex.getClass().toString() + mqex.getMessage();
            Class class1 = mqex.getClass();
            try
                Field field = class1.getField( RC_VALUE_FIELD );
                Object key = field.get( mqex );
                Field[] fields = class1.getFields();
                for ( int i = 0; i < fields.length; i++ )
                    Field ff = fields;
    String name = ff.getName();
    if ( name.startsWith( RC_FIELD_PREFIX ) && ff.get( null ).equals( key ) )
    return mqex.getMessage() + " " + name;
    catch ( Exception ex )
    return "unknown";
    public static boolean canResolve( Exception exx )
    Class class1 = exx.getClass();
    while ( Exception.class.isAssignableFrom( class1 ) )
    if ( MQ_EXCEPTION_CLASS.equals( class1.getName() ) )
    return true;
    class1 = class1.getSuperclass();
    return false;
    I load other classes and no issue, even jar files, I don't know what is the problem with this file? Also, it is strange is creating class and loading it has no issue, but the issue comes when resolve.
    Can anyone help?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi:
    Put your -resolve flag at the beginning of the list of arguments.
    Latest arguments should be files to be uploaded by loadjava.
    Best regards, Marcelo.

  • Tried to install OS X Yosemite on my MacBook. Got message that it could not be installed on my computer due to error while extracting files from package "Essentials.pkg". When i quit the installer as recommended it goes in a loop and gets stuck.

    Tried to install OS X Yosemite on my MacBook. Got message that it could not be installed on my computer due to error while extracting files from package "Essentials.pkg". When i quit the installer as recommended it goes in a loop and gets stuck.

    Hey corrafromlondon,
    Thanks for the question. After reviewing your post, it sounds like the installer file isn't working. Have you tried deleting the installer and redownloading the installer? I would recommend that you read this article, it may be able to help you isolate or resolve the issue.
    How to install OS X Yosemite on your Mac - Apple Support
    you can find the Yosemite installer app in your Applications folder or Launchpad. 
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • UCCE / IPIVR : Error while uploading file. Please try again later.

    IPIVR version 8.5x
    Receive "Error while uploading file. Please try again later" 
    Renamed the script to a different name and still could not upload.   I am able to upload other scripts without any issue.   I did find the ICM subsystem in partial service.   If that was the issue I would think it would cause an issue with all the scripts.   The script does validate.   Not sure why at this point.

    Hi Aditya,
    Are you using  SharePoint 2010 or SharePoint 2013?
    Did this issue occur for all users or the special user?
    Please go to Central Administration->Manage service applications->User Profile service application->manage user profile, search and edit the user profile, then upload a picture for the user, compare the result.
    In addition, please check the log file to check more information about this issue.
    The path of the log file is:
    SharePoint 2010: C:\Program Files\Common Files\microsoft shared\Web Server Extensions\14\LOGS
    SharePoint 2013: C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\LOGS
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Time Machine fails with "error while linking files on the backup volume"

    One of my drives was nearly full. I moved some folders from that drive to one that had more space.
    The next TM backup failed with "error while linking files on the backup volume". A full backup is about 620 GB, although this backup shouldn't have been a complete one. There was 570+ GB free on the drive.
    A Disk Verify reported "Drive appears to be okay." Earlier TM backups appeared to be fine (at least accessible). I swapped the TM drive for another, initialized it, and TM used that drive with no complaints.
    What does the message mean?
    Thanks,
    harv47

    Pondini wrote:
    harv47 wrote:
    The Time Machine Buddy widget shows no messages. None of the buttons do anything.
    What am I doing wrong?
    See #A1 in the Time Machine - Troubleshooting *User Tip,* also at the top of this forum.
    Your user account may not have permission to see the logs.
    The sentence beginning "If the message area is blank ..." shows how to figure out if that's the problem, and how to fix it.
    Post back if it's not clear, or doesn't work.
    The Tip had the answer. It was permissions.
    What follow are the messages for the last unsuccessful TM backup (on v.3), followed by
    the successful TM backup on the replacement drive (v.1). The line
    "Copied 11 files (0 bytes) from volume Bay 3 HPFS+." was odd.
    Starting standard backup
    Backing up to: /Volumes/Time Machine v.3/Backups.backupdb
    Event store UUIDs don't match for volume: Bay 3 HPFS+
    Event store UUIDs don't match for volume: Macintosh HD
    Node requires deep traversal:/Volumes/Bay 3 HPFS+ reason:kFSEDBEventFlagMustScanSubDirs|
    Node requires deep traversal:/ reason:kFSEDBEventFlagMustSc
    (Finished May 4, 2010 9:31:21 AM-- Status unknown)
    Starting standard backup
    Backing up to: /Volumes/TimeMachine v.1/Backups.backupdb
    Event store UUIDs don't match for volume: Bay 3 HPFS+
    Event store UUIDs don't match for volume: Bay 2 HPFS+
    Event store UUIDs don't match for volume: Macintosh HD
    Backup content size: 169.1 GB excluded items size: 0 bytes for volume Bay 3 HPFS+
    Backup content size: 305.5 GB excluded items size: 0 bytes for volume Bay 2 HPFS+
    Backup content size: 145.7 GB excluded items size: 7.5 MB for volume Macintosh HD
    No pre-backup thinning needed: 744.36 GB requested (including padding), 931.15 GB available
    Waiting for index to be ready (909 > 0)
    Copied 1951 files (169.0 GB) from volume Bay 3 HPFS+.
    Copied 4999 files (474.3 GB) from volume Bay 2 HPFS+.
    Copied 410304 files (612.4 GB) from volume Macintosh HD.
    No pre-backup thinning needed: 712.2 MB requested (including padding), 315.09 GB available
    Copied 11 files (0 bytes) from volume Bay 3 HPFS+.
    Copied 20 files (1.1 GB) from volume Bay 2 HPFS+.
    Copied 1103 files (1.1 GB) from volume Macintosh HD.
    Starting post-backup thinning
    No post-back up thinning needed: no expired backups exist
    Backup completed successfully.
    (Finished May 4, 2010 2:38:17 PM)
    I hope this is useful. Thanks for your help.
    harv47

Maybe you are looking for