Problem posting data with HttpsConnection

Hi,
I am currently having problems posting data using a HttpsConnection.
I am setting the setRequestMethod to HttpConnection.POST and then using the openDataOutputStream method.
I will post my code when I get home for reference.
Background to my problem - I am trying to use the declarative security features of J2EE to authenticate a mobile user.
I am firstly firing a HttpsConnection from the mobile device to a protected resource on the app server. I grab the JSessionId from the Set-Cookie http header of the response and post a second request to the j_security_check and provide the refer http header to the protected resource - this simulates exactly what happens on a browser (I used a Http monitor tool to confirm this). However, I need to pass the j_username and j_password as body of the https request. This doesn't seem to work because the server displays my access denied at this point - as if it hadn't received the crednetials
However, just to confirm my technique works I subsituted the post request for a get request to j_security_check and passed the j_username and j_password as request params in the URL. This worked fine and I got a 302 response 'temporily moved' which I then handle by simply making a further request for the original resource - this time it serves back the resource because I am authenticated.
Anyway that sets the scene - so the problem definitely appears to be posting data using an HttpsConnection.
Any help would be greatly appreciated
Rgds,
David

Hi,
Here is my code relating to the above problem:
httpsConn = (HttpsConnection)Connector.open("https://127.0.0.1:8443/ebank/j_security_check");
            httpsConn.setRequestMethod(HttpConnection.POST);
            httpsConn.setRequestProperty("referer", "https://127.0.0.1:8443/ebank/main/mainMenu.xml");
            httpsConn.setRequestProperty("cookie", cookieValue);
            httpsConn.setRequestProperty("location", url);
            httpsConn.setRequestProperty("User-Agent",
                "Profile/MIDP-1.0, Configuration/CLDC-1.0");
            httpsConn.setRequestProperty("Content-Language",
                "en-gb");
String credentials = "j_username=EB0001&j_password=240589";
            httpsConn.setRequestProperty("Content-Length",""+credentials.length());
            DataOutputStream os = httpsConn.openDataOutputStream();
            os.writeUTF(credentials);
....Thanks,
David

Similar Messages

  • Stock on posting date with storagelocation,batch and stock types informatio

    Hi,
    I'm needing a report (similar funtion of MB5B) which must reveal the stock postion (closing balance) of the materials on a particular date alongwith storage loactions, batches and stocktypes (Unres/Q/Blkd).As such MB5B either gives the output either by storage location or by batch, not the combination of both.
    Else provide any possibilty means( Database tables) from where i could arrive these mention outputs.
    I could be able to get the information by collecting the values from MKPF & MSEG tables. But this information only suffice the material movements carried on that particular date.. And i will be not having the closing balance as a whole.
    I even wonder to get any such a kind of information in which i could able to get the stock with stock types(Unres/Q/Blkd).
    Any light on this matter is highly appreciable.
    Regards
    Prasanna

    Hi Amit Bakshi,
    Thanks for the reply..
    I executed the suggested program but i found the same kind of information aslike in MB5B..
    The information all i'm looking is to get the closing balance of the given material with storagelocations, batches and stock types on a given posting date.
    For eg.
    On 15 / 03 / 2011
    Material A
    Batch       Slocation       Stock type               Closing balance Qty.
    A1              S001               Unres.                             50
    A1              S002               Unres                            120
    B1              S001               Quality                             15
    C1              S003               Blocked                            30
    In MB5B i could able to get the values of closing balance either Storage location level or by batch level but is it possible to get the combination of both along with stock types?
    Reg
    Prasanna

  • Problem download data with trailing blanks using gui_download

    Hi All,
          I am using SAP 4.6C. I have requirement to download data with trailing
    blanks.But i am not succeeded fully to acheive my requirement.I want to
    download data to be in the below format.
    Eg: 'T000000070600000004000000003593593                                               '
    I want to download data with different blanks of each record.
    For example in 1 line 18, 2nd line 25, 3rd line 22.
    I already used Hexa notation value '09'. But it is showing only 7 at once. I have
    added 3 times this field but it is showing 21. How i can i add extra space?
    I tried to move ' ' spaces also. It does't wotk. I have tried concatenate with ' ' and
    separared by ' ' also but no use.
    I have passed all possible parameters to GUI_DOWNLOAD FM.
    say  write_field_separator         = ' '
    write_lf    = 'X'
    trunc_trailing_blanks    = ' '
    trunc_trailing_blanks_eol     = ' '
    Could please tell me some one had faced same problem earlier. It is very urgent.
    Is there is any class attribute in SAP 4.6C?
    ( like cl_abap_char_utilities in 4.7 )
    Thanks in Advance.
    Basha

    Try :
    CONCATENATE  XXXX space RESPECTING BLANKS.
    Of course you must retain these parameters :
    trunc_trailing_blanks = space
    trunc_trailing_blanks_eol = space
    Hope this helps

  • Jdeveloper 11.1.1.6 fail to post data with uploaded orddoc file

    I migrated our application in 11.1.1.6 from 11.1.1.4
    everything works fine except from posting data of entity with OrdDocDomain attribute.
    Anyone have the same issue?
    the log is
    JBO-26041: Failed to post data to database during "Update": SQL Statement "UPDATE DOCUMENT Document SET FILENAME=:1,LOBCONTENT=:2,UPDATED_BY=:3,UPDATED_ON=:4,OPTLOCK_VERSION=:5 WHERE ID=:6".
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
    Caused by: oracle.jbo.DMLException: JBO-26041: Failed to post data to database during "Update": SQL Statement "UPDATE DOCUMENT Document SET FILENAME=:1,LOBCONTENT=:2,UPDATED_BY=:3,UPDATED_ON=:4,OPTLOCK_VERSION=:5 WHERE ID=:6".
         at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:583)
         at oracle.jbo.server.EntityImpl.doDMLWithLOBs(EntityImpl.java:8647)
         at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8579)
         at com.intralot.igp.model.base.EntityImpl.doDML(EntityImpl.java:96)
         at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6816)
         at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3290)
         at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3093)
         at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2097)
         at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2378)
         at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1615)
         at oracle.adf.model.dcframe.LocalTransactionHandler.commit(LocalTransactionHandler.java:139)
         at oracle.adf.model.dcframe.DataControlFrameImpl.commit(DataControlFrameImpl.java:1226)
         at com.intralot.igp.view.utils.ADFUtils.dcCommit(ADFUtils.java:466)
         at com.intralot.igp.taskflows.view.backing.documents.Documents.editDocumentListener(Documents.java:67)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         ... 72 more
    Caused by: java.sql.SQLException: Undefined type
         at oracle.jpub.runtime.Util._convertToOracle(Util.java:277)
         at oracle.jpub.runtime.Util.convertToOracle(Util.java:167)
         at oracle.jpub.runtime.MutableStruct.getDatumAttribute(MutableStruct.java:323)
         at oracle.jpub.runtime.MutableStruct.getDatumAttributes(MutableStruct.java:347)
         at oracle.jpub.runtime.MutableStruct.toDatum(MutableStruct.java:118)
         at oracle.ord.im.OrdSource.toDatum(OrdSource.java:93)
         at oracle.jpub.runtime.Util._convertToOracle(Util.java:183)
         at oracle.jpub.runtime.Util.convertToOracle(Util.java:167)
         at oracle.jpub.runtime.MutableStruct.getDatumAttribute(MutableStruct.java:323)
         at oracle.jpub.runtime.MutableStruct.getDatumAttributes(MutableStruct.java:347)
         at oracle.jpub.runtime.MutableStruct.toDatum(MutableStruct.java:118)
         at oracle.ord.im.OrdDocBase.toDatum(OrdDocBase.java:96)
         at oracle.jdbc.driver.OraclePreparedStatement.setORADataInternal(OraclePreparedStatement.java:10450)
    Anyone have the same issue?
    Thanks

    We are getting the same issue when migrated to latest WLS version 10.3.6.0(ADF runtime 11.1.1.6) from WLS 10.3.3.0.
    The Exception we are getting while trying to post an ORD type object:
    java.sql.SQLException: Undefined type
    at oracle.jpub.runtime.Util._convertToOracle(Util.java:277)
    at oracle.jpub.runtime.Util.convertToOracle(Util.java:167)
    at oracle.jpub.runtime.MutableStruct.getDatumAttribute(MutableStruct.java:323)
    at oracle.jpub.runtime.MutableStruct.getDatumAttributes(MutableStruct.java:347)
    at oracle.jpub.runtime.MutableStruct.toDatum(MutableStruct.java:118)
    at oracle.ord.im.OrdSource.toDatum(OrdSource.java:93)
    at oracle.jpub.runtime.Util._convertToOracle(Util.java:183)
    at oracle.jpub.runtime.Util.convertToOracle(Util.java:167)
    at oracle.jpub.runtime.MutableStruct.getDatumAttribute(MutableStruct.java:323)
    at oracle.jpub.runtime.MutableStruct.getDatumAttributes(MutableStruct.java:347)
    at oracle.jpub.runtime.MutableStruct.toDatum(MutableStruct.java:118)
    at oracle.ord.im.OrdImageBase.toDatum(OrdImageBase.java:99)
    at oracle.jdbc.driver.OraclePreparedStatement.setORADataInternal(OraclePreparedStatement.java:10450)
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:11651)
    at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:11631)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObject(OraclePreparedStatementWrapper.java:253)
    at weblogic.jdbc.wrapper.PreparedStatement.setObject(PreparedStatement.java:357)
    at oracle.jbo.server.OracleSQLBuilderImpl.bindInsertStatement(OracleSQLBuilderImpl.java:2035)
    at oracle.jbo.server.EntityImpl.bindDMLStatement(EntityImpl.java:10516)
    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:412)
    at oracle.jbo.server.EntityImpl.doDMLWithLOBs(EntityImpl.java:8647)
    at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8579)
    at oracle.apps.grc.cms.model.eo.MediarepositoryimagesImpl.doDML(MediarepositoryimagesImpl.java:52)
    Can anyone please help on this. Is there any work around available?

  • Problem increasing dates with REGEXP_REPLACE and TO_DATE

    Hello all,
    i'm trying to increase dates in a string with a single statement, but i ran into the problem that Oracle doesn't interpret the regex backtrace operators when they are used in TO_DATE:
    SELECT
      REGEXP_REPLACE(
        'Test: 01.01.2001 Test: 02.02.2002',
        '([0-9]{2})\.([0-9]{2})\.([0-9]{4})',
        TO_CHAR(TO_DATE('\1\2\3', 'DDMMYYYY') + 1, 'DD.MM.YYYY')
    FROM DUALLeads to a ORA-01858: 01858, 00000, "a non-numeric character was found where a numeric was expected".
    However, using other functions on the backtrace operators like UPPER('\1') works like a charm. Is this a limitation of the TO_DATE function?
    Is there any possibility to replace the dates in a small, simple statement?
    Thanks in advance,
    -sd

    How should I show you an example, when it's simply
    not possible? I know I mixed up parameters and
    callbacks mistakenly and took the wrong approach.Ok. In your last post, you've added a question mark, so
    it did look as you weren't aware of the problem.
    However, I thought there was some possibility in
    Oracle regex to apply a callback function to
    regex-replacement like other languages have
    (preg_replace_callback in PHP for example) like:Interesting. Unfortunately PL/SQL is not PHP and there's
    (yet) no callback feature implemented.
    FUNCTION chg_date(
    p_string
    REGEXP_REPLACE_CALLBACK('Test: 2001', '[0-9]{4}',
    'chg_date')
    ...I too miss the possibility to extend the use of backtrace
    parameters, maybe in one of the future versions.
    C.

  • Problem sending data with HTTPS  using client authentication.

    Hi,
    I�m tryingto send a message to a secure server using for this client certificate, apparently if I make a GET of "/" (server root) , everything works fine (authentication, and data received), from the moment that I try to ways send data to the "/pvtn " directory i obtain the following error.
    This is a sample of the code i�m using:
    import com.sun.net.ssl.KeyManagerFactory;
    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.io.Writer;
    import java.net.Socket;
    import java.security.*;
    import java.security.GeneralSecurityException;
    import java.security.Principal;
    import java.security.PublicKey;
    import java.util.Collection;
    import java.util.Date;
    import javax.net.ssl.SSLSocket;
    import javax.net.ssl.SSLSocketFactory;
    import javax.security.cert.*;
    import javax.security.cert.X509Certificate;
    public class Test
    public static final String TARGET_HTTPS_SERVER = "mymachine.mydomain.pt";
    public static final int TARGET_HTTPS_PORT = 443;
    public static void main(String[] args) throws Exception
    System.setProperty("javax.net.ssl.trustStore","/certificados/truststore.txt");
    System.setProperty("javax.net.ssl.trustStorePassword","trustpwd");
    System.setProperty("javax.net.ssl.keyStore","/certificados/truststore.txt");
    System.setProperty("javax.net.ssl.keyStorePassword","trustpwd");
    java.security.Security.removeProvider("SunJSSE");
    java.security.Security.insertProviderAt(new com.sun.net.ssl.internal.ssl.Provider(),2);
    KeyManagerFactory kmf= KeyManagerFactory.getInstance("SunX509", "SunJSSE") ;
    //Socket
    SSLSocket jsslSoc = (SSLSocket) SSLSocketFactory.getDefault().createSocket(TARGET_HTTPS_SERVER, TARGET_HTTPS_PORT);
    String [] ciphers = jsslSoc.getSupportedCipherSuites() ;
    //// Select the ciphers you want and put them.
    //// Here we will put all availabel ciphers
    jsslSoc.setEnabledCipherSuites(ciphers);
    //// We are creating socket in client mode
    jsslSoc.setUseClientMode(true);
    //// Do SSL handshake
    jsslSoc.startHandshake();
    // Print negotiated cipher
    System.out.println("Negotiated Cipher Suite: " + jsslSoc.getSession().getCipherSuite());
    System.out.println("");
    X509Certificate[] peerCerts = ((javax.net.ssl.SSLSocket)jsslSoc).getSession().getPeerCertificateChain();
    if (peerCerts != null)
    System.out.println("Printing server information:");
    for(int i =0; i < peerCerts.length; i++)
    System.out.println("Peer Certificate ["+i+"] Information:");
    System.out.println("- Subject: " + peerCerts.getSubjectDN().getName());
    System.out.println("- Issuer: " + peerCerts[i].getIssuerDN().getName());
    System.out.println("- Version: " + peerCerts[i].getVersion());
    System.out.println("- Start Time: " + peerCerts[i].getNotBefore().toString());
    System.out.println("- End Time: " + peerCerts[i].getNotAfter().toString());
    System.out.println("- Signature Algorithm: " + peerCerts[i].getSigAlgName());
    System.out.println("- Serial Number: " + peerCerts[i].getSerialNumber());
    else
    System.out.println("Failed to get peer certificates");
    try
    Writer out = new OutputStreamWriter(jsslSoc.getOutputStream(), "ISO-8859-1");
    //THIS WAY WORKS FINE
    out.write("GET / HTTP/1.1\r\n");
    // HERE COMES THE TROUBLES
    //out.write("GET /pvtn?someparameter=paramvalue HTTP/1.1\r\n");
    out.write("Host: " + TARGET_HTTPS_SERVER + ":" + TARGET_HTTPS_PORT + "\r\n");
    out.write("Proxy-Connection: Keep-Alive\r\n");
    out.write("User-Agent: SSL-TEST \r\n");
    out.write("\r\n");
    out.flush();
    BufferedReader in = new BufferedReader(new InputStreamReader(jsslSoc.getInputStream(), "ISO-8859-1"));
    String line = null;
    while ((line = in.readLine()) != null)
    System.out.println(line);
    finally
    jsslSoc.close();
    the ssl log until sending the GET is
    main, WRITE: SSL v3.1 Handshake, length = 36
    main, READ: SSL v3.1 Change Cipher Spec, length = 1
    main, READ: SSL v3.1 Handshake, length = 36
    Plaintext after DECRYPTION: len = 36
    0000: 14 00 00 0C 71 AB 40 CC 6C 33 92 05 E9 69 4B 8F [email protected].
    0010: D1 77 3F 6E 3C DB F0 A0 B7 9C CF 49 B6 6D C8 17 .w?n<......I.m..
    0020: 7E 03 52 14 ..R.
    *** Finished, v3.1
    verify_data: { 113, 171, 64, 204, 108, 51, 146, 5, 233, 105, 75, 143 }
    %% Cached client session: [Session-1, SSL_RSA_WITH_RC4_128_SHA]
    [read] MD5 and SHA1 hashes: len = 16
    0000: 14 00 00 0C 71 AB 40 CC 6C 33 92 05 E9 69 4B 8F [email protected].
    Negotiated Cipher Suite: SSL_RSA_WITH_RC4_128_SHA
    When i send the GET
    Plaintext before ENCRYPTION: len = 247
    0000: 47 45 54 20 2F 70 76 74 6E 3F 41 30 33 30 3D 4D GET /pvtn?A030=M
    main, WRITE: SSL v3.1 Application Data, length = 247
    main, READ: SSL v3.1 Handshake, length = 24
    Plaintext after DECRYPTION: len = 24
    *** HelloRequest (empty)
    %% Client cached [Session-1, SSL_RSA_WITH_RC4_128_SHA]
    %% Try resuming [Session-1, SSL_RSA_WITH_RC4_128_SHA] from port 3535
    *** ClientHello, v3.1
    RandomCookie: GMT: 1131988975 bytes = { 45, 113, 241, 212, 81, 255, 244, 169, 74, 41, 160, 227, 197, 210, 155, 211, 47, 237, 18, 179, 238, 47, 28, 86, 30, 253, 157, 253 }
    Session ID: {208, 18, 243, 174, 216, 156, 80, 201, 121, 136, 63, 162, 31, 196, 186, 95, 193, 143, 238, 172, 173, 79, 64, 219, 17, 149, 14, 138, 53, 95, 18, 96}
    Cipher Suites: { 0, 5, 0, 4, 0, 9, 0, 10, 0, 18, 0, 19, 0, 3, 0, 17, 0, 2, 0, 1, 0, 24, 0, 26, 0, 27, 0, 23, 0, 25 }
    Compression Methods: { 0 }
    [write] MD5 and SHA1 hashes: len = 105
    Plaintext before ENCRYPTION: len = 125
    main, WRITE: SSL v3.1 Handshake, length = 125
    main, READ: SSL v3.1 Handshake, length = 94
    Plaintext after DECRYPTION: len = 94
    *** ServerHello, v3.1
    RandomCookie: GMT: 1131991620 bytes = { 205, 194, 212, 113, 37, 213, 41, 13, 60, 142, 135, 68, 17, 78, 227, 251, 176, 211, 133, 203, 153, 173, 153, 195, 93, 7, 87, 123 }
    Session ID: {108, 85, 45, 208, 104, 124, 209, 24, 247, 113, 156, 134, 28, 154, 75, 198, 64, 181, 167, 9, 149, 223, 162, 21, 225, 32, 168, 31, 190, 48, 241, 195}
    Cipher Suite: { 0, 5 }
    Compression Method: 0
    %% Created: [Session-2, SSL_RSA_WITH_RC4_128_SHA]
    ** SSL_RSA_WITH_RC4_128_SHA
    [read] MD5 and SHA1 hashes: len = 74
    main, READ: SSL v3.1 Handshake, length = 3154
    Plaintext after DECRYPTION: len = 3154
    *** Certificate chain
    stop on trusted cert: [
    Version: V1
    Subject: CN=GTE CyberTrust Global Root, OU="GTE CyberTrust Solutions, Inc.", O=GTE Corporation, C=US
    Algorithm: [MD5withRSA]
    Signature:
    [read] MD5 and SHA1 hashes: len = 3134
    main, READ: SSL v3.1 Handshake, length = 479
    Plaintext after DECRYPTION: len = 479
    *** CertificateRequest
    Cert Types: RSA, DSS,
    Cert Authorities:
    [read] MD5 and SHA1 hashes: len = 455
    *** ServerHelloDone
    [read] MD5 and SHA1 hashes: len = 4
    0000: 0E 00 00 00 ....
    *** Certificate chain
    *** ClientKeyExchange, RSA PreMasterSecret, v3.1
    Random Secret: { 3, 1, 19, 223, 230, 65, 59, 210, 10, 69, 239, 178, 185, 5, 52, 57, 44, 160, 163, 239, 85, 64, 173, 16, 132, 234, 33, 228, 0, 8, 134, 52, 20, 190, 196, 15, 205, 35, 169, 39, 14, 160, 143, 74, 210, 74, 43, 181 }
    [write] MD5 and SHA1 hashes: len = 141
    Plaintext before ENCRYPTION: len = 161
    main, WRITE: SSL v3.1 Handshake, length = 161
    SESSION KEYGEN:
    PreMaster Secret:
    .CONNECTION KEYGEN:
    Client Nonce:
    Server Nonce:
    Master Secret:
    Client MAC write Secret:
    Server MAC write Secret:
    Client write key:
    Server write key:
    0000: FE 94 DF 4C 1A 9F FA CE 0C E9 A6 DB 31 53 E5 FD ...L........1S..
    ... no IV for cipher
    Plaintext before ENCRYPTION: len = 21
    0000: 01 0D 16 E6 49 18 36 AF E1 52 9C 2F 72 EE CA DF ....I.6..R./r...
    0010: 41 71 68 30 06 Aqh0.
    main, WRITE: SSL v3.1 Change Cipher Spec, length = 21
    *** Finished, v3.1
    verify_data: { 243, 49, 247, 150, 113, 86, 182, 125, 244, 163, 245, 243 }
    [write] MD5 and SHA1 hashes: len = 16
    0000: 14 00 00 0C F3 31 F7 96 71 56 B6 7D F4 A3 F5 F3 .....1..qV......
    Plaintext before ENCRYPTION: len = 36
    0000: 14 00 00 0C F3 31 F7 96 71 56 B6 7D F4 A3 F5 F3 .....1..qV......
    0010: 1A 7C 8F D9 51 CB 6F 47 2A 7C 90 81 20 EE 97 64 ....Q.oG*... ..d
    0020: FF 47 35 CA .G5.
    main, WRITE: SSL v3.1 Handshake, length = 36
    main, SEND SSL v3.1 ALERT: warning, description = close_notify
    Plaintext before ENCRYPTION: len = 22
    0000: 01 00 F0 F4 AC 3C B2 DE 95 98 0E B4 ED B1 24 3B .....<........$;
    0010: 54 6C 8B DC F3 1F Tl....
    main, WRITE: SSL v3.1 Alert, length = 22
    java.net.SocketException: Connection aborted by peer: socket write error
         void java.net.SocketOutputStream.socketWrite(java.io.FileDescriptor, byte[], int, int)
              native code
         void java.net.SocketOutputStream.write(byte[], int, int)
              SocketOutputStream.java:96
         void com.sun.net.ssl.internal.ssl.OutputRecord.a(java.io.OutputStream)
         void com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(com.sun.net.ssl.internal.ssl.OutputRecord)
         void com.sun.net.ssl.internal.ssl.HandshakeOutStream.flush()
         void com.sun.net.ssl.internal.ssl.Handshaker.sendChangeCipherSpec(com.sun.net.ssl.internal.ssl.HandshakeMessage$Finished)
         void com.sun.net.ssl.internal.ssl.ClientHandshaker.c()
         void com.sun.net.ssl.internal.ssl.ClientHandshaker.a(com.sun.net.ssl.internal.ssl.SunJSSE_o)
         void com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(byte, int)
         void com.sun.net.ssl.internal.ssl.Handshaker.process_record(com.sun.net.ssl.internal.ssl.InputRecord)
         void com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(com.sun.net.ssl.internal.ssl.InputRecord, boolean)
         void com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(com.sun.net.ssl.internal.ssl.InputRecord)
         int com.sun.net.ssl.internal.ssl.AppInputStream.read(byte[], int, int)
         int java.io.InputStream.read(byte[])
              InputStream.java:91
         int java.io.InputStreamReader.fill(char[], int, int)
              InputStreamReader.java:173
         int java.io.InputStreamReader.read(char[], int, int)
              InputStreamReader.java:249
         void java.io.BufferedReader.fill()
              BufferedReader.java:139
         java.lang.String java.io.BufferedReader.readLine(boolean)
              BufferedReader.java:299
         java.lang.String java.io.BufferedReader.readLine()
              BufferedReader.java:362
         void Teste3.main(java.lang.String[])
              Teste3.java:109
    Exception in thread main
    Debugger disconnected from local process.
    Process exited with exit code 1.
    One more thing if if make the same thing via browser (https://mymachine.mydomain.pt/pvtn?someparameter=somevalue) and works fine too (obviously i pre installed the client certificate in the browser and choose the certificate when the pop up show up)
    It seems like the handshaking fails when i send data to /pvtn...
    Regards,
    Paulo.

    I amhaving the another problem very similar, I am struggling with client authentication with IIS 5.0, and receiving the 'Remote Host closed the connection' error.
    Is there any help me in this. I truly apprecaite it
    Thanks

  • Problem loading data with DTP

    Hi everyone,
    I trying to load data from a DSO to a INFOCUBE, the problem is as follow. Normally in a DTP the system process packages in the request. In this case the DTP don't proccess any package but finish with status green.
    When I manage the target, I see that the request finish in red.
    The symptom is that the DTP don't process any request. I don´t  know why.
    Status: The DSO have active data, and the infocube is empty.
    I don't know what happen, but I've not carry the data from the DSO to the target.
    I hope that you help me,
    Regards.
    Jose

    Answering your questions:
    Are you seeing the request red in Manage and Green in Monitor Details ?
    Yes in manage I see the requests in red, but in the monitor details all is in green, although there are not requests processed in the monitor details..
    Are the requests green and active in the source DSO ?
    Ok, this DSO is direct input, an it's filled by a APD process. So the DSO don't have active request. This DSO Just have the data in table of active data. I think that it doesn't matter because I'm trying to do the same thing between two infocubes and doesn't work too.
    I'm looking that the problem y general for all warehouse.
    Additional, this DTP works correct the last week.
    This week begins to fail.
    Could be a System problem.
    What can I check??
    Also check if this is an auth issue - SU53 ..
    I check SU53 but all it's ok.
    In Monitor Header - Selections - You should see the requests which have been loaded from source.
    I don't see anything in this field.
    Thanks
    Jose

  • Error while posting data with BAPI_ACC_ACTIVITY_ALLOC_POST

    Hi All
    I am using BAPI_ACC_ACTIVITY_ALLOC_POST to post documents but getting error as 'The document has too many line items (maximum number = 997). Even though my input file has only 900 records.
    I tried reducing it to 600 . Even then I am getting same error.
    Has anybody come across this , message class BK (829).
    I have traced that this message comes from function module  K40C_DOCUMENT_CREATE which is being called internally in the BAPI.
    Please help me on this , its urgent.
    Thanks & Regards
    Babita Sharma

    Change your code to create 400 line items for each document number. I mean, 1 header for 400 line items.
    That way you will have one structure HEADER and 400 lines in table ITEMS.
    RMS.

  • Problem acquiring data with cFP-AI-100

    The vi we are trying to design is very simple, just trying to acquire 2 channels, however the sensors in question have both a high and low output, so I have written the VI to acquire 2 channels, one for the high and one for the low of each sensor, and used the express formula function to obtain the difference between them, multiplied by a number to give us a true pressure.  We do get a signal bouncing around 0, but don't seem to be acquiring anything other then backround noise.
    I've attached the VI as this is my first attempt at working with compact fieldpoint, so I just want to see where i've made my mistake
    Attachments:
    FTV Pressure.vi ‏286 KB

    What kind of sensor are you connected to?  Why are you wiring the high of a sensor to one channel and the low to another channel?  The cFP-AI-100 uses single ended inputs relative to a common ground.  If you don't tie one side of the signal to Common, the single lead is going to have a floating voltage level.  The channels are isolated from each other so there is no voltage reference from one lead to the other.
    Here is a link to the manual.  http://www.ni.com/pdf/manuals/370278a.pdf

  • LSMW Upload FI DOC POSTING data problem (FB013,  RFBIBL01)

    Hello,
    I have to upload FI DOC POSTING data with LSMW.
    I'm using a batch input with the program RFBIBL01.
    In the step "Create batch input session", I get the following error:
    FB006     Session 1 : Transferred client 00M differs from system client 500
    FB015     ... Session record ...
    FB014     ... BGR00-STYPE 0
    FB014     ... BGR00-GROUP ###########5
    FB014     ... BGR00-MANDT 00M
    FB014     ... BGR00-USNAM ISCOB 0
    FB014     ... BGR00-START 0000000X
    FB014     ... BGR00-XKEEP /
    FB014     ... BGR00-NODATA
    FB013     ....Editing was terminated
    Does anyone know how to solve this error?
    Kind regards,
    Mahnk

    hi,
    pls refer to the error message:
    FB014 ... BGR00-GROUP ###########<b>5</b>
    FB014 ... BGR00-MANDT <b>00</b><i>M</i>
    FB014 ... BGR00-USNAM ISCOB 0
    00M sounds strange for a client?!
    here is a displacement!!!!
    the 5 in group belongs to the mandant and the M to the usnam i think
    <b>so change structure BGR00</b>
    A.
    pls reward useful answers
    thank you!
    Message was edited by: Andreas Mann

  • Posting Date in Service Entry Sheet

    Hi All,
    The problem I am facing is as follows:
    The Client makes a service PO then it gets released from the highest level.
    Thereafter when we do service entry sheet in ML81N, that also has a release strategy and if suppose the highest level has released it the same gets posted in FI.
    Now the issue is that after this the sevice deptt realises that the postind date is wrong and then the hihest level unreleases the same service entry sheet and changes the posting date prior to the earlier posting date. And then saves it and release the same.
    So once again the FI gets posted but the previous entry in FI is much after this entry.
    That is any solution to control the posting date so that no one can change the same when posted/released to FI.
    Hoping for a reply soon.

    Hi
    There is no standard message which controls the posting date with the current date.
    You can control the same using the Enhancement "SRVESSR" and the user exit "EXIT_SAPLMLSR_010" and control the user exit.
    Regards,

  • MB_MIGO_BADI. Post document. Posting date?

    Hi Guys,
    I need your help. I'm using MB_MIGO_BADI, method post_document to change posting date in header. After user changed the posting date I need to check some conditions and if they are fulfilled I want to change this posting date with sending the W-message that posting date was changed. After this user needs to press post again and GR will be posted. My problem is that I cannot change the posting date in is_mkpf structure. In method PAI_HEADER I saved posting date changed by user and now I'm trying to use it to update is_mkpf
    field-symbols: <fs> type mkpf.
    if post_fy > del_fy.
    concatenate cur_fy '0831' into post_date.
    assign is_mkpf to <fs>.
    <fs>-budat = post_date.
    message w895(m7) with 'Posting date changed. Post again.'.
    but I have runtime error "overwriting protected filed". What I need to do to change the posting date with a new value?
    Thanks a lot.

    Hi,
    Create an implementation of this badi in SE19.
    Go to tcode SE19. Give the z implementation name. In the definition name of give MB_MIGO_BADI.
    If the z-fields are in table MSEG I hope it will be available to you in IT_MSEG table as well in the badi.
    Write the code for populating the fields. Save and Activate the badi implementation.
    KR Jaideep,

  • Socket to Facebook won't POST data

    I am trying to read data from my home page on m.facebook.com (since Facebook Mobile is HTTP only). I connect, then send POST data with my username and password, but when I read in the content from the socket, it's the HTTP corresponding to the login page. I have tried a very similar program to this on other websites and have been successful. Am I doing something wrong, or is it possible that Facebook is somehow blocking me?
    There is a post_form_id that is sent in with the POST data, but I tried altering it with TamperData and I was still able to log in using Firefox so I don't think this is the problem.
    The username and password listed in the code actually work so you can try it yourself. ([email protected], testfacebookjava)
    Apparently there are no longer "code" tags on this forum? I'm confused...
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.net.URL;
    import java.net.URLConnection;
    public class Facebook
         public static void main(String[] args)
              try
                   URL url = new URL("http://m.facebook.com/login.php");
                   URLConnection connection = url.openConnection();
                   connection.setDoOutput(true);
                   OutputStreamWriter out = new OutputStreamWriter(connection.getOutputStream());
                   out.write("lsd=&post_form_id=ad8ca84895f63d5153279b6eb4794ca2&charset_test=%E2%82%AC%2C%C2%B4%2C%E2%82%AC%2C%C2%B4%2C%E6%B0%B4%2C%D0%94%2C%D0%84&email=test.fbjava%40yahoo.com&pass=testfacebookjava&login=Log+In");
                   out.close();
                   BufferedReader in = new BufferedReader(new InputStreamReader((InputStream) url.getContent()));
                   String line;
                   while((line = in.readLine()) != null)
                        System.out.println(line);
              catch(IOException e) { e.printStackTrace(); }
    }

    Host=login.facebook.com
    User-Agent=Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
    Accept=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language=en-us,en;q=0.5
    Accept-Encoding=gzip,deflate
    Accept-Charset=ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive=115
    Connection=keep-alive
    Referer=http://m.facebook.com/
    Cookie=datr=zMNNTXK_7tJj3AFBRUD0RDSe; lu=gAPk4GsG5J0xUpNKMPKtKtHw; m_user=test.fbjava%40yahoo.com%3A0%3A%3A0%3A6df7bcad%3A1297125664; locale=en_US; L=20; cur_max_lag=20; act=1297262301164%2F12; x-referer=http%3A%2F%2Fwww.facebook.com%2F%3Fsk%3Dlf%23%2F; made_write_conn=1297262349; W=1297262349; lsd=y_qu1; presence=DJ297262351BchADhA_22127.channel_22BsubA_5b0_5dBF297262338625WMblcMsndPBsMbloMbvtP297262301BctMsbPBtA_5b_5dBfAnullBuctA0QBblADacA21V297262313Z225BlcPQQ; wd=1600x707; reg_fb_gate=http%3A%2F%2Fm.facebook.com%2F; reg_fb_ref=http%3A%2F%2Fm.facebook.com%2F
    Content-Type=application/x-www-form-urlencoded
    Content-Length=198
    POSTDATA=lsd=&post_form_id=86585ec2452bf0e02fd10f358b3d9b3a&charset_test=%E2%82%AC%2C%C2%B4%2C%E2%82%AC%2C%C2%B4%2C%E6%B0%B4%2C%D0%94%2C%D0%84&email=test.fbjava%40yahoo.com&pass=testfacebookjava&login=Log+In
    How can I find out what is being sent using the URLConnection?
    I tried modifying the eclipse.ini to include something about changing the user agent to something other than Java, I forget what exactly I tried but it didn't work. I will look for the website again and update you with what I tried.
    Also, is it possible that since the host is login.facebook.com instead of m.facebook.com (this was found using TamperData with Firefox on m.facebook.com) there is something I need to change?
    Update: I added -Dhttp.agent=Mozilla/5.0 to the end of eclipse.ini as per http://stackoverflow.com/questions/1526956/change-user-agent-in-eclipse-3-5-for-new-software-installations
    From what I've seen this is not the right way to do it, since "Java" is still included in the agent. I haven't found anywhere that tells how to remove the Java part.

  • MB5B - Stock on posting date doesn't show Storage Location field

    Hi All,
    I run report MB5B - Stock on posting date with Stock Types = Storage Loc/Batch Stock, but the report doesn't show
    Storage Location field in result.
    How can I see it in this report?
    Thank you very much for your kind support!
    Cao Huy.

    hi
    what i think i sthis report is only for the OPENINGand CLOSING stock for the period or day
    now whenu give SL field then system will only concider stock from that SL
    the filed of SL will not be viewable in report as it is just opening and closing balance
    regards
    kunal

  • MIRO(Invoice Verification) posting date is lesser than MIGO(Goods Receipt)

    MIRO(Invoice Verification) posting date is lesser than MIGO(Goods Receipt) posting date.
    Explanation:
    Miro sholud be posted after the GRN has posted. It means that the Posting date of Miro should be greater than or equal to the Posting date of Migo. But I am facing the issue that I can able to post the Miro before the Migo date..
    For example:  I have posted the Migo(Goods receipt) document with the posting date u2013 10.8.09 and at the same time I can also able to post the Miro(Invoice Verification) posting date as u2013 5.08.09. This is should not be allowed . Kindly give me the solution. Is there any options in SAP standards to restrict this type of Postings(without using user exit).
    regards
    Varadharaj

    Hi
    you  need to use BADi for this INVOICE_UPDATE
    you can give logic as whil;e MIRO system will compare posting date with MIGO doc , then create a Z error msg in se91 nad assign it in that badi
    take help of ABAPer, check following link
    [LINK |GR date lesser than the PO date, the system should show an error message.;

Maybe you are looking for