Error from sample JAAS client: Message stream modified (41)

I am trying to follow the tutorial for JAAS Authentication located here:
http://java.sun.com/j2se/1.4.2/docs/guide/security/jgss/tutorials/AcnOnly.html
I am trying to run the sample client JaasAcn.java but am getting a strange error when I try to log on to my Active Directory.
I am using Java version: jre1.6.0_03
I can login to Active Directory fine with the credentials I am providing, just not with this client, so I know the credentials are valid.
Here is the error I get that I don't understand. Any suggestions would be very helpful, if you provide help for this
The Error message is: [Krb5LoginModule] authentication failed
Message stream modified (41)
Here is the full output:
C:\Progra~1\Java\jre1.6.0_03\bin\java -Dsun.security.krb5.debug=true -Djava.security.krb5.realm=PRSDev.local -Djava.security.krb5.kdc=192.168.40.72 -Djava.security.auth.login.config=jaas.conf JaasAcn
Debug is true storeKey false useTicketCache false useKeyTab false doNotPrompt f
alse ticketCache is null isInitiator true KeyTab is null refreshKrb5Config is fa
lse principal is null tryFirstPass is false useFirstPass is false storePass is f
alse clearPass is false
Kerberos username [ILea]: sra
Kerberos password for sra:
[Krb5LoginModule] user entered username: sra
Using builtin default etypes for default_tkt_enctypes
default etypes for default_tkt_enctypes: 3 1 23 16 17.
Acquire TGT using AS Exchange
Using builtin default etypes for default_tkt_enctypes
default etypes for default_tkt_enctypes: 3 1 23 16 17.
KrbAsReq calling createMessage
KrbAsReq in createMessage
KrbKdcReq send: kdc=192.168.40.72 UDP:88, timeout=30000, number of retries =3, #bytes=144
KDCCommunication: kdc=192.168.40.72 UDP:88, timeout=30000,Attempt =1, #bytes=144
KrbKdcReq send: #bytes read=202
KrbKdcReq send: #bytes read=202
KDCRep: init() encoding tag is 126 req type is 11
KRBError:sTime is Mon Dec 31 11:56:40 PST 2007 1199131000000
suSec is 884978
error code is 25
error Message is Additional pre-authentication required
realm is PRSDev.local
sname is krbtgt/PRSDev.local
eData provided.
msgType is 30
Pre-Authentication Data:PA-DATA type = 11
PA-ETYPE-INFO etype = 23
Pre-Authentication Data:PA-DATA type = 2
PA-ENC-TIMESTAMP
Pre-Authentication Data:PA-DATA type = 15
AcquireTGT: PREAUTH FAILED/REQUIRED, re-send AS-REQ
Using builtin default etypes for default_tkt_enctypes
default etypes for default_tkt_enctypes: 3 1 23 16 17.
Pre-Authentication: Set preferred etype = 23
KrbAsReq salt is PRSDev.localsraPre-Authenticaton: find key for etype = 23
AS-REQ: Add PA_ENC_TIMESTAMP now
EType: sun.security.krb5.internal.crypto.ArcFourHmacEType
KrbAsReq calling createMessage
KrbAsReq in createMessage
KrbKdcReq send: kdc=192.168.40.72 UDP:88, timeout=30000, number of retries =3, #bytes=210
KDCCommunication: kdc=192.168.40.72 UDP:88, timeout=30000,Attempt =1, #bytes=210
KrbKdcReq send: #bytes read=1182
KrbKdcReq send: #bytes read=1182
EType: sun.security.krb5.internal.crypto.ArcFourHmacEType[Krb5LoginModule] authentication failed
Message stream modified (41)
Authentication failed:
Message stream modified (41)

FYI I have fixed this problem (and moved on to the next error)
I disabled the preauthentication requirement on the Active Directory account according to this article:
http://technet2.microsoft.com/windowsserver/en/library/a0bd7520-ef2d-4de4-b487-e105a9de9e4f1033.mspx?mfr=true

Similar Messages

  • Error from sample JAAS: Integrity check on decrypted field failed (31)

    I am trying to follow the tutorial for JAAS Authentication located here:
    http://java.sun.com/j2se/1.4.2/docs/guide/security/jgss/tutorials/AcnOnly.html
    I am trying to run the sample JaasAcn.java but am getting a strange error when I try to log on to my Active Directory.
    I am using Java version: jre1.6.0_03
    I can login to Active Directory fine with the credentials I am providing, just not with this client, so I know the credentials are valid.
    What could this mean?
    The Error message is: [Krb5LoginModule] authentication failed
    Integrity check on decrypted field failed (31)
    Here is the full output:
    C:\Progra~1\Java\jre1.6.0_03\bin\java -Dsun.security.krb5.debug=true -Djava.security.krb5.realm=PRSDev.local -Djava.security.krb5.kdc=192.168.40.72 -Djava.security.auth.login.config=jaas.conf JaasAcn
    Debug is true storeKey false useTicketCache false useKeyTab false doNotPrompt f
    alse ticketCache is null isInitiator true KeyTab is null refreshKrb5Config is fa
    lse principal is null tryFirstPass is false useFirstPass is false storePass is f
    alse clearPass is false
    Kerberos username [ILea]: sra
    Kerberos password for sra:
    [Krb5LoginModule] user entered username: sra
    Using builtin default etypes for default_tkt_enctypes
    default etypes for default_tkt_enctypes: 3 1 23 16 17.
    Acquire TGT using AS Exchange
    Using builtin default etypes for default_tkt_enctypes
    default etypes for default_tkt_enctypes: 3 1 23 16 17.
    KrbAsReq calling createMessage
    KrbAsReq in createMessage
    KrbKdcReq send: kdc=192.168.40.72 UDP:88, timeout=30000, number of retries =3, #bytes=144
    KDCCommunication: kdc=192.168.40.72 UDP:88, timeout=30000,Attempt =1, #bytes=144
    KrbKdcReq send: #bytes read=587
    KrbKdcReq send: #bytes read=587
    EType: sun.security.krb5.internal.crypto.DesCbcMd5EType[Krb5LoginModule] authentication failed
    Integrity check on decrypted field failed (31)
    Authentication failed:
    Integrity check on decrypted field failed (31)

    FYI The fix for this was to chang the value for -Djava.security.krb5.realm to be all upper case
    Once that change was made authentication passed
    Edited by: IDL on Jan 2, 2008 9:25 AM

  • Manually refreshing TGT leads to "Message stream modified" error

    We wish to use Kerberos to implement application authentication without needing username/password. We have code which gets the TGT and can get other tickets from that, and those tickets can successfully be used with LDAP to make queries. However, the TGT will expire after 10 hours, unless (for example) the lockscreen is used to supply a username/password, at which point the TGT is renewed.
    We understand that it should be possible to renew the TGT from the application, so that long-running processes do not require another login. The ticket's metadata says it is renewable, and we have set options to say we want to do this. We get hold of the ticket and do refresh(), and this attempts to renew the Credentials. However, the attempt fails with the following exception:
    javax.security.auth.RefreshFailedException: Failed to renew Kerberos Ticket for client [email protected] and server krbtgt/[email protected] - Message stream modified (41)
    Having traced the executing code down through the debugger, it goes down through KerberosTicket.refresh(), Credentials.renew(), is constructing a new EncryptedData and does Cipher.getInstance() with transformation "DES/CBC/NoPadding". This gets down to a Provider, which raises the exception.
    We have checked that we only have one matched pair for serviceprincipalname.
    So the questions are: (a) should it be possible to refresh the TGT in this way, or is it simply impossible to refresh it without a username and password?; (b) if it should be possible, what is the likely cause of the exception?
    A debug trace of an attempt looks like:
    H:\support\users\paulw\Workspace\kerberos\bin>java -Dsun.security.krb5.debug=true -Djava.security.krb5.realm=NMS.DEV.PS.GE.COM -Djava.security.krb5.kd
    c=UKCBGDC01DFPS -Djava.security.auth.login.config=jaas.conf JaasAcn
    KinitOptions cache name is C:\Documents and Settings\paulw\krb5cc_paulwAcquire default native Credentials
    Obtained TGT from LSA: Credentials:
    [email protected]
    server=krbtgt/[email protected]
    authTime=20090127152629Z
    startTime=20090127152629Z
    endTime=20090128012629Z
    renewTill=20090203152629Z
    flags: FORWARDABLE;RENEWABLE;INITIAL;PRE-AUTHENT
    EType (int): 23
    Authentication succeeded!
    [email protected]
    Start time = Tue Jan 27 15:26:29 GMT 2009, Expires = Wed Jan 28 01:26:29 GMT 2009, isCurrent = true, isInitial=true, [email protected].
    GE.COM, ServerPrincipal=krbtgt/[email protected]
    Using builtin default etypes for default_tgs_enctypes
    default etypes for default_tgs_enctypes: 3 1 23 16 17.
    CksumType: sun.security.krb5.internal.crypto.RsaMd5CksumType
    EType: sun.security.krb5.internal.crypto.ArcFourHmacEType
    KrbKdcReq send: kdc=UKCBGDC01DFPS UDP:88, timeout=30000, number of retries =3, #bytes=1799
    KDCCommunication: kdc=UKCBGDC01DFPS UDP:88, timeout=30000,Attempt =1, #bytes=1799
    KrbKdcReq send: #bytes read=106
    KrbKdcReq send: #bytes read=106
    KDCRep: init() encoding tag is 126 req type is 13
    KRBError:sTime is Tue Jan 27 16:00:42 GMT 2009 1233072042000
    suSec is 717480
    error code is 52
    error Message is Response too big for UDP, retry with TCP
    realm is NMS.DEV.PS.GE.COM
    sname is krbtgt/NMS.DEV.PS.GE.COM
    msgType is 30
    KrbKdcReq send: kdc=UKCBGDC01DFPS TCP:88, timeout=30000, number of retries =3, #bytes=1799
    DEBUG: TCPClient reading 1783 bytes
    KrbKdcReq send: #bytes read=1783
    KrbKdcReq send: #bytes read=1783
    EType: sun.security.krb5.internal.crypto.ArcFourHmacETypeerr: javax.security.auth.RefreshFailedException: Failed to renew Kerberos Ticket for client [email protected] and server krbtgt/[email protected] - Message stream modified (41)
    The problem is reproducible with a simple java client and has been reproduced on two machines within the corporate network using different kdc's. It is also reproducible on a customers site where the ticket expiry is 1 hour.
    thanks
    paul

    If it helps.. the client code and config file.
    If someone has a working system and could confirm whether the general principle here is correct, that would be much appreciated.
    thanks
    paul
    java -Dsun.security.krb5.debug=true -Djava.security.krb5.realm=<realm-name> -Djava.security.krb5.kdc=<kdc-name> -Djava.security.auth.login.config=jaas.conf JaasAcn
    * @(#)JaasAcn.java
    * Copyright 2001-2002 Sun Microsystems, Inc. All Rights Reserved.
    * Redistribution and use in source and binary forms, with or
    ...snip
    * intended for use in the design, construction, operation or
    * maintenance of any nuclear facility.
    import java.util.*;
    import javax.security.auth.kerberos.*;
    import javax.security.auth.*;
    import javax.security.auth.login.*;
    import com.sun.security.auth.callback.TextCallbackHandler;
    import java.security.*;
    import javax.security.auth.Subject;
    * This JaasAcn application attempts to authenticate a user
    * and reports whether or not the authentication was successful.
    public class JaasAcn {
         public static void main(String[] args) {
              // Obtain a LoginContext, needed for authentication. Tell it
              // to use the LoginModule implementation specified by the
              // entry named "JaasSample" in the JAAS login configuration
              // file and to also use the specified CallbackHandler.
              LoginContext lc = null;
              try {
                   lc = new LoginContext("JaasSample", new TextCallbackHandler());
              } catch (LoginException le) {
                   System.err.println("Cannot create LoginContext. "
                             + le.getMessage());
                   System.exit(-1);
              } catch (SecurityException se) {
                   System.err.println("Cannot create LoginContext. "
                             + se.getMessage());
                   System.exit(-1);
              System.out.println("Time is now " +new Date());
              try {
                   // attempt authentication
                   lc.login();
              } catch (LoginException le) {
                   System.err.println("Authentication failed:");
                   System.err.println("  " + le.getMessage());
                   System.exit(-1);
              System.out.println("Authentication succeeded!");
              Subject mSubject = lc.getSubject();
              Iterator li = mSubject.getPrincipals().iterator();
              // Should only have one Principal
              if ( li.hasNext() ) {
                   Principal lPrincipal = (Principal) li.next();
                   System.out.println(lPrincipal.toString());
              li = mSubject.getPrivateCredentials().iterator();
              if ( li.hasNext() ) {
                   Object lObject = (Object) li.next();
                   if ( lObject instanceof KerberosTicket ) {
                        KerberosTicket lKerberosTicket = (KerberosTicket) lObject;
                        System.out.println(
                                  "Start time=" + lKerberosTicket.getStartTime() +
                                  ", Expires=" + lKerberosTicket.getEndTime() +
                                  ", RenewUntil=" + lKerberosTicket.getRenewTill() +
                                  ", isCurrent=" + lKerberosTicket.isCurrent() +
                                  ", isRenewable=" + lKerberosTicket.isRenewable() +
                                  ", isInitial=" + lKerberosTicket.isInitial() +
                                  ", ClientPrincipal=" + lKerberosTicket.getClient().toString() +
                                  ", ServerPrincipal=" + lKerberosTicket.getServer().toString());            
                        try {
                             lKerberosTicket.refresh();
                        catch ( RefreshFailedException e )
                             System.err.println("err: " + e);
    /** Login Configuration for the JaasAcn and
    ** JaasAzn Applications
       [email protected]
       doNotPrompt=true
       useKeyTab=true
    JaasSample {
       com.sun.security.auth.module.Krb5LoginModule required
       useTicketCache=true
       renewTGT=true
       debug=true;
    };

  • RenewTGT using native cache with KRB5  Message stream modified

    I have implemented the Jass tutorial JassAcn.java and it works fine when username and password are entered.
    However,when I try to use the ticket from the native cache I get the following error :
         Ticket could not be renewed : Message stream modified (41)     
    and then get prompted to enter the username followed by the password. If I enter the user name
    and password the authentication is successfull.
    I am using a Windows XP SP2 client and JDK 1.5 and a Win2000 server.
    The registry key "allowtgtsessionkey" on the client has been set to 0x01 as recommended by
    C:\jdk15help\docs\guide\security\jgss\tutorials\Troubleshooting.html
    The "Message stream modified" error seems to imply that
    checksum used to verify the data packet didn't match what was expected or some packets are being corrupted.
    I tried different default_checksum but to no avail.
    Has anyone encountered this before?
    My config file is as follows:
    JaasSample {
    com.sun.security.auth.module.Krb5LoginModule required
                        useTicketCache=true
                        renewTGT = true
                        debug=true;
    and the debug log
    Debug is true storeKey false useTicketCache true useKeyTab false doNotPrompt false ticketCache is null KeyTab is null refreshKrb5Config is false principal is null tryFirstPass is false useFirstPass is false storePass is false clearPass is false
    Acquire TGT from Cache
    Ticket could not be renewed : Message stream modified (41)
    Principal is null
    null credentials from Ticket Cache
    Kerberos username [myname]:
    Kerberos password for myname: mypassword
              [Krb5LoginModule] user entered username: myname
    principal is [email protected]
    Acquire TGT using AS Exchange
    EncryptionKey: keyType=3 keyBytes (hex dump)=0000: 38 1A 02 C8 EA 5B EA 67
    EncryptionKey: keyType=1 keyBytes (hex dump)=0000: 38 1A 02 C8 EA 5B EA 67
    EncryptionKey: keyType=16 keyBytes (hex dump)=0000: D5 F1 D5 DF AD 67 37 5D 3B AB A2 AE 89 1F 13 F1 .....g7];.......
    0010: FB EA AB AB D3 52 40 D6
    Commit Succeeded

    I have implemented the Jass tutorial JassAcn.java and it works fine when username and password are entered.
    However,when I try to use the ticket from the native cache I get the following error :
         Ticket could not be renewed : Message stream modified (41)     
    and then get prompted to enter the username followed by the password. If I enter the user name
    and password the authentication is successfull.
    I am using a Windows XP SP2 client and JDK 1.5 and a Win2000 server.
    The registry key "allowtgtsessionkey" on the client has been set to 0x01 as recommended by
    C:\jdk15help\docs\guide\security\jgss\tutorials\Troubleshooting.html
    The "Message stream modified" error seems to imply that
    checksum used to verify the data packet didn't match what was expected or some packets are being corrupted.
    I tried different default_checksum but to no avail.
    Has anyone encountered this before?
    My config file is as follows:
    JaasSample {
    com.sun.security.auth.module.Krb5LoginModule required
                        useTicketCache=true
                        renewTGT = true
                        debug=true;
    and the debug log
    Debug is true storeKey false useTicketCache true useKeyTab false doNotPrompt false ticketCache is null KeyTab is null refreshKrb5Config is false principal is null tryFirstPass is false useFirstPass is false storePass is false clearPass is false
    Acquire TGT from Cache
    Ticket could not be renewed : Message stream modified (41)
    Principal is null
    null credentials from Ticket Cache
    Kerberos username [myname]:
    Kerberos password for myname: mypassword
              [Krb5LoginModule] user entered username: myname
    principal is [email protected]
    Acquire TGT using AS Exchange
    EncryptionKey: keyType=3 keyBytes (hex dump)=0000: 38 1A 02 C8 EA 5B EA 67
    EncryptionKey: keyType=1 keyBytes (hex dump)=0000: 38 1A 02 C8 EA 5B EA 67
    EncryptionKey: keyType=16 keyBytes (hex dump)=0000: D5 F1 D5 DF AD 67 37 5D 3B AB A2 AE 89 1F 13 F1 .....g7];.......
    0010: FB EA AB AB D3 52 40 D6
    Commit Succeeded

  • Error from sample JAX-WS security from documentation: Failed to get token

    I am trying example 2-1 for the server and 2-3 for the client and i am using WLS 10.3.5:
    http://docs.oracle.com/cd/E21764_01/web.1111/e13713/message.htm#CDEBIJEJ
    i get some errors when trying to compile/generate the source listed, but i work around those.
    and i hardcode some values ( like username/password, keystore locations, etc).
    i can deploy the web service successfully and execute the client.
    I have some debugging turned on, so i see that the messages are being successfully encrypted and decrypted.
    However, i get an exception back from the server:
    [java] Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Failed to get token for tokenType: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3
    [java]      at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:197)
    [java]      at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:122)
    [java]      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:125)
    [java]      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:95)
    [java]      at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:136)
    [java]      at $Proxy30.echo(Unknown Source)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java]      at java.lang.reflect.Method.invoke(Method.java:597)
    [java]      at weblogic.wsee.jaxws.spi.ClientInstanceInvocationHandler.invoke(ClientInstanceInvocationHandler.java:84)
    [java]      at $Proxy31.echo(Unknown Source)
    [java]      at wssp12.wss10.Test.main(Unknown Source)
    For the Service:
    I have used exactly the same policies from the example.
    i did have to comment out the @WLHTTPTransport clause ( the error gives me the impression it is no longer supported )
    For the client:
    The generated port no longer takes just string for the wsdl url, so i don't pass in a url at all. i let it use the URL from the client gen process. I also hard coded a username/password i created.
    any thoughts?
    These examples don't mention anything about Secure Token Server ( although, i see it mentioned later down the page after other examples ). Do these examples require an STS be configured? or is that unrelated to my exception?
    Thanks for the help!!!
    Follow up:
    i added the following ( which i think should take care of the STS part i was asking about):
    61 String sts="https://TESTUESR0:7002/UsernameTokenPlainX509SignAndEncrypt/simpleSecureService";
    62 requestContext.put(weblogic.wsee.jaxrpc.WLStub.WST_STS_ENDPOINT_ON_WSSC,sts);
    but this made no difference.
    Edited by: user733322 on Feb 17, 2012 7:38 AM

    DTC was running on remote computer. The problem was it was no longer accepting transactions from remote servers. This was in SSIS so I had to turn to "Transaction Supported" for all Data Flow Transactions.
    Greg Hanson

  • Lookup Error from network JMS client

    I am using J2EE RI Server
    QueueConnectionFactory is created on the server using console.
    when I list them asadmin tool I can see them.
    The JMS Queue Supplier code
    Hashtable env = new Hashtable();
    String jndiFactory = "com.sun.jndi.cosnaming.CNCtxFactory";
    String providerURL = "iiop://localhost:3700";
    env.put(Context.INITIAL_CONTEXT_FACTORY, jndiFactory);
    env.put(Context.PROVIDER_URL, providerURL);
    InitialFactory con = new InitialContext(env);
    QueueConnectionFactory queueConnectionFactory = (QueueConnectionFactory)
    context.lookup("QueueConnectionFactory");
    The line where lookup is called I get the following error.
    I run this with these JVM environments -Dorg.omg.CORBA.ORBInitialHost=localhost -Dorg.omg.CORBA.ORBInitialPort=3700
    I get the same error for the non appclients of EJB but works fine if the clients are appclients.
    I am trying to solve this for three days, any insight would be helpful.
    ==================================
    Error :javax.naming.NameNotFoundException [Root exception is org.omg.CosNaming.
    amingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
    javax.naming.NameNotFoundException. Root exception is org.omg.CosNaming.Naming
    ontextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
    at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundH
    lper.java:72)
    at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHe
    lper.java:72)
    at org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub
    .java:406)
    at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:440)
    at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:492)
    at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:470)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at ejava.jms.QueueSupplier.<init>(QueueSupplier.java:86)
    at ejava.jms.QueueSupplier.createAQueueAndSendOrder(QueueSupplier.java:1
    46)
    at ejava.jms.QueueSupplier.main(QueueSupplier.java:190)
    =========================================================
    Regards
    Krishna

    i dont think u need set env and all this in all latest App servers.anyway.
    Are u trying to do con.lookup("QueueConnectionFactory");
    or
    context.lookup("QueueConnectionFactory");
    and also make sure the factory ur using is right one and also check the corbaloc is running on 3700
    thsanks
    hithesh

  • CORBA Error from sample

    I am new to CORBA programming, I downloaded the code from
    http://java.sun.com/j2se/1.3/docs/guide/idl/GShome.html
    First start Name Service:
    start tnameserv -ORBInitialPort 1050
    then when I run the server:
    start java HelloServer _ORBInitialPort 1050
    I got error:
    ERROR: org.omg.CORBA.COMM_FAILURE: minor code: 1398079490 completed: No
    org.omg.CORBA.COMM_FAILURE: minor code: 1398079490 completed: No
    at com.sun.corba.se.internal.iiop.IIOPConnection.writeLock(Unknown Sourc
    e)
    at com.sun.corba.se.internal.iiop.IIOPConnection.send(Unknown Source)
    at com.sun.corba.se.internal.iiop.IIOPOutputStream.invoke(Unknown Source
    at com.sun.corba.se.internal.iiop.ClientRequestImpl.invoke(Unknown Sourc
    e)
    at com.sun.corba.se.internal.corba.ClientDelegate.invoke(Unknown Source)
    at com.sun.corba.se.internal.corba.InitialNamingClient.resolve(Unknown S
    ource)
    at com.sun.corba.se.internal.corba.InitialNamingClient.cachedInitialRefe
    rences(Unknown Source)
    at com.sun.corba.se.internal.corba.InitialNamingClient.resolve_initial_r
    eferences(Unknown Source)
    at com.sun.corba.se.internal.corba.ORB.resolve_initial_references(Unknow
    n Source)
    at HelloServer.main(HelloServer.java:30)
    What's wrong with it?
    Thank you very much for your time.

    Incase you still havent found out the answer you need to use the -ORBInitialPort 1050 instead of _OrbInitialPort 1050                                                                                                                                                                                                                                            

  • How to get error from SXMB_MONI is alert message

    HI ,
    I am trying to send alerts through BPM if any error occures . I want to send the exact error and error code in alert .
    Can you please tell me weather we can do this and if yes then can you please explain it to me .
    Thanks ,
    Mudit

    Hi,
    This will help you
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/1b9259fb002be8e10000000a11466f/frameset.htm
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide
    /people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step 
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--troubleshooting-guide
    Regards
    Agasthuri Doss

  • Problem in downloading a file from AS to client through form using webutil

    I am running oracle 10g sever & devloper 10g in the same machine. Almost every thing is working properly from a client PC in the network except the following aspect :-
    From client pc, through form, I have created one export(dmp file) which is being saved in the AS. Now I want this file to be downloaded from AS to this client PC.
    I have tried webutil_file.copy_file(server_filename,client_copy_name) which is not working. the error trace file says "Unable to open source file in server" & "Unable to read WebUtil configuration file".
    I have also tried webutil_file_transfer.AS_to_Client_with_progress
    which results in unsuccessful from server to client.
    I modified the webutil.cfg file as :=
    transfer.database.enabled=TRUE
    transfer.appsrv.enabled=TRUE
    transfer.appsrv.accessControl=FALSE
    transfer.appsrv.workAreaRoot=D:\temp
    transfer.appsrv.read.1=D:\temp
    transfer.appsrv.write.1=D:\temp
    Please help me out from this situation

    hi
    Welcome to OTN.
    try to use.
    Client_host()sarah

  • [svn:bz-trunk] 21394: bug fix for watson 2887837 Not getting duplicate session detected error when same flex client id is used from two different HTTP sessions in CRX .

    Revision: 21394
    Revision: 21394
    Author:   [email protected]
    Date:     2011-06-16 12:34:13 -0700 (Thu, 16 Jun 2011)
    Log Message:
    bug fix for watson 2887837 Not getting duplicate session detected error when same flex client id is used from two different HTTP sessions in CRX.
    get the sessions id before we invalidate the duplicate session.
    Checkintests pass
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/endpoints/BaseHTTPEndpoint.java

    For our profect I think this issue was caused as follows:
    Believing that remoting was full asynchronous we fired a 2 or 3 remote calls to the server at the same time ( within the same function ) - usually when the users goes to a new section of the app.
    This seemed to trigger the duplicate http session error since according to http://blogs.adobe.com/lin/2011/05/duplication-session-error.html  two remote calls arriving before a session is created will cause 2 sessions to be created.
    Our current solution ( too early to say it works ) is to daisy chain the multiple calls together .
    Also there seemed to be an issue where mobile apps that never quit ( thanks Apple! )  caused the error when activated after a few hours.
    I guess the session expires on the server and the error above occurs on activation.
    So the mobile apps now ping the server with a remote call when activated after sleeping for more than one hour.
    All duplicate http errors are silently caught and reported.
    Fingers crossed we won't get any more!

  • Error while executing SSIS package - Error: 4014, Severity:20, State: 11. A fatal error occurred while reading the input stream from the network. The session will be terminated (input error: 109, output error: 0)

    Hi,
    We are getting the following error when running our SSIS packages on Microsoft SQL Server 2012 R2 on Windows Server 2008 R2 SP1:
    Error: 4014, Severity:20, State: 11.   A fatal error occurred while reading the input stream from the network. The session will be terminated (input error: 109, output error: 0)
    SQL Server Data Tools and SQL Server Database Engine reside on the same server.
    We tried the following:
    Disabling TCP Chimney Offload
    Installed Windows Server 2008 SP1
    Splitting our SSIS code into multiple steps so it is not all one large continuous operation
    The error occurs during a BulkDataLoad task.
    Other options we are investigating with the engineering team (out-sourced, so delayed responses):
    Firewall configurations (everything is local, so this should not make a difference)
    Disabling the anti-virus scanner
    Are there other things we can try?
    Any insight is greatly appreciated.
    Thanks!

    Hi HenryKwan,
    Based on the current information, the issue can be caused by many reasons. Please refer to the following tips:
    Install the latest hotfix based on your SQL Server version. Ps: there is no SQL Server 2012 R2 version.
    Change the MaxConcurrentExecutables property from -1 to another one based on the MAXDOP. For example, 8.
    Set "RetainSameConnection" Property to FALSE on the all the connection managers.
    Reference:
    https://connect.microsoft.com/SQLServer/feedback/details/774370/ssis-packages-abort-with-unexpected-termination-message
    If the issue is still existed, as Jakub suggested, please provide us more information about this issue.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Sample java client not running--showing a strange error-- help urgently

    Hi,
    I have followed all the steps, given in JDevloper help, to create and deploy an EJB onto a 9ias server and I have been successful in creating the EJB and deploying it from the JDevloper machine to 9ias machine.My JDevloper is on one machine and 9ias is on another. After deploying when I am creating a sample java client, as given in the JDevloper help file, it gives a very strange error
    java.lang.NullPointerException
         void Samplemypackage1.MySessionEJB1Client.main(java.lang.String[])
    Process exited with exit code 0.
    I have tried a lot but it's not happening. Is it becuase
    1. 9ias and JDevloper should be on the same machine
    2. some configurational changes need to be done in the settings
    3. jdk1.3.1 is not compatible with JDevloper.
    I am enclosing the code snippet for your quick reference.
    package Samplemypackage1;
    import java.util.Hashtable;
    //import javax.rmi.PortableRemoteObject;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import mypackage1.MySessionEJB1;
    import mypackage1.MySessionEJB1Home;
    public class MySessionEJB1Client
    public static void main(String [] args)
    MySessionEJB1Client mySessionEJB1Client = new MySessionEJB1Client();
    try
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "admin");
    env.put(Context.SECURITY_CREDENTIALS, "admin");
    env.put(Context.PROVIDER_URL, "ormi://9ias:23791/MySessionEJB1");
    Context ctx = new InitialContext(env);
    MySessionEJB1Home mySessionEJB1Home = (MySessionEJB1Home)ctx.lookup("MySessionEJB1");
    MySessionEJB1 mySessionEJB1;
    // Use one of the create() methods below to create a new instance
    mySessionEJB1 = mySessionEJB1Home.create();
    // Call any of the Remote methods below to access the EJB
    System.out.println(mySessionEJB1.calc("om sri"));
    catch(NullPointerException ne)
    ne.printStackTrace();
    catch(Throwable ex)
    ex.printStackTrace();
    When I tried to debug the program I found that the line " mySessionEJB1 = mySessionEJB1Home.create()" returns a null. I really fail to understand as to why it is happening.
    Please help me.
    Thankx

    That's strange. home.create() should never return a null.
    Do you see any exception trace on the server side?
    Do you have the same version of oc4j.jar on client and server machine? Which version of Jdeveloper and 9iAs are you using?
    Try copying oc4j.jar from the server machine to client machine and use that to connect to the bean.
    HTH
    Dhiraj

  • Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit

    My core.log file keeps showing these errors everytime I start to stream. My streams are not viewable on PC's and only viewable on iOS devices.
    Is there something wrong with the libf4f.dll file? I'm using FMS 4.5 on Windows 2003 Server.
    2011-12-28    15:44:09    4020    (e)2611178    Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit.    -
    2011-12-28    15:44:09    4020    (e)2611423    Failed to record bbc2011-BBC73 (Unknown Error).    -
    2011-12-28    16:02:00    4020    (e)2611178    Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit.    -
    2011-12-28    16:02:00    4020    (e)2611423    Failed to record bbc2011-BBC71 (Unknown Error).    -
    2011-12-28    16:57:12    4020    (e)2611363    Server detected a backward timestamp from 5006873 to 0 in file: C:\FMSHOME\applications\livepkgr\streams\_definst_\bbc2011
    2011-12-28    17:18:21    4020    (e)2611178    Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit.    -
    2011-12-28    17:18:21    4020    (e)2611423    Failed to record bbc2011-BBC83 (Unknown Error).    -
    2011-12-28    17:36:12    4020    (e)2611178    Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit.    -
    2011-12-28    17:36:12    4020    (e)2611423    Failed to record bbc2011-BBC81 (Unknown Error).    -
    2011-12-28    18:38:09    4020    (e)2611363    Server detected a backward timestamp from 5420086 to 0 in file: C:\FMSHOME\applications\livepkgr\streams\_definst_\bbc2011-BBC82    -
    2011-12-28    19:12:44    4020    (e)2611178    Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit.    -
    2011-12-28    19:12:44    4020    (e)2611423    Failed to record bbc2011-BBC92 (Unknown Error).    -
    2011-12-28    19:23:38    4020    (e)2611178    Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit.    -
    2011-12-28    19:23:38    4020    (e)2611423    Failed to record bbc2011-BBC91 (Unknown Error).    -
    2011-12-28    20:41:50    4020    (e)2611363    Server detected a backward timestamp from 6390123 to 0 in file: C:\FMSHOME\applications\livepkgr\streams\_definst_\bbc2011-BBC93    -
    2011-12-28    21:12:05    4020    (e)2611178    Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit.    -
    2011-12-28    21:12:05    4020    (e)2611423    Failed to record bbc2011-BBC102 (Unknown Error).    -
    2011-12-28    22:49:23    4020    (i)2581247    Core (4020) disconnected from edge.    -
    2011-12-28    22:49:23    4020    (i)2581233    Core (4020) disconnecting from admin: 200.    -
    Thanks,
    Dave

    There is a concept of Absolute Time Code which enables the encoders to publish the livestream based on absolute system time rather than starting the messages from timestamp 0 everytime you append to a recording.
    I suspect you encoder is starting everytime from 0 timestamp but since the server already has recording till some time - say x, for the server these are backward timestamps and hence the continous warnings.
    Also to safeguard FMS against such conditions and cause memory crashes, we only allow messages with backward timestamps to accumulate in the process queue upto a limit and then the recording is stopped. Thats why you are observing the errors - 
    "Error from libf4f.dll: Total number of messages waiting to be recorded has exceeded the limit.    - 
    2011-12-28    19:23:38    4020    (e)2611423    Failed to record bbc2011-BBC91 (Unknown Error).    -"
    Try to check your encoder settings for stream synchronization or ATC settings and enable them.

  • JNDI location error from remote client

    Hi,
    I got the following error when I'm trying to access an EJB from a remote client.Could anybody help me to identify the error?
    John
    Caught an unexpected exception!
    javax.naming.NoInitialContextException: Need to specify class name in environmen
    t or system property, or as an applet parameter, or in an application resource f
    ile: java.naming.factory.initial
    at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
    at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at xyz.pqr.client.TestClient.main(TestClient.java:43)

    Hi 392415,
    It looks like you haven't specified the INITIAL_CONTEXT_FACTORY property -- the name of the class that creates the "java.naming.InitialContext" class.
    Perhaps you would care to show the entire error message and stack trace, as well as the part of your code that is causing the error, and perhaps a few details about your environment.
    Then I might be able to help you some more.
    Good Luck,
    Avi.

  • Missing " Create Sample Java Client" from the context menu when debugging

    Jdev 11.1.1.3 on Windows 7 x64
    I have created an EJB - Session Bean from the ADF components and have put some logic into it with one public method.
    I have exposed the method in the local interface.
    I start the integrated server in the debug mode
    When I right-click there is no option to do the sample client.
    Am I missing a plug-in - like JUnit or something?
    From the manual:
    The integrated Oracle WebLogic Server runs within JDeveloper. You can run and test EJBs quickly and easily using this server, and then deploy your EJBs with no changes to them. You do not need to create a deployment profile to use this server, nor do you have to initialize it.
    To run a sample client on the integrated Oracle WebLogic Server: In the Application Navigator, right-click on an EJB and choose Run.
    Notice in the Message pane that Oracle WebLogic Server has been launched. Right-click on an EJB and choose Create Sample Java Client from the context menu. The default choice is to create a client for the integrated Oracle WebLogic Server, so click OK.
    The client is created and opens in the code editor. If your session bean serves as a facade over JPA entities, code is generated to instantiate the query methods. If you exposed methods on your bean, the generated client contains methods that can be uncommented to call them.
    After your EJB has been successfully started from the Application Navigator, right-click on the sample client and choose Run.

    Shay,
    Pretty much what I did exactly - except - since my apps are all using the local interface - I did not create the remote.
    This may be an old habit - but generally it is not a good practice to do both - though this may have changed lately.
    I have this app working and the EJBs are executing fine.
    I used a testview and drug the method onto it - and was able to debug it that way - but still no create java client in the menu.
    Is there any other place to find this other than the context menu? Then I can check to see if it is available.
    I am using WLS 10.3 that ships with Jdev 11.1.1.3 (forgot that little bit) without any changes.

Maybe you are looking for