Naming.lookup refuses to work properly when I use a different port
Ok, here's the deal: I have an application that uses RMI. Until now it has worked wonderfully, but since a new service that "steals" port 1099 is going to be installed on the same machine, I have to update my code to start working with another port.
Nothing unfathomable, of course. Or so I thought.
I start the registry with the right port (1211) and I bind my server using the same port:
Naming.rebind("//localhost:1211/XXX", myXXX)But when I try to get a reference to that object by using Naming.lookup("//localhost:1211/XXX")I get a nasty UnknownHostException!
And here's the freakish thing: if I try this...
String[ ] list = Naming.list("//localhost:1211");
for(int i=0; i<list.length; i++) {
System.out.println(list);
XXX myObj = (XXX)Naming.lookup("//localhost:1211/XXX")
...first I get a list of the objects contained in the registry, and my "//localhost:1211/XXX" [i]is there, but then when I look it up, I get the exception that says my host 172.x.x.x (the localhost) is unknown!
I have made sure there are no unwanted blank spaces in the Strings i use for the binding and lookup. I have even tried using the very String that I receive from Naming.list, but nothing works.
Any ideas? It works like a charm when I simply eliminate ":1211" everywhere in the code. I appreciate any help I can get.
Do you really get the exception on the lookup or when using the stub? Can you post the full exception text and stack trace?
Similar Messages
-
Insert SQL does not work properly when called using CALL
I have a stored procedure (TEST_SP) which is used to insert a record in this perticular case. The SQL statement is 2526 characters long. I'm using
dim Params : Params=chr(1) & "Insert query" & Chr(1) & "=300"
runsql=&"{call TEST_SP(?,?)}"&Params
dim db : db=dbSelect("",0,"","")
dbExecSQL db,runsqlto execute the stored procedure. I'm facing an issue when the 2000th character on the insert SQL (pUPDSQL) is a single quote, where the SQL is not getting executed (i.e. record is not getting created).
The same stored procedure and the same SQL when run as below
runsql=runsql&"DECLARE "
runsql=runsql&"PUPDSQL VARCHAR2(4000); "
runsql=runsql&"PRES VARCHAR2(300); "
runsql=runsql&"BEGIN "
runsql=runsql&"PUPDSQL := 'INSERT query..."
runsql=runsql&"PRES:=300; "
runsql=runsql&"MRT_LKIDFULUP(PUPDSQL => PUPDSQL,PRES => PRES); "
runsql=runsql&"END; "
dim db : db=dbSelect("",0,"","")
dbExecSQL db,runsqlis working fine. Does anyone know if there is a limitaion in ODBC Call function or any explanation to above behaviour? I'm connecting to a Oracle 11g database using Microsoft ODBC for Oracle driver on Window 7
The stored procedures:
create or replace procedure TEST_SP(pUPDSQL IN VARCHAR2,pRES OUT VARCHAR2)
AS
BEGIN
DECLARE
emsg VARCHAR2(100);
BEGIN
if pUPDSQL<>'-1' then
emsg:='Cant exec UPDATE';
EXECUTE IMMEDIATE pUPDSQL;
if SQL%RowCount=0 then
pRES:='ERR:No row updated';
return;
end if;
end if;
pRES:='OK:';
EXCEPTION
WHEN OTHERS THEN
pRES:='ERR:' || emsg;
END;
END;Edited by: BluShadow on 11-Dec-2012 15:47
added {noformat}{noformat} tags for readability. Please read {message:id=9360002} and learn to do this yourself in future.... I'm facing an issue when the 2000th character on the insert SQL (pUPDSQL) is a single quote, ...Perhaps you need two single quotes? like:
runsql=runsql&"PUPDSQL := 'INSERT query...Values(..,..,,,''This value in two single quotes'',..,...)' "
... I'm connecting to a Oracle 11g database using Microsoft ODBC ...Dump windoze ODBC and better use the Oracle client ODBC.
:p -
is there anyone who can dare to solve my problem
I had the same problem. I removed my home network from the list then deselected it from available networks. It's been great since then.
-
My Ipod touch does not work properly.When i charge it,it only works for 5 min.n gets discharge.I showed it to the apple store in banglore n the person told me its fine n It is working properly.Bt its not working properly.Can someone help
If after you charge it for about three hours and it only last about five minutes the battery is probably dead or there could be another hardware problem. I would go back to the Apple store and ask them specifically how can it be OK if the fully charged battery only lasts five minutes.
-
Clip inspector in imovie not working properly - when I select a picture (in project library) - and select clip adjustment it tells me that I need to select one or more clips to view Inspector tools and when I select a movie clip and then click on audio adjustments the audio adjustment appears as a speaker icon and I don't know how to get to the various audio options? It was working fine one minute and then I seemed to lose the functionality. Also editing a photo in a photo or getting rid of ken burns effect etc does not seem to work. help
Can anyone shed any light on this as I am having the same problem? One minute it works fine, the next you get the error message above.
Many thanks. -
Hello My ipads Power button is not working properly when I press it once it shows option to turn off instead of locking and some other display problems like it suddenly lockes down or display disappears ...Please help. Thank You
Thanks for that information!
I'm sure I will be calling AppleCare, but the problem is, they charge for the phone calls don't they? Because I don't have money to be spending to be on the phone with a support service.
In other things, it seemed like the only time my MacBook was working was when I had Snow Leopard without the 10.6.8 update download that was supposed to be done to prepare for OS X Lion.
When I look at the information of my HD it says that I have 10.6.8 but that was the install that it claimed to have failed and caused me to restart resulting in all of the repeated problems.
Also, because my computer is currently down, and I've lost all files how would that effect the use of my iPhone? Because if it doesn't get fixed by the time OS 5 is released, how would I be able to upgrade?! -
my macbook pro is not working properly , when is turned on after then show apple logo and continue show this or nothing
Gray, Blue or White screen at boot, w/spinner/progress bar
-
I've an iphone 4, its headset jack is not working properly, when i insert the earphone no sound is coming, but when i keep the earphone little out i can hear the sound but very low sound is coming out, I've never dropped my iphone please help...
bunjamin wrote:
There is now a new line in BBM that wasn't there before which covers the message that I am typing, so I can't actually see what I am typing.
Hi bunjamin,
just go to BlackBerry World, and update all your apps including BBM.
bunjamin wrote:
Every time I unlock my phone, my screen enlarges so I can't really see much on the hub/notification screen and it defaults to the hub which it didn't do before).
you can turn off the magnifying glass :
device settings >> accessibility >> magnify mode >> OFF
you can deactivate the "reset to Hub view" :
hub >> overflow (bottom right button) >> Settings >> Display and actions >> Return to Default View When Idle >> OFF
bunjamin wrote:
my ringtone is much softer than it was previously
yes, BlackBerry has acknowledged this bug in this article from the public knowledge base:
KB36755 After upgrading BlackBerry 10 OS to version 10.3.1 the volume for notifications is noticed to be significantly lower than in the previous version
The search box on top-right of this page is your true friend, and the public Knowledge Base too: -
Swf is not working properly when upload to server
I develop 1.swf which is having 3 buttons each one having
anather .swf to call 2.swf, 3.swf respectively.
This application is running perfectly on my PC, but
While uploading the swf to server the 2.swf and 3.swf is
not running. Can any one tell how to recover from this kind
of problem.justbipin wrote:
> basically my code working perfectly,
> but its not working properly when upload to server
> can anybody having any ref. or link to solve this
issues.
why is that we insist on seeing the source file ?
There is no one way of doing things in flash and no one can
help
you based on "does not work description".
This is way to broad of a subject to even try to guess.
Same as asking "my car does not work, what's up with
that"....
Please upload the problematic file and provide url for us to
check.
Otherwise you need to try to troubleshoot it yourself as we
can't
guess from here what possibly is wrong with that file.
Regards
Urami
Happy New Year guys - all the best there is in the 2006 :)
<urami>
http://www.Flashfugitive.com
</urami>
<web junk free>
http://www.firefox.com
</web junk free> -
My Iphone 4s reciever is not working properly, when i call someone from my iphone 4s. can any one help me how to solve this problem?
You might like to define "not working properly".
-
i m using apple mac pc, when we start windows 7 , apple mouse doesn't work properly it take to much time to gain signals from the pc and many times it not work but when we use mac it moves fastly and works properly. please suggest me.
thanks
ravi
<Email removed by Host>sounds more like Bluetooth rather than moue, but w/o knowing w/o posting mac model type/year we... will... not... know... what you have
All computers are personal computers, a PC though is also "non-Apple" in common usage.
Mac also is platform and OS.
Very confused reading what you are trying to tell us. -
Application does not work properly when I press a CommanButton
Hi all, I am having a problem with weblogic 10.3.5.
It turns out that an application built with JDeveloper 11.1.5, I test it, and everything goes well in the JDeveloper integrated Weblogic.
But when deploy in a standalone weblogic 10.3.5 server, the application does not work properly when I press a CommanButton to go to another page search (the property "action" is set correctly) , but nothing happens, stays in the same home page. Similarly when a commanButton link to run a task-flow, It do not work , however in the JDeveloper integrated Weblogic it runs correctly.
How I can solve these problems?
Thanks.Thanks Frank for help us, but when I writing this comment we are doing at home. So, we going to test the page in a stand alone weblogic server 10.3.5. We wrote the URL as :
" http://<our ip>:7001/myApp/faces/index.jspx "
this application contains a report desing and compiled with iReport 4.5.1 ( last version in the moment ), we can see the report when I press a commanButton without any problem.
But now, we need try your suggestions in the office, and give you more information about it . Thanks for the moment.
In the Afternoon we gonna give you more information about it . -
Flip Card Animation is not working properly when Button's PointOver State remain Activated.
I am facing problems with flip car animation which is not working properly when its mouse point over state remains activated but it works perfect when its tapped two times and instantly change pointer position. Kindly Help me out as soon as possible.
Code is here:
Xaml:
<Image Name="imgCapital" RenderTransformOrigin=".5,.5" Tag="1" Tapped="imgCapital_Tapped">
<Image.Projection>
<PlaneProjection RotationY="0"/>
</Image.Projection>
</Image>
<Image Name="imgSmall" RenderTransformOrigin=".5,.5" Tag="2" Opacity="1" Tapped="imgSmall_Tapped">
<Image.Projection>
<PlaneProjection RotationY="-90"/>
</Image.Projection>
</Image>
Storyboard:
<Storyboard x:Name="FlipOpen">
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)" Storyboard.TargetName="imgCapital">
<EasingDoubleKeyFrame KeyTime="0:0:0" Value="0"/>
<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="90"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)" Storyboard.TargetName="imgSmall">
<EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="-90"/>
<EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="0"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Name="FlipClose">
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)" Storyboard.TargetName="imgCapital">
<SplineDoubleKeyFrame KeyTime="0:0:0.4" Value="90"/>
<SplineDoubleKeyFrame KeyTime="0:0:0.8" Value="0"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationY)" Storyboard.TargetName="imgSmall">
<SplineDoubleKeyFrame KeyTime="0:0:0" Value="0"/>
<SplineDoubleKeyFrame KeyTime="0:0:0.4" Value="-90"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>Actually i simply want flip card animation which is not working here in my code. When i tapped button to invoke animation its behavior not exactly flipping. Its one side work properly but other collapsed suddenly not rotate if i keep mouse right at
the button, but if i change mouse pointer at that very time after tapping it works properly. Mouse Pointer Over mean screen points where i tapped.
Triggered Function is here:
private void btnChangCase_Tapped(object sender, TappedRoutedEventArgs e)
if(isCaseChanged==false)
isCaseChanged = true;
FlipOpen.Begin();
else if(isCaseChanged==true)
isCaseChanged = false;
FlipClose.Begin(); -
I had photoshop elements 8 installed on my previous computer and it did not work properly when it came to sizing photos for a website I was adding to. I now have a new computer which runs windows 7. Is it worth installing photoshop elements 8 again on my new computer or will it be a waste of time?
I have PSEv.8 on my computer running WINDOWS 7. It works perfectly..
Perhaps you need help with saving files for web use.. Will be pleased to assist you when you get everything set up. -
Brush and pencil tools don't work properly when using a tabley
When I use the pen or brush tools with a tablet (VisTablet Original), they just make these long diagonal lines. They work fine when I use a mouse and my tablet works in other programs. Is there any way to fix this?
The OP attached the program files here in LabVIEW board
Maybe you are looking for
-
"There was a problem downloading the software fot the iphone. The network connection timed out." there's no pblm with my connection but this error keeps on showing, what to do? please help....
-
Acrobat 9.4.4 crashes when open PDF forms
We are currently rollout out a Win7 imange and using Microsoft Configuration Manager's task sequence to install Acrobat 9.4.4. to the image. Acrobat works fine when opening regular PDF file. However, Acrobat crashes everytime when opening a PDF for
-
Exception in non-transactional EJB invoke:java.lang.NoSuchMethodError
Hello, Iam facing with the following exception while deploying EJB's in Weblogic 5.1. The TX Datasource is setup properly and the application is running fine, when I have modified an existing EJB and while re-deploying, getting the following error: F
-
USB3.0 enclosure won't spin down when ejected or when Mac sleeps
Hi, I just purchased two different USB3.0 2.5'' SATA enclosures to replace USB2.0 enclosures that I currently use. In both cases, the drive I have inserted has refused to spin down when the drive was ejected, or when the Mac it was attached to went t
-
i bought ilife 11 but cant update it. Is there any e-mail address which can i get help about ilife 11? i bought it from Turkey website. apple.com.tr and i paid the price bu i cant update it and there are nothing i can do? i called the turkey's apple