naveen chinthakunta

Greenhorn
+ Follow
since Sep 26, 2005
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 naveen chinthakunta

Hi all,

I am trying to use JavaScript to pop up error/warning messages on my JSP page. Is there any way to change the title of the alert box in java script? On IE, the title appears as "Microsoft Internet Explorer" and for Mozilla the title appears as the URL of the page. I want to standardise this. Any suggestions on this would be great.

Thanks n Regards,
Naveen
Thanks Paul!

I am still a bit unclear about my first question. Is Date Time-Zone dependent? I am not quite able to understand the behaviour of this piece of code.



OUTPUT :
Calendar stamp -> 2006-07-14 16:12:06.916 GMT
Date stamp -> Fri Jul 14 21:42:06 IST 2006

How is my Date object auto-converted to the default TimeZone?

Thanks n Regards,
Naveen
15 years ago
Hi all,

I have been working on timezones and timezone conversions for the past two days and havent been able to understand some of the fundamentals. Some of these may be a bit trivial!

1. I have read that Calendar object is Time zone dependent and Date object isnt? I am not really convinced with it. What is the reality?

2. Is time in millis since epoch, Time zone dependent? (Both calendar's getTimeInMillis() and date's getTime()).

3. In whatever Time zone I have my Calendar object in, when I use the getTime() method to get a Date object, the Date object displays time in the system default time zone.

4. I need to have a method which can take time in millis in GMT and return me a GMT Calendar/Date, irrespective of what timezone the program is running in and vice versa. How do I go about it? My tries have led to a lot of Time Zone conversions to my local TimeZone.

Any suggestions on this would be great.

Thanks n Regards,
Naveen
15 years ago
Hi all,

I have a requirement of designing a screen similar to outlook which allows user to set dates and recurring patterns. This is to be done in swings. I have no idea where to start from. Are there any available classes in swings which i could reuse and customise? Are there any code samples available online?

Any suggestions on this would be very useful.

Thanks n Regards,
Naveen Chinthakunta
15 years ago
Hi all,

I am trying to pass a string to a remote method and return an object of a user defined class. In the process i am getting the following error.

==========================================================================
Exception in thread "main" java.rmi.RemoteException: call return failed: ; nested exception is:
java.io.WriteAbortedException: Exception thrown during writing of stream; java.io.NotSerializableException: drac.TNAClass

==========================================================================

could u tell me where i am going wrong? also is this allowed in RMI? If not, whats the work around?

Thanks in advance.

navEEn
15 years ago
Hi all,

I am getting the following error when i run WSDL2Java on Linux. any pointers to the solution would be great.

[root@aselect classes]# java org.apache.axis.wsdl.WSDL2Java -o . -d Session -s -p fibonacci.ws fib.wsdl
java.lang.NullPointerException
at gnu.xml.dom.ls.ReaderInputStream.close() (/usr/lib/libgcj.so.6.0.0)
at gnu.xml.aelfred2.XmlParser.doParse(java.lang.String, java.lang.String, java.io.Reader, java.io.InputStream, java.lang.String) (/usr/lib/libgcj.so.6.0.0)
at gnu.xml.aelfred2.SAXDriver.parse(org.xml.sax.InputSource) (/usr/lib/libgcj.so.6.0.0)
at gnu.xml.aelfred2.XmlReader.parse(org.xml.sax.InputSource) (/usr/lib/libgcj.so.6.0.0)
at gnu.xml.dom.ls.DomLSParser.doParse(org.w3c.dom.ls.LSInput) (/usr/lib/libgcj.so.6.0.0)
at gnu.xml.dom.ls.DomLSParser.parse(org.w3c.dom.ls.LSInput) (/usr/lib/libgcj.so.6.0.0)
at gnu.xml.dom.DomDocumentBuilder.parse(org.xml.sax.InputSource) (/usr/lib/libgcj.so.6.0.0)
at org.apache.axis.utils.XMLUtils.newDocument(org.xml.sax.InputSource) (Unknown Source)
at org.apache.axis.utils.XMLUtils.newDocument(java.lang.String, java.lang.String, java.lang.String) (Unknown Source)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(java.lang.String, java.lang.String, java.lang.String) (Unknown Source)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run() (Unknown Source)
at java.lang.Thread.run() (/usr/lib/libgcj.so.6.0.0)
===========================================================================

Thanks in advance,
navEEn
15 years ago
Hi all,

I have a couple of doubts regarding Java concepts.

1. In Java methods, primitive types are passed by value and objects are passed by reference. So if I dont want my object value to change in the function, how do I achieve that. Basically how do I pass objects by value?

2. Java completely does away with multiple inheritance. If my requirement demands me to inherit from two classes how do I achieve this? Whats the work around?

Plz help me getting these concepts clear. Thanks in advance.

navEEn
15 years ago
Hi,

Thank you for the clarification. Now I get "service" and "objects" straight. But my doubt regarding Naming.lookup() persists. I was going through the Java 2 documentation, the lookup() method takes only the URL as the argument. Still not clear how the various services provided by the same server are distinguished.

Thanks in advance.
navEEn
15 years ago
Hi all,

I am new to RMI and was going through some sample code. I have a doubt here. The Naming.rebind() method makes the server object available to the registry. From client I can access using Naming.lookup(), am I accessing the object or the methods only? What is the service in this context - object or a method?

Also the Naming.lookup() takes only the registry hostname. How does it differentiate between various services offered by the server and also various objects created by the server?

The actual network connection is through TCP/IP. Is the connection on a per call basis or some session is maintained?

Would be grateful to get responses.

Thanks n Regards,
navEEn
15 years ago
Hi all,

I am pretty new to RMI and I have a trivial question. Is it necessary that all the server code has to be implemented from an interface? I went through some sample code and all seem to be doing the same. Is it just a standard or it has to be done like that. Plz help clearing the doubt.

navEEn
15 years ago
Hi all,

I am very much new to Apache/Tomcat. Plz excuse me if the question is too trivial.

I am confused whether I need Apache web server or not. My requirement is something like this.

I need to deploy a SOAP/WSDL service on a service. Will be using Apache Axis. I will be installing a third party authentication software. Its installation says configure SSL on Tomcat. I will also be requiring a globus toolkit for grid applications.

Now my question is will I require a Apache Web server or not. Will only Tomcat5 be enuf for me? In case I further need to install a Web server I can install Apache and a connector right?

Plz suggest the optimum solution. Thank you so much in advance.

Regards,
Naveen
16 years ago
Hi all,

I want to enable SSL on Tomcat5. I have the jsse jar files required and the tomcat startup script is able to locate it. I have uncommented the appropriate lines in the Tomcat server.xml file. https is enabled on port 8443 in the xml. Still when i point the browser to https//localhost:8443 I get a page not found error.

Any idea where I could be going wrong? Thanks in advance.

Regards,
Naveen
16 years ago
Hi Tom,

Thank u so much for the timely help. The missing jars did not make any impact on the application. The axis error I was getting was due to a missing class file. For a .jws file in /axis dir, it expects a .class file in /axis/WEB-INF/jwsClasses. Putting the class file in that directory, solves that problem.

naveen
16 years ago
Hi all,

I am running a sample webservice over apache axis on a linux platform. I am getting the following error. Can somebody plz tell me where I am going wrong? Are there some environment setup issues? Thanking you in advance.

===========================================================================
- Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
Exception in thread "main" AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.io.FileNotFoundException: /var/lib/tomcat5/webapps/axis/WEB-INF/jwsClasses/HelloWorldService.java (No such file or directory)
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:localhost.localdomain
==========================================================================

Regards,
Naveen
16 years ago
Hi,

I am also a fresher to Web services. I need to work on SOAP over Apache Tomcat. Does the SOAP engine come with Tomcat? If so which version of Tomcat? Or do I have to install the apache axis package?

Please guide me in this regard.

Warm Regards,
Naveen
16 years ago