Invalid Keystore Format error

we need to configure an SSO from SAP portal and a third party website by passing encrypted userid as url parameters.
To configure the SSO I have received the public key of the third party and able to access it from server location. Now I have to access priavte key of the SAP Portal certificate and sign the UserId and pass it as url parameter. I have gone through many blogs and written code as below which is giving Invalid Keystore Format error.
My question is
1. What should be passed to FileInputStream?
As of now we are passing the .cer file which is stored as part of project.
Below code is throwing error at ks.load() method.
String fielPath1 = request.getPublicResourcePath()+"/SAPLogonTicketKeypair-cert1.cer";
FileInputStream ksfis = new FileInputStream(fielPath1);
KeyStore ks = KeyStore.getInstance("JKS");
ks.load(null, sPass.toCharArray());
BufferedInputStream ksbufin = new BufferedInputStream(ksfis);
ks.load(ksbufin, sPass.toCharArray());
PrivateKey priv = (PrivateKey) ks.getKey(alias, kPass.toCharArray());
Error is:
Invalid keystore formatsun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:633)sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38)java.security.KeyStore.load(KeyStore.java:1185)am_sso_apc.doContent(am_sso_apc.java:132)com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:213)
Please let me know how to pass the filepath to extract the priavte key .
Regards,
Satish

I found the solution. As follows:
keytool -list -keytool keytoolfile -storetype jceks

Similar Messages

  • Ava.io.IOException: Invalid keystore format

    Hi;
    I am getting the following error while launching my applet through browser.
    I have modified my java version from 1.4.2_08 to 1.5.0.10.
    java.io.IOException: Invalid keystore format
         at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)
         at java.security.KeyStore.load(Unknown Source)
         at com.sun.deploy.security.DeploySigningCertStore$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.deploy.security.DeploySigningCertStore.load(Unknown Source)
         at com.sun.deploy.security.DeploySigningCertStore.load(Unknown Source)
         at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
         at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
         at sun.plugin.security.PluginClassLoader.getPermissions(Unknown Source)
         at java.security.SecureClassLoader.getProtectionDomain(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.access$100(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)Please help me.what should be a problem for that.

    I think that I am on to something. I deleted all the files in this directory:
    C:\Users\<username>\AppData\LocalLow\Sun\Java\Deployment\security
    This seems to resolve the problem with the invalid keystore (is a new one created?). Do not know yet if it has some unwanted side effects, but jeg jvm seems to start normally.

  • Invalid keystore format

    I have a Java applet (called PALS) that was developed with version 1.5 update 7. It has been signed with a digital certificate from Thawte. Recently a customer had her Windows XP machine re-imaged, and that image comes with the Java 6 JRE. Others have had this done and were still able to run my applet, but she gets an error message that complains about an "invalid keystore format."
    I tried going into the Java Console and removing the user's PALS certificate, but it also complains about the keystore format. I then tried just removing Java 6 and installing Java 5, hoping that that would would clear things up, but she gets the same error.
    Am I correct that when a user runs my applet the certificate is read from the JAR file and placed in a keystore on their machine? If the keystore has the wrong format, can I just delete it, and where is that file? I thought it was supposed to have the name .keystore but I can't find that anywhere.

    That was where I was expecting to find it, but it's not there. On a machine that hasn't been corrupted like my customer's, I can open up the Java Control Panel, go to the Security tab, click on certificates, and see the certificate that was used to sign the JAR file, but I don't have a .keystore file.
    If it hasn't saved it in a file, where did it put it?
    Thanks for your reply.

  • Default SSL context init failed: Invalid keystore format

    Hi, I can't connect to my ldap server. The problem is ssl. I'm trying to do this:
    import java.io.IOException;
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.NamingException;
    import javax.naming.directory.DirContext;
    import javax.naming.directory.InitialDirContext;
    import javax.naming.ldap.LdapContext;
    public class TestAuthentifikation {
        public static void main (String [] args) throws IOException  {
               try {
                    Hashtable env = new Hashtable();
                    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
                    env.put(Context.PROVIDER_URL, "ldaps://subdomain.dyndns.org:636/"); 
                    env.put(Context.SECURITY_PRINCIPAL, "uid=user,ou=users,dc=subdomain,dc=dyndns,dc=org");
                    env.put(Context.SECURITY_CREDENTIALS, "passwd");
                    env.put(Context.SECURITY_AUTHENTICATION, "simple");
                    env.put(Context.SECURITY_PROTOCOL, "ssl");
                    java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
                    System.setProperty("javax.net.ssl.keyStore",  "/usr/lib/j2se/1.4/jre/lib/security/cacerts");
                    System.setProperty("javax.net.ssl.trustStore","/usr/lib/j2se/1.4/jre/lib/security/cacerts");
                    env.put(LdapContext.CONTROL_FACTORIES, "com.sun.jndi.ldap.ControlFactory");
                    DirContext ctx = new InitialDirContext(env);
                    //use ctx....
                    // Close the context when we're done
                    ctx.close();
                  catch(NamingException ne) {
                    System.err.println(ne);
                    ne.printStackTrace();
    }The exception is this:
    javax.naming.CommunicationException: subdomain.dyndns.org:636 [Root exception is java.net.SocketException: Default SSL context init failed: Invalid keystore format]
            at com.sun.jndi.ldap.Connection.<init>(Connection.java:194)
            at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:119)
            at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1668)
            at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2599)
            at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:290)On the server I have created this ldap_crt.pem file:
    openssl req -x509 -days 3650 -newkey rsa:2048 -nodes -keyout ldap_key.pem -keyform PEM -out ldap_crt.pem -outform PEMwhich sits on the clients /etc/ssl/certs directory. Like this I can connect with a ldap browser to the server.
    I should do something like this:
    keytool -import -alias AUTH_CA -file rootcert.crt -keystore /usr/lib/j2se/1.4/jre/lib/security/cacertsHow do I get this rootcert.crt file?
    I did this and changed the keystore from cacerts to mycacerts in the java class file:
    sudo keytool -import -alias AUTH_CA -file /etc/ssl/certs/ldap_crt.pem -keystore /usr/lib/j2se/1.4/jre/lib/security/mycacertsThen I get this:
    javax.naming.CommunicationException: simple bind failed: subdomain.dyndns.org:636 [Root exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: *No trusted certificate found*]
            at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:198)
            at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2640)
            at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:290)
            at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
            at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
            at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
    Edited by: borobudur on May 18, 2008 7:09 AM

    Just a permission problem! Take care that your process can write on the keystore/truststore.

  • Got 'Invalid keystore format' when trying to set up an SSL connection

    Hello,
    On Windows XP, JDK1.5_13:
    I build a library module that can create an https connection supplying a certificate in a truststore. Used Apaches HttpClient 3.1 and the httpclient contrib library. To test this I used Tomcat, enabled SSL and added a keystore with certificate. I used a browser with the https url to get the certificate, stored it trusted in a keystore and tested the library with that keystore. This worked fine. The keystore was loaded and the connection established (even without supplying the keystore password).
    Now I moved the library as is to a (RedHat) Linux machine, with JDK1.5_01. When I run the same test on this machine, I got the following stack trace:
    java.io.IOException: Invalid keystore format
    at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:632)
    at java.security.KeyStore.load(KeyStore.java:1150)
    at org.apache.commons.httpclient.contrib.ssl.AuthSSLProtocolSocketFactory.createKeyStore(AuthSSLProtocolSocketFactory.java:222)
    at org.apache.commons.httpclient.contrib.ssl.AuthSSLProtocolSocketFactory.createSSLContext(AuthSSLProtocolSocketFactory.java:292)
    at org.apache.commons.httpclient.contrib.ssl.AuthSSLProtocolSocketFactory.getSSLContext(AuthSSLProtocolSocketFactory.java:331)
    at org.apache.commons.httpclient.contrib.ssl.AuthSSLProtocolSocketFactory.createSocket(AuthSSLProtocolSocketFactory.java:368)
    at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    I dug up the JavaKeyStore.engineLoad source and found that it trips over the next piece of code, where stream is the InputStream for the keystore file and password is the password for the keystore file.
         if (password != null) {
              md = getPreKeyedHash(password);
              dis = new DataInputStream(new DigestInputStream(stream, md));
         } else {
              dis = new DataInputStream(stream);
         // Body format: see store method
         int xMagic = dis.readInt();
         int xVersion = dis.readInt();
         if (xMagic!=0xfeedfeed ||
              (xVersion!=0x01 && xVersion!=0x02)) {
              throw new IOException("Invalid keystore format");
    Tried to use JDK1.5_15 on Linux machine, but got the same result.
    Can anyone tell me why it works on a windows machine, and not on a linux machine and/or what I can do to get it working?
    Regards,
    Frank

    I can only guess that the keystore file was corrupted when you copied it onto the Linux system. Check the first 8 bytes of the keystore file with a hex editor or viewer. They should be (in hex) fe ed fe ed 00 00 00 0z, where z is either 1 or 2.
    In Linux, you can use the od command, e.g. od -t x1 keystorefile | head -1 should display the first 16 bytes of the file.

  • Java.io.IOException: Invalid keystore format

    Getting this invalid keystore format when trying to enter a secure website that run java. Tried to re-install several times and several versions of JRE... NtWebTellerApplet.
    This is running on a Vista Ultimate x64 with Q6600 and 8 gigs of RAM. Even tried to get the support on that site to remote help.. No luck in that either.
    ava.io.IOException: Invalid keystore format
         at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)
         at sun.security.provider.JavaKeyStore$JKS.engineLoad(Unknown Source)
         at java.security.KeyStore.load(Unknown Source)
         at com.sun.deploy.security.DeploySigningCertStore$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.deploy.security.DeploySigningCertStore.loadCertStore(Unknown Source)
         at com.sun.deploy.security.DeploySigningCertStore.load(Unknown Source)
         at com.sun.deploy.security.DeploySigningCertStore.load(Unknown Source)
         at com.sun.deploy.security.ImmutableCertStore.load(Unknown Source)
         at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
         at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
         at sun.plugin.security.PluginClassLoader.getPermissions(Unknown Source)
         at java.security.SecureClassLoader.getProtectionDomain(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.access$000(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    I think that I am on to something. I deleted all the files in this directory:
    C:\Users\<username>\AppData\LocalLow\Sun\Java\Deployment\security
    This seems to resolve the problem with the invalid keystore (is a new one created?). Do not know yet if it has some unwanted side effects, but jeg jvm seems to start normally.

  • "Invalid Keystore Format" with Java Web Start

    I got a user with a "invalid keystore format" problem He's running Windows XP and it happens when our java webstart application is starting up. He had a mix of java 5 and java 6.
    We uninstalled all his javas and deleted his c:\program files\java\jre6\lib\security\cacerts file as suggest by my company's support people and reinstalled java 6 U 22 and he still has the problem.
    The other users don't have a problem.
    How do we get our java web start application on work for him? It a java application and not a java applet.
    He got a new Dell laptop a couple of months ago and it has never worked for him. That model of laptop works for other users.

    the jar containing the native lib (win32com.dll) needed to be under the <nativelib> tag in the jnlp rather than <jar> .. duh!
    fixing that solved the problem :)

  • Oracleasm lib failed to load with "Invalid module format" error

    Hi,
    I'm tring to install the oracleasm lib onto our hardened Redhat EL5 server
    I've download the oracleasm rpm from this page http://www.oracle.com/technology/software/tech/linux/asmlib/rhel5.html.
    We're using Redhat 5 U 2
    [root@PG673 modules]# uname -rm
    2.6.18-92.el5 x86_64
    [root@PG673 modules]#
    The package I downloaded is an exact match with our kernel version
    [root@PG673 modules]# rpm -qa | grep asm
    oracleasm-2.6.18-92.el5-2.0.5-1.el5
    oracleasm-support-2.1.3-1.el5
    oracleasm-support-2.1.3-1.el5
    oracleasm-2.6.18-92.el5-2.0.5-1.el5
    oracleasmlib-2.0.4-1.el5
    oracleasmlib-2.0.4-1.el5
    [root@PG673 modules]#
    RPM installation went well, but when we run the /etc/init.d/oracleasm configure command, we hit the following error
    [root@PG673 other]# /etc/init.d/oracleasm configure
    /etc/init.d/oracleasm: line 207: /usr/sbin/oracleasm: cannot execute binary file
    Later we found out that the oracleasm module haven't been loaded, so we try to load it manually, but we hit the "Invalid module format" error.
    [root@PG673 modules]# modprobe -l | grep asm
    /lib/modules/2.6.18-92.el5/kernel/drivers/addon/oracleasm/oracleasm.ko
    [root@PG673 modules]# modprobe oracleasm
    FATAL: Error inserting oracleasm (/lib/modules/2.6.18-92.el5/kernel/drivers/addon/oracleasm/oracleasm.ko): Invalid module format
    [root@PG673 modules]#
    As I know this error could happen if the driver version is not match with the system kernel version.
    The problem is we're already using an exact match version of driver with our system, I can't think of what to do next in order to proceed the installation.
    Really appreciate if someone could point me a direction.
    Thanks
    Mike

    Hi Mike,
    something looks a bit strange for me. On my OEL 5.4 x64 system i have just the following 3 packages:
    $ rpm -qa | grep asm
    oracleasm-2.6.18-164.el5-2.0.5-1.el5
    oracleasm-support-2.1.3-1.el5
    oracleasmlib-2.0.4-1.el5 Your packages should be I think the following:
    http://oss.oracle.com/projects/oracleasm-support/dist/files/RPMS/rhel5/amd64/2.1.3/oracleasm-support-2.1.3-1.el5.x86_64.rpm
    http://otn.oracle.com/software/tech/linux/asmlib/files/RPMS/rhel5/amd64/2.0.4/oracleasmlib-2.0.4-1.el5.x86_64.rpm
    http://oss.oracle.com/projects/oracleasm/dist/files/RPMS/rhel5/amd64/2.0.5/2.6.18-92.el5/oracleasm-2.6.18-92.el5-2.0.5-1.el5.x86_64.rpm
    Uninstall all asm packages and retry with just those three.
    Good luck!
    Cheers,
    David
    OCP 9i / 10g
    http://www.oratoolkit.ch/knowledge/howto/installation/otn.php

  • Invalid no format error

    whenever i try to execute this statement it gives this error msg
    Invalid no format
    select to_char(salary,'$10,000') from emp;desc of table is
    Name     Type         Nullable Default Comments
    EMPNO    NUMBER(4)                             
    NAME     VARCHAR2(10) Y                        
    SALARY   NUMBER(7,2)  Y                        
    JOB      VARCHAR2(10) Y                        
    HIREDATE DATE         Y                        
    COMM     NUMBER(7,2)  Y                        
    DEPTNO   NUMBER(4)    Y                        

    Do you want something like this ?
    SQL> SELECT TO_CHAR(sal,'$9,999,99') FROM emp;
    TO_CHAR(SA
        $50,00
        $28,50
        $24,50
        $29,75
        $30,00
        $30,00
         $8,00
        $16,00
        $12,50
        $12,50
        $15,00
    TO_CHAR(SA
        $11,00
         $9,50
        $13,00
    14 rows selected.
    SQL> http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/sql_elements004.htm#BABIGFBA
    The above link will give you the complete information about number format models.
    URL added: Saubhik on Nov 23, 2010 1:20 PM

  • Invalid data format error for CLOB

    I am trying to migrate a piece of code from WLS 8.1.2 to WLS 8.1.5.
    WLS 8.1.2 has ojdbc14.jar with version "Oracle JDBC Driver version - 9.0.2.0.0"
    WLS 8.1.5 has ojdbc14.jar with version "Oracle JDBC Driver version - 10.1.0.4.0"
    In the older version, I am storing an encrypted string value in a clob and saving in the db.
    When I try the same in the new code, it displays an error that the data is not of the proper format.
    If I read any data entered using the older application, in the new one, it is still valid.
    But, if I enter a new value using WLS 8.1.5, only those are invalid.
    I even tried deploying the application with the old and new ojdbc14.jar files with it. In either case, it still gives an error. If I use the later version of ojdbc14.jar, the method getAsciiStream() is deprecated.
    How can I make my code independent of the version of ojdbc14.jar and store and read the clob?

    Rohit B wrote:
    I am trying to migrate a piece of code from WLS 8.1.2 to WLS 8.1.5.
    WLS 8.1.2 has ojdbc14.jar with version "Oracle JDBC Driver version - 9.0.2.0.0"
    WLS 8.1.5 has ojdbc14.jar with version "Oracle JDBC Driver version - 10.1.0.4.0"
    In the older version, I am storing an encrypted string value in a clob and saving in the db.
    When I try the same in the new code, it displays an error that the data is not of the proper format.
    If I read any data entered using the older application, in the new one, it is still valid.
    But, if I enter a new value using WLS 8.1.5, only those are invalid.
    I even tried deploying the application with the old and new ojdbc14.jar files with it. In either case, it still gives an error. If I use the later version of ojdbc14.jar, the method getAsciiStream() is deprecated.
    How can I make my code independent of the version of ojdbc14.jar and store and read the clob?Hi. You are suffering with the evolution of Oracle's driver. If you can make a standalone
    program that contains some data, inserts it and extracts it an compares it and proves
    the bug, we can open a case with Oracle. In general you want to use their latest driver,
    but if you can't keep up with their bugs/fixes, you can always keep using the same version
    of the driver everywhere. The way to do that is not to put the driver in you packages,
    but simply to keep the version you want in the weblogic installation's server\lib
    directory (ojdbc14.jar)
    Joe

  • Micrologix 1400 Ethernet/IP invalid tag format error

    I am unable to get the Micrologix 1400 to communicate via Ethernet/IP using register address as tag name, error that appears in the VI is:
    EthernetIP Tag Read BOOL.vi;
    Details: The tag name is not correctly formatted
    Compact Logix PLC works correctly with specified tag names programmed with RSLogix 5000.
    Is there a specific format that I need to use for the Micrologix 1400?

    Images attached.  Tried various formats of the address as well, only testing with digital input 0.  
    Thanks
    Attachments:
    Front_panel.JPG ‏53 KB
    Block_diagram.JPG ‏204 KB
    addressing_details.JPG ‏73 KB

  • Invalid Alias Format : Table_name.Column_name required error

    Hi,
    Below is the query I am using in one of my columns in a report. The ELSE part is working fine. but as soon as I put in the first 2 WHEN conditions, it gives me the invalid alias format error. tried changing the column names,single quotes on numbers, but error does not seem to go.
    Please help.
    Thanks,
    Dan
    CASE
    WHEN FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR} AND "Quarter"."ACCOUNTING_PERIOD" = @{PERIOD}) IS NULL THEN FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR}-1 AND "Quarter"."ACCOUNTING_PERIOD" = 12)
    WHEN FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR}-1 AND "Quarter"."ACCOUNTING_PERIOD" = 12) IS NULL THEN FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR} AND "Quarter"."ACCOUNTING_PERIOD" = @{PERIOD})
    ELSE
    FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR} AND "Quarter"."ACCOUNTING_PERIOD" = @{PERIOD}) - FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR}-1 AND "Quarter"."ACCOUNTING_PERIOD" = 12)
    END
    Edited by: Danny on Jun 4, 2013 12:44 PM
    Edited by: Danny on Jun 4, 2013 12:44 PM

    NO luck :(
    CASE
    WHEN FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR} AND "Quarter"."ACCOUNTING_PERIOD" = '@{PERIOD}') IS NULL THEN FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR}-1 AND "Quarter"."ACCOUNTING_PERIOD" = '12')
    WHEN FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR}-1 AND "Quarter"."ACCOUNTING_PERIOD" = '12') IS NULL THEN FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR} AND "Quarter"."ACCOUNTING_PERIOD" = '@{PERIOD}')
    ELSE
    FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR} AND "Quarter"."ACCOUNTING_PERIOD" = '@{PERIOD}') - FILTER("Fact - Investment"."FTI_FAIR_VALUE_AMT" USING "Quarter"."FISCAL_YEAR" = @{YEAR}-1 AND "Quarter"."ACCOUNTING_PERIOD" = '12')
    END
    Can I try making null to 0 by doing IFNULL(measure,0). IN this case how do I do it since measure column is being generated at runtime with filter function like above.
    Edited by: Danny on Jun 4, 2013 1:11 PM

  • Invalid archive file: invalid manifest format

    I am getting this” Failed in uploading archive. Invalid archive file: invalid manifest format” error at time of uploading the ear file in oc4j 10.1.3.1.
    Plz can any one suggest what could be wrong??

    which version of oc4j is yours?

  • Vivado 2013.4 ERROR: [IP_Flow 19-395] Problem validating against XML schema: Invalid value format for this type spirit:order

    Hello,
    I just downloaded and installed Vivado 2013.4 on my Xubuntu 12.04 machine. But when I try to add IP from the IP catalog, as in the ug937 Lab1 step2, it fails with obscure error messages (see below).
    Here's basically what I did:
    -In the Flow Navigator, i select the IP Catalog button.
    -In the search field of the IP Catalog, I type DDS.
    -then I double-click the DDS Compiler and my error occure.
    Please Help,
    Jerome.
    [HDL 9-1061] Parsing VHDL file "/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/sinegen_demo.vhd" into library work ["/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/sinegen_demo.vhd":1]
    Analysis Results[IP_Flow 19-3378] Failed to create IP instance 'dds_compiler_0'. Error saving IP file.
    [IP_Flow 19-193] Failed to save BOM file '/home/jmassol/.Xil/Vivado-2683-ubuntu/coregen/dds_compiler_0/dds_compiler_0.xml'.
    [IP_Flow 19-193] Failed to save BOM file '/home/jmassol/.Xil/Vivado-2683-ubuntu/coregen/dds_compiler_0/dds_compiler_0.xml'.
    [HDL 9-1061] Parsing VHDL file "/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/sinegen.vhd" into library work ["/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/sinegen.vhd":1]
    [IP_Flow 19-194] Failed to save IP instance 'dds_compiler_0'.
    set_property target_language Verilog [current_project]
    [IP_Flow 19-193] Failed to save BOM file '/home/jmassol/.Xil/Vivado-2683-ubuntu/coregen/dds_compiler_0/dds_compiler_0.xml'.
    [IP_Flow 19-193] Failed to save BOM file '/home/jmassol/.Xil/Vivado-2683-ubuntu/coregen/dds_compiler_0/dds_compiler_0.xml'.
    [IP_Flow 19-395] Problem validating against XML schema: Invalid value format for this type spirit:order
    [IP_Flow 19-194] Failed to save IP instance 'dds_compiler_0'.
    [IP_Flow 19-395] Problem validating against XML schema: Invalid value format for this type spirit:order
    sources_1[IP_Flow 19-194] Failed to save IP instance 'dds_compiler_0'.
    [HDL 9-1061] Parsing VHDL file "/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/sinegen_demo.vhd" into library work ["/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/sinegen_demo.vhd":1]
    [IP_Flow 19-194] Failed to save IP instance 'dds_compiler_0'.
    [IP_Flow 19-194] Failed to save IP instance 'dds_compiler_0'.
    update_compile_order -fileset sim_1
    [IP_Flow 19-193] Failed to save BOM file '/home/jmassol/.Xil/Vivado-2683-ubuntu/coregen/dds_compiler_0/dds_compiler_0.xml'.
    [HDL 9-1061] Parsing VHDL file "/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/fsm.vhd" into library work ["/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/fsm.vhd":1]
    [IP_Flow 19-3378] Failed to create IP instance 'dds_compiler_0'. Error saving IP file.
    [IP_Flow 19-395] Problem validating against XML schema: Invalid value format for this type spirit:order
    [IP_Flow 19-3378] Failed to create IP instance 'dds_compiler_0'. Error saving IP file.
    [IP_Flow 19-395] Problem validating against XML schema: Invalid value format for this type spirit:order
    [HDL 9-1061] Parsing VHDL file "/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/fsm.vhd" into library work ["/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/fsm.vhd":1]
    [IP_Flow 19-395] Problem validating against XML schema: Invalid value format for this type spirit:order
    [IP_Flow 19-3378] Failed to create IP instance 'dds_compiler_0'. Error saving IP file.
    [HDL 9-1654] Analyzing Verilog file "/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sim/testbench.v" into library work ["/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sim/testbench.v":1]
    [IP_Flow 19-395] Problem validating against XML schema: Invalid value format for this type spirit:order
    [HDL 9-1061] Parsing VHDL file "/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/debounce.vhd" into library work ["/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/debounce.vhd":1]
    [IP_Flow 19-193] Failed to save BOM file '/home/jmassol/.Xil/Vivado-2683-ubuntu/coregen/dds_compiler_0/dds_compiler_0.xml'.
    [IP_Flow 19-2313] Loaded Vivado IP repository '/opt/Xilinx/Vivado/2013.4/data/ip'.
    [IP_Flow 19-395] Problem validating against XML schema: Invalid value format for this type spirit:order
    [IP_Flow 19-3378] Failed to create IP instance 'dds_compiler_0'. Error saving IP file.
    [IP_Flow 19-1704] No user IP repositories specified
    [IP_Flow 19-194] Failed to save IP instance 'dds_compiler_0'.
    [IP_Flow 19-193] Failed to save BOM file '/home/jmassol/.Xil/Vivado-2683-ubuntu/coregen/dds_compiler_0/dds_compiler_0.xml'.
    [IP_Flow 19-3378] Failed to create IP instance 'dds_compiler_0'. Error saving IP file.
    Vivado Commands[Project 1-11] Changing the constrs_type of fileset 'constrs_1' to 'XDC'.
    [IP_Flow 19-193] Failed to save BOM file '/home/jmassol/.Xil/Vivado-2683-ubuntu/coregen/dds_compiler_0/dds_compiler_0.xml'.
    [IP_Flow 19-3378] Failed to create IP instance 'dds_compiler_0'. Error saving IP file.
    [IP_Flow 19-193] Failed to save BOM file '/home/jmassol/.Xil/Vivado-2683-ubuntu/coregen/dds_compiler_0/dds_compiler_0.xml'.
    sim_1[IP_Flow 19-194] Failed to save IP instance 'dds_compiler_0'.
    [IP_Flow 19-395] Problem validating against XML schema: Invalid value format for this type spirit:order
    [HDL 9-1654] Analyzing Verilog file "/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sim/testbench.v" into library work ["/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sim/testbench.v":1]
    [IP_Flow 19-395] Problem validating against XML schema: Invalid value format for this type spirit:order
    [IP_Flow 19-3378] Failed to create IP instance 'dds_compiler_0'. Error saving IP file.
    [IP_Flow 19-234] Refreshing IP repositories
    [IP_Flow 19-3378] Failed to create IP instance 'dds_compiler_0'. Error saving IP file.
    [IP_Flow 19-395] Problem validating against XML schema: Invalid value format for this type spirit:order
    [IP_Flow 19-194] Failed to save IP instance 'dds_compiler_0'.
    [IP_Flow 19-193] Failed to save BOM file '/home/jmassol/.Xil/Vivado-2683-ubuntu/coregen/dds_compiler_0/dds_compiler_0.xml'.
    [IP_Flow 19-194] Failed to save IP instance 'dds_compiler_0'.
    [IP_Flow 19-395] Problem validating against XML schema: Invalid value format for this type spirit:order
    [IP_Flow 19-193] Failed to save BOM file '/home/jmassol/.Xil/Vivado-2683-ubuntu/coregen/dds_compiler_0/dds_compiler_0.xml'.
    [IP_Flow 19-194] Failed to save IP instance 'dds_compiler_0'.
    [IP_Flow 19-3378] Failed to create IP instance 'dds_compiler_0'. Error saving IP file.
    [HDL 9-1061] Parsing VHDL file "/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/debounce.vhd" into library work ["/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/debounce.vhd":1]
    [IP_Flow 19-3378] Failed to create IP instance 'dds_compiler_0'. Error saving IP file.
    [IP_Flow 19-194] Failed to save IP instance 'dds_compiler_0'.
    [HDL 9-1061] Parsing VHDL file "/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/sinegen.vhd" into library work ["/home/jmassol/Desktop/Vivado/vivado_debug/ug937/project_xsim/project_xsim.srcs/sources_1/imports/ug937/sources/sinegen.vhd":1]
    set_property constrs_type XDC [current_fileset -constrset]
     

    We had the same problem when switching to Ubuntu 14.04, and there actually is a solution for it: make sure your locales are set to English.
    $> env | grep LC_*
    should only show english (or C) locales, all others are known to cause parsing errors in some numbers, usually caused by wrong string-to-float conversions (e.g. 18,29 in german is 18.29 in english). You can change the locales in the file /etc/default/localesThis is not the first time we had problems with the locale settings, Xilinx does not seem to test their software with anything else than en_US, causing obscure bugs like this one.
    HTH
    Philipp

  • Invalid field format (screen error) on Table Control

    Hello,
    When selecting a line or multiple lines on a screen made by me(using a Table Control), I get Invalid field format (screen error). Debugging the code it sends the message when looping the internal table on PAI to check if there were values changed. Is there a reason why this error appears on this?
      loop at it_values.
        chain.
          field pvalues-BEGDA.
          module CHANGE_QUEUE.
        endchain.
      endloop.
    Thanks.

    No need to loop to check whether data is changed after PBO, just check System Field SY-DATAR, it will be set to 'X' if any field was changed.
    So the following code is enough;
    IF SY-DATAR EQ 'X'.
       PERFORM SAVE_DATA.
    ENDIF.
    Regards
    Karthik D

Maybe you are looking for