B pandoo

Ranch Hand
+ Follow
since Nov 14, 2006
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by B pandoo

Hi,
i am using Axis1.x.Is there any possibility that the property file can be read without getting the ServletContext.
14 years ago
Hi,
Initially i had a webservice interface with only one public method.
say for eg:
public int add(int x,int y)
I generated the WSDL file using the shorcuts available in IDE,I found that theres is a request and a response entry in WSDL and i am successfully able to call webservice and got the ouput.
I tried the following,
I placed 2 public methods in the webservice interface,say i added extra public method ,
public String customerStatement(String membername);
Now there are 2 public methods in webservice interface.
when i tried to create the WSDL file using the shortcuts,I found that the WSDL file had only single request and response which i got it previously when i had a single method in Web service interface.I want to know why there is no entry of request and response for the second method.
Please let me know what has to be done?
My objective is to perform 2 operation in webservice ie depending upon the input from the client,the call has to be made to corresponding methods in webservice ie if the iput parameters are int x,int y call the add method in webservice.If the input from client is string membershipno,call the customerStatement method in webservice.
Is my objective is possible by using a single WSDL file?
14 years ago
Hi,
I am using Tomcat Server.
14 years ago
Hi,
I am new to Webservice concepts.I had a client and server side application.There is a property file in Serverside.I am trying to read the data from property file using the following code
Properties props = new Properties();
try {
props.load(new FileInputStream("StatementType.properties"));
statementType = props.getProperty("statementdefintionName");
}
catch(IOException e){e.printStackTrace();}
I have placed the property file under WebContent folder.

While making a call from Client side and invoke the webservice,it is throwing a FileNotfound exception as it is unable to locate the file.Please let me know why during a webservice call,it is unable to locate a file in server side.
14 years ago
Hi ,

I need to send the InputSream as Web service response.But WSDL is not supporting the type: InputStream.I tried to convert InputStream to byte array and tried sending it through WebService.Still the WSDL does not support the byte array type.So please let me know how can i send a inputstream as response through web service.
14 years ago
Hi,

I am not able to run any .exe file in my system.Whenever i make an attempt to run any exe file , iam getting java.lang.ExceptionInIntializererror.Please Suggest me solution for this
15 years ago
Hi,
I am not able to run any .exe file in my system.Whenever i make an attemept to run any exe file , iam getting java.lang.ExceptionInIntializererror.Please Suggest me solution for this.
15 years ago
Hi ,
I am trying to connect exo portel server through eclipse. i got the java.net.SocketException.i have given the stack trace below.Please let me know the solution.

!ENTRY org.eclipse.jdt.launching 4 120 2007-02-21 16:22:35.171

!MESSAGE Cannot connect to VM

!STACK 0

java.net.SocketException: socket closed

at java.net.PlainSocketImpl.socketAccept(Native Method)

at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)

at java.net.ServerSocket.implAccept(ServerSocket.java:448)

at java.net.ServerSocket.accept(ServerSocket.java:419)

at org.eclipse.jdi.internal.connect.SocketTransportService.accept(SocketTransportService.java:93)

at org.eclipse.jdi.internal.connect.SocketTransportImpl.accept(SocketTransportImpl.java:56)

at org.eclipse.jdi.internal.connect.SocketListeningConnectorImpl.accept(SocketListeningConnectorImpl.java:128)

at org.eclipse.jdt.internal.launching.StandardVMDebugger$ConnectRunnable.run(StandardVMDebugger.java:78)

at java.lang.Thread.run(Thread.java:534)
Hi,
I am trying to connect exo-portal server through eclipse.I got the java.net.SocketException.Please anyone give me the solution.I have given the Exception with StackTrace.Please have a glance at it.


!ENTRY org.eclipse.jdt.launching 4 120 2007-02-21 16:22:35.171

!MESSAGE Cannot connect to VM

!STACK 0

java.net.SocketException: socket closed

at java.net.PlainSocketImpl.socketAccept(Native Method)

at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)

at java.net.ServerSocket.implAccept(ServerSocket.java:448)

at java.net.ServerSocket.accept(ServerSocket.java:419)

at org.eclipse.jdi.internal.connect.SocketTransportService.accept(SocketTransportService.java:93)

at org.eclipse.jdi.internal.connect.SocketTransportImpl.accept(SocketTransportImpl.java:56)

at org.eclipse.jdi.internal.connect.SocketListeningConnectorImpl.accept(SocketListeningConnectorImpl.java:128)

at org.eclipse.jdt.internal.launching.StandardVMDebugger$ConnectRunnable.run(StandardVMDebugger.java:78)

at java.lang.Thread.run(Thread.java:534)
15 years ago
class Parent7{
static void get1(){
System.out.println("Parent get1()");
}

void get2(){
System.out.println("Parent get2()");
}
public void get(){
get1();
get2();
}
}
public class Child7 extends Parent7
{

static void get1(){
System.out.println("child get1()");
}
public void get2(){
System.out.println("child get2()");
}
public static void main(String[] args)
{
(new Child7()).get();
}
}

The answer is Parent get1() and Child get2().
Can anyone please explain the answer.
one more doubt ,inside the get()(nonstatic) of parent class,it is calling a static get1().How is it possible.?static methods can only call static methods(without creating any reference)-->right??correct me if i am wrong.please explain the output.
1)The finalize method is invoked by JVM atmost once in its life cycle.
2)if finalize method is overridden,JVM will definitely invoke it.
3)Exceptions thrown by finalize() is ignored by JVM.
4)Calling System.gc will definitely call finalize().
5)the finalize method may throw checked exceptions
Which is true? -- is the Question

I know that option 1 and 3 are correct.
i want to clarify one thing.
1)i know that finalize() can be overriden,but not sure that JVM will definitely invoke it.please confirm it.
2)the finalize method throws exception of type Throwable.any checked exception is a subclass of Exception, and Exception itself is a subclass of Throwable.i believe option 5 is also correct.tell me if i am wrong.
public class GCDemo line1
{ 2
public static void main(String[] args) 3
{ 4
Object a,b,c; 5
Integer one =new Integer(1); 6
Float titanic =new Float(1.23); 7
StringBuffer str =new StringBuffer("sailing.."); 8
a=one; 9
b= titanic; 10
c=str; 11
a=b=c; 12
a=null; 13
titanic =null; 14
str=null; 15
System.gc(); 16


}
}

Identify the object that will be eligible for garbage collection after execution of line15

select any 1 option

1)object created at line 6
2)object created at line 7
3)object created at line 8
4)All of them
5)any of them.

I believe both objects at line 7 and line 8 is garbage collected.but the Question is to choose only one option.please let me know the closest one to choose.
Thanks group.now i am clear
i have a doubt.i coplied the program i got the ouput as

(space)Java
(space)java
$
usually queue will sort it,so i am getting the above 3 output.but
i want to know what happenened to the other two entries
(without space)java and (without space)Java.
please let me know.
public class Sting
{
public static void main(String[] args){
String str = "aaaaaaaaabb";
String[] s = str.split("a{3}");
System.out.println(s.length);
}
}

Answer is 4.
pleas explain the output..
what does a{3} represents?