Problem calling SOA Gateway Webserivce using JPub Utility.

Hi Everyone,
Using Integrated SOA gateway, we have exposed the following PL/SQL API 'WSH_DELIVERY_DETAILS_PUB' as a webservice.
And using JPublisher we have developed java Proxy classes and PL/SQL Wrappers and loaded them into Database. Now we are tring to execute a call to the following end point 'UPDATE_SHIPPING_ATTRIBUTES'
However during the call we are getting below exception..
"error: ORA-29532: Java call terminated by uncaught Java exception:
java.rmi.RemoteException:
oracle.j2ee.ws.common.encoding.DeserializationException:unexpected element name:
expected={http://xmlns.oracle.com/apps/wsh/soaprovider/plsql/wsh_delivery_detail
s_pub/update_shipping_attributes/}OutputParameters,
actual={http://xmlns.oracle.com/apps/wsh/soaprovider/plsql/wsh_delivery_details_
pub/update_shipping_attributes__1/}OutputParameters"
Not sure what the problem could be. Could you please give us some pointers to solve the issue.
Also as an alternative, can i use UTL_DBWS utility to submit a SOAP request. I have seen some examples that use UTL_DBWS for executing call to webservices, but none of them include any samples on submiting a SOAP request. Can i get any samples on submitting SOAP request through UTL_DBWS.
Thanks
Parker.

Hi Eric, Did you find a way to solve this. If so please let me know. Thanks.
Ganesh

Similar Messages

  • Problem configuring SOA suite to use OID for authentication

    We are in the process of rebuilding our environment to use the full SOA suite with our OID server for authentication (was previously just BPEL using AD directly), and have encountered several problems (below). We have rebuilt the OID server, and reinstalled the SOA suite into a clean ORACLE_HOME to no avail.
    We first rebuilt the OID server using the following steps (derived from Oracle® Internet Directory Administrator's Guide):
    1)     Create the Import and Export profiles for AD synchronization. We did this using the Directory Integration and Provisioning Server Administration tool under “Active Directory Configuration”
    2)     Modify the map file to specify the correct OU mappings between AD and OID.
    3)     Update the profile with the new map file using “dipassistant.bat mp”
    4)     Bootstrap the import profile using “dipassistant.bat bootstrap”
    5)     Start a new instance of the Integration server (odisrv) running on config set 1 (the config set containing the Active Directory import/export profiles) using “oidctl”
    6)     Set the Import profile to Enable. The OID server does not export changes to AD in our current configuration, so the Export profile is left on disable (and not bootstrapped)
    At this point it appears that the AD synchronizes correctly into our new OID server.
    Next we installed the SOA suite:
    1)     We ran “irca.bat” on our database server to create the ORABPEL, ORAESB, and ORAWSM schemas and associated integration repository structure.
    2)     After launching the SOA suite installer, we selected Advanced Install.
    3)     On the next screen, we selected J2EE Server, Web Server, and SOA Suite.
    4)     We then provided the credentials for our Oracle database, and the passwords for ORABPEL, ORAESB, and ORAWSM.
    5)     We configured our new AS instance as an administration instance, but did not opt to use from a separate HTTP server, and did not make this instance part of an OAS cluster topology.
    And finally, we configured our new SOA suite instance to use OID for authentication (using the instructions in Oracle® BPEL Process Manager Administrator's Guide section 2.1.3):
    1)     Used the configure_oid.bat command to seed OID with required users only.
    2)     Logged into the OracleAS Control Console
    3)     Chose the oc4j_soa instance, then Administration->Security->Identity Management
    4)     Configured the OID server using a non-ssl connection and the cn=orcladmin account.
    5)     When prompted, chose to reconfigure all applications in the oc4j_soa instance to OID, but not to use SSO for any of them.
    6)     Copied the contents of ORACLE_HOME\j2ee\home\config\jazn.xml to ORACLE_HOME\j2ee\oc4j_soa\config\jazn.xml
    7)     Restarted the application server.
    After this procedure, we encountered the following issues:
    1)     The BPEL console appears to authenticate users correctly out of OID, but no users have access to the default domain, including bpeladmin and oc4jadmin. All users receive a similar access denied message when attempting to log into the BPEL Admin Console.
    2)     We cannot upload a BPEL process to our new server via JDeveloper’s standard BPEL deployment mechanisms. The connection appears to be working properly and passes all tests, but on uploading a process we get a Java AccessDeniedException. ESB appears to be functioning properly, and accepts uploaded projects without issue.

    Bassman,
    We recently configured our SOA Suite to use OID and SSO. We had the same issues you are having, and we found the resolutions in a blog from Jaas Poot (http://blog.jpoot.com/category/oracle-appserver/oid-ldap/). For the BPEL domain access, this involved going to the data-sources.xml file and changing the database passwords from using ->pwForOrabpel for the orabpel schema and ->pwForOraesb for the oraesb schema to the real passwords; the blog explains more about this.
    The blog also covers the JDeveloper deployment issue, and another issue we encountered, where we couldn't access the BPEL Admin console. All of these were resolved following the steps in the blog.
    Hope this helps
    Candace

  • Problems erasing window bootcamp partion using Disk Utility

    Hi guys, ive removed my windows partion before in the past without any hiccups, but this time i seem to have run into some problems.
    If i go into boot camp assistant, it wont let me proceed beyond the start menu. When i click continue it says
    "The startup disk cannot be partitioned or restored to a single partition.
    Back up the disk and use Disk Utility to format it as a single Mac OS Extended (Journaled) volume. Restore your information to the disk and try using Boot Camp Assistant again."
    So i went into Disk utility to erase the Windows partion, only now i get this message
    "Volume Erase failed
    Volume Erase failed with the error:
    MediaKit reports checksum operation failure."
    I dont have any other programs such as diskwarrior, and in the past Disk utilitiy served me well. Im just wondering whats going on here, and if anyone is able to help fix this problem? Thanks in advance

    Hi thanks for your help man, but i still cant get it to restore the partion. If i go into the partion tab i see my two partions under the Volume scheme... but i cant do anything as it is all greyed out. Would you or anyone else have any recommendations... or should i invest in Diskwarrior? at the moment disk utility is just not working out for me. Thanks

  • How to use jpub

    Dear friends,
    I met a problem while I try to use "jpub" command in HP-UX environment. When I key in "jpub -scott/tiger .....", system will prompt me that "Can't find class oracle.jpub.java.Main". Is there any one who can help me to solve this trouble?
    Thanks a lot for your help!
    xiangnan

    Xiangnan, Here you go...
    The jpub utility uses either the thin or OCI8 JDBC driver to communicate with Oracle, as specified by the JDBC connection string passed as the -url param. It also uses the JAva class oracle.jpub.java.Main, which is installed by Oracle Universal Installer as part of SQLJ. jpub relies on the CLASSPATH environment variable to locate these two libraries. Therefore for the jpub to run successfully, your CLASSPATH must include <ORACLE_HOME>\jdbc\lib\classes12.zip(or classes111.zip for 8.1.5), <ORACLE_HOME>\sqlj\lib\tramslator.zip and <ORACLE_HOME>\sqlj\lib\runtime.zip.
    Have fun!
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Xiangnan:
    Dear friends,
    I met a problem while I try to use "jpub" command in HP-UX environment. When I key in "jpub -scott/tiger .....", system will prompt me that "Can't find class oracle.jpub.java.Main". Is there any one who can help me to solve this trouble?
    Thanks a lot for your help!
    xiangnan<HR></BLOCKQUOTE>
    null

  • How to call an ebs  web service using the soa gateway

    Hi All,
    I installed Oracle E-Business Suite Release 12.1.1 Media Pack v4 (32bit) and now I wanna use the soa gateway to develop and integration and consume web services. I found the soa gateway/irep and I can browse through the existing services. But how can I call one e. g. using .NET?
    For .NET, I need an valid address (URL) to the services. How can I get such an URL.
    Example:
    I opened the integration repository, browsed to:
    Order Management Suite - Order Management - Sales Order - INBOUND: Change Purchase Order XML Transaction.
    I cannot find an address at this page which can be used in MS Dev Studio to call the service.
    If I click on "Generate WSDL" or try to open the WSDL under the "Web Service - Web Service Provider" section, I get an error message:
    Error
    SOA Provider Access resulted in exception 'oracle.apps.fnd.soa.util.SOAException: SystemError: Error while sending message to server. Server returned HTTP response code: 500 for URL: http://ebs1.tesis.de:8000/webservices/SOAProvider/EbizAuth?Generate=4283&soa_ticket=HKGsq9YYnoswMKFsHijTPQ..' when attempting to perform 'GENERATE'. Please contact your System Administrator
    What exactly does this error mean?
    Many thanks,
    Konrad

    You have to make sure every step in MOS Document ID 726414.1 that is applicable to your E-Business Suite 12.1.x release is performed. Enabling ASADMIN is just one of the steps. In spite of following all the steps in this Document you continue to get the error when clicking "Generate WSDL", please log a Service Request with Oracle Support.I will check all steps again. Maybe I missed one... Thanks!

  • Problem in Creating a jar file using java.util.jar and deploying in jboss 4

    Dear Techies,
    I am facing this peculiar problem. I am creating a jar file programmatically using java.util.jar api. The jar file is created but Jboss AS is unable to deploy this jar file. I have also tested that my created jar file contains the same files. When I create a jar file from the command using jar -cvf command, Jboss is able to deploy. I am sending the code , please review it and let me know the problem. I badly require your help. I am unable to proceeed in this regard. Please help me.
    package com.rrs.corona.solutionsacceleratorstudio.solutionadapter;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.util.jar.JarEntry;
    import java.util.jar.JarOutputStream;
    import java.util.jar.Manifest;
    import com.rrs.corona.solutionsacceleratorstudio.SASConstants;
    * @author Piku Mishra
    public class JarCreation
         * File object
         File file;
         * JarOutputStream object to create a jar file
         JarOutputStream jarOutput ;
         * File of the generated jar file
         String jarFileName = "rrs.jar";
         *To create a Manifest.mf file
         Manifest manifest = null;
         //Attributes atr = null;
         * Default Constructor to specify the path and
         * name of the jar file
         * @param destnPath of type String denoting the path of the generated jar file
         public JarCreation(String destnPath)
         {//This constructor initializes the destination path and file name of the jar file
              try
                   manifest = new Manifest();
                   jarOutput = new JarOutputStream(new FileOutputStream(destnPath+"/"+jarFileName),manifest);
              catch(Exception e)
                   e.printStackTrace();
         public JarCreation()
         * This method is used to obtain the list of files present in a
         * directory
         * @param path of type String specifying the path of directory containing the files
         * @return the list of files from a particular directory
         public File[] getFiles(String path)
         {//This method is used to obtain the list of files in a directory
              try
                   file = new File(path);
              catch(Exception e)
                   e.printStackTrace();
              return file.listFiles();
         * This method is used to create a jar file from a directory
         * @param path of type String specifying the directory to make jar
         public void createJar(String path)
         {//This method is used to create a jar file from
              // a directory. If the directory contains several nested directory
              //it will work.
              try
                   byte[] buff = new byte[2048];
                   File[] fileList = getFiles(path);
                   for(int i=0;i<fileList.length;i++)
                        if(fileList.isDirectory())
                             createJar(fileList[i].getAbsolutePath());//Recusive method to get the files
                        else
                             FileInputStream fin = new FileInputStream(fileList[i]);
                             String temp = fileList[i].getAbsolutePath();
                             String subTemp = temp.substring(temp.indexOf("bin")+4,temp.length());
    //                         System.out.println( subTemp+":"+fin.getChannel().size());
                             jarOutput.putNextEntry(new JarEntry(subTemp));
                             int len ;
                             while((len=fin.read(buff))>0)
                                  jarOutput.write(buff,0,len);
                             fin.close();
              catch( Exception e )
                   e.printStackTrace();
         * Method used to close the object for JarOutputStream
         public void close()
         {//This method is used to close the
              //JarOutputStream
              try
                   jarOutput.flush();
                   jarOutput.close();
              catch(Exception e)
                   e.printStackTrace();
         public static void main( String[] args )
              JarCreation jarCreate = new JarCreation("destnation path where jar file will be created /");
              jarCreate.createJar("put your source directory");
              jarCreate.close();

    Hi,
    I have gone through your code and the problem is that when you create jar it takes a complete path address (which is called using getAbsolutePath ) (when you extract you see the path; C:\..\...\..\ )
    You need to truncate this complete path and take only the path address where your files are stored and the problem must be solved.

  • Problem calling applet method using IE

    I've searched through the forum and can't seem to find anything that can help me fix this. I'm trying to call an applet's method using Javascript. This is working fine under Netscape, but not IE. Everything I've read seems to indicate that I'm doing this right, but I'm getting "Object doesn't support this property or method" when I try to call the applet method from IE.
    In this example method, I'm trying to call the applet's countChars method, which should return the length of the string you pass into it. Works under Netscape 6.2, but not IE 6.0
    Here's my applet code:
    import java.lang.String;
    public class test extends java.applet.Applet {
    public static int countChars(String s) {
    return s.length();
    And my HTML
    <HTML>
    <HEAD>
    <script language="Javascript">
    function refreshApplet()
    /*     i = document.forms.myForm.TestApplet.countChars();
         document.forms.myForm.output.value=i; */
         document.forms.myForm.output.value=document.applets["TestApplet"].countChars(document.forms.myForm.input.value);
    </script>
    </HEAD>
    <BODY>
    <APPLET CODE = "test.class" WIDTH = 400 HEIGHT = 400 ALIGN = middle NAME = "TestApplet" scriptable="true">
    </APPLET>
    <br>
    <form name="myForm">
    <input type="text" name="input">
    <input type="button" value="click me" onClick="refreshApplet();">
    <hr>
    <input type="text" name="output">
    </form>
    </BODY>
    </HTML>
    Thanks in advance!
    Craig Drabik
    Sr. Programmer/Analyst
    University at Buffalo

    I have very similar problem, my applet works OK using Netscape (6.2 and 7.0), but with IE 6.0 It only works with windows XP;
    The reported error is "Object doesn't support this property or method"
    Can someone please help me to solve this problem.
    Cheers
    Horus
    This is my code:
    - I call the applet using javaScript and input the method setData with two strings.
    function graphic()
         var dataZenith;
         var dataManual;
         initVariables();
         dataZenith = graphicZENith(); //Call other Javascript functions
         dataManual = graphicManual(); //Call other Javascript functions
         document.AppletOne.setData(dataZenith,dataManual);
    I run the applet with this HTML code:
    <applet NAME="AppletOne" code="Appl.class" width="450" height="450"
    MAYSCRIPT></applet>
    //Applet code/////////////
    import java.awt.*;
    import java.awt.geom.*;
    import java.applet.*;
    import java.util.*;
    public class Appl extends Applet {
         private int [] myArray1 = new int [156];     
         private int [] myArray2 = new int [156];
         private boolean flag = false;
         // maxDataYAxesNumber es usado para dividir el eje de las Y
    public void init()
              setFont(new Font("SansSerif", Font.BOLD, 12));
              setBackground (Color.white);
              setSize(getSize());     
    // Get data and put in an array
    public void setData(String data1, String data2)
              final String DELIMITER = ",";
              final StringTokenizer theTokens1 =
                   new StringTokenizer(data1, DELIMITER);     
              final StringTokenizer theTokens2 =
                   new StringTokenizer(data2, DELIMITER);
              try
                        String dataX = data1;
                        for (int i = 0; i < 156; i++)
                        myArray1[i] = Integer.parseInt(theTokens1.nextToken().trim());
                        myArray2[i] = Integer.parseInt(theTokens2.nextToken().trim());
              catch (NumberFormatException e) {};
              flag = true; //I get the data OK
              repaint();
    public void paint (Graphics g){
    Graphics2D g2d = (Graphics2D)g;
    setData(data1, data2) ;
    if (flag == true)
                   //Call other functions to process the graphic
    else g2d.drawString(" Sorry I can get Data", 100,80);          

  • Integrated SOA Gateway issue: SOAP UI call ends with error

    -- EBS 12.1.3 (no upgrade, directly installed.. is a test instance)
    Hello, i need help in calling a deployed webservice in Integrated SOA Gateway in EBS.
    -> Setup SOA Gateway is done.
    -> FND_PROFILE PL SQL API is deployed as a Webservice.
    To test the webservice i have taken the soap ui tool an send follwowing Request XML:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:fnd="http://xmlns.oracle.com/apps/fnd/soaprovider/plsql/fnd_profile/" xmlns:get="http://xmlns.oracle.com/apps/fnd/soaprovider/plsql/fnd_profile/get/">
    <soapenv:Header>
    <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" mustUnderstand="1">
         <wsse:UsernameToken>
         <wsse:Username>asadmin</wsse:Username>
         <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">welcome</wsse:Password>
         </wsse:UsernameToken>
         </wsse:Security>
         <fnd:SOAHeader>
              <!--Optional:-->
    <fnd:Responsibility>APPLICATION_DEVELOPER</fnd:Responsibility>
    <!--Optional:-->
    <fnd:RespApplication>FND</fnd:RespApplication>
    <!--Optional:-->
    <fnd:SecurityGroup>STANDARD</fnd:SecurityGroup>
    <!--Optional:-->
    <fnd:NLSLanguage>AMERICAN</fnd:NLSLanguage>
    <!--Optional:-->
    <fnd:Org_Id>204</fnd:Org_Id>
    </fnd:SOAHeader>
    </soapenv:Header>
    <soapenv:Body>
    <get:InputParameters>
    <!--Optional:-->
    <get:NAME>USER_ID</get:NAME>
    </get:InputParameters>
    </soapenv:Body>
    </soapenv:Envelope>
    The Responce is saying:
    <faultstring xmlns="">Error occured while service was processing.</faultstring>
    In the SOA Monitor i can see all Requests being send from SOA UI. The detail error message says:
    oracle.apps.fnd.soa.util.SOAException: ServiceProcessingError: Exception returned from JCA Service Runtime. file:/opt/app/OMSOAF/inst/apps/OMSOAF_sf2p-dev-oapp1/soa/PLSQL/2678/GET.wsdl [ GET_ptt::GET(InputParameters, OutputParameter) ] - WSIF JCA Execute of operation 'GET' failed due to: Could not instantiate InteractionSpec oracle.tip.adapter.apps.AppsStoredProcedureInteractionSpec due to: Error while setting JCA WSDL Property.
    Property setIRepOverloadSeq is not defined for oracle.tip.adapter.apps.AppsStoredProcedureInteractionSpec Please verify the spelling of the property.
    nested Exception is: ORABPEL-12532 Error while setting JCA WSDL Property................
    Do anyone has an idea?
    Thank you in advice!

    Hi Yilmaz,
    Am also facing the same issue while am invoking standard/custom web service from soapui....is this issue is fixed in your case, if issue fixed, please post the resolution point how you are fixed. please post the solution ASAP. Otherwise do we have any metalink note on this to fix the issue. please share me the details.
    Regards
    Santhosh Kumar. K

  • Time machine: An error occurred while copying files. The problem could be temporary. If the problem persists, use Disk Utility to repair your backup disk.

    Time machine backups are failing. I've followed the instructions I found on the Time Machine troubleshooting page (http://pondini.org/TM/Troubleshooting.html) but have gotten to where I don't know what to do next.
    Sequence of events:
    The main error message is always:
    An error occurred while copying files. The problem could be temporary. If the problem persists, use Disk Utility to repair your backup disk.
    Yesterday, I opened Disk Utility and verified the disk. Got this error:
    Error: This disk needs to be repaired using the Recovery HD. Restart your computer, holding down the Command key and the R key until you see the Apple logo. When the OS X Utilities window appears, choose Disk Utility.
    I ran Disk Utility and repaired the hard drive. Then I manually started the backup before going to bed, figuring it was going to take a long time to run. When I got up this morning, the backup had failed with the same "could be temporary" error. I checked the log, which says:
    Starting manual backup
    Attempting to mount network destination URL: afp://Tery%20Griffin;[email protected]/Tery%20Griffin's%20Time%20Ca psule
    Mounted network destination at mount point: /Volumes/Tery Griffin's Time Capsule using URL: afp://Tery%20Griffin;[email protected]/Tery%20Griffin's%20Time%20Ca psule
    Disk image /Volumes/Tery Griffin's Time Capsule/Tery Griffin’s Computer (44).sparsebundle mounted at: /Volumes/Time Machine Backups
    Backing up to: /Volumes/Time Machine Backups/Backups.backupdb
    Event store UUIDs don't match for volume: Macintosh HD
    Error: (-36) Applying backup protections to /Volumes/Time Machine Backups/Backups.backupdb/Tery Griffin’s Computer (44)/2014-03-05-201742.inProgress/ABB10CF2-F041-4DE5-B6AE-3C228B59ADCC
    Error: (5) setxattr for key:com.apple.backupd.SnapshotStartDate path:/Volumes/Time Machine Backups/Backups.backupdb/Tery Griffin’s Computer (44)/2014-03-05-201742.inProgress/ABB10CF2-F041-4DE5-B6AE-3C228B59ADCC size:17
    Error: (5) setxattr for key:com.apple.backupd.SnapshotState path:/Volumes/Time Machine Backups/Backups.backupdb/Tery Griffin’s Computer (44)/2014-03-05-201742.inProgress/ABB10CF2-F041-4DE5-B6AE-3C228B59ADCC size:2
    Deep event scan at path:/ reason:must scan subdirs|new event db|
    Finished scan
    Found 145601 files (11.88 GB) needing backup
    16.1 GB required (including padding), 620.77 GB available
    Copied Zero KB of 11.88 GB, 0 of 145601 items
    Copied 0 files (Zero KB) from volume Macintosh HD.
    Copy stage failed with error:11
    Backup failed with error: 11
    Ejected Time Machine disk image: /Volumes/Tery Griffin's Time Capsule/Tery Griffin’s Computer (44).sparsebundle
    Ejected Time Machine network volume.
    Starting automatic backup
    Attempting to mount network destination URL: afp://Tery%20Griffin;[email protected]/Tery%20Griffin's%20Time%20Ca psule
    Mounted network destination at mount point: /Volumes/Tery Griffin's Time Capsule using URL: afp://Tery%20Griffin;[email protected]/Tery%20Griffin's%20Time%20Ca psule
    Disk image /Volumes/Tery Griffin's Time Capsule/Tery Griffin’s Computer (44).sparsebundle mounted at: /Volumes/Time Machine Backups
    Backing up to: /Volumes/Time Machine Backups/Backups.backupdb
    Event store UUIDs don't match for volume: Macintosh HD
    Error: (-36) Applying backup protections to /Volumes/Time Machine Backups/Backups.backupdb/Tery Griffin’s Computer (44)/2014-03-05-201742.inProgress/9F8E7957-9C50-49C3-8314-880E5203E3D9
    Error: (5) setxattr for key:com.apple.backupd.SnapshotStartDate path:/Volumes/Time Machine Backups/
    Does anyone know what the problem is here and what I should do?
    Thanks,
    Tery

    You have repaired your boot drive (which is good) but have you repaired your time machine drive?  I don't own a Time Capsule so I don't know if disk utility can operate on it.  If it can, you should repair it as well.  You may need to erase it and start a new backup.  That happens to time machine volumes from time to time and is why people who are serious about their data never rely on a single source of backup.

  • Hello apple I have the problem with my iPhone and my friends have this problem too. My iPhone have the problem about calling and answer the call. When I use my iPhone to call I can't hear anything from my iPhone but the person that I call can answer it bu

    Hello apple
    I have the problem with my iPhone and my friends have this problem too.
    My iPhone have the problem about calling and answer the call. When I use my iPhone to call I can't hear anything from my iPhone but the person that I call can answer it but when answer both of us can't hear anything and when I put my iPhone to my face the screen is still on and when I quit the phone application and open it again it will automatic call my recent call. And when my friends call me my iPhone didn't show anything even the missed call I'm only know that I missed the call from messages from carrier. Please check these problem I restored my iPhone for 4 time now in this week. I lived in Hatyai, Songkhla,Thailand and many people in my city have this problem.
    Who have this problem??

    Apple isnt here. this is a user based forum for technical questions. The solution is to restart, reset, and restore as new which is in the manual after that get it replaced for hard ware failure. if your within your one year warranty its replaced if it is out of the warranty then it is 199$

  • Can anyone help me?Time Machine couldn't complete the backup to...  An error occurred while copying files. The problem may be temporary. If the problem persists, use Disk Utility to repair your backup disk.  What is the problem?  I've made no changes.

    I recently starting receiving the error message "Time Machine couldn't complete the backup to... An erro occurred while copying files.  The problem may be temporary.  If the problem persists, use Disk Utility to repair your backup disk.  I have had no problems backing up my MacBook Pro 2011 to my Western Digital My Book Live through a Linksys EA4500 router until recently.  I've made no major changes.  I've ran a diagnosis on my back up drive with no problems.  The Time Machine back up starts, but about after about 5 to 10 minutes I get the error message.  I can see the shared drive in Finder.  The light on the drive blinks while it starts the back up.  I can see the shared folders on the networked drive.  The backup process starts but for some reason it just stops.  Can anyone help?

    You can't repair a network volume in Disk Utility.
    Backing up to a third-party NAS with Time Machine is risky, and unacceptably risky if it's your only backup. I know this isn't the answer you want, and I also know that the manufacturer says the device will work with Time Machine, and that it usually seems to work. Except when you try to restore, and find that you can't.
    If you want network backup with Time Machine, use as the destination either an Apple Time Capsule or an external hard drive connected to another Mac or to an 802.11ac AirPort base station. Only the 802.11ac base stations support Time Machine, not any older model.
    If you're determined to keep using the NAS for backup, your only recourse for any problems that result is to the manufacturer (which will blame Apple.)

  • Problem in enc/dec with DSA-Elgamal (keys generated using GNUPG utility)

    Hi all
    Facing the problem in encryption/decryption using DSA-Elgamal (keys generated using GNUPG utility)
    Steps followed
    Generated a key pair using DSA and Elgamal (default) form GNUPG utility (size 1024)
    Placed generated keys pubring.gpg & secring.gpg in the source directory where the code is executing but am getting the error
    D:\test>c:\jdk\bin\java BouncyCastlePGPTest
    Creating a temp file...
    Temp file created at
    D:\test\pgp
    Reading the temp file to make sure that the bits were written
    the message I want to encrypt
    Get Public Key
    Key Strength = 1024
    Algorithm = 17
    mohankumar (start) <[email protected]>
    Key Count = 1
    In Ecrypt File
    creating comData...
    comData created...
    using PGPEncryptedDataGenerator...
    111...
    java.lang.IllegalArgumentException: passed in key not an encryption key!f
    D:\test>
    but the same code works fine if we try to encrypt using RSA generated keys
    D:\test>c:\jdk\bin\java BouncyCastlePGPTest
    Creating a temp file...
    Temp file created at
    D:\test\pgp
    Reading the temp file to make sure that the bits were written
    the message I want to encrypt
    Get Public Key
    Key Strength = 1024
    Algorithm = 1
    sriganesh (sriganesh) <[email protected]>
    Key Count = 1
    In Ecrypt File
    creating comData...
    comData created...
    using PGPEncryptedDataGenerator...
    used PGPEncryptedDataGenerator...
    wrote bOut to byte array...
    Reading the encrypted file
    -----BEGIN PGP MESSAGE-----
    Version: BCPG v1.31
    hIwD7qqzP41CKpUBBACOnQE265ud3AuJ8zGx9TjUFyeSwZH+PZJhjGLBTkI7gKdh
    /hIF1u/sCzubw+9Mt8dbS0V2uHiqQgkCHAYIQKoVmiN65s8sUsIS0q3cTtBudUnd
    xIEiyegtvB8LEpzldU/XrSglh8h6MdhhcPql46BG+0vs6p/bUAOygNv5e/DGzck2
    1wNvc2/u2ffBgEP4qfrJUcF9OlvVAm03aB0S6gP8cH4LVdo5K9Bwu3d71qNKsryP
    mML16rkA
    =lfxf
    -----END PGP MESSAGE-----
    Decrypted Data= the message I want to encrypt
    no message integrity check
    Code As follows
    import java.io.BufferedReader;
    import java.io.ByteArrayOutputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.FileReader;
    import java.io.FileWriter;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.security.NoSuchProviderException;
    import java.security.SecureRandom;
    import java.security.Security;
    import org.bouncycastle.bcpg.ArmoredOutputStream;
    import org.bouncycastle.jce.provider.BouncyCastleProvider;
    import org.bouncycastle.openpgp.PGPCompressedDataGenerator;
    import org.bouncycastle.openpgp.PGPEncryptedDataGenerator;
    import org.bouncycastle.openpgp.PGPException;
    import org.bouncycastle.openpgp.PGPLiteralData;
    import org.bouncycastle.openpgp.PGPPublicKey;
    import org.bouncycastle.openpgp.PGPPublicKeyRing;
    import org.bouncycastle.openpgp.PGPUtil;
    import org.bouncycastle.openpgp.*;
    import java.util.Iterator;
    public class BouncyCastlePGPTest {
    private static PGPPrivateKey findSecretKey(
                                                      InputStream keyIn,
                                                      long keyID,
                                                      char[] pass)
                                                      throws IOException, PGPException, NoSuchProviderException {
    PGPSecretKeyRingCollection pgpSec = new PGPSecretKeyRingCollection(PGPUtil.getDecoderStream(keyIn));
    PGPSecretKey pgpSecKey = pgpSec.getSecretKey(keyID);
    if (pgpSecKey == null) {
    return null;
    return pgpSecKey.extractPrivateKey(pass, "BC");
    private static void decryptFile(InputStream in, InputStream keyIn, char[] passwd) throws Exception
    in = PGPUtil.getDecoderStream(in);
    try {
    PGPObjectFactory pgpF = new PGPObjectFactory(in);
    PGPEncryptedDataList enc;
    Object o = pgpF.nextObject();
    // the first object might be a PGP marker packet.
    if (o instanceof PGPEncryptedDataList)
    enc = (PGPEncryptedDataList)o;
    else
    enc = (PGPEncryptedDataList)pgpF.nextObject();
    // find the secret key
    Iterator it = enc.getEncryptedDataObjects();
    PGPPrivateKey sKey = null;
    PGPPublicKeyEncryptedData pbe = null;
    while (sKey == null && it.hasNext())
    pbe = (PGPPublicKeyEncryptedData)it.next();
    sKey = findSecretKey(keyIn, pbe.getKeyID(), passwd);
    if (sKey == null)
    throw new IllegalArgumentException("secret key for message not found.");
    InputStream clear = pbe.getDataStream(sKey, "BC");
    PGPObjectFactory plainFact = new PGPObjectFactory(clear);
    Object message = plainFact.nextObject();
    if (message instanceof PGPCompressedData)
    PGPCompressedData cData = (PGPCompressedData)message;
    PGPObjectFactory pgpFact = new PGPObjectFactory(cData.getDataStream());
    message = pgpFact.nextObject();
    if (message instanceof PGPLiteralData)
    PGPLiteralData ld = (PGPLiteralData)message;
    FileOutputStream fOut = new FileOutputStream(ld.getFileName());
    InputStream unc = ld.getInputStream();
    int ch;
    System.out.print("\n\n\nDecrypted Data= ");
    while ((ch = unc.read()) >= 0)
                             System.out.print(""+(char)ch);
    fOut.write(ch);
    System.out.println("\n\n\n");
    else if (message instanceof PGPOnePassSignatureList)
    throw new PGPException("encrypted message contains a signed message - not literal data.");
    else
    throw new PGPException("message is not a simple encrypted file - type unknown.");
    if (pbe.isIntegrityProtected())
    if (!pbe.verify())
    System.err.println("message failed integrity check");
    } else
    System.err.println("message integrity check passed");
    else
    System.err.println("no message integrity check");
    catch (PGPException e) {
    System.err.println(e);
    if (e.getUnderlyingException() != null) {
    e.getUnderlyingException().printStackTrace();
         public static void main(String[] args) {
              // the keyring that holds the public key we're encrypting with
              String publicKeyFilePath = "D:\\test\\pubring.gpg"; //D:\\test\\pubring.pkr;
              // init the security provider
              Security.addProvider(new BouncyCastleProvider());
              try {
                   System.out.println("Creating a temp file...");
                   // create a file and write the string to it
                   File outputfile = new File("pgp");//File.createTempFile("pgp", null);
                   FileWriter writer = new FileWriter(outputfile);
                   writer.write("the message I want to encrypt".toCharArray());
                   writer.close();
                   System.out.println("Temp file created at ");
                   System.out.println(outputfile.getAbsolutePath());
                   System.out.println("Reading the temp file to make sure that the bits were written\n----------------------------");
                   BufferedReader isr = new BufferedReader(new FileReader(outputfile));
                   String line = "";
                   while ((line = isr.readLine()) != null) {
                        System.out.println(line + "\n");
                   // read the key
                   FileInputStream     in = new FileInputStream(publicKeyFilePath);
                   PGPPublicKey key = readPublicKey(in);
                   // find out a little about the keys in the public key ring
                   System.out.println("Key Strength = " + key.getBitStrength());
                   System.out.println("Algorithm = " + key.getAlgorithm());
                   int count = 0;
                   for (java.util.Iterator iterator = key.getUserIDs(); iterator.hasNext();) {
                        count++;
                        System.out.println((String)iterator.next());
                   System.out.println("Key Count = " + count);
                   // create an armored ascii file
                   FileOutputStream out = new FileOutputStream(outputfile.getAbsolutePath() + ".asc");
                   // encrypt the file
                   encryptFile(outputfile.getAbsolutePath(), out, key);
                   System.out.println("Reading the encrypted file\n----------------------------");
                   BufferedReader isr2 = new BufferedReader(new FileReader(new File(outputfile.getAbsolutePath() + ".asc")));
                   String line2 = "";
                   while ((line2 = isr2.readLine()) != null) {
                        System.out.println(line2);
    //FileInputStream in = new FileInputStream(args[1]);
              FileInputStream in2 = new FileInputStream("d:\\test\\pgp.asc");
         FileInputStream keyIn = new FileInputStream("d:\\test\\secring.gpg");
         decryptFile(in2, keyIn, "test123".toCharArray());
              } catch (PGPException e) {
                   System.out.println(e.toString());
                   System.out.println(e.getUnderlyingException().toString());
              } catch (Exception e) {
                   System.out.println(e.toString());
         private static PGPPublicKey readPublicKey(InputStream in) throws IOException {
              System.out.println("Get Public Key");
              try {
                   PGPPublicKeyRing pgpPub = new PGPPublicKeyRing(in);
                   Iterator itr = pgpPub.getPublicKeys();
                   PGPPublicKey pk = null;
                   return pgpPub.getPublicKey();
              } catch (IOException io) {
                   System.out.println("readPublicKey() threw an IOException");
                   System.out.println(io.toString());
                   throw io;
         private static void encryptFile(String fileName, OutputStream out, PGPPublicKey encKey)
    //     throws IOException, NoSuchProviderException, PGPException
              try {
    System.out.println("In Ecrypt File");
              out = new ArmoredOutputStream(out);
              ByteArrayOutputStream bOut = new ByteArrayOutputStream();
              System.out.println("creating comData...");
              // get the data from the original file
              PGPCompressedDataGenerator comData = new PGPCompressedDataGenerator(PGPCompressedDataGenerator.ZIP);
              PGPUtil.writeFileToLiteralData(comData.open(bOut), PGPLiteralData.BINARY, new File(fileName));
              comData.close();
              System.out.println("comData created...");
              System.out.println("using PGPEncryptedDataGenerator...");
              // object that encrypts the data
              PGPEncryptedDataGenerator cPk = new PGPEncryptedDataGenerator(PGPEncryptedDataGenerator.CAST5, new SecureRandom(), "BC");
              cPk.addMethod(encKey);
              System.out.println("used PGPEncryptedDataGenerator...");
              // take the outputstream of the original file and turn it into a byte array
              byte[] bytes = bOut.toByteArray();
              System.out.println("wrote bOut to byte array...");
              // write the plain text bytes to the armored outputstream
              OutputStream cOut = cPk.open(out, bytes.length);
              cOut.write(bytes);
              // cOut.close();
              cPk.close();
              out.close();
              } catch (IOException ex) {
                   System.out.println("IOException\t" +ex.toString());
              } catch (NoSuchProviderException ex1) {
                   System.out.println("NoSuchProviderException\t" +ex1.toString());
              } catch (PGPException ex2) {
                   System.out.println("PGPException\t" +ex2.toString());
    }

    First - you're responding to a year-old message. I doubt the OP is still around.
    Second - DSA is a Digital Signature Algorithm. The error tells you exactly what the problem is - DSA is not an encryption algorithm, and can't be used as one.
    Grant

  • Time Machine Error: "An error occurred while copying files. The problem may be temporary. If the problem persists, use Disk Utility to repair your backup disk."

    I have a MacBook Pro 2.8 GHz Intel Core 2 Duo with 4GB, 500GB HDD, running 10.8.2 My computer as been running slow and fearing my HDD might die. I bought a brand new 1TB G-Drive from Apple yesterday and started my back up. It gets to just over 22GB backed up then I get this error message:
    "An error occurred while copying files. The problem may be temporary. If the problem persists, use Disk Utility to repair your backup disk."
    Anyone out there who might be able to help me fix this?

    I have a MacBook Pro 2.8 GHz Intel Core 2 Duo with 4GB, 500GB HDD, running 10.8.2 My computer as been running slow and fearing my HDD might die. I bought a brand new 1TB G-Drive from Apple yesterday and started my back up. It gets to just over 22GB backed up then I get this error message:
    "An error occurred while copying files. The problem may be temporary. If the problem persists, use Disk Utility to repair your backup disk."
    Anyone out there who might be able to help me fix this?

  • HT3275 "The problem may be temporary. Try again later to back up. If the problem persists, use Disk Utility to repair your backup disk."

    The problem may be temporary. Try again later to back up. If the problem persists, use Disk Utility to repair your backup disk.
    what does this mean?? why can't i backup before i have to get my hard drive replaced?!!? arghh

    brahr3 wrote:
    I am getting the same error message: "The problem may be temporary. Try again later to back up. If the problem persists, use Disk Utility to repair your backup disk." I don't have a TC but rather an external drive, which is twice the size of my harddisc, and it still has plenty of free space. The problem has lasted for 5 days. I even used a different external drive -- still same error message. Needless to say that I have run Disc Utility several times. Can anybody help? Thanks
    I am having issues with some USB drives on Mountain Lion.. work perfectly on another computer with Snow Leopard.. not even recognised by ML.
    Is the disk recognised?
    If so and TM cannot pick it up.. do a full reset of TM and try again.
    A4 http://pondini.org/TM/Troubleshooting.html

  • HT1176 My airport TM will not backup and i keep getting the error msg "Time Machine couldn't complete the backup...An error occurred while copying files. The problem may be temporary. If the problem persists, use Disk Utility to repair your backup disk."

    My Airport TM will not backup and i keep getting the error msg "Time Machine couldn’t complete the backup...An error occurred while copying files. The problem may be temporary. If the problem persists, use Disk Utility to repair your backup disk."

    My Airport TM will not backup and i keep getting the error msg "Time Machine couldn’t complete the backup...An error occurred while copying files. The problem may be temporary. If the problem persists, use Disk Utility to repair your backup disk."

Maybe you are looking for

  • Connecting blu-ray to my imac

    hello i have bought a blu-ray player and an HDMI to minidisplay port connector to use my 27" imac (2010 model) but i cant seem to make it work.  i dont know how to get the mac to just work as a display.  can anyone help!! thanks tom

  • How to add another Planning Server to the Shared Connections?

    Hi, This is for version 11.1.2.1.103 Currently all of our users use Planning in Prod environment. I would like to open the UAT environment to a smaller set of users. UAT environment is in our Test environment. I couldn't figure it how to add the UAT

  • Movie without a theme

    Ready to try my first iMovie project. I've read thru a gazillion posts about the subject and if I understand correctly: 1) Import movie to iMovie and build movie to my satisfaction. 2) Send to iDVD (Iwant it to play on TV via DVD player) 3) Let iDVD

  • Mavericks, Aperture upgrade; the message is: unsupported file format. This for my "normal" NEF

    When I try to edit my NEF File with an external editor eg. NikSoftware, Aperture show me this msg: Unsupported file format the editor doesn't start; in aperture i can't see the preview of that file. I tried to restart, but s.times ok others no. why?

  • Need Help with Hotspot

    Hi, I am having a report with  ALV Grid control and upon clicking material it should call a Transaction (Ex MM03) and the corresponding matnr should appear in the called transaction selection-screen. How can I do this. right now, I have used ALV Grid