By shivendra

Hi every body !
I tried to change the password in active directory using SSL
but i am facing an exception :- "Default SSL context init failed: Invalid
keystore format." when i make some changes in code then i got
another exception -> " No trusted certificate found ".
i am using the follwing code. can anybody
tell me what is the exact problem with my code?
i am using the follwing code :-
import java.util.Hashtable;
import javax.naming.*;
import javax.naming.ldap.*;
import javax.naming.directory.*;
import java.io.*;public class pswdmod
public static void main(String args[])
     Hashtable env = new Hashtable();
String userName = "ou=MCA,ou=Trainee,dc=ControlsNet,dc=local";
String oldPassword = "yadav";
String newPassword = "shivendra";
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.SECURITY_PROTOCOL, "ssl");
env.put(Context.PROVIDER_URL,"ldap://gateway.ControlsNet.local:636/" );
env.put(Context.SECURITY_AUTHENTICATION,"simple");
env.put(Context.SECURITY_PRINCIPAL, "[email protected]");
env.put(Context.SECURITY_CREDENTIALS," " );
java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
//String keystore = "D:\\WINNT\\system32\\certsrv\\CertEnroll\\gateway.ControlsNet.local_controlslab";
String keystore = "\\j2sdk1.4.2_12\\jre\\lib\\security\\gateway.ControlsNet.local_controlslab.crt";
//String keystore = "D:\\j2sdk1.4.2_12\\jre\\lib\\security\\cacerts";
          System.setProperty("javax.net.ssl.trustStore",keystore);
try
     LdapContext ctx = new InitialLdapContext(env, null);
     ModificationItem[] mods = new ModificationItem[2];
     String oldQuotedPassword = "\"" + oldPassword + "\"";
byte[] oldUnicodePassword = oldQuotedPassword.getBytes("UTF-16LE");
String newQuotedPassword = "\"" + newPassword + "\"";
byte[] newUnicodePassword = newQuotedPassword.getBytes("UTF-16LE");
mods[0] = new ModificationItem(DirContext.REMOVE_ATTRIBUTE, new BasicAttribute("unicodePwd",oldUnicodePassword));
mods[1] = new ModificationItem(DirContext.ADD_ATTRIBUTE, new BasicAttribute("unicodePwd",newUnicodePassword ));
ctx.modifyAttributes(userName, mods);
System.out.println("Reset Password for: " + userName);     
          ctx.close();
catch (NamingException e) {
               System.out.println("Problem resetting password: " + e);
          catch (UnsupportedEncodingException e) {
               System.out.println("Problem encoding password: " + e);
waiting for quick reply. Bye!

Hi Robb,
"It looks like you and James are on the same project" That is correct.
OK. In requirment we have three-four column based on these column we need to derive few other column. We want to do spilitting and validation in Import itself. This is mainly a Validation requirment.
There is one column which may have 12,13,14,17 or any other number of character in it. first three will represent one dimension but exact value be a mapped result based on these three digits.
There are many validation based on the number on charaters and most importantly we don't want to process other column is validation get failed at any stage.
Do we have anything like Import Action? Probably we want to change that script. Or if we can write something like integration script. We need every column to be processed in one shot.
I don't think it is self explantry. Can we have your email please?
Thanks,
Shivendra
Edited by: shiv2 on Sep 16, 2011 8:52 PM

Similar Messages

  • Hello Experts Please help me to solve this problem.

    Hello Experts,
    I am getting a problem while installing the SOLUTION MANAGER 4.0.
    in step 17/45 IMPORT ABAP :
    the problem is :
    ERROR 2008-04-29 03:10:28.110
    CJS-30023  Process call '/usr/sap/SLM/SYS/exe/run/R3load -testconnect' exits with error code 2. For details see log file(s) R3load.exe.log.
    when i saw R3load.exe.log file it has the following contain :
    sapparam: sapargv( argc, argv) has not been called.
    sapparam(1c): No Profile used.
    sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline
    /usr/sap/SLM/SYS/exe/run/R3load: START OF LOG: 20080428095833
    /usr/sap/SLM/SYS/exe/run/R3load: sccsid @(#) $Id: //bas/700_REL/src/R3ld/R3load/R3ldmain.c#13 $ SAP
    /usr/sap/SLM/SYS/exe/run/R3load: version R7.00/V1.4 [UNICODE]
    Compiled Jul 14 2007 02:19:03
    /usr/sap/SLM/SYS/exe/run/R3load -testconnect
    DbSl Trace: OCI-call 'OCIServerAttach' failed with rc=12505
    DbSl Trace: CONNECT failed with sql error '12505'
    DbSl Trace: OCI-call 'OCIServerAttach' failed with rc=12505
    DbSl Trace: CONNECT failed with sql error '12505'
    (DB) ERROR: db_connect rc = 256
    DbSl Trace: OCI-call 'OCIServerAttach' failed with rc=12505
    DbSl Trace: CONNECT failed with sql error '12505'
    DbSl Trace: OCI-call 'OCIServerAttach' failed with rc=12505
    DbSl Trace: CONNECT failed with sql error '12505'
    (DB) ERROR: DbSlErrorMsg rc = 99
    /usr/sap/SLM/SYS/exe/run/R3load: job finished with 1 error(s)
    /usr/sap/SLM/SYS/exe/run/R3load: END OF LOG: 20080428095834
    Please can any body help me to solve this problem.
    waiting for fast response, as my installtion is pending due to this problem.
    have a nice day.
    Regards,
    Shivendra.

    Hi,
    The following should be verified:
    (1) check what DB instances the listener currently is aware of.  This can be done with the command 'lsnrctl services'.
    (in case you listener does not have the default name LISTENER, then use 'lsnrctl services <listener name>' )
    (2) Perhaps there is an issue with the dynamic instance registration, even though the error code is different, you should nevertheless check the points from note #563574.
    (3) Verfiy the value of the parameter local_listener (see mentioned note). Since you have changed the listener, the parameter might still be wrong.
    In case local_listener is correcly set you should give the command
      ALTER SYSTEM REGISTER;
    a try.
    Best Regards,
    Michael

  • Automatic payment block for purchase orders with no GR

    Hi all, we have this issue. We would have an automatic payment block for all the PO's that have the 2-way match (no GR set)
    All these PO's in our company have an account assignement (that could be a cost center or a WBS element).
    The important is that all these PO's after inserted in the MIRO transaction should have the payment block set automatically Thanks for any precious help

    Hi !
    you can set it in the vendor master record on screen 'Payment transactions Accounting'
    For your information reffering to the IV process, payment block and payment method is derived from
    payment term instead of vendor master. Please check with OBB8, " pmnt
    block/ pmnt method default".
    For more information about this, please refer to the notes 322430
    and 177224.
    If the vendor is blocked, automatic payment program (F110) will not
    pay the vendor during the payment run. You can find more information in
    F1 help of "payment block" field in master data (LFB1-ZAHLS).
    MIRO is strictly PO-bases, the payment terms are copied from the PO
    rather than from the vendor master. The business reason is, that the PO
    represents the contract between vendor and customer including the terms
    of payment.
    Best regards
    Shivendra Tripathi
    INDIA

  • Script throwing error" Object required: 'API'

    Hi All,
    We need help in one issue. We have following script which is running fine when we ran it from script editor, but when use this as expression in import format is throwing error
    Error: An error occurred importing the file.
    Detail: Object required: 'API'
    At line: 12
    Script:
    Function ME_to_LE(strField, strRecord)
    ME_to_LE =API.SqlMgr.fMapItemLookup (749, "UD8", Left(strField,3))
    End Function
    We have created few other Scripts which are running fine and producing required result when we check them with MsgBox. But when we are using these scripts in import format it is saying: Object required: 'API'
    IF I can not use API object in import script, how can I process multiple column with one script. We need to derive three-four column based on one input column and we don't want to write separate import script for each column. How and where we can write this script?
    Are we missing any step? Any help will be highly appreciated. Looks I asked long question :)
    Thanks,
    Shivendra
    Edited by: shiv2 on Sep 16, 2011 9:30 AM
    Edited by: shiv2 on Sep 16, 2011 10:36 AM

    Hi Robb,
    "It looks like you and James are on the same project" That is correct.
    OK. In requirment we have three-four column based on these column we need to derive few other column. We want to do spilitting and validation in Import itself. This is mainly a Validation requirment.
    There is one column which may have 12,13,14,17 or any other number of character in it. first three will represent one dimension but exact value be a mapped result based on these three digits.
    There are many validation based on the number on charaters and most importantly we don't want to process other column is validation get failed at any stage.
    Do we have anything like Import Action? Probably we want to change that script. Or if we can write something like integration script. We need every column to be processed in one shot.
    I don't think it is self explantry. Can we have your email please?
    Thanks,
    Shivendra
    Edited by: shiv2 on Sep 16, 2011 8:52 PM

  • MS SQL Server 2014: Error inserting into Temp table with index and identity field

    In this thread, I mentioned a problem with SQL Server 2014:
    SQL Server 2014: Bug with IDENTITY INSERT ON
    The question was answered, it is a bug. To keep you informed on this issue, I open this discussion.
    Problem:
    The code below works perfectly fine on MS SQL Server 2008 R2 and MS SQL Server 2012, but gives an error every second time the proc is executed on MS SQL Server 2014. If I do not define any index on the temp table, the problem disappears. Defining the index
    after the insert, does not help.
    SET NOCOUNT ON
    GO
    IF EXISTS (SELECT 1 FROM sys.procedures WHERE name = 'usp_Test') DROP PROC dbo.usp_Test;
    GO
    CREATE PROC dbo.usp_Test AS
    BEGIN
    SET NOCOUNT ON
    CREATE TABLE #Source(ID integer NOT NULL);
    INSERT INTO #Source VALUES (1), (2), (3);
    CREATE TABLE #Dest (ID integer IDENTITY(1,1) NOT NULL);
    CREATE INDEX #IDX_Dest ON #Dest (ID);
    PRINT 'Check if the insert might cause an identity crisis';
    SELECT 'Source' AS SourceTable, * FROM #Source;
    SELECT 'Destination' AS DestTable, * FROM #Dest;
    SET IDENTITY_INSERT #Dest ON;
    PRINT 'Do the insert';
    INSERT INTO #Dest (ID) SELECT ID FROM #Source;
    PRINT 'Insert ready';
    SET IDENTITY_INSERT #Dest OFF;
    SELECT * FROM #Dest;
    DROP TABLE #Source;
    DROP TABLE #Dest;
    END;
    GO
    PRINT 'First execution of the proc, everything OK';
    EXEC dbo.usp_Test;
    PRINT '';
    PRINT 'Second execution of the proc, the insert fails.';
    PRINT 'Removing the index #IDX_Dest causes the error to disappear.';
    EXEC dbo.usp_Test;
    GO
    DROP PROC dbo.usp_Test;
    GO

    There is some progress. Communication from a former Microsoft employee tells us this:
    Shivendra Vishal
    Engineer at Microsoft
    I am no longer with MS, and I do not have code access, however from the public symbols, I could make out following:
    sqlmin!SetidentI2I4+0x1f3:
    000007fe`f4d865d3 488b10 mov rdx,qword ptr [rax] ds:00000000`00000000=????????????????
    ExceptionAddress: 000007fef4d865d3 (sqlmin!SetidentI2I4+0x00000000000001f3)
    ExceptionCode: c0000005 (Access violation)
    ExceptionFlags: 00000000
    NumberParameters: 2
    Parameter[0]: 0000000000000000
    Parameter[1]: 0000000000000000
    Attempt to read from address 0000000000000000
    This is a read AV and from registers it is clear that we were trying to move the value of location pointed by qword of register rax which is not valid:
    rax=0000000000000000 rbx=0000000000000038 rcx=0000000000001030
    rdx=0000000000000006 rsi=00000001f55def98 rdi=00000000106fd070
    rip=000007fef4d865d3 rsp=00000000106fcf40 rbp=00000000106fcfe9
    r8=0000000000000000 r9=00000001f55def60 r10=00000001f55defa0
    r11=00000000106fcd20 r12=0000000000000000 r13=0000000000000002
    r14=00000001f49c3860 r15=00000001f58c0040
    iopl=0 nv up ei pl nz na po nc
    cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010206
    The stack is:
    # Child-SP RetAddr Call Site
    00 00000000`106fcf40 000007fe`f30c1437 sqlmin!SetidentI2I4+0x1f3
    01 00000000`106fd050 000007fe`f474e7ce sqlTsEs!CEsExec::GeneralEval4+0xe7
    02 00000000`106fd120 000007fe`f470e6ef sqlmin!CQScanUpdateNew::GetRow+0x43d
    03 00000000`106fd1d0 000007fe`f08ff517 sqlmin!CQueryScan::GetRow+0x81
    04 00000000`106fd200 000007fe`f091cebe sqllang!CXStmtQuery::ErsqExecuteQuery+0x36d
    05 00000000`106fd390 000007fe`f091ccb9 sqllang!CXStmtDML::XretDMLExecute+0x2ee
    06 00000000`106fd480 000007fe`f08fa058 sqllang!CXStmtDML::XretExecute+0xad
    07 00000000`106fd4b0 000007fe`f08fb66b sqllang!CMsqlExecContext::ExecuteStmts<1,1>+0x427
    08 00000000`106fd5f0 000007fe`f08fac2e sqllang!CMsqlExecContext::FExecute+0xa33
    09 00000000`106fd7e0 000007fe`f152cfaa sqllang!CSQLSource::Execute+0x86c
    0a 00000000`106fd9b0 000007fe`f152c9e8 sqllang!CStmtExecProc::XretLocalExec+0x25a
    0b 00000000`106fda30 000007fe`f152a1d8 sqllang!CStmtExecProc::XretExecExecute+0x4e8
    0c 00000000`106fe1e0 000007fe`f08fa058 sqllang!CXStmtExecProc::XretExecute+0x38
    0d 00000000`106fe220 000007fe`f08fb66b sqllang!CMsqlExecContext::ExecuteStmts<1,1>+0x427
    0e 00000000`106fe360 000007fe`f08fac2e sqllang!CMsqlExecContext::FExecute+0xa33
    0f 00000000`106fe550 000007fe`f0902267 sqllang!CSQLSource::Execute+0x86c
    10 00000000`106fe720 000007fe`f0909087 sqllang!process_request+0xa57
    11 00000000`106feee0 000007fe`f2bf49d0 sqllang!process_commands+0x4a3
    12 00000000`106ff200 000007fe`f2bf47b4 sqldk!SOS_Task::Param::Execute+0x21e
    13 00000000`106ff800 000007fe`f2bf45b6 sqldk!SOS_Scheduler::RunTask+0xa8
    14 00000000`106ff870 000007fe`f2c136ff sqldk!SOS_Scheduler::ProcessTasks+0x279
    15 00000000`106ff8f0 000007fe`f2c138f0 sqldk!SchedulerManager::WorkerEntryPoint+0x24c
    16 00000000`106ff990 000007fe`f2c13246 sqldk!SystemThread::RunWorker+0x8f
    17 00000000`106ff9c0 000007fe`f2c13558 sqldk!SystemThreadDispatcher::ProcessWorker+0x3ab
    18 00000000`106ffa70 00000000`775d59ed sqldk!SchedulerManager::ThreadEntryPoint+0x226
    19 00000000`106ffb10 00000000`7780c541 kernel32!BaseThreadInitThunk+0xd
    1a 00000000`106ffb40 00000000`00000000 ntdll!RtlUserThreadStart+0x21
    Unassembling the function:
    000007fe`f4d8658e 4c8b10 mov r10,qword ptr [rax]
    000007fe`f4d86591 4533e4 xor r12d,r12d
    000007fe`f4d86594 410fb7d5 movzx edx,r13w
    000007fe`f4d86598 4533c9 xor r9d,r9d
    000007fe`f4d8659b 4533c0 xor r8d,r8d
    000007fe`f4d8659e 488bc8 mov rcx,rax
    000007fe`f4d865a1 4489642420 mov dword ptr [rsp+20h],r12d
    000007fe`f4d865a6 41ff5230 call qword ptr [r10+30h]
    000007fe`f4d865aa 8b5597 mov edx,dword ptr [rbp-69h]
    000007fe`f4d865ad 4c8b10 mov r10,qword ptr [rax]
    000007fe`f4d865b0 4489642438 mov dword ptr [rsp+38h],r12d
    000007fe`f4d865b5 4489642430 mov dword ptr [rsp+30h],r12d
    000007fe`f4d865ba 458d442401 lea r8d,[r12+1]
    000007fe`f4d865bf 4533c9 xor r9d,r9d
    000007fe`f4d865c2 488bc8 mov rcx,rax
    000007fe`f4d865c5 c644242801 mov byte ptr [rsp+28h],1
    000007fe`f4d865ca 4488642420 mov byte ptr [rsp+20h],r12b
    000007fe`f4d865cf 41ff5250 call qword ptr [r10+50h]
    000007fe`f4d865d3 488b10 mov rdx,qword ptr [rax] <=================== AV happened over here
    000007fe`f4d865d6 488bc8 mov rcx,rax
    000007fe`f4d865d9 4c8bf0 mov r14,rax
    000007fe`f4d865dc ff5268 call qword ptr [rdx+68h]
    000007fe`f4d865df 488d55e7 lea rdx,[rbp-19h]
    000007fe`f4d865e3 4c8b00 mov r8,qword ptr [rax]
    000007fe`f4d865e6 488bc8 mov rcx,rax
    000007fe`f4d865e9 41ff5010 call qword ptr [r8+10h]
    000007fe`f4d865ed f6450a04 test byte ptr [rbp+0Ah],4
    I remember few issues with scan2ident function, I am not sure if they have fixed it however it appears that this is intoduced to SQL 2014 and we need help from MS to get this resolved as it needs code analysis.
    It is not getting simulated for other versions of SQL apart from SQL 2014.
    Also to add, interestingly, the value of rax is not visibly changed and it was successfully passed on to rcx, which has a valid value, so something should have changed the value of rax inside call to function using call qword ptr [r10+50h], and looking at this
    it appears that it might be a list of functions and we are going at particular offset [50h]. So, bottom line is that the call to function qword ptr [r10+50h], should be changing something in rax, and debugging/analyzing this code might give us some more idea.

  • ORA-1653: unable to extend table - but enough space for datafile

    We encountered this problem in one of our database Oracle Database 10g Release 10.2.0.4.0
    We have all datafiles in all tablespaces specified with MAXSIZE and AUTOEXTEND ON. But last week database could not extend table size
    Wed Dec  8 18:25:04 2013
    ORA-1653: unable to extend table PCS.T0102 by 128 in                 tablespace PCS_DATA
    ORA-1653: unable to extend table PCS.T0102 by 8192 in                tablespace PCS_DATA
    Wed Dec  8 18:25:04 2013
    ORA-1653: unable to extend table PCS.T0102 by 128 in                 tablespace PCS_DATA
    ORA-1653: unable to extend table PCS.T0102 by 8192 in                tablespace PCS_DATA
    Wed Dec  8 18:25:04 2013
    ORA-1653: unable to extend table PCS.T0102 by 128 in                 tablespace PCS_DATA
    ORA-1653: unable to extend table PCS.T0102 by 8192 in                tablespace PCS_DATA
    Datafile was created as ... DATAFILE '/u01/oradata/PCSDB/PCS_DATA01.DBF' AUTOEXTEND ON  NEXT 50M MAXSIZE 31744M
    Datafile PCS_DATA01.DBF had only 1GB size. Maximum size is 31GB but database did not want to extend this datafile.
    We used temporary solution and we added new datafile to same tablespace. After that database and our application started to work correctly.
    There is enough free space for database datafiles.
    Do you have some ideas where could be our problem and what should we check?
    Thanks

    ShivendraNarainNirala wrote:
    Hi ,
    Here i am sharing one example.
    SQL> select owner,table_name,blocks,num_rows,avg_row_len,round(((blocks*8/1024)),2)||'MB' "TOTAL_SIZE",
      2   round((num_rows*avg_row_len/1024/1024),2)||'Mb' "ACTUAL_SIZE",
      3   round(((blocks*8/1024)-(num_rows*avg_row_len/1024/1024)),2) ||'MB' "FRAGMENTED_SPACE"
      4   from dba_tables where owner in('DWH_SCHEMA1','RM_SCHEMA_DDB','RM_SCHEMA') and round(((blocks*8/1024)-(num_rows*avg_row_len/1024/1024)),2) > 10 ORDER BY FRAGMENTED_SPACE;
    OWNER           TABLE_NAME                        BLOCKS   NUM_ROWS AVG_ROW_LEN TOTAL_SIZE           ACTUAL_SIZE          FRAGMENTED_SPACE
    DWH_SCHEMA1     FP_DATA_WLS                        14950     168507          25 116.8MB              4.02Mb               112.78MB
    SQL> select tablespace_name from dba_segments where segment_name='FP_DATA_WLS' and owner='DWH_SCHEMA1';
    TABLESPACE_NAME
    DWH_TX_DWH_DATA
    SELECT /* + RULE */  df.tablespace_name "Tablespace",
           df.bytes / (1024 * 1024) "Size (MB)",
           SUM(fs.bytes) / (1024 * 1024) "Free (MB)",
           Nvl(Round(SUM(fs.bytes) * 100 / df.bytes),1) "% Free",
           Round((df.bytes - SUM(fs.bytes)) * 100 / df.bytes) "% Used"
      FROM dba_free_space fs,
           (SELECT tablespace_name,SUM(bytes) bytes
              FROM dba_data_files
             GROUP BY tablespace_name) df
    WHERE fs.tablespace_name   = df.tablespace_name
    GROUP BY df.tablespace_name,df.bytes
    UNION ALL
    SELECT /* + RULE */ df.tablespace_name tspace,
           fs.bytes / (1024 * 1024),
           SUM(df.bytes_free) / (1024 * 1024),
           Nvl(Round((SUM(fs.bytes) - df.bytes_used) * 100 / fs.bytes), 1),
           Round((SUM(fs.bytes) - df.bytes_free) * 100 / fs.bytes)
      FROM dba_temp_files fs,
           (SELECT tablespace_name,bytes_free,bytes_used
              FROM v$temp_space_header
             GROUP BY tablespace_name,bytes_free,bytes_used) df
    WHERE fs.tablespace_name   = df.tablespace_name
    GROUP BY df.tablespace_name,fs.bytes,df.bytes_free,df.bytes_used
    ORDER BY 4 DESC;
    set lines 1000
    col FILE_NAME format a60
    SELECT SUBSTR (df.NAME, 1, 60) file_name, df.bytes / 1024 / 1024 allocated_mb,
    ((df.bytes / 1024 / 1024) - NVL (SUM (dfs.bytes) / 1024 / 1024, 0))
    used_mb,
    NVL (SUM (dfs.bytes) / 1024 / 1024, 0) free_space_mb
    FROM v$datafile df, dba_free_space dfs
    WHERE df.file# = dfs.file_id(+)
    GROUP BY dfs.file_id, df.NAME, df.file#, df.bytes
    ORDER BY file_name;
    Tablespace                      Size (MB)  Free (MB)     % Free     % Used
    DWH_TX_DWH_DATA                     11456       8298         72         28
    FILE_NAME                                                    ALLOCATED_MB    USED_MB FREE_SPACE_MB
    /data1/FPDIAV1B/dwh_tx_dwh_data1.dbf                                 1216       1216             0
    /data1/FPDIAV1B/dwh_tx_dwh_data2.dbf                                10240       1942          8298
    SQL> alter database datafile '/data1/FPDIAV1B/dwh_tx_dwh_data2.dbf' resize 5G;
    alter database datafile '/data1/FPDIAV1B/dwh_tx_dwh_data2.dbf' resize 5G
    ERROR at line 1:
    ORA-03297: file contains used data beyond requested RESIZE value
    Although , we did moved the tables into another TB , but it doesn't resolve the problem unless we take export and drop the tablespace aand again import it .We also used space adviser but in vain .
    As far as metrics and measurement is concerned , as per my experience its based on blocks which is sparse in nature related to HWM in the tablespace.
    when it comes to partitions , just to remove fragmentation by moving their partitions doesn't help  .
    Apart from that much has been written about it by Oracle Guru like you .
    warm regards
    Shivendra Narain Nirala
    how does free space differ from fragmented space?
    is all free space considered by you to be fragmented?
    "num_rows*avg_row_len" provides useful result only if statistics are current & accurate.

  • Changing environment variables not reflected in axis2.

    Hi,
    I am using axis2(1.2).And my problem is that I am trying to call two or more webservice from the same host .Let me explain.I have a web page .Its take some info to serach and also the parameter to which service to call.Suppose there are two service running (A and B).For A, need the following environment to set before calling :
    System.setProperty("javax.net.ssl.keyStore",keyStore);
    System.setProperty("javax.net.ssl.keyStorePassword", keyPwd);
    System.setProperty("javax.net.ssl.keyStoreType",keyType);
    System.setProperty("javax.net.ssl.trustStoreType",trustType);
    System.setProperty("javax.net.ssl.trustStore",trustStore);
    System.setProperty("javax.net.ssl.trustStorePassword",trustPwd);And for B do not required any environment variable.
    When I try to connect the B(clear all the environment) after accessing the A its throw the following exception :
    org.apache.axis2.AxisFault: sun.security.validator.ValidatorException:
    PKIX path building failed:
    sun.security.provider.certpath.SunCertPathBuilderException: unable to find
    valid certification path to requested targetBut if I restart the webserver and try to call B its working but if I try to access A its failed.
    So its seem to me that once the environment is set its not possible to reset it.
    So is there any solution.
    Thanks & Regrads

    i haven't used axis2 specifically, but i would imagine that it provides a way to configure that connection information for a specific webservice connection (as opposed to globally for the jvm). a quick google for "axis 2 custom keystore" found this link: http://shivendra-tripathi.blogspot.com/2010/11/enabling-ssl-for-axis2-service-and.html which shows how to configured an axis2 client with a custom keystore ("Approach 2", at the very end of the article). actually, looking again at that article, it may be configuring a system-wide setting (the Protocol.registerProtocol() call looks to be static). this looks better: http://wso2.org/library/1646 .
    Edited by: jtahlborn on Jul 11, 2011 2:06 PM

  • FDM Multiload Batch loader issue

    Hi All,
    I need help in Multiload Batch load process. I am working on FDM 11.1.2.1. We need to move data of 6 months. I am using comma separated Text file for this purpose.
    When I am loading it through FDM user interface, it is fine (It is generating 1 export file for all 6 months with diffrent combination) but If I am trying to run it through FDM Batch load for Multiload it is generating the 6 export files and loading one by one (Which I don't want).
    I want one export file generated for all month. Is there any setting by which FDM will stop multiple Export file generation for diffrent month.
    Remaining process is Working fine if I am loading manually through FDM web.
    Thanks,
    Shivendra

    Hi Shivendra
    Unfortunately I think it is a "feature" of batch processing.
    When processing multi-load files manually through FDM a text multiload source file produces a single export file while an excel multiload source file produces a separate export file for each period in the source file.
    With batch processing unfortunately both types of source file behave the same as the manual excel way.
    One option that may help you is parallel processing in the batch? Be warned though, that may not help either as the parallel processing will queue files for the same POV (I think from memory it treats different periods for the same location/category as the same POV in parallel processing so if you are loading say 12 periods for the same location/category you may not gain anything in parallel processing).
    Hope this helps
    Stuart

  • Oracle Apps 11i Software

    Hi Bangalorites,
    I am residing in Bangalore. I would wish to install Oracle Apps 11i on my Home PC. Can anybody lend me Software CDs (Windows or Linux) and assist me to install the same.
    Kindly supply me with your contact infos at [email protected] or 9845390787.
    Thanks & Regards,
    Shivendra Bhatia

    Hi
    I would like to get more information on or
    about the oracle release 11i. I have tried the oracle web site for the free downloads but wasn't lucky. Can you help?
    Mark

  • Issue while starting Named service

    HI All,
    I an in process of upgrading cluster from 1.2.0.5 to 11gr2.My OS is Redhat linux 5.3 For the same i am trying to configure DNS and scan .As i dont' have much idea  about network so
    I followed the link for configuring DNS Oracle 11gR2 2-node RAC on VMWare Workstation 8 – Part VII | The Gruff DBA  . As per link i installed below rpms
    [root@nod1 log]# rpm -qa bind*
    bind-libs-9.3.4-10.P1.el5
    bind-utils-9.3.4-10.P1.el5
    bind-chroot-9.3.4-10.P1.el5
    bind-9.3.4-10.P1.el5
    [root@nod1 log]#
    root@nod1 log]# rpm -qa cach*
    caching-nameserver-9.3.4-10.P1.el5
    [root@nod2 named]# more /etc/named.conf---> Named.conf file from nod2
    options {
            directory "/var/named";
    dump-file "/var/named/data/cache_dump.db";
    statistics-file "/var/named/data/named_stats.txt";
            forwarders { 192.168.1.1; };
    include "/etc/rndc.key";
    zone "mydomain" IN {
    type master;
    file "mydomain.zone";
    allow-update { none; };
    [root@nod1 named]# pwd
    /var/named
    [root@nod1 named]# more mydomain.zone
    $TTL  86400
    @ IN SOA      mydomain. mydomain.(
    42          ; serial (d. adams)
    3H          ; refresh
    15M         ; retry
    1W          ; expiry
    1D )        ; minimum
    nod1.                        IN NS   192.168.56.2
    localhost                     IN A   127.0.0.1
    nod2.mydomain                 IN A   192.168.56.5
    nod1.mydomain                 IN A    192.168.56.2
    nod2-vip.mydoamin.            IN A    192.168.56.7
    nod1-vip.mydoamin..           IN A    192.168.56.4
    underworld-scan.mydomain.     IN A    192.168.56.20
    underworld-scan.mydomain.     IN A    192.168.56.21
    [root@nod2 named]# more /etc/resolv.conf
    nameserver  192.168.56.5    # nod2 DNS server
    nameserver 192.168.56.2     # nod1 DNS server
    nameserver 192.168.1.1    # Primary DNS in the domain
    search mydomain # Local Domain
    But i am hitting issue when i am starting named service:
    [root@nod1 log]# service named start
    Starting named:
    Error in named configuration:
    zone mydomain/IN: loading master file mydomain.zone: file not found
    _default/mydomain/IN: file not found
                                                               [FAILED]
    [root@nod1 log]# Can anyone please help me out .. as its really hitting me badly . Thanks in advance

    Hi
    To configure the SCAN , this SCAN IP should be resolve through DNS or /etc/hosts file .Please follow the below link to configure the DNS.
    If you face any problem , then please let me know .
    shivenracdba: configure DNS for Installtion of Oracle Grid Infrastructure RAC cluster
    warm regards
    Shivendra Narain Nirala

  • Issue while configuring cache management -/osb/service/ResultCache

    Hello, I am trying to configure cache data management through OEM console of 12.1.0.2 version . While executing a coherance select query, I am getting below error message
    "Error occurs while executing the "view" operation. CacheDataManager custom MBean is not registered with the Oracle Coherence JMX Server during startup. The custom MBean is available with the coherenceEMIntg.jar."
    I have even included these jar files in my coherance server startup parameters ..
    <>/agent12c/plugins/oracle.sysman.emas.agent.plugin_12.1.0.3.0/archives/coherence/coherenceEMIntg.jar:
    <>/plugins/oracle.sysman.emas.agent.plugin_12.1.0.3.0/archives/coherence/bulkoperationsmbean.jar
    could someone pls help on this.

    Hi
    To configure the SCAN , this SCAN IP should be resolve through DNS or /etc/hosts file .Please follow the below link to configure the DNS.
    If you face any problem , then please let me know .
    shivenracdba: configure DNS for Installtion of Oracle Grid Infrastructure RAC cluster
    warm regards
    Shivendra Narain Nirala

  • How to avoid  " is it ok to use airtime?" Prompt?

    Hi,
    I am using a simple socket connection in my application. Each time when application attempts to a connection Nokia 6620 device shows a prompt
    " is it ok to use airtime?"
    YES/NO
    Since this is a non user interacting application, I need to avoid this prompt permanently.
    Can someone suggest me if there is some application level API/ device specific seeting available to avoid this prompt?
    Thanks,
    Regards,
    Shivendra.

    The jar has to be signed, and you need to specify the
    relevant permissions in the jad file. There are many
    article around on doing this. You'll have to obtain
    a code signing certificate from an authority that
    already has a root certificate on the device.
    VeriSign seems to be the best choice ($400US).
    There is no other way to bypass MIDlet security.Hi, i am facing the same problem as to get rid the prompt, and you have mentioned there are many articles on doing this, can you please paste me some links? thks alot

  • Unable to recreate control file.

    Hello experts.
    I'm trying to recreate controlfile in oracle database 10.2 using trace file. by during running script it shows   ERROR at line 8: ORA-01967: invalid option for CREATE CONTROLFILE
    my script create control file script below. please help
    ============================================================
    CREATE CONTROLFILE REUSE DATABASE "TSH1" NORESETLOGS  ARCHIVELOG
        MAXLOGFILES 16
        MAXLOGMEMBERS 3
        MAXDATAFILES 100
        MAXINSTANCES 8
        MAXLOGHISTORY 292
    LOGFILE
      GROUP 1 '/u01/app/oracle/oradata/TSH1/redo01.log'  SIZE 50M BLOCKSIZE 512,
      GROUP 2 '/u01/app/oracle/oradata/TSH1/redo02.log'  SIZE 50M BLOCKSIZE 512,
      GROUP 3 '/u01/app/oracle/oradata/TSH1/redo03.log'  SIZE 50M BLOCKSIZE 512
    DATAFILE
      '/u01/app/oracle/oradata/TSH1/system01.dbf',
      '/u01/app/oracle/oradata/TSH1/undotbs01.dbf',
      '/u01/app/oracle/oradata/TSH1/sysaux01.dbf',
      '/u01/app/oracle/oradata/TSH1/users01.dbf',
      '/u01/app/oracle/oradata/TSH1/oradaxmldb_ts.dbf'
    CHARACTER SET WE8ISO8859P1
    VARIABLE RECNO NUMBER;
    EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CHANNEL','DEVICE TYPE DISK FORMAT   ''/backup/%U''');
    RECOVER DATABASE
    ALTER SYSTEM ARCHIVE LOG ALL;
    ALTER DATABASE OPEN;
    ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/app/oracle/oradata/TSH1/temp01.dbf' REUSE;

    Hi
    Just remove below lines from scripts and run again and please use set instead of reuse in the create control file staetment .
    VARIABLE RECNO NUMBER;
    EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CHANNEL','DEVICE TYPE DISK FORMAT   ''/backup/%U''');
    RECOVER DATABASE
    ALTER SYSTEM ARCHIVE LOG ALL;
    ALTER DATABASE OPEN;
    ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/app/oracle/oradata/TSH1/temp01.dbf' REUSE;
    Regards
    Shivendra Narain Nirala

  • How to backup oracle RAC filesystem

    Hello,
    May anyone in this community might help to answer on my inquiry on how to backup oracle RAC filesystem. There are many backup features available out there i.e: RMAN, hotbackup etc but the way the backup is working is RMAN will backup and stored the db file in the filesystem. I presume the filesystem also need to be backed up in order to avoid the filesystem corrupted etc
    Regards

    Hi,
    Always welcome ..
    when you want to take backup of all the database components of RAC, that's why i advised you to include the all commands in your backup strategy, so that in any case your any components doesn't work , you can restore the particular one .
    One thing you can do , you are running your RAC environment on Vsphere , in that case , create a backup plan with the client and your IT team to take backup of whole environment by creating snapshot of Vsphere along with backup plan mentioned by me in above reply  , so in worst scenario your whole environment can be restored .
    I have seen that if RAC environment is running on VMware , then its best to take snapshot of whole machine which should be defined in backup policy apart from normal backup of database.
    Thanks
    Shivendra Narain Nirala

  • SAPCAR error reading from UCKx6464bit/KUWINDOWSX86_64/DBINDEP/SAPEXE(error5

    Hello everyone,
    I am facing trouble with Solman 7.0 installation on windows 2003 Enterprise SP1/ Oracle 10.2.0.2.  It stops at ADS User password stage & shows up the error popup. When I check the logs I get the following error. Tried investigating in the notes & SDN network for know issues but to no success. Tried starting from scratch by reinstalling OS, DB then SAPinst, but hit the same issue. I tried extracting SAPEXE.SAR using SAPCAR it gives the error. "
    SAPCAR: could not open for writing sapcar.exe (error 28). The process cannot access the file because it is being used by another process."
    It looks like SAPCAR is being use If anyone has faced this issue and can share some light on it I shall be great full.
    +INFO 2011-07-10 13:45:32.203+
    +Output of C:\DOCUME1\ADMINI1\LOCALS~1\Temp\sapinst_exe.748.1310275892\SAPCAR.exe -t -v -g -i -s -f Z:/UCKx6464bit\KU_WINDOWS_X86_64\DBINDEP/SAPEXE.SAR, sapstart.exe:+
    +SAPCAR: processing archive Z:/UCKx6464bit/KU_WINDOWS_X86_64/DBINDEP/SAPEXE.SAR (version 2.01)+
    +-rwx------      596776    24 Jan 2008 08:58 sapstart.exe+
    +The extraction requires approximately...+
    ++                 583 KB in C:/Program Files/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS++
    +INFO 2011-07-10 13:45:32.390+
    +Creating file C:\Program Files\sapinst_instdir\SOLMAN\SYSTEM\ORA\CENTRAL\AS\SAPEXE.log.+
    +INFO 2011-07-10 13:45:32.453+
    +Output of C:\DOCUME1\ADMINI1\LOCALS~1\Temp\sapinst_exe.748.1310275892\SAPCAR.exe is written to the logfile SAPEXE.log.+
    +INFO 2011-07-10 13:46:00.078+
    +Output of C:\DOCUME1\ADMINI1\LOCALS~1\Temp\sapinst_exe.748.1310275892\SAPCAR.exe -x -v -g -i -R DBINDEP/SAPEXE.SAR -f Z:/UCKx6464bit\KU_WINDOWS_X86_64\DBINDEP/SAPEXE.SAR, sapstart.exe:+
    +SAPCAR: processing archive Z:/UCKx6464bit/KU_WINDOWS_X86_64/DBINDEP/SAPEXE.SAR (version 2.01)+
    +SAPCAR: error reading from Z:/UCKx6464bit/KU_WINDOWS_X86_64/DBINDEP/SAPEXE.SAR (error 5).+
    +WARNING[E] 2011-07-10 13:46:00.078+
    +MUT-03011  Execution of the command "C:\DOCUME1\ADMINI1\LOCALS~1\Temp\sapinst_exe.748.1310275892\SAPCAR.exe -x -v -g -i -R DBINDEP/SAPEXE.SAR -f Z:/UCKx6464bit\KU_WINDOWS_X86_64\DBINDEP/SAPEXE.SAR, sapstart.exe" finished with return code 5. Output:+
    +SAPCAR: processing archive Z:/UCKx6464bit/KU_WINDOWS_X86_64/DBINDEP/SAPEXE.SAR (version 2.01)+
    +SAPCAR: error reading from Z:/UCKx6464bit/KU_WINDOWS_X86_64/DBINDEP/SAPEXE.SAR (error 5).+
    +WARNING[E] 2011-07-10 13:46:00.078+
    +MUT-03011  Execution of the command "C:\DOCUME1\ADMINI1\LOCALS~1\Temp\sapinst_exe.748.1310275892\SAPCAR.exe -x -v -g -i -R DBINDEP/SAPEXE.SAR -f Z:/UCKx6464bit\KU_WINDOWS_X86_64\DBINDEP/SAPEXE.SAR, sapstart.exe" finished with return code 5. Output:+
    +SAPCAR: processing archive Z:/UCKx6464bit/KU_WINDOWS_X86_64/DBINDEP/SAPEXE.SAR (version 2.01)+
    +SAPCAR: error reading from Z:/UCKx6464bit/KU_WINDOWS_X86_64/DBINDEP/SAPEXE.SAR (error 5).+
    +ERROR 2011-07-10 13:46:00.93+
    +FCO-00011  The step initSIDAndNumber with step key |NW_Onehost|ind|ind|ind|ind|0|0|SA_Integrated|ind|ind|ind|ind|7|0|initSIDAndNumber was executed with status ERROR .+
    Thanks & Regards
    gabbasis
    Edited by: gab basis on Jul 10, 2009 11:49 AM

    Hi,
    The problem is that you are using the file SAPCAR.EXE for uncompromising the kernel that you have downloaded from market place.
    at the time of uncompression a new SAPCAR.EXE file is generated and it want to replace the existing file but that is being used for the uncomression. therefore you get that error.
    please change the existing file say SAPCAR1.exe and then try again. it will work fine.
    Shivendra Singh Yadav

Maybe you are looking for