BInd objects on non-local rmiregistry?

As I understand, every remote object should be registred on his own(local) rmiregistry.
I use JNDI like this:
/////////// Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.rmi.registry.RegistryContextFactory" );
env.put(Context.PROVIDER_URL, "rmi://localhost"); Context ctx = new InitialContext(env);
String rmiurl = "rmi://192.168.0.48/1.IObj";
Reference ref = new Reference("IObj", new StringRefAddr("URL", rmiurl)); ctx.rebind("JNDI_OBJ", ref); //////////
and this works out. But only with my local rmiregistry.
When I change PROVIDER_URL property I catch javax.naming.NoPermissionException. Is it possible to bind my objects on another rmiregistry.
I will be very appreciated, if you help me. Thank you.

The problem is the standard RMI initial context factory. With the standard RMI registry you are only allowed to bind to a local RMI registry. However you can use any Naming service to bind your object. This means you can use CAROL, JBossNS, or any other naming service of your liking. You just have to use the appropriate initial context factory in your initial context.
Cliff

Similar Messages

  • RemoteException LOCALHOST is non-local host

    Hello RMI gurus,
    I am trying to run an example RMI application to get a better understanding of how RMI works, but I have encountered this problem. The error I am getting is this:
    Error: RemoteException occured in server thread; nested exception is:
    java.rmi.AccessException: Registry.Registry.rebind disallowed;
    origin
    LOCALHOST/127.0.0.1 is non-local host
    I have the rmiregistry running on the default port on the same system that I am trying to run the server part of the program, and am using Java 1.3. Here is how I start the program:
    java -Djava.rmi.server.codebase=file:///java/verify/ -cp /java/verify FibonacciServerAlso, I bind my object to rmi with this call in the FibonacciServer class:
    Naming.bind("fibonacci", f);
    I am guessing it is choking on this.
    Any way...thanks in advance for any help with this!
    C.M.

    Naming.bind("fibonacci", f);
    Naming.bind("//localhost/fibonacci",f);You can add rmi: in front of localhost but it is not essential.

  • Rebind invoked from non-local host (AccessException)

    Hi all,
    I have a simple RMI setup where a client class asks for a new object from a server class, however, I use this call to create the new object on the server and then attempt to register it with the rmiregistry before passing the remote reference back (ie UnicastRemoteObject). This is because I want the client to access a new remote object on the server (the new object may not be serializable).
    The problem is after I tried it with a remote machine, I got an AccessException, Registry.rebind disallowed. This seems to be because you can't get a client (non-local) to affect the registry for security. Fair enough. Although I thought becuase it is a method on the server which does the actual object creation and registration that it IS local and it would work...
    any comments...?
    is there a way around this...?
    Thanks in advance,
    Toby

    Hi...You can rebind a object only from the local machine...RMI does not allow remote binding of the objects because of security reasons and whenever you try to do so you get an Access Exception.
    Hope this Helps.

  • Registry.rebind disallowed; origin /11.0.10.31 is non-local host.

    Hello everyone.
    I have a problem.
    I have a server that I register in the RMI registry. Client from a remote machine get the server (as a remote object) and calls his method for the generation of another object on the parameters passed. The server creates this object and tries to register it in the RMI registry, and this raises an exception Registry.Registry.rebind disallowed; origin /11.0.10.31 is non-local host.
    What could be the problem and how to solve it?
    Thanks.

    Ah, this is the problem. It's a bit difficult to explain but if you create an in-JVM Registry and then call rebind() on the result while executing a remote method on behalf of a client, your are doing a local method invocation on the Registry instance so the client host appears to be the calling client rather than yourself. Change the rebind() call to use Naming.rebind() and the problem will go away.

  • Reading From Binding Object

    Dear Sir
    We are populateing the Binding object from the backing bean as the following code :
    public String writeToOutput() {
    DCIteratorBinding process = getIterator("processIterator");
    process.getCurrentRow().setAttribute("SimpleElemet", "Simple Element Value");
    executeMethod("ListIteratorCreateInsert");
    DCIteratorBinding itemIterator = null;
    for(int i=0; i<2; i++) {
    executeMethod("itemIteratorCreateInsert");
    itemIterator = getIterator("itemIterator");
    itemIterator.getCurrentRow().setAttribute("ID", String.valueOf(i+1));
    itemIterator.getCurrentRow().setAttribute("Name", "Name Value " + String.valueOf(i+1));
    return null;
    private BindingContainer getBindings() {
    return BindingContext.getCurrent().getCurrentBindingsEntry();
    private void executeMethod(String name) {
    getBindings().getOperationBinding(name).execute();
    and after I wrote on the binding object I want to read the data from it, is there any code that able me to read the data from the bininding object as the above structure.
    processIterator contain :
    - simple field "SimpleElemet".
    - ListIteratorCreateInsert contains :
    - itemIterator conatins :
    - id
    - Name
    Note : i can read from the SimpleElemet but i do not how can i read from the list itemIterator , Please advice.
    Regards
    Mohd.Weshah

    Dear Thanks
    i already used the getAttribute("Name") and it working but my question there is a parent iterator and child iterator and the child iterator contain a complex object my quest is how i can access all the child list iterate attribute.
    Note I can read from the parent but I can get from the child.
    Regards
    Mohd.Weshah

  • 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

  • A null object loaded from local variable 'o' in XSLT mapping

    Hi experts,
    We are facing an issue in XSLT mapping for one of the inbound scenario.
    While executing the source message at mapping level, it is failing with the error text - "javax.xml.transform.TransformerException: com.sap.engine.lib.xsl.xpath.XPathException: Error parsing query -> java.lang.NullPointerException: while trying to invoke the method java.lang.Object.toString() of a null object loaded from local variable 'o'
    Kindly help us on this issue!
    FYI - We are facing this issue in PO 7.4 version.
    Best Regards,
    Uday.

    HI Hareesh,
    Thanks for your inputs...
    We are migrating the interface from PI7.1 to PI 7.4 at this one we are getting the error as mentioned the earlier. we are uanle to run it in the mapping level as well.
    Why are we getting the error?As this is working in PI7.1 version
    Please help us on this.

  • While trying to invoke the method java.lang.String.length() of an object loaded from local variable 'payload'

    Hi,
    Our PI is getting data from WebSphere MQ and pushing to SAP. So our sender CC is JMS and receiver is Proxy. Our PI version is 7.31.
    Our connectivity between the MQ is success but getting the following error while trying to read the payload.
    Text: TxManagerFilter received an error:
    [EXCEPTION]
    java.lang.NullPointerException: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'payload'
           at com.sap.aii.adapter.jms.core.channel.filter.ConvertJmsMessageToBinaryFilter.filter(ConvertJmsMessageToBinaryFilter.java:73)
           at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:204)
           at com.sap.aii.adapter.jms.core.channel.filter.InboundDuplicateCheckFilter.filter(InboundDuplicateCheckFilter.java:348)
           at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:204)
    I have searched SDN but couldn't fix it. Please provide your suggestion.
    With Regards
    Amarnath M

    Hi Amarnath,
    Where exactly you are getting this error?
    If you are getting at JMS Sender communication channel, try to stop and start the JMS communication channel and see the status, also use XPI Inspector to get the exact error log.
    for reference follow below blogs:
    Michal's PI tips: ActiveMQ - JMS - topics with SAP PI 7.3
    Michal's PI tips: XPI inspector - help OSS and yourself
    XPI Inspector

  • Approval task SP09: Evaluation of approvalid failed with Exception: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'aValue'

    Hi everyone,
    I just installed SP09 and i was testing the solution. And I found a problem with the approvals tasks.
    I configured a simple ROLE approval task for validate add event. And when the runtime executes the task, the dispatcher log shows a error:
    ERROR: Evaluation of approvalid failed with Exception: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'aValue'
    And the notifications configured on approval task does not start either.
    The approval goes to the ToDO tab of the approver, but when approved, also the ROLE stays in "Pending" State.
    I downgraded the Runtime components to SP08 to test, and the approvals tasks works correctly.
    Has anyone passed trough this situation in SP09?
    I think there is an issue with the runtime components delivered with this initial package of SP09.
    Suggestions?

    Hi Kelvin,2016081
    The issue is caused by a program error in the Dispatcher component. A fix will be provided in Identity Management SP9 Patch 2 for the Runtime component. I expect the patch will be delivered within a week or two.
    For more info about the issue and the patch please refer to SAPNote 2016081.
    @Michael Penn - I might be able to assist if you provide the ticket number
    Cheers,
    Kristiyan
    IdM Development

  • GetDescriptions() of an object loaded from local variable 'itemDeploymentResult'

    Hi
    We are urgrading our SAP MII ( purely Java ) systems from 7.31 Sp5 to 7.40 and we got stuck at Configuration phase. We are getting the following error during Queue validation.
    Checking of deployment queue completed with error. java.lang.NullPointerException: while trying to invoke the method com.sap.sdt.j2ee.tools.deploymentmgr.DeploymentManagerItemResultIF.getDescriptions() of an object loaded from local
    variable 'itemDeploymentResult'.
    I looked in the trace files under SUM/sdt/trc directory and found the following information.
    Jul 3, 2014 9:52:16 AM
    [Error]:
    com.sap.sdt.executor.module.ModuleExecutor [Thread[UC-3,5,main]]: A
    problem has occurred:
    com.sap.sdt.executor.exception.StepExecutionException: Problem while
    trying to execute operation on service validate-queue. The following
    problem has occurred java.lang.reflect.InvocationTargetException. CSN
    Component BC-UPG-TLS-TLJ.
    Checking of deployment queue completed with error.
    java.lang.NullPointerException: while trying to invoke the method
    com.sap.sdt.j2ee.tools.deploymentmgr.DeploymentManagerItemResultIF.getDescriptions() of an object loaded from local
    variable 'itemDeploymentResult'
    Jul 3, 2014 9:52:16 AM
    [Error]:
    com.sap.sdt.executor.module.ModuleExecutor [Thread[UC-3,5,main]]:
    Checking of deployment queue completed with error.
    Jul 3, 2014 9:52:16 AM
    [Error]:
    com.sap.sdt.executor.module.ModuleExecutor [Thread[UC-3,5,main]]:
    java.lang.NullPointerException: while trying to invoke the method
    com.sap.sdt.j2ee.tools.deploymentmgr.DeploymentManagerItemResultIF.getDescriptions() of an object loaded from local
    variable 'itemDeploymentResult'
    We have 26 GB left on our Drive and have also upgraded JSPM to 7.31 Sp8. We are using SUM10SP05_9.
    Appreciate your quick help

    Hi Amarnath,
    Where exactly you are getting this error?
    If you are getting at JMS Sender communication channel, try to stop and start the JMS communication channel and see the status, also use XPI Inspector to get the exact error log.
    for reference follow below blogs:
    Michal's PI tips: ActiveMQ - JMS - topics with SAP PI 7.3
    Michal's PI tips: XPI inspector - help OSS and yourself
    XPI Inspector

  • CLFMAS: Change only 1 caracteristic in a non-local material class

    I try to modify a material's classification with CLFMAS.
    I would like to change only one characteristic. The others ones must keep their old values.
    CLFMAS erases everything, and I just have the new value of the caracteric I would change.
    I use a non-local class.
      Thanks in advance for your help.

    We have the same issue just come up last night.   A test on one class last week yielded the 2 record change history model (old value deleted, new value created).  Applying the same change to a different material class, we get only the single record model - no help or oss notes seem to mention that there are two different change history models in SAP.
    CHECK THIS -- check your single record change log in table CDPOS ... you may have values in both value_old and value_new fields there.  The 2 record model stores value_old on the "deleted" record and value_new field value on the "created" record.
    That still does not answer why there are two models and how one controls which model is implemented for change history on a class/characteristic ... but it sheds just a little more light on it.

  • Enabling Silent Auto-update in Java 7.45 as a non-local administrator user, enterprise best practices?

    So I have been looking through forums, java help, and everywhere possible for more insight on java in an enterprise environment. What I have found so
    far is that there is no actual way to enable auto updates to install as a non-local admin user.
    I know you can turn on and off updates My company wants to install java JRE as a silent-autoupdate "always update" kind of installation, but all my users are domain users, without admin rights. When it finds an update - it prompts for credentials and obviously they are denied. Is this even possible?  If it is not possible to "auto-update" non local admins, I can make the case to management that java releases need to be QA'd and controlled releases. My environment is adminstudio/installshield and SCCM. I know auto-installing updates to java without QA per version , in a enterprise environment, is not good practice, but its not my decision right now.
    thank you very much!

    Hi and thank you very much for responding!
    I'd be interested in further answers:
    Our company is developing unsigned applets ...Why?Sufficient functionality. We dont want to e. g. access the customers local file system, we just wanted to use the applet as viewer sending data to and from the server where the applet was loaded from. Nothing else.
    1. What is the idea to show messages for unsigned applets running in a secure sandbox.. why when running in a sandbox, and why not also for potentially more dangerous signed applets?With a signed applet you know who is taking the responsibility.With unsigned applets, I rely on the sandbox responsibility. I actually couldn't do anything dangerous by accident.
    With signed applets, I'm fully responsible that nothing bad happens to the clients data. Preventing this is the main task for the java sandbox, so why not use it?
    Just to clarify: Is it right that each signed applet has full access rights?
    3. Is there any recommended strategy to sign an applet to work across browsers, platforms, JRE versions?Err, sign it?Does the signing scheme matter? According to http://mindprod.com/jgloss/signedapplets.html, there are lots of...
    Could you recommend a good tutorial? I'm an absolute beginner concerning signing of applets.
    4. Are there negative side-effects to sign an applet?Only that it forces you to sign all its components. Not sure what this question means.What about loading time and jar filesize?
    Does JarIndex work with multiple signed modular applet jars?
    Must javascript code also be signed to talk to signed applets?
    Is a client able to see a signed applet a) without see or interact with a confirmation window and b) without doing any prerequisites (like adding certificates or similar)?
    Thanks, Peter

  • ER: restricting auto binded objects types 11g.

    When we want to create an autobind between a backing bean and a JSF web page, bindings code is created for all object on the page. Even panel box, faced etc.
    There is many lines of code on backing bean. We d'ont even use one time for many object type.
    In general we use input text, list item etc. Others are unnecessery.
    In my opinion if there is a configuration which supplies to chose binded item types it will be very good.
    lines of code will be decreased in backing bean and complexy is decreased too.
    For example just input test item can be autobind.
    Thanks.

    Hi,
    When I first started out with this, I thought the autobind function was pretty neat as I thought it would save me time and effort from having to bind objects myself. Boy, was I wrong. Adding/removing anything from the Jspx page while debugging requires a restart. That was enough to stop me from using it further.
    When you create a new JSF Page, click on *"Page Implementation"* and make sure you have the *"Do Not Automatically Expose UI Components in a Managed Bean"* selected. That way, you won't get into the trouble you are in. I agree with Frank that you should only bind components when and if you need to only. If you have already created the page and would like it to stop automatically binding each UI component, follow the steps below:
    1) Open your JSPX page in source code view, remove the commented line below.
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backingBeanYours-->Optionally, you can replace it with the following code to point to your managed bean that handles the user actions.
    <!--oracle-jdev-comment:preferred-managed-bean-name:managedBeanYours-->2) Open faces-config.xml in source code view, and look for your backingBean that is auto Binding each UI component. Within its <managed-bean>...</managed-bean> tags, you will see another oracle-jdev comment like the one below. Remove that as well.
    <!--oracle-jdev-comment:managed-bean-jsp-link:1YourPage.jspx-->JDev should stop autobinding / removing UI components from the backing bean now.
    Regards,
    Chan Kelwin

  • Setting the property "Cache Level" of the pcd object to "None".

    Hi all
    I have an EP 6.0 on NW04 SPS 17. I need to solve a problem and found note 960975. My question is, how could we change the setting the property "Cache Level" of the pcd object to "None"? Where should I go? Is it on the NWA, Visual Admin, Configtool or somewhere else?
    Many thanks before.
    Regards
    Agoes
    Message was edited by:
            Agoes Boedi Poerwanto

    Hi Agoes,
    By using the tool Support Desk -> Portal Content Directory -> PCD Administration you can do this. Please note that this tool should only be used in debugging situations.
    There is a new section "Release a Unit from the cache cluster wide" in this tool. With this new functionality, you can remove an object from the cache on all nodes in the cluster. If the object is still in use, it will be reread immediately from the database
    Releasing the entire PCD cache can severely affect performance. Hence, if there are inconsistencies suspected with a single object, e.g. a role or an iview, the new section "Release a Unit from the cache cluster wide" can be used to evict the given object from the cache on all nodes in the cluster.
    Cheers,
    shyam

  • How to create groups with non-local addresses

    I want to create a mailing group that consists of non-local addresses like [email protected], [email protected]
    How to do this ? I know that editing /etc/aliases redirects to local accounts only. The above is possible by editing /etc/postfix/virtual and do a postmap on this file. Is there any alternate way ?

    I use an include file for my groups - easier to modify...
    In /etc/postfix/aliases...
    some_groupname: :include:/path_to/groupname.txt
    In the 'groupname.txt' file (textedit, plaintext file), a list of the members...
    localemailuser
    [email protected]
    After any edit of the group file... sudo newaliases
    -david

Maybe you are looking for

  • Generate report using Word Report Generation VIs error

    When I Generate report using Word Report Generation VIs  ,the error is generated. This is  my Vi can somebody  tell the error reason? The attaché is Vi (one is 2011,other is 8.6) Attachments: report-8.6.vi ‏16 KB report2.vi ‏33 KB template.doc ‏40 KB

  • Problem getting images in ePub to appear correctly for Nook

    I have been working on a book that is about 250 pages long in print format, with about 350 photographs that illustrate the text, which is a guide to the use of a particular digital camera model. After watching Anne-Marie Concepcion's course at Lynda.

  • Problem accessing TABLE fields in SELECT statement

    Hi, We are currently using Oracle Database 10.2.0.2.0. In the following code, using a function to access TABLE fields works, but not when accessing the table fields directly (in the latter case, I get a no data found exception). Why is that? Thanks f

  • How can we request iphone 5s factory unlock

    i want to ask if can we unlock our iphone 5s via imei since its att locked. and we cant use it in other countries.. and how can we do that.. ive seen a lot of sites saying they can factory unlock using IMIE.. i dont really trusht unknown site.. so i

  • BAPI for delivery VL01N transaction

    Hi All,        I am working on SAP ECC 5.0 version. My requirements are to create a delivery note against a purchase order. The purchase order is basically for Stock transfer between intra company (UB) and Inter Company (NB) . So am looking for BAPI