Unable to bind an object

Hi,
I am trying to bind a java object and am getting a Naming Exception. I have a
few questions
1. does this java object have to be remote.. if I am trying to use the weblogic
service provider..
2. if it has to be remote, where do i have to put the stub class?
I tried putting in the classpath of the weblogic server but it still complains
My example works fine if the object is a String.
I would appreciate your help.
Thanks,
Kamps

If it is not a remote object then you have to make it Serializable as well.
Sam
"kamps" <[email protected]> wrote in message
news:3b44c80f$[email protected]..
>
Hi,
I am trying to bind a java object and am getting a Naming Exception. Ihave a
few questions
1. does this java object have to be remote.. if I am trying to use theweblogic
service provider..
2. if it has to be remote, where do i have to put the stub class?
I tried putting in the classpath of the weblogic server but it stillcomplains
>
My example works fine if the object is a String.
I would appreciate your help.
Thanks,
Kamps

Similar Messages

  • RMI classloading mechanism:unable to bind an object

    hai all,
    I am facing a problem when i use rmi classloading mechanism.
    I am using suns ClassFileServer to load classes dynamiclly into my server and client.
    In my server i want to load the class and and get a static object of the same class and bind it to registry so that clents can access it.
    but i am unable to do that.
    I have a doubt regarding what happens to the static variables when class loading is done.

    I am posting my validateImpl and DynamicServer here .please look into it
    validateImpl.java:
    import java.io.FileInputStream;
    import java.io.PrintStream;
    import java.rmi.Naming;
    import java.rmi.RemoteException;
    import java.rmi.server.UnicastRemoteObject;
    import java.util.*;
    public class validateImpl extends UnicastRemoteObject
    implements validate
    public static validateImpl getInstance()
    return validateInst;
    public validateImpl()
    throws RemoteException
    System.out.println("Inside validateimpl constructor");
    try
    Naming.rebind(new String("myserverObj"), this);
    catch(Exception exception)
    System.out.println("Exception occurred: " + exception);
    public boolean validateUser(String s, String s1)
    System.out.println("user name"+s);
    String s2 = propFile.getProperty(s);
    System.out.println("from records /t"+s2);
    if(s2 == null)
    String s3 = " User Name: " + s + " is Not Configured \n";
    System.out.println("username not found");
    StringTokenizer stringtokenizer = new StringTokenizer(s2, "~");
    PFusername = (String)stringtokenizer.nextElement();
    PFpassword = (String)stringtokenizer.nextElement();
    return PFusername.equals(s) && PFpassword.equals(s1);
    private static Hashtable cache;
    private static String PFusername;
    private static String PFpassword;
    private static Properties propFile;
    private static validateImpl validateInst;
    static
    propFile = new Properties();
    try
         System.out.println("In Static Block");
    validateInst = new validateImpl();
    propFile.load(new FileInputStream("usersandpasswords.properties"));
    catch(Exception exception)
    System.out.println("Exception in creating an instance" + exception);
    DynamicServer.java
    import java.rmi.Naming;
    import java.rmi.Remote;
    import java.rmi.RMISecurityManager;
    import java.rmi.server.RMIClassLoader;
    import java.util.Properties;
    public class DynamicServer {
    public static void main(String args[]) {
    // Create and install a security manager
    if (System.getSecurityManager() == null) {
    System.setSecurityManager(new RMISecurityManager());
    try {
    Properties p = System.getProperties();
    String url = p.getProperty("java.rmi.server.codebase");
    Class serverclass = RMIClassLoader.loadClass(url, "validateImpl");
    Naming.rebind("/myserverObj", (Remote)serverclass.newInstance());
    /*here is the problem.instead of creating a newInstance i want to bind thevalidateinstance in validateImpl class to be bound to the registry.
    but how can i access it.*/
    System.out.println("HelloServer bound in registry");
    } catch (Exception e) {
    System.out.println(e);
    }

  • Please help : Unable to bind to Network Layer object

    We have installed BO Edge 3.1 on a server and all happened successfully.
    We have installed the client applicatons on the local PC (laptop) and all was fine.
    From the Client, we can open any default universes and test successfully its conection. It works also with SAP connection.
    On the other hand, when connected on remote on the Server, and trying to make a basic report with existing sample universe, we have an error "Unable to bind to Network Layer object".
    He tries to open a dll in a Drive e:\...dataaccess\ConnectionServer\dbd_sap.dll but it happens it is not able to see the dll.
    We trye with the connection of club, fashion and it is the same issue.
    We connecting through the infoview, we have the same issue.
    Any idea?
    Thanks for your help
    Best regards,
    Here is the txt message we receive:
    CS: DBDriver failed to load : E:\Business Objects\Edge 3.1\BusinessObjects Enterprise 12.0\win32_x86\dataAccess\connectionServer\dbd_sap.dll (The specified module could not be found.

    Either SAP GUI wasn't properly installed or SAP Interation Kit wasn't properly installed.
    However, if even efashion based universe is not working - this means installation wasn't succesfull.
    Did you installed the product using local Administrator Account ?

  • Unable to bind to properties of actionscript object

    Hello Forum Folks,
    I built a bread crumb object that extends UIComponent:
    package com.XXX.bidboard
    import mx.core.UIComponent;
    public class BreadCrumb extends UIComponent
    [Bindable]
    private var _pageTitle:String;
    [Bindable]
    private var _component:String;
    [Bindable]
    private var _order:Number;
    [Bindable]
    private var _pageVisited:Boolean;
    [Bindable]
    private var _notLast:Boolean;
    public function BreadCrumb()
    super();
    public function get pageTitle():String {
    return _pageTitle
    public function set pageTitle(value:String):void {
    _pageTitle = value;
    public function get component():String {
    return _component
    public function set component(value:String):void {
    _component = value;
    public function get order():Number {
    return _order
    public function set order(value:Number):void {
    _order = value;
    public function get pageVisited():Boolean {
    return _pageVisited
    public function set pageVisited(value:Boolean):void {
    _pageVisited = value;
    public function get notLast():Boolean {
    return _notLast
    public function set notLast(value:Boolean):void {
    _notLast = value;
    Then in an application object I try to create a BreadCrumb
    object:
    <bidboard:BreadCrumb
    id="onePersonal"
    pageTitle="Start"
    component="personal_companies_wizard_start"
    order="0"
    pageVisited="true"
    notLast="true" />
    however, I get strange warnings:
    warning: unable to bind to property 'notLast' on class
    'com.XXX.bidboard::BreadCrumb'
    warning: unable to bind to property 'pageTitle' on class
    'com.XXX.bidboard::BreadCrumb'
    warning: unable to bind to property 'pageVisited' on class
    'com.XXX.bidboard::BreadCrumb'
    Why? Everything seems to look correct. What is really strange
    is that it only gives the warnings on notLast, pageTitle, and
    pageVisited but not order or component. The only difference I can
    tell betweeen the two groups are the fact that one group has
    capital letters and other doesn't - However I can imagine this is
    the cause of the problem. (I tried everything in lowercase and the
    warning still appeared).
    Any ideas? I'm willing to try anything to solve this mystery.
    Did I miss something?
    Thanks in advance!
    --Andy

    Allow me to answer my own question. I found on Daniel's blog
    http://life.neophi.com/danielr/2006/08/binding_error.html)
    the answer to the unconverted Bindable metadata warning. Appearntly
    if I switch the order of the setters and getters, such that the
    setter show up first, the warning disappears. Not sure why the
    flash engine needs it that way, but it does. All works now!
    Thanks,
    --Andy

  • Javax.naming.NameAlreadyBoundException: Failed to bind remote object

    I am getting an error while deploying wli-ejbs.ear file. This ear uses oracle thin drivers to connect to database. But while deploying i am receiving an error as below. Can anyone please help me to solve this problem?
    Deployer:149033]preparing application wli-ejbs on managed2_cvf01
    [Deployer:149033]preparing application wli-ejbs on managed1_cvf01
    [Deployer:149033]prepared application wli-ejbs on managed1_cvf01
    [Deployer:149033]prepared application wli-ejbs on managed2_cvf01
    [Deployer:149033]activating application wli-ejbs on managed1_cvf01
    [Deployer:149033]activating application wli-ejbs on managed2_cvf01
    [Deployer:149034]An exception occurred for task [Deployer:149026]Deploy application wli-ejbs on cvf01_cluster.: weblogic.management.DeploymentException:
    Exception:weblogic.management.ApplicationException: activate failed for calendar/oracle
    Module: calendar/oracle Error: Exception activating module: EJBModule(calendar/oracle,status=PREPARED)
    Unable to deploy EJB: RemoteCalendarBean from calendar/oracle:
    [EJB:011008]Unable to bind EJB Home Interface to the JNDI name: RemoteCalendarBean.
    javax.naming.NameAlreadyBoundException: Failed to bind remote object (ClusterableRemoteRef(704752282736664516S:172.24.206.163:[7003,7003,7004,7004,7003,7004,-1,0,0]:172.24.206.163:7003,172.24.206.163:7003:cvf01:managed1_cvf01 null)/948 [com.bea.wli.calendar.api.BusinessCalendarHome+javax.ejb.EJBHome+weblogic.ejb20.interfaces.RemoteHome]) to replica aware stub at RemoteCalendarBean(ClusterableRemoteRef(704752282736664516S:172.24.206.163:[7003,7003,7004,7004,7003,7004,-1,0,0]:172.24.206.163:7003,172.24.206.163:7003:cvf01:managed1_cvf01 [704752282736664516S:172.24.206.163:[7003,7003,7004,7004,7003,7004,-1,0,0]:172.24.206.163:7003,172.24.206.163:7003:cvf01:managed1_cvf01/944, -8505871579836432025S:172.24.206.163:[7005,7005,7006,7006,7005,7006,-1,0,0]:172.24.206.163:7003,172.24.206.163:7003:cvf01:managed2_cvf01/1008])/944 [com.bea.wli.calendar.api.BusinessCalendarHome+javax.ejb.EJBHome+weblogic.ejb20.interfaces.RemoteHome]); remaining name ''
    at weblogic.rmi.cluster.ClusterableRemoteObject.onBind(ClusterableRemoteObject.java:177)
    at weblogic.jndi.internal.BasicNamingNode.bindHere(BasicNamingNode.java:347)
    at weblogic.jndi.internal.ServerNamingNode.bindHere(ServerNamingNode.java:124)
    at weblogic.jndi.internal.BasicNamingNode.bind(BasicNamingNode.java:291)
    at weblogic.jndi.internal.WLEventContextImpl.bind(WLEventContextImpl.java:279)
    at weblogic.jndi.internal.WLContextImpl.bind(WLContextImpl.java:386)
    at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrivenBeanInfoImpl.java:1141)
    at weblogic.ejb20.deployer.EJBDeployer.activate(EJBDeployer.java:1385)
    at weblogic.ejb20.deployer.EJBModule.activate(EJBModule.java:631)
    at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplicationContainer.java:3315)
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2194)
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2167)
    at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2503)
    at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2421)
    at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2138)
    at weblogic.management.deploy.slave.SlaveDeployer.commitUpdate(SlaveDeployer.java:676)
    at weblogic.drs.internal.SlaveCallbackHandler$2.execute(SlaveCallbackHandler.java:35)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

    run the sync.bat file as mentioned in the instructions...
    or through EBCC(select sampleportal-project dir, app name "sampleportal")...
    good luck
    Vijay
    "ellen" <[email protected]> wrote:
    >
    I installed sampleportal and did all the changes according to the documents,
    when
    the server started, there is this error:
    Unable to deploy EJB: CatalogWebService from catalogwe.jar:
    Unable to bind EJB Home Interface to the JNDI name: sampleportal.BEA_commerce.CatalogWebService.
    The error was: javax.naming.nameAlreadyBoundException: Failed to bind remote
    object...to
    replica aware stub at CatalogWebService; remaining name'sampleportal.BEA_commerce'
    After the server started with the above error, I tried to run the app, here
    is what
    occured:
    PortalPersistenceManager: portal'sampleportal/sampleportal' not found.
    Has anybody seen this before?
    Ellen

  • What's with the "unable to bind"?

    I have a list that originally was created in Flash Catalyst.  I modified the repeating item component to have the text bound to data.label to accomodate my data source:
    <s:RichText d:userLabel="0" fontFamily="Helvetica" color="0x252525" fontSize="12" kerning="off" whiteSpaceCollapse="preserve" y="4" x="5" text="{data.label}">
    My data source is an array collection of objects, each object with a label and data:
    <mx:ArrayCollection>
    <mx:source>
    <fx:Object label="No insulation" data="0"/>
    <fx:Object label="Fiberglass Batts" data="4.30"/>
    <fx:Object label="Vermiculite" data="2.4"/>
    <fx:Object label="Rock/Mineral Wool" data="4"/>
    <fx:Object label="Urea-formaldehyde foam" data="4.5"/>
    <fx:Object label="Balsam Wool" data="3"/>
    <fx:Object label="Cotton Batts" data="4"/>     
    </mx:source>
    </mx:ArrayCollection>
    It seems to work fine except for the warning:
    warning: unable to bind to property ’label’ on class ’Object’ (class is not an IEventDispatcher)
    From past experience, perhaps I need to cast data.label, but as what?

    Hi Handycam,
    This warning shows up when you try binding to an object that doesn't implement IEventDispatcher.
    Object does not implement IEventDispatcher so any time you bind to a property of that object you will get a warning.
    If you define a subclass of EventDispatcher with the properties you want:
    MyBindableObject.as:
    package {
      import flash.events.EventDispatcher;
      public class MyBindableObject extends EventDispatcher {
        [Bindable] public var label:String;
        [Bindable] public var data:Number;
    And then replace the objects in your ArrayCollection with instances of MyBindableObject then the warnings should go away.
    SampleList.mxml:
    <s:Application
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:local="*">
        <s:List>
            <s:ArrayCollection>
                <local:MyBindableObject label="No insulation" data="0"/>
                <local:MyBindableObject label="Fiberglass Batts" data="4.30"/>
                <local:MyBindableObject label="Vermiculite" data="2.4"/>
                <local:MyBindableObject label="Rock/Mineral Wool" data="4"/>
                <local:MyBindableObject label="Urea-formaldehyde foam" data="4.5"/>
                <local:MyBindableObject label="Balsam Wool" data="3"/>
                <local:MyBindableObject label="Cotton Batts" data="4"/> 
            </s:ArrayCollection>
        </s:List>
    </s:Application>
    Message was edited by: Shongrunden (adding sample code for SampleList.mxml)

  • Unable to bind ":OB_SCHEMA"

    I am getting this when I try to view a table in the Object Browser. Data view seems to work ok, as do all the other sub-headings. Only the Table view is affected. Using FireFox. It was working fine earlier in the day for dev.
    Couldn't find anything in Google search, nothing in this forum. Any ideas?
    Unable to bind ":OB_SCHEMA"
    report error:
    ORA-01008: not all variables bound

    And the error persists - for just one table or for any table using table view since the error occured for the first time?
    My first guess is that your database has got the shared_pool messed up some way. Try alter system flush shared_pool as dba, if you have one. If it's not the shared pool, it could also be the buffer cache. Try flushing it as well.
    I don't know how to trace which item(s) cause this "messing up". We had such strange errors (though not exactly the one you had) and got it fixed that way.
    -Udo

  • Unable to bind to property

    Here is a snippit from my main.MXML.
    <mx:DataGrid id="StructGrid"
    dataProvider="{ArrayofStructs}" x="322" y="293" editable="true"
    itemEditEnd="processData1(event);">
    <mx:columns>
    <mx:DataGridColumn headerText="Name" dataField="NAME"
    />
    <mx:DataGridColumn headerText="Last Name"
    dataField="LASTNAME" />
    <mx:DataGridColumn headerText="Age" dataField="AGE" />
    <mx:DataGridColumn headerText="Sex" dataField="SEX"
    itemEditor="valueObjects.HumanSex" sortable="false">
    <mx:itemRenderer>
    <mx:Component>
    <mx:Text selectable="false" width="100%"
    text="{data.SelectedSEX}"/>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>
    </mx:columns>
    </mx:DataGrid>
    Here is my HumanSex.mxml:
    <mx:VBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="400" height="300">
    <mx:ComboBox id="comboBox"
    selectedItem="{data.SelectedSEX}">
    <mx:dataProvider>
    <mx:String>Male</mx:String>
    <mx:String>Female</mx:String>
    <mx:String>Other</mx:String>
    </mx:dataProvider>
    </mx:ComboBox>
    </mx:VBox>
    Why do I keep getting this waring when I am running in
    Debug?
    unable to bind to property 'SelectedSEX' on class 'Object'
    (class is not an IEventDispatcher)

    You're referencing a property SelectedSEX on an object called
    'data'. Where is this property defined? I don't see it in your
    snippet.
    Tim

  • How to bind an object to JNDI tree in iAS?

    Hi all,
    When I try to bind a string object to jndi tree, the following exception
    occurs:
    javax.naming.NamingException: Unable to get object instance from reference.
    Roo
    t exception is javax.naming.NamingException: Can't bind instance of class
    java.lang.String
    at com.netscape.server.jndi.RootContext.bindCtx(Unknown Source)
    at com.netscape.server.jndi.RootContext.rebind(Unknown Source)
    at com.netscape.server.jndi.RootContext.rebind(Unknown Source)
    at javax.naming.InitialContext.rebind(InitialContext.java:385)
    at jsp.APPS.bmx.test2._jspService(test2.java:76)
    at jsp.APPS.bmx.test2.service(test2.java:42)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    The code fragment is:
    Context ctx = new InitialContext();
    String str = "hell,every one!";
    ctx.rebind("abc", str);
    Can anyone give some help? Thanks in advance.
    Johnson

    To bind an object into the JNDI tree check the documentation here:
    http://e-docs.bea.com/wls/docs81/jndi/jndi.html#475702
    If this is to be used by all your applications that you deploy on the server check out the startup/shutdown class documentation here:
    http://edocs.bea.com/wls/docs81/ConsoleHelp/startup_shutdown.html
    Cheers
    IV

  • "Unable to Bind" warnings

    My app seems to work fine, but in debug mode I get a series
    of warnings, such as:
    warning: unable to bind to property 'title' on class 'XML'
    (class is not an IEventDispatcher)
    I am using this property in a itemRenderer, a canvas which
    includes a Text object:
    <mx:Text id="item" text="{XML(data.@title)}" width="100%"
    />
    Am I doing it wrong?

    You are close. Change your binding expression to:
    text="{XML(data).@title}"
    See the difference in the parens?
    What you really want to do is "cast" (really convert) "data"
    which is a non-bindable "Object" to the XML which it really
    contains. It is not helping to cast the "@title", because data is
    still an object.
    XML IS bindable.
    Tracy

  • Creating and Binding View Objects dynamically : Oracle Jdeveloper 11g

    Hello,
    We are trying to create and bind view objects dynamically to adf data visualization components.
    The view object is a result of multiple tables.
    We are using Oracle JDeveloper 11g Technical Preview. ( can't upgrade to TP2 or TP3 now).
    We have found this : http://radio.weblogs.com/0118231/stories/2003/07/15/creatingUpdateableMultientityViewObjectDefinitionsDynamically.html on our search for the same.
    The sample application however, is in 10g , hence required migration.
    Also, it was a standalone application with the TestClient.java having a main() method.
    Our requirement is for Web Application; we use Adf+jsf .
    Guidance of any sort is very much appreciated.
    Thanks in advance.
    -Anil Golla

    Hi,
    there also exist a forum for JDeveloper 11: JDeveloper and OC4J 11g Technology Preview
    What you are trying todo is not trivial because you need to not only dynamically create the VO, you would also dynamically need to create the binding meta data for it (assuming you use ADF). Not sure if the API to modify the binding is public, so posting it on the JDeveloper 11 forum bears a glimpse of hope for an answer
    In JDeveloper 10.1.3 you can't do this
    Frank

  • EJB 3.0: java.io.IOException: Unable to find session object ...

    Hello,
    We have an EJB3 application deployed to an Oracle AS 10.1.3.1.0 instance.
    Our main point of entry to the application is a stateful session bean (that controls access), that has injected several other stateful session beans.
    Like this:
    +@Stateful(name = "TstreamUserSession")+
    +public class TstreamUserSessionBean extends UserSessionBean implements TstreamUserSession {+
    +@EJB(name = "ContactSession")+
    private ContactSessionLocal contactSession;
    +@EJB(name = "GuestSession")+
    private GuestSessionLocal guestSession;
    +@EJB(name = "TechCustomerSession")+
    private TechCustomerSessionLocal techCustomerSession;
    +@EJB(name = "PmSession")+
    private PmSessionLocal pmSession;
    +@EJB(name = "CustomerSession")+
    private CustomerSessionLocal customerSession;
    +@EJB(name = "PartnerSession")+
    private PartnerSessionLocal partnerSession;
    +@EJB(name = "AdminSession")+
    private AdminSessionLocal adminSession;
    +@EJB(name = "SuperAdminSession")+
    private SuperAdminSessionLocal superAdminSession;
    +@EJB(name = "VmSession")+
    private VmSessionLocal vmSession;
    +public TstreamUserSessionBean() {+
    +}+
    +...+
    In this class, we also look up these sessions, because we need several instances of these, in this manner:
    +private synchronized Object getSessionInstance(String sessionName) throws AccessDeniedException {+
              +try {+
                   InitialContext ic = new InitialContext();
                   return ic.lookup("java:comp/env/" sessionName);+
              +} catch (NamingException e) {+
              +}+
         +}+
    However, we keep getting the following messages after a certain period.
    java.io.IOException: Unable to find session object 2816103596632839360 for location 'AdminSession'
    +10/01/12 11:50:04 at com.evermind.server.ejb.EJBInternalInputStream.resolveObject(EJBInternalInputStream.java:70)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.checkResolve(ObjectInputStream.java:1346)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)+
    +10/01/12 11:50:04 at com.evermind.server.ejb.StatefulSessionEJBObject.activateBean(StatefulSessionEJBObject.java:581)+
    +10/01/12 11:50:04 at com.evermind.server.ejb.StatefulSessionEJBObject.remove_X(StatefulSessionEJBObject.java:213)+
    +10/01/12 11:50:04 at com.evermind.server.ejb.StatefulSessionEJBObject.remove_X(StatefulSessionEJBObject.java:159)+
    +10/01/12 11:50:04 at com.evermind.server.ejb.StatefulSessionEJBHome.processTimedOutSessions(StatefulSessionEJBHome.java:371)+
    +10/01/12 11:50:04 at com.evermind.server.ejb.StatefulSessionEJBHome.cleanUpMaintenance(StatefulSessionEJBHome.java:306)+
    +10/01/12 11:50:04 at com.evermind.server.ejb.EJBTask.run(EJBTask.java:47)+
    +10/01/12 11:50:04 at com.evermind.util.Task.schedule(Task.java:51)+
    +10/01/12 11:50:04 at com.evermind.util.TaskManager.run(TaskManager.java:221)+
    +10/01/12 11:50:04 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)+
    +10/01/12 11:50:04 at java.lang.Thread.run(Thread.java:595)+
    I guess this occurs when the stateful session TstreamUserSession is reactivated?
    Or when the ones being injected are passivated?
    Any idea why this occurs, or how to suppress it, because it really spams our logs...
    Thanks.

    Hello,
    We have an EJB3 application deployed to an Oracle AS 10.1.3.1.0 instance.
    Our main point of entry to the application is a stateful session bean (that controls access), that has injected several other stateful session beans.
    Like this:
    +@Stateful(name = "TstreamUserSession")+
    +public class TstreamUserSessionBean extends UserSessionBean implements TstreamUserSession {+
    +@EJB(name = "ContactSession")+
    private ContactSessionLocal contactSession;
    +@EJB(name = "GuestSession")+
    private GuestSessionLocal guestSession;
    +@EJB(name = "TechCustomerSession")+
    private TechCustomerSessionLocal techCustomerSession;
    +@EJB(name = "PmSession")+
    private PmSessionLocal pmSession;
    +@EJB(name = "CustomerSession")+
    private CustomerSessionLocal customerSession;
    +@EJB(name = "PartnerSession")+
    private PartnerSessionLocal partnerSession;
    +@EJB(name = "AdminSession")+
    private AdminSessionLocal adminSession;
    +@EJB(name = "SuperAdminSession")+
    private SuperAdminSessionLocal superAdminSession;
    +@EJB(name = "VmSession")+
    private VmSessionLocal vmSession;
    +public TstreamUserSessionBean() {+
    +}+
    +...+
    In this class, we also look up these sessions, because we need several instances of these, in this manner:
    +private synchronized Object getSessionInstance(String sessionName) throws AccessDeniedException {+
              +try {+
                   InitialContext ic = new InitialContext();
                   return ic.lookup("java:comp/env/" sessionName);+
              +} catch (NamingException e) {+
              +}+
         +}+
    However, we keep getting the following messages after a certain period.
    java.io.IOException: Unable to find session object 2816103596632839360 for location 'AdminSession'
    +10/01/12 11:50:04 at com.evermind.server.ejb.EJBInternalInputStream.resolveObject(EJBInternalInputStream.java:70)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.checkResolve(ObjectInputStream.java:1346)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)+
    +10/01/12 11:50:04 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)+
    +10/01/12 11:50:04 at com.evermind.server.ejb.StatefulSessionEJBObject.activateBean(StatefulSessionEJBObject.java:581)+
    +10/01/12 11:50:04 at com.evermind.server.ejb.StatefulSessionEJBObject.remove_X(StatefulSessionEJBObject.java:213)+
    +10/01/12 11:50:04 at com.evermind.server.ejb.StatefulSessionEJBObject.remove_X(StatefulSessionEJBObject.java:159)+
    +10/01/12 11:50:04 at com.evermind.server.ejb.StatefulSessionEJBHome.processTimedOutSessions(StatefulSessionEJBHome.java:371)+
    +10/01/12 11:50:04 at com.evermind.server.ejb.StatefulSessionEJBHome.cleanUpMaintenance(StatefulSessionEJBHome.java:306)+
    +10/01/12 11:50:04 at com.evermind.server.ejb.EJBTask.run(EJBTask.java:47)+
    +10/01/12 11:50:04 at com.evermind.util.Task.schedule(Task.java:51)+
    +10/01/12 11:50:04 at com.evermind.util.TaskManager.run(TaskManager.java:221)+
    +10/01/12 11:50:04 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)+
    +10/01/12 11:50:04 at java.lang.Thread.run(Thread.java:595)+
    I guess this occurs when the stateful session TstreamUserSession is reactivated?
    Or when the ones being injected are passivated?
    Any idea why this occurs, or how to suppress it, because it really spams our logs...
    Thanks.

  • Unable to update this object because the following attributes associated with this object have values that may already be associated with another object in your local directory services

    Getting this error from DirSync
    Unable to update this object because the following attributes associated with this object have values that may already be associated with another object in your local directory services: [UserPrincipalName
    [email protected];].  Correct or remove the duplicate values in your local directory.  Please refer to
    http://support.microsoft.com/kb/2647098 for more information on identifying objects with duplicate attribute values.
    Quick eyeball and couldn't see the cause in the user account so used the script here:
    http://gallery.technet.microsoft.com/office/Fix-Duplicate-User-d92215ef
    And got these outputs:
    PS C:\Windows\System32\WindowsPowerShell\v1.0> Export-OSCADUserPrincipalName -UserPrincipalName "[email protected]" -Path .\outputs.csv
    WARNING: Cannot find objects with specified duplicate user principal name
    [email protected]
    Found 0 user(s) with duplicate user principal name.
    Where to from here?
    Richard P

    Hi,
    Did you talk about the Microsoft Azure Active Directory Sync tool ?
    If yes, this issue occurs if one or more of the following conditions are true:
    An object in the on-premises Active Directory has an SMTP address that's the same as the SMTP address of the object that's reporting the problem.
    An object in the on-premises Active Directory has a mail attribute that's identical to the object that's reporting the problem.
    An object already exists in your organizational account and has the same SMTP address or mail attribute as the object in the on-premises Active Directory
    More detail information, please refer to:
    http://support.microsoft.com/kb/2520976/en-us
    [Troubleshooting] Unable to update this object because the following attributes associated with this object
    http://blogs.technet.com/b/aadsyncsupport/archive/2014/05/20/troubleshooting-unable-to-update-this-object-because-the-following-attributes-associated-with-this-object.aspx
    Regards.
    Vivian Wang

  • Unable to create entity object in JDev 10.1.3(R12)

    Hi,
    I am Unable to create entity object in JDev 10.1.3(R12).Everything else works fine but not the EO creation.THe option for selecting table,synonym are disabled when I try to create new entity object.
    Please let me know if you any of you had the same problem and resolved it.
    Regards
    Sudhakar

    Sudhakar,
    The (R12) in the thread subject line leads me to believe that you are asking this question in the wrong forum. OA Framework has its own [url http://forums.oracle.com/forums/forum.jspa?forumID=210]forum that you should use.
    Best,
    John

  • Applet throws "Unable to obtain Document object"

    Hello,
    I have an applet in a html-page and a link to show the applet (in a later version this should be a menu with links to different applets).
    If I click very often (click,click,click,click) on the link I get an exception (see below).
    Used environment:
    - Windows 2000 English
    - Internet Explorer 6
    - Java(TM) Plug-in: Version 1.4.2, Using JRE version 1.4.2 Java HotSpot(TM) Client VM
    Here are my 4 tiny source-codes:
    1. My test Applet:
       import java.util.*;
       import javax.swing.*;
       public class BigApplet extends JApplet {
          Vector vec = new Vector();
          public void init() {
             this.getContentPane().add(new JLabel("BigApplet"));
             for (int i = 0; i < 10; i++) {
                vec.add(new Object[250000]);
       }And 3 HTML-Pages:
    2. Frame.html
       <html>
          <frameset cols="80,*" frameborder="NO" border="0" framespacing="0">
             <frame src="link.html" name="menuFrame" noresize marginheight="0" marginwidth="0">
             <frame name="applet" noresize marginheight="0" marginwidth="0">
          </frameset>
       </html>3. Link.html
       <html>
          <a href="applet.html" target="applet">Applet</a>
       </html>4. Applet.html
       <applet code="BigApplet.class" codebase="bin" />The three html pages are in the same directory and the BigApplet.class is in the bin-folder of this directory.
    If I start the frame.html from Explorer and than click very fast (about 5 to 10 times) on the link to the applet I get this exception:
    netscape.javascript.JSException: Unable to obtain Document object
         at sun.plugin.AppletViewer.getDocumentBase(Unknown Source)
         at sun.plugin.AppletViewer.getCodeBase(Unknown Source)
         at sun.plugin.AppletViewer.appletInit(Unknown Source)
         at sun.plugin.viewer.LifeCycleManager.initAppletPanel(Unknown Source)
         at sun.plugin.viewer.IExplorerPluginObject$Initer.run(Unknown Source)If the applet is delivered by a webserver (tried IIS and Apache) the Internet Explorer crashes without a message. In that case I get a different exception (found in the log file of the java console):
    java.lang.NullPointerException
         at sun.plugin.util.URLUtil.canonicalize(Unknown Source)
         at sun.plugin.AppletViewer.getDocumentBase(Unknown Source)
         at sun.plugin.AppletViewer.getCodeBase(Unknown Source)
         at sun.plugin.AppletViewer.appletInit(Unknown Source)
         at sun.plugin.viewer.LifeCycleManager.initAppletPanel(Unknown Source)
         at sun.plugin.viewer.IExplorerPluginObject$Initer.run(Unknown Source)Any idee what to do to be sure that an user can not produce this error?
    Bye
    Thomas

    Hello, I am getting the same error under different circumstances. No clicking is involved. What I need to know is what causes the error? Anyone know?
    And levi_h - the end users of applets often get impatient when they don't see immediate results and will click and click and click and click, thinking that somehow they are helping the situation. You may feel they deserve to be punished, but the powers that be who are the customers who will deploy our applets don't feel that way at all, and they are the ones that pay our salaries and allow us to be sheltered, clothed, fed and send our kids to college!

Maybe you are looking for