HTTPS with null cipher

Hi,
I have two OSB's communicating over SSL.
How do I configure Weblogic to use a particular cipher during communication.
I want the communication to use TLS_RSA_WITH_NULL_SHA, or any null cipher, so that
the content can be scanned as it passed through a firewall.

Hi Rana da,
If you want to use Https, make sure Https service must be activated in the system. Check Tcode: SMICM for HTTPS status.
Have a look at below link
Sender SOAP Adapter: HTTPS with Client Authentication

Similar Messages

  • Sql query slowness due to rank and columns with null values:

        
    Sql query slowness due to rank and columns with null values:
    I have the following table in database with around 10 millions records:
    Declaration:
    create table PropertyOwners (
    [Key] int not null primary key,
    PropertyKey int not null,    
    BoughtDate DateTime,    
    OwnerKey int null,    
    GroupKey int null   
    go
    [Key] is primary key and combination of PropertyKey, BoughtDate, OwnerKey and GroupKey is unique.
    With the following index:
    CREATE NONCLUSTERED INDEX [IX_PropertyOwners] ON [dbo].[PropertyOwners]    
    [PropertyKey] ASC,   
    [BoughtDate] DESC,   
    [OwnerKey] DESC,   
    [GroupKey] DESC   
    go
    Description of the case:
    For single BoughtDate one property can belong to multiple owners or single group, for single record there can either be OwnerKey or GroupKey but not both so one of them will be null for each record. I am trying to retrieve the data from the table using
    following query for the OwnerKey. If there are same property rows for owners and group at the same time than the rows having OwnerKey with be preferred, that is why I am using "OwnerKey desc" in Rank function.
    declare @ownerKey int = 40000   
    select PropertyKey, BoughtDate, OwnerKey, GroupKey   
    from (    
    select PropertyKey, BoughtDate, OwnerKey, GroupKey,       
    RANK() over (partition by PropertyKey order by BoughtDate desc, OwnerKey desc, GroupKey desc) as [Rank]   
    from PropertyOwners   
    ) as result   
    where result.[Rank]=1 and result.[OwnerKey]=@ownerKey
    It is taking 2-3 seconds to get the records which is too slow, similar time it is taking as I try to get the records using the GroupKey. But when I tried to get the records for the PropertyKey with the same query, it is executing in 10 milliseconds.
    May be the slowness is due to as OwnerKey/GroupKey in the table  can be null and sql server in unable to index it. I have also tried to use the Indexed view to pre ranked them but I can't use it in my query as Rank function is not supported in indexed
    view.
    Please note this table is updated once a day and using Sql Server 2008 R2. Any help will be greatly appreciated.

    create table #result (PropertyKey int not null, BoughtDate datetime, OwnerKey int null, GroupKey int null, [Rank] int not null)Create index idx ON #result(OwnerKey ,rnk)
    insert into #result(PropertyKey, BoughtDate, OwnerKey, GroupKey, [Rank])
    select PropertyKey, BoughtDate, OwnerKey, GroupKey,
    RANK() over (partition by PropertyKey order by BoughtDate desc, OwnerKey desc, GroupKey desc) as [Rank]
    from PropertyOwners
    go
    declare @ownerKey int = 1
    select PropertyKey, BoughtDate, OwnerKey, GroupKey
    from #result as result
    where result.[Rank]=1
    and result.[OwnerKey]=@ownerKey
    go
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Https with NWDI

    Hi,
    I am trying to setup https connection to NWDI. (Netweaver 7.0)
    SSL is enabled on Portal, so I can see it in my browser through https (https://<host>:50001/irj/portal), SLD and NWDI are on the same system.
    Now I am trying to connect from NWDS 7.0, Development Configuration Pool URL set to "https://<host>:50001", I've set path to keystore file and ve done some additional configuration according to [http://help.sap.com/saphelp_nw70/helpdata/en/4c/941f407b402402e10000000a1550b0/frameset.htm].
    After those steps "Ping server" button under Development Configuration Pool URL gave no results (no error, no success). I've found logs of NWDS with exception occuring on ping server action: java.lang.NoClassDefFoundError: com/sap/security/api/certrevoc/CertRevocException.
    After placing CertRevocException class in place, NWDS started to give error message on ping action: "Server certificate rejected by ChainVerifier", in log file I see different exception:
    !MESSAGE Feb 24, 2011 2:50:31 PM  com.sap.security.core.server.https.V3ChainVerifier.verify... [Thread[main,5,main]] Error: NamingException during CertRevoc access
    [EXCEPTION]
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:640)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
         at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at com.sap.security.core.server.https.V3ChainVerifier.verifyChain(V3ChainVerifier.java:281)
         at iaik.security.ssl.x.a(Unknown Source)
         at iaik.security.ssl.x.b(Unknown Source)
         at iaik.security.ssl.x.a(Unknown Source)
         at iaik.security.ssl.r.d(Unknown Source)
         at iaik.security.ssl.SSLTransport.startHandshake(Unknown Source)
         at iaik.security.ssl.SSLTransport.getInputStream(Unknown Source)
         at iaik.security.ssl.SSLSocket.getInputStream(Unknown Source)
    P.S. I also have NWDS 7.2 on my pc and it can successfully connect to that NWDI server, with same keystore file.

    Hello Kenny,
    That was exactly what i've done with NWDS.
    That brought me to "Server certificate rejected by ChainVerifier" error.
    I changed jce.jar from my JDK with iaik_jce_export.jar, now I have other error: "Unable to open SSL connection to host "<host>:50001". Peer sent alert: Alert Fatal: handshake failure."
    Unfortunatly NWDS doesn't give much information about what's happening, so write some code to invoke "Ping server" action and see what's the problem, here is a trace what I've got:
    Feb 25, 2011 2:56:53 PM  ...ttps.Utils.addIAIKasJDK14Provider ()  [Thread[main,5,main]] Path: Entering method
    Feb 25, 2011 2:56:53 PM  ....sap.security.core.server.https.Utils [Thread[main,5,main]] Path: Exiting method
    Feb 25, 2011 2:56:53 PM  ...re (InputStream is, char[] password)  [Thread[main,5,main]] Path: Entering method
    Feb 25, 2011 2:56:53 PM  ...onContext.setupCredentials(IResponse) [Thread[main,5,main]] Info: authentication scheme changed [new scheme=SSO2]
    Feb 25, 2011 2:56:53 PM  ...b.protocol.Connection.Connection(URL) [Thread[main,5,main]] Info: connection created [url=https://sz22.adm.gazprom.ru:50001]
    Feb 25, 2011 2:56:53 PM  ...onContext.setupCredentials(IResponse) [Thread[main,5,main]] Info: authentication scheme changed [new scheme=SSO2]
    Feb 25, 2011 2:56:53 PM  ...ssionContext(ISessionContext context) [Thread[main,5,main]] Info: session context defined [user=user<XXXXX>, auth<SSO2>, cookies<allowed><privacy:from original host only>,auth=]
    Feb 25, 2011 2:56:53 PM  ...Store keystore, Object keystoreCreds) [Thread[main,5,main]] Path: Entering method with (java.security.KeyStore@765a16, <null>, <null>, <null>)
    Feb 25, 2011 2:56:53 PM  ....server.https.SecureConnectionFactory [Thread[main,5,main]] Path: Exiting method
    Feb 25, 2011 2:56:53 PM  ...ps.Utils.isNonProxyHost(String host)  [Thread[main,5,main]] Path: Entering method with (sz22.adm.gazprom.ru)
    Feb 25, 2011 2:56:53 PM  ...SLClientContext(String [] keyaliases) [Thread[main,5,main]] Path: Entering method with (<null>)
    Feb 25, 2011 2:56:53 PM  ....server.https.SecureConnectionFactory [Thread[main,5,main]] Warning: SAP Java Crypto Toolkit NOT installed !
    Feb 25, 2011 2:56:53 PM  ....server.https.SecureConnectionFactory [Thread[main,5,main]] Info: add trusted: Version: 3
    Serial number: 3287802320
    Signature algorithm: md5WithRSAEncryption (1.2.840.113549.1.1.4)
    Issuer: CN=<host name>
    Valid not before: Fri Apr 18 10:27:00 MSD 2008
          not after: Wed Apr 18 10:27:00 MSD 2018
    Subject: CN=<host name>
    SunJSSE RSA public key:
      public exponent:
        010001
      modulus:
        b9c77b3b b3bcff5a c6276087 7c83477b 2c0df45f ff916342 fdaf37e9 ca9caf09
        48d26fad e44c5957 fc5fd940 0dd5b418 a4ff0b92 e3bd3976 2e55bef0 72d64ace
        aadc4c2b d921ae84 daadd6a2 dd575496 537c0cd7 b82a9a10 6b03beb4 b3f86ced
        0be0b120 d6c12bd6 37e5e524 4b982e99 4dcfc85f 22a54232 216fb818 eb478133
    Certificate Fingerprint (MD5)  : 0F:8D:78:8C:15:B1:E0:80:A2:46:EE:B9:FF:87:8A:A6
    Certificate Fingerprint (SHA-1): A3:79:68:00:A1:B8:7E:49:E1:0D:36:C5:EE:EF:F1:90:D4:8D:EC:BA
    Extensions: 1
    Feb 25, 2011 2:56:53 PM  ....server.https.SecureConnectionFactory [Thread[main,5,main]] Path: Exiting method
    Feb 25, 2011 2:56:53 PM   com.sap.security.core.server.https.IAIK [Thread[main,5,main]] Debug: ssl_debug(1): Starting handshake (iSaSiLk 3.06)...
    Feb 25, 2011 2:56:53 PM   com.sap.security.core.server.https.IAIK [Thread[main,5,main]] Debug: ssl_debug(1): Sending v3 client_hello message, requesting version 3.1...
    Feb 25, 2011 2:56:53 PM   com.sap.security.core.server.https.IAIK [Thread[main,5,main]] Debug: ssl_debug(1): Received alert message: Alert Fatal: handshake failure
    Feb 25, 2011 2:56:53 PM   com.sap.security.core.server.https.IAIK [Thread[main,5,main]] Debug: ssl_debug(1): SSLException while handshaking: Peer sent alert: Alert Fatal: handshake failure
    Feb 25, 2011 2:56:53 PM   com.sap.security.core.server.https.IAIK [Thread[main,5,main]] Debug: ssl_debug(1): Shutting down SSL layer...
    Edited by: Ilya Karnaukhov on Feb 25, 2011 1:07 PM

  • ERROR: Cannot create authcontext with null org-Naming query failed  code:21

    I use OpenSSO Enterprise 8.0 Update 1 Patch1 Build 6.1(2009-June-9 12:56)
    I try to evaluate the Apache 2.2 web agent.
    It's been installed without errors, and both the OpenSSO and Apache server restarted.
    The agent profile's been created. Also, I use the default (OpenDS) configuration repository
    for OpenSSO, but an external (DSEE) user data directory.
    I think I did all the required steps with regards to both directories, since I don't see any error
    in the LDAP logs, each entry seems to be found as expected, the BIND operations are all
    successfull.
    Also, I use a sub-realm rather than the default top realm, and thus, I've modified the agent configuration
    (in the agent profile) so that the login URL is now ... /UI/Login?realm=myrealm
    When I try to access the Apache homepage, I get an error 500. The most recent OpenSSO server log file
    (...../opensso/debug/Authentication) contains the following message:
    ERROR: Cannot create authcontext with null org
    The most recent agent log file (....../apache22_agent/Agent_001/logs/debug/amAgent) has the following error:
    2009-07-07 17:08:11.992 Error 10513:80149a50 PolicyEngine: am_policy_evaluate: InternalException in Service::update_policy with error message:Naming query failed. and code:21
    I don't know what else I can do to debug this problem and find a solution. Any idea ?

    Thank you Shubba,
    With all available log details enabled, I now have the following messages on the agent side:
    2009-07-09 10:14:51.731MaxDebug 5613:80149a50 all: No value specified for key com.sun.identity.agents.config.profile.attribute.mapping, using default value .
    2009-07-09 10:14:51.731 Debug 5613:80149a50 NamingService: BaseService::doRequest(): Using server: http://portable.antibes.net:8080/opensso/namingservice.
    2009-07-09 10:14:51.731MaxDebug 5613:80149a50 NamingService:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <RequestSet vers="1.0" svcid="com.iplanet.am.naming" reqid="10">
    <Request><![CDATA[                                                                                                                      
      <NamingRequest vers="3.0" reqid="2" sessid=""AQIC5wM2LY4SfcyaGFgc5h9Y7/kpf4f//ml82oVfNlbWxQE=@AAJTSQACMDE=#"">                             <GetNamingProfile>                                                                                                                         </GetNamingProfile>                                                                                                                        </NamingRequest>]]> </Request>
    </RequestSet>
    2009-07-09 10:14:51.712MaxDebug 5613:80149a50 NamingService: BaseService::sendRequest Request line: POST /opensso/namingservice HTTP/1.0
    2009-07-09 10:14:51.712 Debug 5613:80149a50 NamingService: BaseService::sendRequest Cookie and Headers =Host: portable.antibes.net
    2009-07-09 10:14:51.712 Debug 5613:80149a50 NamingService: BaseService::sendRequest Content-Length =Content-Length: 334
    2009-07-09 10:14:51.712 Debug 5613:80149a50 NamingService: BaseService::sendRequest Header Suffix =Accept: text/xml
    Content-Type: text/xml; charset=UTF-8
    2009-07-09 10:14:51.712MaxDebug 5613:80149a50 NamingService: BaseService::sendRequest(): Total chunks: 7.
    2009-07-09 10:14:51.712MaxDebug 5613:80149a50 NamingService: BaseService::sendRequest(): Sent 7 chunks.
    2009-07-09 10:14:51.728 Debug 5613:80149a50 NamingService: HTTP Status = 500 (Internal Server Error)
    2009-07-09 10:14:51.729MaxDebug 5613:80149a50 NamingService: Http::Response::readAndParse(): Reading headers.
    2009-07-09 10:14:51.729MaxDebug 5613:80149a50 NamingService: Server: Apache-Coyote/1.1
    2009-07-09 10:14:51.729MaxDebug 5613:80149a50 NamingService: Content-Type: text/html;charset=utf-8
    2009-07-09 10:14:51.729MaxDebug 5613:80149a50 NamingService: Date: Thu, 09 Jul 2009 08:14:51 GMT
    2009-07-09 10:14:51.729MaxDebug 5613:80149a50 NamingService: Connection: close
    2009-07-09 10:14:51.729MaxDebug 5613:80149a50 NamingService: Http::Response::readAndParse(): Reading body content of length: 13830487939496281954
    2009-07-09 10:14:51.729MaxDebug 5613:80149a50 all: Connection::waitForReply(): returns with status success.
    2009-07-09 10:14:51.729MaxDebug 5613:80149a50 NamingService: Http::Response::readAndParse(): Completed processing the response with status: success
    2009-07-09 10:14:51.729MaxDebug 5613:80149a50 NamingService: <html><head><title>Apache Tomcat/6.0.18 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>javax.servlet.ServletException: AMSetupFilter.doFilter
    com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:117)
    </pre></p><p><b>root cause</b> <pre>java.lang.NullPointerException
    com.iplanet.services.naming.service.NamingService.processRequest(NamingService.java:361)
    com.iplanet.services.naming.service.NamingService.process(NamingService.java:352)
    com.iplanet.services.comm.server.PLLRequestServlet.handleRequest(PLLRequestServlet.java:180)
    com.iplanet.services.comm.server.PLLRequestServlet.doPost(PLLRequestServlet.java:134)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    com.sun.identity.setup.AMSetupFilter.doFilter(AMSetupFilter.java:91)
    </pre></p><p><b>note</b> <u>The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.18</h3></body></html>
    2009-07-09 10:14:51.729 Warning 5613:80149a50 NamingService: BaseService::doHttpPost() failed, HTTP error = 500
    2009-07-09 10:14:51.729 Debug 5613:80149a50 NamingService: NamingService()::getProfile() returning with error code HTTP error.
    2009-07-09 10:14:51.729 Error 5613:80149a50 PolicyEngine: am_policy_evaluate: InternalException in Service::update_policy with error message:Naming query failed. and code:21
    In my Tomcat server (OpenSSO server web container), I have the following errors:
    Jul 9, 2009 10:12:35 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 22746 ms
    [Fatal Error] :2:46: Element type "NamingRequest" must be followed by either attribute specifications, ">" or "/>".
    java.lang.NullPointerException
    at com.iplanet.services.naming.service.NamingService.processRequest(NamingService.java:361)
    at com.iplanet.services.naming.service.NamingService.process(NamingService.java:352)
    at com.iplanet.services.comm.server.PLLRequestServlet.handleRequest(PLLRequestServlet.java:180)
    at ...
    It seems like the problem comes from the couple of closing square brackets in the NamingRequest tag:
    </NamingRequest>]]>
    I don't know where it comes from, so if you've an idea I'd enjoy .
    Cheers,

  • Range interval partitioning with null value

    Hello,
    I have question, how can I create table with partition and after that I will insert null value in the partition key like this kind of
    range interval partitioning with null value.
    I have Oracle 11g.
    Thanks
    Mohammed

    user13777053 wrote:
    Thank you, but my question is about range interval not for range?http://docs.oracle.com/cd/E11882_01/server.112/e25523/partition.htm#VLDBG00220
    A MAXVALUE literal can be defined for the highest partition. MAXVALUE represents a virtual infinite value that sorts higher than any other possible value for the partitioning key, *including the NULL value.*
    So since you're trying to partition by interval (which doesn't support a MAXVALUE clause) you're out of luck.
    There's probably fancy hacks and what not you could try to implement, but i'm not about to recommend any of those here :)
    Cheers,

  • [svn:fx-trunk] 14016: Fix for List RTE when dropping into list with null dataProvider.

    Revision: 14016
    Revision: 14016
    Author:   [email protected]
    Date:     2010-02-05 16:12:41 -0800 (Fri, 05 Feb 2010)
    Log Message:
    Fix for List RTE when dropping into list with null dataProvider. If the dataProvider is null, we create an ArrayCollection to hold items being dropped in the List.
    QE notes: No
    Doc notes: No
    Bugs: SDK-25218
    Reviewer: Jason
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-25218
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as

    Revision: 14016
    Revision: 14016
    Author:   [email protected]
    Date:     2010-02-05 16:12:41 -0800 (Fri, 05 Feb 2010)
    Log Message:
    Fix for List RTE when dropping into list with null dataProvider. If the dataProvider is null, we create an ArrayCollection to hold items being dropped in the List.
    QE notes: No
    Doc notes: No
    Bugs: SDK-25218
    Reviewer: Jason
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-25218
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as

  • Error decrypting with Java Cipher

    My program encrypts properly, but while decrypting I get this error:
    Error Input length (with padding) not multiple of 8 bytes
    Any idea??? Please, HELP!
    protected byte[] decrypt(byte[] buffer,char[] passwd)
             byte[] salt={(byte)0xd4,(byte)0xa3,(byte)0xff,(byte)0x9e,(byte)0x12,(byte)0xc7,(byte)0xd0,(byte)0x84};
             byte[] plainTxt=null;
             Cipher c=null;
             PBEParameterSpec paramSpec=null;
             SecretKey passwordKey=null;
             try
                 paramSpec=new PBEParameterSpec(salt,20);
                 PBEKeySpec keySpec=new PBEKeySpec(passwd);
                 SecretKeyFactory kf=SecretKeyFactory.getInstance("PBEWithMD5AndDES");
                 passwordKey=kf.generateSecret(keySpec);
                 c=Cipher.getInstance("PBEWithMD5AndDES");
                 c.init(Cipher.DECRYPT_MODE, passwordKey, paramSpec);
                 plainTxt=c.doFinal(buffer);  
             catch (Exception e)
                 System.out.println("Error "+ e.getMessage());
                 System.exit(0);
             return plainTxt;
        }

    Below is the test harness I wrapped round your code and for me it works without the errors you say you get!
    Your code could be made much more rugged and efficient but it works.
    import javax.crypto.*;
    import javax.crypto.spec.*;
    import java.security.*;
    import java.security.spec.*;
    public class Test4 {
      protected byte[] decrypt(byte[] buffer,char[] passwd) {
        byte[] salt={(byte)0xd4,(byte)0xa3,(byte)0xff,(byte)0x9e,(byte)0x12,(byte)0xc7,(byte)0xd0,(byte)0x84};
        byte[] plainTxt=null;
        Cipher c=null;
        PBEParameterSpec paramSpec=null;
        SecretKey passwordKey=null;
        try {
          paramSpec=new PBEParameterSpec(salt,20);
          PBEKeySpec keySpec=new PBEKeySpec(passwd);
          SecretKeyFactory kf=SecretKeyFactory.getInstance("PBEWithMD5AndDES");
          passwordKey=kf.generateSecret(keySpec);
          c=Cipher.getInstance("PBEWithMD5AndDES");
          c.init(Cipher.DECRYPT_MODE, passwordKey, paramSpec);
          plainTxt=c.doFinal(buffer);
        } catch (Exception e) {
          System.out.println("Error "+ e.getMessage());
          System.exit(0);
        return plainTxt;
      protected byte[] encrypt(byte[] buffer,char[] passwd) {
        byte[] salt={(byte)0xd4,(byte)0xa3,(byte)0xff,(byte)0x9e,(byte)0x12,(byte)0xc7,(byte)0xd0,(byte)0x84};
        byte[] cipherTxt=new byte[buffer.length];
        Cipher c=null;
        PBEParameterSpec paramSpec=null;
        SecretKey passwordKey=null;
        try {
          paramSpec=new PBEParameterSpec(salt,20);
          PBEKeySpec keySpec=new PBEKeySpec(passwd);
          SecretKeyFactory kf=SecretKeyFactory.getInstance("PBEWithMD5AndDES");
          passwordKey=kf.generateSecret(keySpec);
          c=Cipher.getInstance("PBEWithMD5AndDES");
          c.init(Cipher.ENCRYPT_MODE,passwordKey,paramSpec);
          cipherTxt=c.doFinal(buffer);
        } catch (Exception e) {
          System.out.println("Error "+ e.getMessage());
          System.exit(0);
        return cipherTxt;
      public static void main(String[] args) {
        try {
          // Make sure SUN are a valid provider
          Security.addProvider(new com.sun.crypto.provider.SunJCE());
          char[] passphrase = "sabre150".toCharArray();
          Test4 agent = new Test4();
          // Get the dataString to encrypt from the command line
          String dataString = "The quick brown fox jumps over the lazy dog.";
          byte[] dataBytes = dataString.getBytes("UTF8");
          System.out.println("Data string ....................[" + dataString + "]");
          // Encrypt the data
          byte[] encryptedBytes = agent.encrypt(dataBytes, passphrase);
          // Decrypt the data
          byte[] recoveredDataBytes = agent.decrypt(encryptedBytes, passphrase);
          String recoveredDataString = new String(recoveredDataBytes, "UTF8");
          System.out.println("Recovered data string ..........[" + recoveredDataString + "]");    
        } catch (Exception e) {
          e.printStackTrace();
    }

  • JDBC MS Access--- cannot extract entry with null value with data type Meta

    I'm trying to extract a data entry with null value by using JDBC. The database is MS Access.
    The question is how to extract null entry with data type memo? The following code works when the label has data type Text, but it throws sqlException when the data type is memo.
    Any advice will be appreciated! thanks!
    Following are the table description and JDBC code:
    test table has the following attributes:
    Field name Data Type
    name Text
    label Memo
    table contents:
    name label
    me null
    you gates
    Code:
    String query = "SELECT name, label FROM test where name like 'me' ";
    ResultSet rs = stmt.executeQuery(query);
    while (rs.next())
    String name = rs.getString("name");
    rs.getString("val");
    String label = rs.getString("label");
    System.out.println("\t"+name+"\t"+label);
    catch (SQLException ex)
    System.out.println(ex.getSQLState());
    System.out.println(ex.getErrorCode());
    System.out.println("in sqlexception");
    output:
    C:\Temp\SEFormExtractor>java DBTest
    yet SELECT name, label FROM test
    null
    0
    in sqlexception

    The question is how to extract null entry with data type memo?Okay, what you need to do is this:
    if (rs.getString("val") == null)
      // do something
    }This way, when it's a null value, you can check it first, and then handle it how you want, rather than getting an exception.

  • Import data with nulls in Desktop Intelligence

    Hello,
    I have data with null values (in a measure).  If I export the data as CSV it shows null values as #EMPTY.  If I use that as a datasource, it loads #EMPTY as 0 (zero).
    Is there a way to make desktop intelligence recognize null values?  I tried to remove the #empty and just leave the column empty, it still loads as a numeric zero.
    Same (actually worse) for XML.  It seems if I export my data to XML it can not use that as a datasource.  Odd.  So I created the following XML file:
    <?xml version='1.0' encoding='UTF-8'?>
    <data>
      <item key="AAAAAEUK" value="130" category="A" />
      <item key="AAAACGDC" value="66" category="A" />
      <item key="AAAADNJP" value="56" category="A" />
      <item key="AAAAFWRQ" value="222" category="A" />
      <item key="AAAAGITU" category="B" />
    </data>
    I would expect the value field to be null for the last row.  But the values turns out to be 222!  If I try to put anything else, an empty string "", "#EMPTY", "null", it is always returned as 0.
    This is a problem because 0 an null are differnt when computing averages.

    Hi Florian,
    What is the source of your csv data?
    If I have a table in excel with empty cells, the data goes into the .csv as nothing so your example would look like
    Item key,value,category
    AAAAAEUK,130,A
    AAAACGDC,66,A
    AAAADNJP,56,A
    AAAAFWRQ,222,A
    AAAAGITU,,B
    This reads in just fine in DeskI (shows #EMPTY in the view data, treats it as such in the report).
    So I would look to get the data generated in right way, then DeskI can handle it, no problem.
    If all else fails, just run a search&replace and change ,#EMPTY, to ,,
    BTW if you have an alphanumeric value in a column where DeskI already decided there should be numeric,
    it will read in as 0, that is why the #EMPTY string value got transformed to zero.
    Good luck,
    Marianne

  • Need help with NULL values in Crosstables

    Hello everybody,
    I need some help with NULL values and crosstables. My issue is the following:
    I have a query (BW - MDX-Query) that gives me turnover measures for each month. In Crystal Reports I choose crosstable to display this whereby I put all month in columns and all turnover-measures in rows. Each month that has a value (measures are not empty) is chown in the crosstables rows. So far so good. The problem occures when there are month that actually have no values (measures are empty). In that case these months are not chown in columns. But I need CR to display these columns and show the value 0. How can I do that?

    Hi Frank,
    Cross tab shows the data based on your column and these column fields are grouped and based on the group it will show your summaries. 
    If there is no data for any of your group it will not display that group.  In this case you will have to create a standard report which should look like cross tab and to get zero values you need to write formulas .
    Example if you want to display Moth wise sales :
    if Month() = 01 Then
    sum() else 0
    Now this formula will check if your month is Jan, then it will sum up the values else it will display zero value. 
    This is possible only through standard report not with Cross Tab.
    Thanks,
    Sastry

  • Windows Server 2008 R2 - Restore Previous Versions - Restored File Filled with Nulls

    ISSUE:
    The Restore Previous versions feature on my file server stopped working some time in the recent past.  If I look at the Previous Version for a file or folder the items are listed and they show a valid file size.  However, when I restore a previous
    version of a file it is completely filled with nulls.  I have tried local restores on the server and remote restores.  The results are the same; I get a file that is the correct size but completely filled with nulls.  The Server is Windows 2008
    R2 64.  I have searched for any reports of similar issues to no avail.   I'm looking for any ideas on how to resolve the issue preferably while maintaning archived files.

    Hello,
    Can you help me with this too?
    My Shadow copy stop working!
    When my clients right click on Folders, they saw only date in the past.. and the new date not comming!
    When i went to file server
    ==> Computer Management==> Right click on "Share Folder" after that, i got nothing! Only "Gray" at the "Title bar" of computer management.
    Please see attached:
    What should i do? Please help me.
    Best regards
    VeasnaYim

  • How to create a dimension object in SAP BW Unv with Null value

    Hello,
    for query syncronisation task, I need a dimension object in my BW universe with NULL value. Does someone know, how to do it or if its possible?
    Regards,
    Thilo

    Hi Thilo,
    so the only common item is Material then - correct ?
    Query 1                                                                                Query 2
    Formulation (grouping of materials)                                                  (No counterpart)
    Material                                                                                Material
    dummy key figure (why?)                                                                Company Code
                                                                                    10 Keyfigure
    Is this something you regular have to do ? what about a MultiProvider ?
    did you try "merged dimensions" in the Web Intelligence Report ?
    Ingo

  • How to use HTTPS with sender SOAP Adapter

    Hi,
    I am implementing a synchronous SOAP- proxy scenario and on the sender communication channel I have to use the Http Security Level as "HTTPS with client Authentication".
    Where from I get the certificates to be used in sender Agreement.
    Please give me a step by step approach to achieve this.
    Regards,
    Nitin

    Nitin,
    Kindly go through the below links ...
    http://help.sap.com/saphelp_nw04/helpdata/en/1f/7e2441509fa831e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/14/ef2940cbf2195de10000000a1550b0/frameset.htm
    Also, make a search on the SDN as this question has been answered many a times on the forum.
    Regards,
    Neetesh

  • The User-Agent "Java/1.5.0_06" is unknown;creating an agent with null agent

    Hello,
    We're currently on JDeveloper 10.1.3.4.0.4270. We just release a new version of our web app into production. This is an internal web application. application server is weblogic 10. The weblogic log is showing alot of these warning messages. I tried search on this forum and in google but unable to find any information. I really appreciate if anyone has any idea what could be causing these warning. Our users are constantly getting sent back to the login page to to user sessions lost.
    <Jun 8, 2010 12:39:20 AM EDT> <Info> <Common> <BEA-000628> <Created "5" resources for pool "venusDS", out of which "5" are available and "0" are unavailable.>
    Jun 8, 2010 12:39:20 AM oracle.adfinternal.view.faces.agent.AgentFactoryImpl _populateNullAgentImpl
    WARNING: The User-Agent "Java/1.5.0_06" is unknown; creating an agent with null agent attributes.
    Jun 8, 2010 12:39:20 AM oracle.adfinternal.view.faces.agent.AgentFactoryImpl _populateNullAgentImpl
    WARNING: The User-Agent "Java/1.5.0_06" is unknown; creating an agent with null agent attributes.
    Jun 8, 2010 12:39:21 AM oracle.adfinternal.view.faces.agent.AgentFactoryImpl _populateNullAgentImpl
    WARNING: The User-Agent "Java/1.5.0_06" is unknown; creating an agent with null agent attributes.
    Jun 8, 2010 12:39:21 AM oracle.adfinternal.view.faces.agent.AgentFactoryImpl _populateNullAgentImpl
    WARNING: The User-Agent "Java/1.5.0_06" is unknown; creating an agent with null agent attributes.
    Jun 8, 2010 12:42:21 AM oracle.adfinternal.view.faces.agent.AgentFactoryImpl _populateNullAgentImpl
    WARNING: The User-Agent "Java/1.5.0_06" is unknown; creating an agent with null agent attributes.
    Jun 8, 2010 12:42:21 AM oracle.adfinternal.view.faces.agent.AgentFactoryImpl _populateNullAgentImpl
    WARNING: The User-Agent "Java/1.5.0_06" is unknown; creating an agent with null agent attributes.
    Jun 8, 2010 12:42:21 AM oracle.adfinternal.view.faces.agent.AgentFactoryImpl _populateNullAgentImpl
    WARNING: The User-Agent "Java/1.5.0_06" is unknown; creating an agent with null agent attributes.
    1698656.832: [GC [PSYoungGen: 145280K->5811K(187264K)] 418915K->302441K(650112K), 0.1285455 secs]
    Jun 8, 2010 12:42:22 AM oracle.adfinternal.view.faces.agent.AgentFactoryImpl _populateNullAgentImpl
    WARNING: The User-Agent "Java/1.5.0_06" is unknown; creating an agent with null agent attributes.
    Thanks,
    Joe

    Hi,
    user agent is the browser users use. So what is the browser ?
    Frank

  • Enabling HTTPS with Client Authentication for Sender SOAP Adapter on PI7.1

    Hello All,
    We are currently building up a HTTPS message exchange with an external client.
    Our PI 7.1 recieved over HTTPS messages on an already configured Sender SOAP Adapter.
    The HTTPS (SSL) connectivity works fine and was completely configured on the ABAP Stack at Trust Manager (TC=STRUSTSSO2)
    Login to Message Servlet "com.sap.aii.adapter.soap.web.MessageServlet is required and works fine with user ID and password.
    Now we have to configure the addtional Client Authentication.
    At SOAP Adapter (Sender Communication Channel) under "HTTP Security Level"you are able to configure "HTTPS with Client Authentication".
    But what are the next steps to get this scenario successfully in place?
    Many thanks in advance!
    Jochen

    Hi Colleagues,
    following Steps still have to be done:
    - Mapping public key to technical user at Java Stack
      As preparation you have to activate value "ume.logon.allow.cert" with true under "com.sap.security.core.ume.service" under Config Tool. At NWA under Identity Management at for repecively technical user the public key certificate
    - Be sure CA root certivicate at Database under STRUSTSSO2
    - Import intermediate Certificate under Certificate List at Trast Manager for the Respecive Server Note
    - use Login Module "client_cert" which you have to configure under NWA\Configuration Management\Authentication for Components "sap.com/com.sap.aii.adapter.soap.app*XISOAPAdapter".
    Many thanks to all for support!
    Regards,
    Jochen

Maybe you are looking for