Generate CSR using API method??

Hi all ,
I have this piece of code below using JDK 1.3 and BouncyCastel Provider
//some other import ... i am using bouncyCastle Provider
import javax.crypto.Cipher;
import org.bouncycastle.jce.PKCS10CertificationRequest;
import org.bouncycastle.asn1.x509.X509Name;
public class test
public static void main(String []args) throws Exception
Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
KeyStore ks=KeyStore.getInstance("JKS");
ks.load(new FileInputStream("test.keystore"),"one1234".toCharArray());
Enumeration e = ks.aliases();
X509Certificate c=null;
while(e.hasMoreElements())
String alias = e.nextElement().toString();
if(ks.isKeyEntry(alias))
c = (X509Certificate) ks.getCertificate(alias);
break;
String subject = c.getSubjectDN().getName();
X509Name xname = new X509Name(subject);
PrivateKey priv = (PrivateKey) ks.getKey("mykey","one1234".toCharArray());
PublicKey pub = (PublicKey) c.getPublicKey();
PKCS10CertificationRequest csr = new PKCS10CertificationRequest("MD5WithRSA",xname, pub,null,priv);
byte buf[] = csr.getEncoded();
FileOutputStream os = new FileOutputStream("request.crt");
OutputStreamWriter wr = new OutputStreamWriter(os);
wr.write("-----BEGIN NEW CERTIFICATE REQUEST-----\n");
wr.write(new sun.misc.BASE64Encoder().encode(buf));
wr.write("\n-----END NEW CERTIFICATE REQUEST-----\n");
wr.flush();
The coding Was OKAY and ran successfully...
The Problem is i want to get the same result as if i generate a csr using KEYTOOL utility...
BUT somehow i got different result , is it due because of signature algorithm or encoding??
Please help me ....
Thanks....

Unfortunately, I don't believe this can be done conveniently using the JCE providers from Sun. The dname components are actually kept in a self-signed certificate that is bound to the alias for the key. The KeyStore class lets you do this using the KeyStore.setKeyEntry methods, and perhaps also the KeyStore.setCertificateEntry method (caveat: I haven't actually tested this).
The difficulty lies in the need to generate a certificate: there's no API for this. keytool evidently implements some custom method to generate a certificate. You can try something similar, but I suspect it would be quite painful.
Possibly less painful is to use the bouncycastle provider. It contains classes and methods to generate certificates. See http://www.bouncycastle.org/docs/docs1.5/index.html and in particular the certificate generators at http://www.bouncycastle.org/docs/docs1.5/org/bouncycastle/x509/package-summary.html

Similar Messages

  • Generate CSR using API problem??

    Hi all ,
    I have this piece of code below using JDK 1.3 and BouncyCastel Provider
    //some other import ... i am using bouncyCastle Provider
    import javax.crypto.Cipher;
    import org.bouncycastle.jce.PKCS10CertificationRequest;
    import org.bouncycastle.asn1.x509.X509Name;
    public class test
    public static void main(String []args) throws Exception
    Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
    KeyStore ks=KeyStore.getInstance("JKS");
    ks.load(new FileInputStream("test.keystore"),"one1234".toCharArray());
    Enumeration e = ks.aliases();
    X509Certificate c=null;
    while(e.hasMoreElements())
    String alias = e.nextElement().toString();
    if(ks.isKeyEntry(alias))
    c = (X509Certificate) ks.getCertificate(alias);
    break;
    String subject = c.getSubjectDN().getName();
    X509Name xname = new X509Name(subject);
    PrivateKey priv = (PrivateKey) ks.getKey("mykey","one1234".toCharArray());
    PublicKey pub = (PublicKey) c.getPublicKey();
    PKCS10CertificationRequest csr = new PKCS10CertificationRequest("MD5WithRSA",xname, pub,null,priv);
    byte buf[] = csr.getEncoded();
    FileOutputStream os = new FileOutputStream("request.crt");
    OutputStreamWriter wr = new OutputStreamWriter(os);
    wr.write("-----BEGIN NEW CERTIFICATE REQUEST-----\n");
    wr.write(new sun.misc.BASE64Encoder().encode(buf));
    wr.write("\n-----END NEW CERTIFICATE REQUEST-----\n");
    wr.flush();
    The coding Was OKAY and ran successfully...
    The Problem is i want to get the same result as if i generate a csr using KEYTOOL utility...
    BUT somehow i got different result , is it due because of signature algorithm or encoding??
    Please help me ....
    Thanks....
    God Bless..

    Hi,
    I think you problem is a kind of bug in STRUST.
    Here is the workaround, I use :
    Get the Verisign certificate on your Windows PC.
    Double click on the cer file, the certificate will be displayed.
    Click on "Certification path", you will see your certificate, the inermediate CA certificate and the root certificate.
    Double click on the Root CA certificate, click on "Details" then export it as Base 64 X.509 cer file.
    Do the same for the intermediate certificate anf for you certificate.
    Then with notepad concatenate the 3 files in one single file in this order :
    Your certificate,
    the intermediate certificate
    the root certificate.
    This will be a text file looking like
    BEGIN CERTIFICATE-----
    END CERTIFICATE-----
    BEGIN CERTIFICATE-----
    END CERTIFICATE-----
    BEGIN CERTIFICATE-----
    END CERTIFICATE-----
    Now try to import this new .cer file.
    It works for me !
    Good luck !
    Regards,
    Olivier

  • Datapump exp and imp using API method

    Good Day All,
    I want to know what is the best way of error handling of datapump export and Import using API. I need to implement in my current project as there lot of limitations and the only way to see the process worked is writing the code with error handling method using exceptions. I have seen some examples on the web but if there are practicle examples or good links with examples that will work sure way, I would like to know and explore. I have never used API method so I am not sure of it.
    Thanks a lot for your time.
    Maggie.

    I wrote the procedure with error handling but it does not out put any information of the statuses while kicking off the expdp process. I have put dbms_output.put_line as per oracle docs example but it doesnt display any messages, just kicks off and created dumpfiles. As a happy path its ok but I need to track if something goes wrong. I even stated set serveroutput on sqlplus. It doesnt even display if job started. Please help me where I made a mistake to display the status . Do I need to modify or add anything. Help!!
    CREATE OR REPLACE PROCEDURE SCHEMAS_EXPORT_TEST AS
    --Using Exception Handling During a Simple Schema Export
    --This Proceedure shows a simple schema export using the Data Pump API.
    --It extends to show how to use exception handling to catch the SUCCESS_WITH_INFO case,
    --and how to use the GET_STATUS procedure to retrieve additional information about errors.
    --If you want to get status up to the current point, but a handle has not yet been obtained,
    --you can use NULL for DBMS_DATAPUMP.GET_STATUS.http://docs.oracle.com/cd/B19306_01/server.102/b14215/dp_api.htm
    h1 number; -- Data Pump job handle
    l_handle number;
    ind NUMBER; -- Loop index
    spos NUMBER; -- String starting position
    slen NUMBER; -- String length for output
    percent_done NUMBER; -- Percentage of job complete
    job_state VARCHAR2(30); -- To keep track of job state
    sts ku$_Status; -- The status object returned by get_status
    le ku$_LogEntry; -- For WIP and error messages
    js ku$_JobStatus; -- The job status from get_status
    jd ku$_JobDesc; -- The job description from get_status
    BEGIN
    h1 := dbms_datapump.open (operation => 'EXPORT',job_mode => 'SCHEMA');
    dbms_datapump.add_file (handle => h1,filename => 'SCHEMA_BKP_%U.DMP',directory => 'BKP_SCHEMA_EXPIMP',filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_DUMP_FILE);
    dbms_datapump.add_file (handle => h1,directory => 'BKP_SCHEMA_EXPIMP',filename => 'SCHEMA_BKP_EX.log',filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
    ---- A metadata filter is used to specify the schema that will be exported.
    dbms_datapump.metadata_filter (handle => h1, name => 'SCHEMA_LIST',value => q'|'XXXXXXXXXX'|');
    dbms_datapump.set_parallel( handle => h1, degree => 4);
    -- Start the job. An exception will be returned if something is not set up
    -- properly.One possible exception that will be handled differently is the
    -- success_with_info exception. success_with_info means the job started
    -- successfully, but more information is available through get_status about
    -- conditions around the start_job that the user might want to be aware of.
    begin
    dbms_datapump.start_job (handle => h1);
    dbms_output.put_line('Data Pump job started successfully');
    exception
    when others then
    if sqlcode = dbms_datapump.success_with_info_num
    then
    dbms_output.put_line('Data Pump job started with info available:');
    dbms_datapump.get_status(h1,
    dbms_datapump.ku$_status_job_error,0,
    job_state,sts);
    if (bitand(sts.mask,dbms_datapump.ku$_status_job_error) != 0)
    then
    le := sts.error;
    if le is not null
    then
    ind := le.FIRST;
    while ind is not null loop
    dbms_output.put_line(le(ind).LogText);
    ind := le.NEXT(ind);
    end loop;
    end if;
    end if;
    else
    raise;
    end if;
    end;
    -- The export job should now be running. In the following loop, we will monitor the job until it completes.
    -- In the meantime, progress information is displayed.
    percent_done := 0;
    job_state := 'UNDEFINED';
    while (job_state != 'COMPLETED') and (job_state != 'STOPPED') loop
    dbms_datapump.get_status(h1,
    dbms_datapump.ku$_status_job_error +
    dbms_datapump.ku$_status_job_status +
    dbms_datapump.ku$_status_wip,-1,job_state,sts);
    js := sts.job_status;
    -- If the percentage done changed, display the new value.
    if js.percent_done != percent_done
    then
    dbms_output.put_line('*** Job percent done = ' ||to_char(js.percent_done));
    percent_done := js.percent_done;
    end if;
    -- Display any work-in-progress (WIP) or error messages that were received for
    -- the job.
    if (bitand(sts.mask,dbms_datapump.ku$_status_wip) != 0)
    then
    le := sts.wip;
    else
    if (bitand(sts.mask,dbms_datapump.ku$_status_job_error) != 0)
    then
    le := sts.error;
    else
    le := null;
    end if;
    end if;
    if le is not null
    then
    ind := le.FIRST;
    while ind is not null loop
    dbms_output.put_line(le(ind).LogText);
    ind := le.NEXT(ind);
    end loop;
    end if;
    end loop;
    -- Indicate that the job finished and detach from it.
    dbms_output.put_line('Job has completed');
    dbms_output.put_line('Final job state = ' || job_state);
    dbms_datapump.detach (handle => h1);
    -- Any exceptions that propagated to this point will be captured. The
    -- details will be retrieved from get_status and displayed.
    Exception
    when others then
    dbms_output.put_line('Exception in Data Pump job');
    dbms_datapump.get_status(h1,dbms_datapump.ku$_status_job_error,0, job_state,sts);
    if (bitand(sts.mask,dbms_datapump.ku$_status_job_error) != 0)
    then
    le := sts.error;
    if le is not null
    then
    ind := le.FIRST;
    while ind is not null loop
    spos := 1;
    slen := length(le(ind).LogText);
    if slen > 255
    then
    slen := 255;
    end if;
    while slen > 0 loop
    dbms_output.put_line(substr(le(ind).LogText,spos,slen));
    spos := spos + 255;
    slen := length(le(ind).LogText) + 1 - spos;
    end loop;
    ind := le.NEXT(ind);
    end loop;
    end if;
    end if;
    END SCHEMAS_EXPORT_TEST;

  • Generate CSR using SAPGENPSE

    Dear all,
    Our SSL connection will be expired and I was told to generate CSR. However I could only find SAPGENPSE. How to generate CSR using SAPGENPSE? What the file name will be?
    Additional info. It is for our external Webdispatcher.
    Please help.
    Regards,
    Agoes
    Message was edited by:
            Agoes Boedi Poerwanto

    Hi,
    I think you problem is a kind of bug in STRUST.
    Here is the workaround, I use :
    Get the Verisign certificate on your Windows PC.
    Double click on the cer file, the certificate will be displayed.
    Click on "Certification path", you will see your certificate, the inermediate CA certificate and the root certificate.
    Double click on the Root CA certificate, click on "Details" then export it as Base 64 X.509 cer file.
    Do the same for the intermediate certificate anf for you certificate.
    Then with notepad concatenate the 3 files in one single file in this order :
    Your certificate,
    the intermediate certificate
    the root certificate.
    This will be a text file looking like
    BEGIN CERTIFICATE-----
    END CERTIFICATE-----
    BEGIN CERTIFICATE-----
    END CERTIFICATE-----
    BEGIN CERTIFICATE-----
    END CERTIFICATE-----
    Now try to import this new .cer file.
    It works for me !
    Good luck !
    Regards,
    Olivier

  • Disable RightClick on PDF in Browser using API methods ?

    How to use adobe acrobat API method/events to capture function keydown effectively disabling rightclick menu in Reader in browser?
    Question: can anyone illustrate how to disable menu right click ? ive seen methods/events in the acrobat api that look to capture the rightclick keydown event but I dont know how to call/implement a function to pull this off.
    I read that one might use the notification AVAppRegisterForPageViewRightClicks and do nothing inside the callback procedure to disable entire right click operation inside a Pdf. Sounds good but how?
    The AVPageView has methods like AVPageViewKeyDownProc and that's registered using AVAppRegisterForPageViewKeyDown.
    I'm getting this from http://livedocs.adobe.com/acrobat_sdk/9/Acrobat9_HTMLHelp/API_References/Acrobat _API_Reference/AV_Layer/
    I found this on "How to Disable right click pop-up menu items" :
    http://forums.adobe.com/thread/441260
    but I can't follow the posters own resolution which is to "We only need to use the notification AVAppRegisterForPageViewRightClicks and do nothing inside the callback procedure to disable entire right click operation inside a Pdf."
    While that sound correct - how would someone implement this? Can anyone show examples ?

    Hi Dentaur,
    I actually posted the resolution at http://forums.adobe.com/thread/441260.  However, can't share the source code here as its proprietory for the company I work for.  On a high level I did the following to disable right clicks after opening a Pdf inside Acrobat via a plug-in.
    1.  Register a callback for the Right Click notification during plug-in initialization.
    2.  Simply return true from the callback.
    3.  Destroy the callback during plug-in destruction.

  • Invalid meta tag generated when using XHTML method

    Hi,
    I'm trying to generate an XHTML file using XSL and the XHTML output method. However, transformation results in adding the following XHTML-invalid meta tag (uppercase and non-closing) in the head tag:
    <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
    Is it a bug in the XDK or am I missing something? Transform is performed using the JXTransformer provided in 11g.
    Thanks in advance,
    Stephane
    input file:
    <?xml version='1.0' encoding='utf-8'?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xml:lang='en' lang='en' xmlns='http://www.w3.org/1999/xhtml'>
    <head>
         <title>Some title</title>
    </head>
    <body></body>
    </html>
    xsl file:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="2.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xhtml="http://www.w3.org/1999/xhtml">
         <xsl:output method="xhtml"
    doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
    <xsl:template match="*">
         <xsl:element name="{local-name()}" namespace="http://www.w3.org/1999/xhtml">
              <xsl:apply-templates />
         </xsl:element>
    </xsl:template>
    </xsl:stylesheet>
    output:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    *<META http-equiv="Content-Type" content="text/html; charset=UTF-8">*
    <title>Some title</title></head><body></body></html>

    For some reason when I use MapForce tool to generate my xslt mapping source, it is generating the following statement in the xsl file.
         <xsl:namespace-alias stylesheet-prefix="n" result-prefix="#default"/>
    So at the root element of XML file, it is replacing the character n with '#default' for some reason, I don;t know the purpose of this.
    As you suggested, I changed the name space, still I experienced same problem.
    It is now resolved after removing the above xsl statement from the xsl file before creating/uploading the relevant zip file into archives folder.
    It works fine now. Thanks for the clue.

  • Jxl -need help to solve error generated while using createWorkbook() method

    I need to copy a template excel file(template will hold the file name) to another new generated excel file (book.xls).
    And I was trying this, -
    FileInputStream fis = new FileInputStream(template);
    jxl.Workbook jwbook = Workbook.getWorkbook(fis);
    Sheet jsheet[] = jwbook.getSheets();
    int sheetNum = jwbook.getNumberOfSheets();
    FileOutputStream fos = new FileOutputStream(pathName + File.separator + "book.xls");
    WritableWorkbook outputWorkbook;
                outputWorkbook = Workbook.createWorkbook(fos, jwbook);error showing :-
    java.lang.NoSuchMethodError: common.Assert.verify(Z)V
         at jxl.biff.XFRecord.<init>(XFRecord.java:356)
         at jxl.write.biff.CellXFRecord.<init>(CellXFRecord.java:50)
         at jxl.write.WritableCellFormat.<init>(WritableCellFormat.java:87)
         at jxl.write.WritableWorkbook.<clinit>(WritableWorkbook.java:55)
         at jxl.Workbook.createWorkbook(Workbook.java:344)
         at jxl.Workbook.createWorkbook(Workbook.java:326)
         at custom.localopal.actions.TestExcel.processAction(TestExcel.java:581)
         at custom.localopal.actions.TestExcel.main(TestExcel.java:1373)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)Here,-
    template is a filename,
    pathname is "c://Test",
    'template' is also in the same path.
    Can any one please help me to identify the problem? What is the reason of the error and how it can be solved?

    It looks like the error is on the below line ;
    java.lang.NullPointerException
      at oracle.apps.ap.oie.audit.server.AuditReportLinesVORowImpl.isPersonalLine(AuditReportLinesVORowImpl.java:449)
    Please check what is the reason for the error.
    I am seeing many issues with VO substitution these days which is because the extended VORowImpl is not calling super for those attribiutes which is overridden in the stanard VORowImpl.
    Please have a read on the below blog and see whether that is applicable to your VO extension.
    Johny's Tips: OAF: Transient Attributes not getting populated in Extended VO
    If not, please attach the standard and the custom VO files
    Cheers
    AJ

  • How to generate CSR (certificate signing request) in PKCS#10 format

    Hi,
    First, I am a novice in security issues.
    Problem:
    I know how to generate CSR using PKCS#10 format with keytool. However I need to implement this functionality in my application. Unfortunately I can't find any docs describing this issue.
    Do anybody know about some API where I just pass data and it will generate CSR for me?
    Many Thanks,
    Miso

    Hi again,
    After a long research I am finally able to generate PKCS#10 cert. request files:
    public static void generatePKCS10() throws Exception {
            // generate PKCS10 certificate request
            KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA");
            String sigAlg = "MD5WithRSA";
            // generate private key - use java.util.SecureRandom for entropy
            keyGen.initialize(1024, new SecureRandom());
            KeyPair keypair = keyGen.generateKeyPair();
            PublicKey publicKey = keypair.getPublic();
            PrivateKey privateKey = keypair.getPrivate();
            PKCS10 pkcs10 = new PKCS10(publicKey);
            Signature signature = Signature.getInstance(sigAlg);
            signature.initSign(privateKey);
                 //common, orgUnit, org, locality, state, country
            X500Name x500Name = new X500Name(
                      "CName",               // CN
                      "OUnit",               // OU
                      "Organization",          // O
                      "Bratislava",          // L
                      "Slovakia",               // S
                      "SK");               // C
            pkcs10.encodeAndSign(new X500Signer(signature, x500Name));
            // PKCS10 request generated
            pkcs10.print(System.out);
    Problem 1:
    However, this generates only a request with X500 subject's name ("CN, OU, O, ..."). But I also want to specify other things like "Key Usage" (example: "Digital Signature, Key Encipherment, etc.") or "Generic IA5 String" (example: "Only for test purposes."). How to do that?
    Problem 2:
    I'm also having trouble to find javadoc for "sun.security" package. As you can see, I'm using "sun.security.pkcs.PKCS10" class for generating CSR in PKCS10 format, but can't find any javadoc for it.
    Many thanks,
    Miso

  • SSL Certificate CSR using SH1

    Is it possible to generate CSR using SH1 instead of md5 on Cisco 1841 for SSL VPN, because the provider that I try to use doesn't accept md5. Also tried to import there private key and got an error "Error: invalid PEM boundary" any help would be appreciated

    Well, I have run into the same issue. I'm trying to generate a CSR (certificate signing request) on a Cisco 2821 running IOS 12.4(15)T8 with a SHA signature because StartSSL does not accept CSR's with a MD5 signature anymore.
    According to me the 'hash sha1' command within the crypto pki trustpoint should do the trick, but apparently not. The CSR that is generated is still not accepted by StartSLL claiming it is still signed with a MD5 hash.
    So: How to generate a CSR with a SHA signature?

  • How can i pass array as argument in magento api method calling using sudzc API in iphone Native APP

    0down votefavorite
    I am implementing magento standard api method in native iphone app. I use webservice generated by sudzc. To call method I use:
    [service call:self action:@selector(callHandler:) sessionId:@" " resourcePath:@" " args:@""];
    When I used methods e.g. cart.info or product.info in which I have to pass one parameter; it gives valid response. But when I used method e.g. cart_product.add in which I have to pass an argument as value of array it gives error
    SQLSTATE[42000]: Syntax error or access violation:
        1064 You have an error in your SQL syntax;
        check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
    I have tested in SOAP UI also. There also it gives me same error. But same method works in PHP file. Even I tried by creating same soap request which I created using JavaScript but still it doesn't work.
    Can anyone help me to pass array as a parameter using sudzc api to call magento web services?

    There is an error in your SQL.

  • How to generate all the links of the java api methods

    Hi all,
    I noticed from my docs that the JAVA API methods are not linked. They are just static text. How can i link all the java api methods to a root url examble: java.sun.com/j2se/docs/javax/JFrame#pack()
    java.sun.com/j2se/docs/javax/JFrame#setVisible()
    java.sun.com/j2se/docs/java/sql/ResultSet#executeQuery()
    and so on.
    Thank you in advance.

    It sounds like you'd like to link to our docs on java.sun.com.
    You can do this using -link or -linkoffline
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/javadoc.html#link
    Start by reading the section "Choosing between -linkoffline and -link"
    Basically, try this option first:
    -link http://java.sun.com/j2se/1.4/docs/api
    If this fails (because your shell cannot access java.sun.com),
    then copy package-list from java.sun.com to your current directory,
    then use this option:
    -linkoffline http://java.sun.com/j2se/1.4/docs/api .
    Notice that the second argument is a dot "." to indicate
    that package-list is in the current directory.
    -Doug Kramer
    Javadoc team

  • Generate or Modify Interfaces using API?

    We will be distributing pre-configuered ODI packages along with our product which maps our OLTP schema to a typical reporting target schema. Requirement is to tweak the interfaces as the customer may want a subset of target tables or only few columns from certain target tables. we would like to have this done using API rather than using designer interface... Is there a way to achieve this?

    Hi,
    I believe that you didn't understand my point...
    Yes, at development time the snp_col_pop will work but it won't work after a scenario be generated and worse, this solution only works to a Development Work Repository (DWR).
    Don't you plan to have a production with a Execution Work Repository (EWR) on it? If yes, how will you manage this once there is no such table like snp_col_pop in a EWR?
    From my point of view, unless I'm really missing something about the process, the problem still persists once you can't generate scenario that read the excel file and then make your interface dynamic.
    And worse, you're updating the DWR in execution time... that is very dangerous.
    But if works for you... good luck! :)
    Cezar Santos
    http://odiexperts.com
    Edited by: Cezar Santos - www.odiexperts.com on 12/04/2010 01:30

  • To generate PDF using BI APIs and loadjava utility

    Hi All,
    I am trying to generate PDF using BI APIs(FOProcessor etc).
    I have generated XML data through the PL/SQl procedure and storing it in a file. This file is loacted in database tier.
    The APIs is used through a simple java program which is application tier. To test the process, I had to manually provide the XML file to the java class in order to generate PDF and it does generate.
    Now the issue is I need to load the java class to the database so that everything gets automated(loadjava utlility).
    when i try to do it, it give no class found error.
    Do I need to load the referenced classes in the java file , that is, FOProcessor,RTFProcessor,FOUtility,jdbc.driver.OracleDriver as well?
    If the above is not possible, is it possible to reference a file in database tier from application tier so that i can use the XML file as input the java class in application tier.
    thanks,
    Srik

    The only reason I am responding to this post is because the poster sent me a request through the forum message system asking for my help.
    Although I did populate PDFs with FDF data generated by web forms a year or so ago, I have since abandoned that kind of solution. It was a big headache. I found it far more stable and flexible to use html, php and css to populate forms that are almost as nice looking as PDFs.
    So my advice is, if you can possibly avoid going the FDF/PDF route, you will be better off.

  • How to use  Aggregations Method generated by WIZARD

    Hi All,
              I used ABAP wizard to develop I report.
    This wizard generated one class and method as below
      zcl_bt_alv_template=>factory(
                     exporting  im_syrepid = sy-repid
                                im_lheader = gv_title
                                im_allowls = abap_true  " Allow layout save
                     importing  ex_alvo    = r_alv_template
                     changing   ch_datatab = it_efficiency ).
    Inside this Factory Method there is one method for aggregations.
      ex_alvo->r_aggregations = ex_alvo->r_table->get_aggregations( ).
    How to use this Method for getting aggregations for some fields.
    Thanks,
    Prasad.

    Hi Patel,
                   I am getting DUMP for this.
    Its saying Access via 'NULL' object reference not possible.
    Patel when I am double clicking the 
    aggregation = if_salv_c_aggregation=>total
    This if_salv_c_aggregation is not having any methods.
    So may be the dump is coming.
    The dump is
    You attempted to use a 'NULL' object reference (points to 'nothing')
    access a component (variable: "R_AGGREGATIONS").
    Thanks,
    Prasad.
    Edited by: Dheeru Prasad on Aug 6, 2009 3:36 PM
    Edited by: Dheeru Prasad on Aug 6, 2009 3:39 PM
    Edited by: Dheeru Prasad on Aug 6, 2009 3:40 PM

  • Integration Methods - Oracle Projects with Primavera using API

    Hi,
    We are trying to do manual integration in between Oracle Projects with Primavera using API, if some one can able to help us on the process and procedure that would be really helpful....
    Thanks
    Rgds,
    Vijay
    [email protected]

    Hi,
    The Primavera intergration works with the "Standard Intergration" of Oracle 11i & R12.1 with the version of P6, this is the statement was in by the market experts. Even I have not worked on this intergration part of primavera with Oracle. still, I can provide you some search engine links, which could help you in http://www.projectp.com/products/op3.php ; http://www.projectedconsulting.com/index.php/community/blog/2010/04/primavera-and-oracle-projects-integration/
    Lavanya

Maybe you are looking for

  • BW upgrade - Inactive Cubes / Objects

    Hi , We are upgrading from BW3.5 to BI7.3. One of the pre-upgrade requirement is : All InfoCubes should be active -->  Execute ABAP RSUPGRCHECK to locate any inactive InfoCubes. See SAP note 449160. There are some multiproviders in our development en

  • I can't successfully get a new iMac to connect to the school server, I can't successfully get a new iMac to connect to the school server

    How can I connect my mac to the school server?  It doesn't seem to "see it"

  • Transfer of games to iPod Classic

    I previously had 5th Gen 80gb but have upgraded to a 160gb - only issue is that myt games esp Bejewelled have not transferred although in the itunes store it does say that the game is compatible with the classic - anyone know how to get the games tra

  • Popup in NetworkManager

    Hello all, Sorry about bothering you with this simple matter but my search for this problem on Google hasn't yet been successful. I've been using a dongle to connect my laptop to the Internet for a long time and it works fine. However, yesterday I ac

  • Iphoto Library in Finder

    For one reazon when I installed Iphoto 2008 with Ilife I deleted the iphoto library from the finder. so when I am trying to download a picture to an Email of course I can't find any picture to transfer. Can somebody help me with this? Also i tried to