Preverify ERROR for in Eclipse while using SATSA-crypto.jar

I have created simple application to encrypt the string using Cipher class like below:
This code snippet I got from the forums.nokia;
In this The string "THIS IS A SECRET MESSAGE" is encrypted and decrypted using the key "SECRET!!" .
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.Item;
import javax.microedition.lcdui.TextBox;
import javax.microedition.lcdui.TextField;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.ShortBufferException;
import javax.crypto.spec.SecretKeySpec;
public class FirstForm extends Form implements CommandListener {
     TextField txtData=new TextField("Enter the Data","",10,TextField.ANY);
     Command cmdEncrypt=new Command("Encrypt",Command.SCREEN,1);
     public FirstForm(String arg0)
          super(arg0);
          this.append(txtData);
          this.addCommand(cmdEncrypt);
          this.setCommandListener(this);
     public void commandAction(Command cmd, Displayable frm)
          if(cmd==this.cmdEncrypt)
               System.out.println("Command Is Pressed.......");
               byte[] msg = "THIS IS A SECRET MESSAGE".getBytes();
               byte[] enMsg = new byte[10000];
               byte[] deMsg = new byte[10000];
               //create new cipher using DES algorithm
               try {
                    Cipher c = Cipher.getInstance("DES");
                    //our raw byte[] key - please note that since we use DES algorithm,
                    //the key must be 8 bytes long
                    byte[] b = "SECRET!!".getBytes();
                    //init the cipher to encrypt the data
                    c.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(b,0,b.length,"DES"));
                    int numBytes = c.doFinal(msg, 0, msg.length, enMsg, 0);
                    System.out.println("Encrypted Message is"+enMsg);
                    //init the cipher to decrypt the data
                    c.init(Cipher.DECRYPT_MODE, new SecretKeySpec(b,0,b.length,"DES"));
                    numBytes = c.doFinal(enMsg, 0, numBytes, deMsg, 0);
                    String s = new String(deMsg,0,numBytes);
                    System.out.println("Decrypted Message is"+s);
               } catch (InvalidKeyException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
               } catch (NoSuchAlgorithmException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
               } catch (NoSuchPaddingException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
               } catch (IllegalStateException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
               } catch (ShortBufferException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
               } catch (IllegalBlockSizeException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
               } catch (BadPaddingException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
}after clicking on command button the Encrypted and decrypted sting is shown on the console
I have tested this code with wtk2.5.2.
This code works fine with sun'sWTK 2.5.2
But when; I have created project with the eclippse and wtk22
1) I added the satsa-crypto.jar in projrct->Properties->java-Builder-Path in "Library tab"
2)I Had also checked the checkbox before satsa-crypto.jar "Order-Of-Export Tab"
I am using the Ant Built
After Building I got Error saying::
Buildfile: D:\nitins_workspace\Encrypt\build.xml
init:
j2mepolish:
[j2mepolish] info: the license attribute is no longer supported. Please place your license.key file either to ${project.home} or to ${polish.home}.
[j2mepolish] J2ME Polish 2.0-RC4 (GPL License)
[j2mepolish] Loading device database...
[j2mepolish] Using locale [de_DE]...
[j2mepolish] assembling resources for device [Generic/midp2].
[j2mepolish] preprocessing for device [Generic/midp2].
[j2mepolish] compiling for device [Generic/midp2].
[j2mepolish-javac-Generic/midp2] Compiling 24 source files to D:\nitins_workspace\Encrypt\build\real\Generic\midp2\de_DE\classes
[j2mepolish] obfuscating for device [Generic/midp2].
[j2mepolish] proguard: ProGuard, version 3.5
[j2mepolish] proguard: Preparing output jar [D:\nitins_workspace\Encrypt\build\real\dest.jar]
[j2mepolish] preverifying for device [Generic/midp2].
[j2mepolish] preverify:Error preverifying class u
[j2mepolish] preverify:    VERIFIER ERROR u.a(ILm;Lw;)V:
[j2mepolish] preverify:Cannot find class com/sun/midp/ssl/Key
[j2mepolish] Preverify call failed: 1
[j2mepolish] C:\WTK22\bin\preverify.exe -classpath D:\Java\J2ME-Polish\import\midp-2.0.jar;D:\Java\J2ME-Polish\import\cldc-1.0.jar; -d D:\nitins_workspace\Encrypt\build\real\Generic\midp2\de_DE\obfuscated -nofp -nofinalize -nonative D:\nitins_workspace\Encrypt\build\real\Generic\midp2\de_DE\obfuscated
BUILD FAILED
D:\nitins_workspace\Encrypt\build.xml:109: Unable to preverify for device [Generic/midp2] - preverify returned result 1
Total time: 7 seconds What may be the reason of this??

I think you need to post the stack trace error message to get a response.

Similar Messages

  • After the most recent iPhoto update, I keep getting the following error: "iPhoto quit unexpectedly while using the Sonix SN9c201 webcam plugin."  This seems to happen after *every* iPhoto update.  Is there a fix on the way?

    After the most recent iPhoto update, I keep getting the following error: "iPhoto quit unexpectedly while using the Sonix SN9c201 webcam plugin."  This seems to happen after *every* iPhoto update.  Is there a fix on the way?

    As you can see below, when I right click, I have no such option.  In the User Account Settings, I'm operating as the "System Administrator".
    Any other suggestions?

  • Playback error tap to retry while using YouTube on my iPhone 5s.why is this happening?

    Playback error while using YouTube and I can t watch any videos.why is this happening? i have iPhone 5s iOS 8.1.2

    Before going down the root to update modem firmware. Do this...
    The answer to my problem was to change the DNS server number (should have done this first when the "playback error"  persisted.:/).  Take a screenshot of your original DNS number for future necessity, then change it to OpenDNS..or google DNS...I used google DNS...for complete & thorough instructions..follow this site:--> http://www.macinstruct.com/node/558
    it solved the problem completely.
    Edit

  • Error in XSLT mapping while using string functions

    Hi All,
    While using tokenize() and substring-before() functions in XSLT mapping,we are getting an error.The error message is Unexpected symbol "" So while using string functions in XSLT mapping do we have to use any header functions.
    Please through light on syntax etc.,of string functions in XSLT.
    Thanx in advance,
    Lokesh Dhulipudi
    Edited by: LOKESH DHULIPUDI on Dec 27, 2007 7:32 AM

    Hi,
    Hope you have gone thru this help:
    http://w3schools.com/xsl/default.asp
    Rgds, Moorthy

  • Where condition for reading infotype while using ldb

    hi
    i want to read info from infotype p0000
    using where condition eg: for pernr = ' '.
    i am using LDB pnp.
    how can i put the where condition while using macro
    rp-provide-from-last.
    regards
    cs

    in fact you don't have to get the values, you only need to tell to the program to take them into account :
    GET PRPS.
      CHECK SELECT-OPTIONS.

  • Toggling Location Services for apps to "While Using" not possible in iOS 8

    So I've read one of the features in iOS 8 is being able to toggle the location services features of apps as follows:
    Never
    Always
    While Using
    I thought this would be useful because it could potentially help saving battery, however, I've only got the "Never" and "Always" options.
    Only after opening an app have I found that the "Always" option switches to "While Using" , but then the "Always" option disappears. But this isn't true for all apps.
    Is this an app specific "feature", then, as that's not how websites are labelling it.

    Hello CCC,
    It is happening on the following devices:
    iPhone5
    iPhone5s (two)
    each have a "Family" generated iTunes account which has been associated to my iTunes account as the organizer. I would probably like to see it resolved on the iPhone5s (son and daughter) first and then the iPhone5 (wife).
    2. I am also experiencing issues with "Mail" using IOS 8 in that email will not delete from my inboxes (same devices as above)...
    3. I also have an issue with iCalendar not syncing events to my family members devices (iPhone5 and iPhone5S) using IOS 8. I entered my son's volleyball games into calendar on my macbook which is associated to my apple id as organizer and none of the other devices  associated to other family iTunes account received the updates. I have an iPhone5 as well and I received the updates.
    4. I am also experiencing issues with Family not recognizing pictures of family members which I have been trying to get fixed up.
    I don't think I have ever experienced this many glitches when updating to a new version from Apple before:(. I sure hope this is not going to be the new norm.
    I have also noticed that Health kit does not allow you to change the unit of measures within the application that it forces you to use the country's standard. This might be fine for younger individuals but as for me who grew up learning imperial and changed to metric halfway through school I would prefer the option to choose which unit of measure to use.
    Thanks for taking the time to respond,
    Dregor104

  • Getting JPEG Library Error for Corrupt JPEG Data using CS5

    After recently upgrading to CS5 I am getting JPEG Library Errors for corrupt JPEG data. I have my old PC still in use that uses CS4 and does not generate these errors when accessing the same site. Could someone please assist me in how to get rid of these errors using CS5? I can't find help out there anywhere for this!
    Thanks in advance!

    You could use Photoshop's Image Processor to open all of your jpegs in a given folder, make a slight tweek and resave them in the hopes of cleaning out any errors that DW is hitting. It's worth a shot maybe.
    1. In PS go to File > Scripts > Image Processor
    2. For Step 1, browse to a folder in your site with jpeg issues
    3. For Step 2, choose save in same location
    4. For Step 3, choose Save as JPEG and check Convert File to sRGB
    5. Click Run
    This will create a sub folder called JPEG with the images resaved there. You can drag them into the parent folder to replace the originals.
    If you haven't already, make sure to report the bug here: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    At least the right people will be made aware of it then and if it's common enough to trip whatever quantity/user reports system they use, it would get included for repair.
    I honestly don't think it's a "bug" per se, since the forum isn't absolutely flooded with the problem.

  • Using SATSA-CRYPTO

    I'm using some calls to the SATSA Crypto package which work fine when run with an emulator and NetBeans, but which were getting a NoClassDefFoundError when run on an actual device.
    It appears that none of these classes are in my Midlet's jar file. I tried forcing them into the jar, but that got me a java.lang.Error, instead.
    When NetBeans runs an emulator, it apparently resolves this by having some extra jars that it searches. Is there a standard place on a device where such jars would normally go?
    Michael D. Spence
    Mockingbird Data Systems, Inc.

    Actually, I'm not using a smartcard. My phone claims to support SATSA, but there's some issue with the myriad exception classes not being defined in the phone. Of course, I can't define them because they're in java.* or javax.*. The emulator that comes with NetBeans doesn't have this problem.
    It appears that using the highest available level of obfuscation will often help in situations like these, because it hides the forbidden class names, so you can include them in the jar. In my particular case, this wasn't enough, so I switched to the bouncycastle library: http://www.bouncycastle.org. This works great with the emulator and my phone, and has more and better features than SATSA.

  • Cannot repair disk errors for OSX boot volume using Disk Utility while booted from different disk

    I have tried three times to repair my boot volume (OSX 10.6.8 Snow Leopard) permissions using Disk Utility while booted up on a different volume (running Snow Leopard 10.6.4).  After hours of Disk Utility reporting that it HAD fixed the problems, an immediate click of "Verify permissions" immediately results in the apparently same continuous stream of permission errors.

    Then better luck next time around. Here are some ideas for then:
    How to Install Lion Successfully - You must have Snow Leopard 10.6.7 or 10.6.8 Installed
    A. Repair the Hard Drive and Permissions:
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. Then select Disk Utility from the Utilities. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer. Now restart normally. 
    If DU reports errors it cannot fix, then you will need Disk Warrior (4.3.) if DW cannot fix the drive, then you will need to reformat the drive and reinstall Snow Leopard.
    B. Make a Bootable Backup Using Restore Option of Disk Utility:
    Open Disk Utility from the Utilities folder.
    Select the destination volume from the left side list.
    Click on the Restore tab in the DU main window.
    Check the box labeled Erase destination.
    Select the destination volume from the left side list and drag it to the Destination entry field.
    Select the source volume from the left side list and drag it to the Source entry field.
    Double-check you got it right, then click on the Restore button.
    Destination means the backup volume. Source means the internal startup volume.
    C. Important: Please read before installing:
    If you have a FireWire hard drive connected, disconnect it before installing the update unless you will boot from this drive and install the update on it. Reconnect it and turn it back on after installation is complete and you've restarted.
    You may experience unexpected results if you have installed third-party system software modifications, or if you have modified the operating system through other means. (This does not apply to normal application software installation.)
    The installation process should not be interrupted. If a power outage or other interruption occurs during installation, use the standalone installer (see below) from Apple Downloads to update.  While the installation is in progress do not use the computer.
    D. To upgrade to Lion:
    Purchase the Lion Installer from the Mac App Store. The download will start quickly. Lion is nearly 4 GBs so a fast internet connection is essential. Download time could run upwards of 4 hours depending upon network conditions and server demands at the time.
    Boot From The Lion Installer which is located in your Applications folder.
    Follow instructions for installation.

  • Error in stored procedure while using dbms_datapump for transportable

    Hi,
    I'm facing following issue:
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for Solaris: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    ====================================================================================
    I'm trying to do transportable tablespace through stored procedure with help of DBMS_DATAPUMP, Following is the code :
    ==================================================================================
    create or replace
    procedure sp_tts_export(v_tbs_name varchar2) as
    idx NUMBER; -- Loop index
    JobHandle NUMBER; -- Data Pump job handle
    PctComplete NUMBER; -- Percentage of job complete
    JobState VARCHAR2(30); -- To keep track of job state
    LogEntry ku$_LogEntry; -- For WIP and error messages
    JobStatus ku$_JobStatus; -- The job status from get_status
    Status ku$_Status; -- The status object returned by get_status
         dts           varchar2(140):=to_char(sysdate,'YYYYMMDDHH24MISS');
         exp_dump_file varchar2(500):=v_tbs_name||'_tts_export_'||dts||'.dmp';
         exp_log_file varchar2(500):=v_tbs_name||'_tts_export_'||dts||'.log';
         exp_job_name varchar2(500):=v_tbs_name||'_tts_export_'||dts;
         dp_dir varchar2(500):='DATA_PUMP_DIR';
         log_file UTL_FILE.FILE_TYPE;
         log_filename varchar2(500):=exp_job_name||'_main'||'.log';
         err_log_file UTL_FILE.FILE_TYPE;
         v_db_name varchar2(1000);
         v_username varchar2(30);
         t_dir_name VARCHAR2(4000);
    t_file_name VARCHAR2(4000);
    t_sep_pos NUMBER;
         t_dir varchar2(30):='temp_0123456789';
         v_sqlerrm varchar2(4000);
    stmt varchar2(4000);
         FUNCTION get_file(filename VARCHAR2, dir VARCHAR2 := 'TEMP')
    RETURN VARCHAR2 IS
    contents VARCHAR2(32767);
    file BFILE := BFILENAME(dir, filename);
    BEGIN
              DBMS_LOB.FILEOPEN(file, DBMS_LOB.FILE_READONLY);
              contents := UTL_RAW.CAST_TO_VARCHAR2(
    DBMS_LOB.SUBSTR(file));
              DBMS_LOB.CLOSE(file);
              RETURN contents;
         END;
    begin
    --execute immediate ('drop tablespace test including contents and datafiles');
    --execute immediate ('create tablespace test datafile ''/home/smishr02/test.dbf'' size 10m');
    --execute immediate ('create table prestg.test_table (a number) tablespace test');
    --execute immediate ('insert into prestg.test_table values (1)');
    --commit;
    --execute immediate ('alter tablespace test read only');
    --dbms_output.put_line('11111111111111111111');
    dbms_output.put_line(log_filename||'>>>>>>>>>>>>>>>>>>>>>>>>>>>'|| dp_dir);
    log_file:=UTL_FILE.FOPEN (dp_dir, log_filename, 'w');
    UTL_FILE.PUT_LINE(log_file,'#####################################################################');
    UTL_FILE.PUT_LINE(log_file,'REPORT: GENERATED ON ' || SYSDATE);
    UTL_FILE.PUT_LINE(log_file,'#####################################################################');
    select global_name,user into v_db_name,v_username from global_name;
    UTL_FILE.PUT_LINE(log_file,'Database:'||v_db_name);
    UTL_FILE.PUT_LINE(log_file,'user running the job:'||v_username);
    UTL_FILE.PUT_LINE(log_file,'for tablespace:'||v_tbs_name);
    UTL_FILE.NEW_LINE (log_file);
    stmt:='ALTER TABLESPACE '||v_tbs_name || ' read only';
    dbms_output.put_line('11111111111111111111'||stmt);
    execute immediate (stmt);
    UTL_FILE.PUT_LINE(log_file,' '||v_tbs_name || ' altered to read only mode.');
    UTL_FILE.NEW_LINE (log_file);
    UTL_FILE.PUT_LINE(log_file,'#####################################################################');
    UTL_FILE.NEW_LINE (log_file);
    UTL_FILE.PUT_LINE(log_file,' Initiating the Datapump engine for TTS export..............');
    UTL_FILE.NEW_LINE (log_file);
    dbms_output.put_line('11111111111111111111');
    JobHandle :=
    DBMS_DATAPUMP.OPEN(
    operation => 'EXPORT'
    *,job_mode => 'TRANSPORTABLE'*
    *,remote_link => NULL*
    *,job_name => NULL*
    --,job_name => exp_job_name
    --        ,version => 'LATEST'
    UTL_FILE.PUT_LINE(log_file,'Done');
    UTL_FILE.NEW_LINE (log_file);
    UTL_FILE.PUT_LINE(log_file,' Allocating dumpfile................');
    DBMS_DATAPUMP.ADD_FILE(
    handle => JobHandle
    ,filename => exp_dump_file
    ,directory => dp_dir
    ,filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_DUMP_FILE
    -- ,filesize => '100M'
    UTL_FILE.PUT_LINE(log_file,'Done');
    UTL_FILE.NEW_LINE (log_file);
    UTL_FILE.PUT_LINE(log_file,' Allocating logfile................');
    DBMS_DATAPUMP.ADD_FILE(
    handle => JobHandle
    ,filename => exp_log_file
    ,directory => dp_dir
    ,filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE
    UTL_FILE.PUT_LINE(log_file,'Done');
    UTL_FILE.NEW_LINE (log_file);
    UTL_FILE.PUT_LINE(log_file,' Setting attributes................');
    DBMS_DATAPUMP.set_parameter(handle => JobHandle,
    name=>'TTS_FULL_CHECK',
    value=>1);
    DBMS_DATAPUMP.METADATA_FILTER(
    handle => JobHandle
    ,NAME => 'TABLESPACE_EXPR'
    ,VALUE => 'IN ('''||v_tbs_name||''')'
    -- ,object_type => 'TABLE'
    UTL_FILE.PUT_LINE(log_file,'Done');
    UTL_FILE.NEW_LINE (log_file);
    UTL_FILE.PUT_LINE(log_file,' Now starting datapump job................');
    DBMS_DATAPUMP.START_JOB(JobHandle);
    UTL_FILE.PUT_LINE(log_file,'Done');
    UTL_FILE.NEW_LINE (log_file);
    UTL_FILE.PUT_LINE(log_file,' Monitoring the job................');
    --------------Monitor the job
    PctComplete := 0;
    JobState := 'UNDEFINED';
    WHILE(JobState != 'COMPLETED') and (JobState != 'STOPPED')
    LOOP
    DBMS_DATAPUMP.GET_STATUS(
    handle => JobHandle
    ,mask => 15 -- DBMS_DATAPUMP.ku$_status_job_error + DBMS_DATAPUMP.ku$_status_job_status + DBMS_DATAPUMP.ku$_status_wip
    ,timeout => NULL
    ,job_state => JobState
    ,status => Status
    JobStatus := Status.job_status;
    -- Whenever the PctComplete value has changed, display it
    IF JobStatus.percent_done != PctComplete THEN
    DBMS_OUTPUT.PUT_LINE('*** Job percent done = ' || TO_CHAR(JobStatus.percent_done));
    PctComplete := JobStatus.percent_done;
    END IF;
    -- Whenever a work-in progress message or error message arises, display it
    IF (BITAND(Status.mask,DBMS_DATAPUMP.ku$_status_wip) != 0) THEN
    LogEntry := Status.wip;
    ELSE
    IF (BITAND(Status.mask,DBMS_DATAPUMP.ku$_status_job_error) != 0) THEN
    LogEntry := Status.error;
    ELSE
    LogEntry := NULL;
    END IF;
    END IF;
    IF LogEntry IS NOT NULL THEN
    idx := LogEntry.FIRST;
    WHILE idx IS NOT NULL
    LOOP
    DBMS_OUTPUT.PUT_LINE(LogEntry(idx).LogText);
    idx := LogEntry.NEXT(idx);
    END LOOP;
    END IF;
    END LOOP;
         --copy the datafiles to data dump dir     
         UTL_FILE.PUT_LINE(log_file,'Done');
    UTL_FILE.NEW_LINE (log_file);
    UTL_FILE.PUT_LINE(log_file,' Copying datafiles to dump directory................');
    -- grant select on dba_directories to prestg;
    declare
    cnt number;
    begin
    select count(*) into cnt from dba_directories
    where directory_name=upper(t_dir);
    if cnt=1 then
    execute immediate('DROP DIRECTORY '||t_dir);
    end if;
    end;
         FOR rec in (select file_name from sys.dba_data_files where tablespace_name=v_tbs_name)
         LOOP
         t_sep_pos:=instr(rec.file_name,'/',-1);
    t_dir_name:=substr(rec.file_name,1,t_sep_pos-1);
    t_file_name:=substr(rec.file_name,t_sep_pos+1,length(rec.file_name));
    dbms_output.put_line(t_dir_name|| ' ' || t_dir);
    dbms_output.put_line(t_file_name);
         execute immediate('CREATE DIRECTORY '||t_dir||' AS '''||t_dir_name||'''');
         UTL_FILE.PUT_LINE(log_file,' Copying '||rec.file_name||'................');
         utl_file.fcopy(t_dir, t_file_name, dp_dir, t_file_name);
         UTL_FILE.PUT(log_file,'Done');
         execute immediate('DROP DIRECTORY '||t_dir);
         END LOOP;
    UTL_FILE.NEW_LINE (log_file);
    UTL_FILE.PUT_LINE(log_file,' Altering tablespace to read write................');
         execute immediate ('ALTER TABLESPACE '||v_tbs_name || ' read write');
    UTL_FILE.PUT(log_file,' Done');
         err_log_file:=utl_file.fopen(dp_dir, exp_log_file, 'r');
         UTL_FILE.NEW_LINE (log_file);
    UTL_FILE.PUT_LINE(log_file,' content of export logfile................');
         loop
    begin
         utl_file.get_line(err_log_file,v_sqlerrm);
         if v_sqlerrm is null then
         exit;
         end if;
         UTL_FILE.PUT_LINE(log_file,v_sqlerrm);
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    EXIT;
    END;
         end loop;
              utl_file.fclose(err_log_file);
    utl_file.fclose(log_file);
    END;
    I'm getting following error when DBMS_DATAPUMP.OPEN is called in procedure:
    SQL> exec sp_tts_export('TEST');
    BEGIN sp_tts_export('TEST'); END;
    ERROR at line 1:
    ORA-31626: job does not exist
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 938
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 4566
    ORA-06512: at "PRESTG.SP_TTS_EXPORT", line 78
    ORA-06512: at line 1
    ==============================================================================================
    This procedure is part of user ABC. I'm getting the above when I'm running this under ABC schema. However I have tested the same procedure under sys schema. When I'm creating same procedure in SYS schema it is running fine. I am clueless on this. Pls help
    Thanks
    Shailesh
    Edited by: shaileshM on Jul 28, 2010 11:15 AM

    Privileges acquired via ROLE do NOT apply within named PL/SQL procedures.
    Explicit GRANT is required to resolve this issue.

  • Error in DTW for Special Prices while using

    Hi All,
             while tryin to import Special prices through DTW, I'm gettin an error message, " No Price defined for item in selected price list". CAn anyone please suggest how to import special prices and whts the casue of this error??
    Thanks in advance,
    Joseph

    Hi Joseph,
    Check the link
    Updating Special Prices via DTW
    special prices
    Re: Price List per Document Line
    DTW Template for Uploading Special Prices for Business Partners.
    *Close the thread if issue solved.
    Regards
    Jambulingam.P
    Edited by: Jambulingam P on Jun 29, 2009 11:57 AM

  • Getting error in File adapter while using ChunkSize

    Hi,
    I am trying to move a large file using the ChunkSize property of the file adapter as shown below. However I am getting the error during the run time in the SOA server.
    Code used:
    <adapter-config name="SyncReadFile" adapter="File Adapter" wsdlLocation="SyncReadFile.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
      <connection-factory location="eis/FileAdapter"/>
      <endpoint-interaction portType="SynchRead_ptt" operation="SynchRead">
        <interaction-spec className="oracle.tip.adapter.file.outbound.FileIoInteractionSpec">
          <property name="DeleteFile" value="true"/>
          <property name="PhysicalDirectory" value="C:\JDeveloper\mywork\JCAPs\ChunkFileRead\Input"/>
          <property name="FileName" value="overwriteme.txt"/>
          <property name="ChunkSize" value="55"/>
        </interaction-spec>
      </endpoint-interaction>
    </adapter-config>
    Error:
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'SynchRead' failed due to: Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "Could not instantiate InteractionSpec oracle.tip.adapter.file.outbound.FileIoInteractionSpec due to: Cannot set JCA WSDL Property. Error while setting JCA WSDL Property. Property setChunkSize is not defined for oracle.tip.adapter.file.outbound.FileIoInteractionSpec Please verify the spelling of the property. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    Please suggest a resolution to this. I am using Jdeveloper 11.1.1.7.0

    Thank Daniel for the reply.
    But what is the impact user messaging service has here.  Can it happen that my oracle.tip.adapter.file.outbound.FileIoInteractionSpec is corrupted?
    Thanks
    Santanu

  • Errors in Flat files while using BDC

    *Hey Experts,*
    *I have made a BDC program which uploads an excel file into the system.Check the coding below*
    *I tried to run the same data but i received the following error at the system  status.*
    *Excel file://c:\cannot be processed .on checking in details i received this*
    *Message no. UX893*
    *Diagnosis*
    *An error occurred while attempting to process Excel file FILE://C:\Users\Administrator\Desktop\jack abaper\.*
    *Check whether:*
    *the file exists*
    *you have authorization to process the file*
    *Excel is installed and can be run*
    *System Response*
    *Excel file FILE://C:\Users\Administrator\Desktop\jack abaper\ is not processed. The activity is terminated.*
    *Procedure*
    *When the error has been corrected, restart the program.*
    *is there a way for the program to check the exact cause of error,like for my case the same data i was uploading.*
    *if it could tell me which row of data in the file is bringing this error.Apart from that I am to run this program in background not foreground ,please note of that while forgering a solution.*
    *Does anyone have a solution for this,or a better way gladly accept?*
    *Thank you my fellow abapers*
    *all help is appreciated.*
    *regds*
    *Ja*
    *Below see program>>>*
    REPORT  z_uploadbdc NO STANDARD PAGE HEADING LINE-SIZE 255.
    TYPE-POOLS: truxs.
    SELECTION-SCREEN : BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
    PARAMETERS: p_file TYPE  rlgrap-filename OBLIGATORY DEFAULT 'C:\'.
    SELECTION-SCREEN : END OF BLOCK blk1.
    *&     Global Declarations
    TYPES: BEGIN OF t_datatab,
          col1(30)    TYPE c,
          col2(30)    TYPE c,
          col3(30)    TYPE c,
          END OF t_datatab.
    DATA: it_datatab TYPE STANDARD TABLE OF t_datatab,
          wa_datatab TYPE t_datatab.
    DATA: it_raw TYPE truxs_t_text_data.
    TYPES: BEGIN OF ty_material,
           matnr TYPE matnr,
           anzahl TYPE anzahl,
           eqtyp TYPE eqtyp,
           servon TYPE servon,
           serbis TYPE serbis,
           sernr TYPE serbis,
           END OF ty_material.
    DATA: it_material TYPE TABLE OF ty_material,
          wa_material TYPE ty_material,
          it_bdcdata TYPE TABLE OF bdcdata,
          wa_bdcdata TYPE bdcdata.
    Table for messages from call transaction.
    The table is automatically filled with messages from call transaction.
    DATA BEGIN OF messtab OCCURS 10.
            INCLUDE STRUCTURE bdcmsgcoll.
    DATA END OF messtab.
    DATA : WF_MESSAGE(100).
    REFRESH MESSTAB.
    *&   AT SELECTION SCREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          field_name = 'P_FILE'
        IMPORTING
          file_name  = p_file.
    *include bdcrecx1.
    *&   START-OF-SELECTION
    START-OF-SELECTION.
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
      I_FIELD_SEPERATOR          =
          i_line_header              = 'X'
          i_tab_raw_data             = it_raw
          i_filename                 = p_file
        TABLES
          i_tab_converted_data       = it_material
        EXCEPTIONS
          conversion_failed = 1
          OTHERS            = 2.
      IF sy-subrc NE  0.
        MESSAGE ID sy-msgid
              TYPE sy-msgty
              NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    *perform open_group.
      LOOP AT it_material INTO wa_material.
        PERFORM bdc_dynpro      USING 'SAPMIEQ0' '2000'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RISA0-SERNR(01)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      'BU'.
        PERFORM bdc_field       USING 'RISA0-MATNR'
                                      wa_material-matnr.
        PERFORM bdc_field       USING 'RISA0-ANZAHL'
                                      wa_material-anzahl.
        PERFORM bdc_field       USING 'EQUI-EQTYP'
                                      wa_material-eqtyp.
        PERFORM bdc_field       USING 'RISA0-SERVON'
                                      wa_material-servon.
        PERFORM bdc_field       USING 'RISA0-SERBIS'
                                      wa_material-serbis.
        PERFORM bdc_field       USING 'RISA0-SERNR(01)'
                                       wa_material-sernr.
    perform bdc_transaction using 'IQ04'.
        CALL TRANSACTION 'IQ04' USING it_bdcdata
                          MODE 'A' UPDATE 'S'
                          MESSAGES into messtab.
        REFRESH it_bdcdata.
    ENDLOOP.
    *&      Form  bdc_dynpro
          text
         -->PROGRAM    text
         -->DYNPRO     text
    FORM bdc_dynpro USING program dynpro.
      CLEAR wa_bdcdata.
      wa_bdcdata-program = program.
      wa_bdcdata-dynpro = dynpro.
      wa_bdcdata-dynbegin = 'X'.
      APPEND wa_bdcdata TO it_bdcdata.
    ENDFORM.                    "bdc_dynpro
    *&      Form  bdc_field
          text
         -->FNAM       text
         -->FVAL       text
    FORM bdc_field USING fnam fval.
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam = fnam.
      wa_bdcdata-fval = fval.
      APPEND wa_bdcdata TO it_bdcdata.
    ENDFORM.                    "bdc_field
    perform close_group.
    Edited by: JackAbaper on Feb 8, 2012 3:11 PM
    Edited by: JackAbaper on Feb 8, 2012 3:14 PM
    Edited by: JackAbaper on Feb 8, 2012 3:15 PM

    Hi ,
    This is what you can do.
    Upload the file from presentation server to the application server through CG3Z.
    Then you can fetch the file from Application server to your BDC  program (Which you want to run in background).
    Regards,
    Chandan.

  • Error in committing data while using dynamic attributes

    Hi,
    Module: Performance Management
    Page: Give Final Ratings: Main Appraiser
    Here, I have used dynamic attributes to show the competency name without segments.
    I have added this attribute through controller and i passed value to this attribute in the same ProcessRequest method.
    But, when the manager tries to complete the appraisal for his employee by pressing the continue button in the above mentioned page, the following exception is throwing.
    "This competence already exists within the assessment."
    Is this dynamic attribute will be the problem for this?
    can any one please tell me?
    Thanks in advance,
    SAN

    Hi,
    If you added the column from Extended Controller. It should be a transient attribute to the VO and I think it should not create any issues.
    Error "This competence already exists within the assessment." looks like from an FND Message , You can try to debug this issue by finding the FND Message Name corresponding to the error and search the Message Name in the seeded code.
    -Idris

  • Configuration for extensions filter while using Tomahawk 1.1.6

    Hello,
    I am using Sun RI 1.1 with tomahawk 1.1.6 and using facelets.
    I am stucked with following error:
    SEVERE: Error Rendering View[/pages/employees-calendar.xhtml]
    java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html
         at org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing(AddResourceFactory.java:358)...My web.xml content for filters are as follows:
    <filter>
        <filter-name>extensionsFilter</filter-name>
        <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
        <init-param>
             <description>Set the size limit for uploaded files.
                Format: 10 - 10 bytes
                        10k - 10 KB
                        10m - 10 MB
                        1g - 1 GB
            </description>
            <param-name>uploadMaxFileSize</param-name>
            <param-value>100m</param-value>
        </init-param>
        <init-param>
             <description>Set the threshold size - files
                    below this limit are stored in memory, files above
                    this limit are stored on disk.
                Format: 10 - 10 bytes
                        10k - 10 KB
                        10m - 10 MB
                        1g - 1 GB
            </description>
            <param-name>uploadThresholdSize</param-name>
            <param-value>100k</param-value>
        </init-param>
        <init-param>
              <description>Set the path where the intermediary files will be stored.</description>
         <param-name>uploadRepositoryPath</param-name>
         <param-value>/temp</param-value>
         </init-param>
    </filter>
    <filter-mapping>
         <filter-name>extensionsFilter</filter-name>
         <url-pattern>*.jsf</url-pattern>
    </filter-mapping>
    <filter-mapping>
         <filter-name>extensionsFilter</filter-name>
         <url-pattern>/faces/*</url-pattern>
    </filter-mapping>
    <servlet>
      <servlet-name>Faces Servlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>Please suggest, If I am missing any thing. I have tried many link from google but could not get any solution for this.

    Try mapping the filter by the servlet name, instead of my the URL.
        <filter-mapping>
            <filter-name>extensionsFilter</filter-name>
            <servlet-name>Faces Servlet</servlet-name>
        </filter-mapping>

Maybe you are looking for

  • Different between SSO using X.509 and Kerberos

    Dear Experts, When trying to decide which route to go for SSO X.509 certificate or Kerberos token for SAP Abap system only , I am a bit confused. These are the main steps for using X.509. All the documents I found only talk about installing Secure Lo

  • Migration Assistant/FireWire problems.... I'm not sure which

    I've searched through many of the posts on this subject and I've not found anything similar so I thought that I'd try posting the question. My lovely wife just bought me a new iMac for my birthday to replace my very old and very abused (also read...

  • Upgrade from 11.5.10.2 to 12.1.2

    Hi, Can you please suggest me good notes to upgrade with below: Current: Apps(11.5.10.2) on 32-bit, Red Hat Enterprise Linux Server release 5.4 (Tikanga) Database(10.2.0.2) 2 node RAC on 32 bit, Red Hat Enterprise Linux Server release 3. Would like t

  • Browser button

    Hi. I have a question about the browser key. Located at the 'Smart Buttons', on the left of my HP laptop on the keyboard. (HP G62-225NR) When I press it while I'm already in my browser, I get a weird search program. Can I configure this to google or

  • I can't get SPAM filtering to work

    I have yet to recieve a single message marked "JUNK MAIL" and still receiving lots of spam. I have "Scan email for junk mail" checked. Minimum junk mail score set for 23 hits. "Junk mail messages should be: " set to "Delivered" and "Attach subject ta