Saurabh Agrahari

Greenhorn
+ Follow
since Aug 22, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Saurabh Agrahari

Hi Ron,

Thanks for the reply !!

I already tried this but with non X509 format certificates it doesn't work.In my case certificate sent by the FTPS server is p7b format.

So my question is can we write a custom TrustManager to accept non X509 certificate sent by the FTPS server?

Thanks
Saurabh
8 years ago
Hi All,

I am trying to connect to FTPS server as follows:



The below is the message I received when I ran the code:

220 Service ready for new user.
AUTH TLS
234 Command AUTH okay; starting TLS connection.
Connection closed without indication.

I think I am not able to connect to the FTPS server because I am not able to accept the server certificate sent by the server during the handshake.
Is it possible to develop a client for a FTPS server that accepts all the certificates ?

Thanks in advance.

8 years ago
Hello,

I am getting a following error "RmiModeler error: java.lang.ClassNotFoundException" when I try to run the command:

b]wscompile -gen:both -d build\client -classpath " build\shared config.xml[/b]

The config.xml is as follows.

config.xml
<?xml version="1.0" encoding="UTF-8" ?>
<configuration
xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
<service name="BookService"
targetNamespace="http://hello.org/BookService.wsdl"
typeNamespace="http://hello.org/hello/type"
packageName="webservice.bookservice">

<interface name="=webservices.bookservice.BookQuery"
servantName="webservices.bookservice.BookServiceServant"/>
</service>
</configuration>



Can you please suggest?

Thanks
Saurabh
10 years ago
Awesome !! Thanks Matthew for the precise explanation .. From your suggestion its clear, that to have a crystal clear understanding of methods in collections framework one must have clear understanding of Java types and Generics .I hope i will be able to crack the hard nut of Generics soon.Thanks once again..

11 years ago
Thanks everyone for your suggestions.Actually what i was trying to do is as follows:



The code works fine and prints the output as :1

But when i changed the code to :


I get a hexadecimal number like :[I@3e25a5

I dont understand why (although i understand that int[] is not compatable with Oject[])
11 years ago
Hi All

Object[] ob ;
int[] arr1 = {1,2,3,4};
ob=arr1;

I get the following exception :

incompatible types
found : int[]
required: java.lang.Object[]
ob = arr1;
^
1 error

I understand that ob is the array of Object refrences and arr1 is the array of primitives so they are incompatible .Is this the only reason ?.Is there a way to check the types for compatibility ?.Please advice.

11 years ago