Operating System - HP-UX
1834150 Members
2305 Online
110064 Solutions
New Discussion

error:cannot resolve symbol : method getLocalPort ()

 
shashikala K.H
Occasional Advisor

error:cannot resolve symbol : method getLocalPort ()

Hi all,
This is shashikala, while building sourceIDSAML
I am getting the above error.it is searching for the getLocalPort() method in HttpServletRequest class file. I used the Javadecompiler but that method is not present in the class file. i have installed all the depended libraries ,and iam getting above error in 11.11, 11.23IA and as well in 11.23PA.Please help me in resolving the above error.

Regards and Thanks,
shashikala
3 REPLIES 3
Arunvijai_4
Honored Contributor

Re: error:cannot resolve symbol : method getLocalPort ()

Hi Shashikala,

It is most likely problem with "tar" command as it truncates file name if it exceeds certain limit. You try to download and install GNU's tar and untar using that.. Error should go now.

I have seen this problem in the past.

[javac] Compiling 34 source files to /shashi/SAML_1.1_Java_Toolkit.2.0/SAML_1.1_Java_Toolkit_2.0/build/classes
[javac] /shashi/SAML_1.1_Java_Toolkit.2.0/SAML_1.1_Java_Toolkit_2.0/src/java/org/sourceid/saml11/servlet/rp/AssertionConsumerServlet.java:

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
shashikala K.H
Occasional Advisor

Re: error:cannot resolve symbol : method getLocalPort ()

Hi Arun,
thanks for your reply, but I think its not useful in my case because the source code is in zip format and I cant use tar here.In README.hp they have specified like the source code should be extracted using
jar -xvf SAML_1.1_Java_Toolkit_2.0.zip.
I am attaching the README.hp for your reference.

Thanks and Regards,
Shashikala
Arunvijai_4
Honored Contributor

Re: error:cannot resolve symbol : method getLocalPort ()

Hi Shashikala,

Which version of java you are using to compile ? You can find out by, # java -version ? Try to use the latest version available from HP.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"