Hardik Raja

Ranch Hand
+ Follow
since Feb 07, 2006
Merit badge: grant badges
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 Hardik Raja

Dear All,

Note: I am using NetBeans IDE 6.8, GWT 2.0.3 and SmartGWT 2.1 the latest versions as of today 16/03/2010

I am trying to use on one of the Smart GWT showcase example by following the instructions at http://www.plantstar.org/tutorials/Netbeans_Smartgwt.htm

P.S - I guess not all steps in that are required, Refer Thread, http://forums.smartclient.com/showthread.php?t=3168

The problem is that, the the functionality in application works properly, but its not displayed properly, so I guess there is some problem with CSS.

I tried to search, and all I could find is that such problems could occur if multiple stylesheets are applied to a single page.

As in when we include <inherits name="com.smartgwt.SmartGwt"/> in Main.gwt.xml it inherits the SmartGWT CSS. But there would be the default CSS of GWT in the application.

So I think that might be the reason for the problem.

Could anyone please provide thier inputs to resolve the above problem?

Kind regards,
Hardik
12 years ago
GWT
@ arulk: Thanks for that introduction to SOA technologies, It would be nice for me to know more about them.

@Ulf: That was a good question, and I should rather focus on how this project would help me in increasing my expertise in java technologies.
12 years ago
@Jothi:

I guess you should go for it. 18 months is just ample time to prove to your current employer that you are worth to be considered for a permanent position with them.



Well its a european government funded research project, and positions in such sort of projects are always on contract basis...

But I would appreciate, if you or someone else could please provide thier opinion on my main question,

By this I meant, the technologies that I would learn through the 18 months, what prospects would that bring for me later on in India, as I am quite new to Service Oriented Architecture (SOA) domain and its technologies.



12 years ago
@Jothi: Thanks for your response.

Well, my current position in UK is also on a contract basis, which is due in a month
So I am wondering, whether to go for this european project option or look for options in India, as the market seems to be going great, these days in India.

As its a contract project for 18 months, I am not sure what propects I might have in the future.



By this I meant, the technologies that I would learn through the 18 months, what prospects would that bring for me later on in India, as I am quite new to Service Oriented Architecture (SOA) domain and its technologies.
12 years ago
Dear All,

I have 2.5 years Exp in Java technologies; Mainly Core Java, JSP, Servlets working in UK on a european research project (collabaration of universities and research companies).

Having some knowledge of Java Web services; I have now managed to get a Software Engineer job on another european research project, that involves Development of an new SOA based architecture for handling biological data. I do not have indepth understanding of SOA based architecture, and technolgies used in it. My role being a Software Engineer would involves coding, testing, deployment of it.

Briefly the work would involve development of Web services, front-end for accesing those services.

As its a contract project for 18 months, I am not sure what propects I might have in the future.

As I am a naive to the SOA domain and its related technologies, Could anyone please give some suggestions on whether I should go for it ?

Should you have any queries, then please do let me know.

Kind regards,
Hardik
SCJP 1.5
12 years ago
Dear Javaranchers,

I have the following understanding of what is meant by a product company and a service company

** Product Company
An company that develops products focussing a particular industry, say for Eg. One of the areas, AutoDesk develops products are in the construction/civil work. Eg. Autocad, 3dsMax.

** Service Company
An IT company that develops products for a client, say for Eg. Infosys developing product for a pharmaceutical company.

Could anyone please comment if my understanding is correct? Please correct me, If I am wrong.

Kind regards,
Hardik Raja
SCJP 1.5
12 years ago
Dear Paul,

Many Thanks for your reply.

You can't send a message from Machine A to Machine B unless Machine B is prepared to receive the message. This would require doing something to Machine B (such as starting a server to receive your messages). If you aren't allowed to change Machine B then you are forced to rely on existing services which are already present there. So have a look and see what you've got available.



Yeah exactly, I totally agree with you on this.
Eg. Imagine using the net send command in windows, where you send a message and that message is displayed at the destination machine, it works because there is a service running at the destination machine waiting for requests.

In such a case, are you aware of any underlying service running at the destination machine?
In my case the start machine platform is Ubuntu(on which running JAVA desktop application will invoke the message to be sent) and the destination machine platform is Windows

Kind regards,
Hardik
13 years ago
Dear Vijitha Kumara,

Many thanks for your reply.

Then to whom you are sending the message ?



The message is to sent to another machine in the network, The start machine has the IP address of the destination machine.


BTW, what does the "sending a message" mean in your context ?



Sending message means a text string(message) is sent from start machine which would be displayed in a window at the destination machine.
Eg. Imagine using the net send command in windows, where you send a message and that message is displayed at the destination machine.

Kind regards,
Hardik
13 years ago
Dear JavaRanchers,

I have a requirement for my application, but I am not aware of any technology/technique to implement it


**REQUIREMENT**

There are two machines on an intranet, and I would like to send message from one machine to the other. Although I am aware of RMI and Socket programming, I dont wanna use them as they both require to start some program at the destination machine as well. In this case is there any other technique in which the message can be sent without having any program running at the destination machine



Sorry if my requirement creates some confusion, feel free to ask questions.

Could anyone please provide some input on it?

Kind regards,
Hardik Raja
13 years ago
Dear JavaRanchers,

In my first post, I had presented one idea for my requirement as below, but after trying I strongly doubt whether it is practically possible

**MY IDEA**

To use the RMI technology. When the user logins in the web application a server socket would be opened listnening for requests. The desktop application would then act as a client and invoke operations(which would display a window with a simple message) through RMI.



Reason: How can the web browser start an rmiregistry on the machine and bind the implementation object, When the user logins in the web application?

Could anyone please provide some input on this?

Kind regards,
Hardik
13 years ago
Dear James,

James Ward wrote:How about using a HTTP Call as against a RMI Invocation.
You can send a request to a Servlet/JSP etc.. on your web-application too from your java desktop app, and then your servlet/jsp can do whatever it needs to do.



I was thinking about your suggestion, but I have one doubt in my mind,

The HTTP call can be generated from the desktop application to the web server(web application), but how will the web server redirect the result(notification message) to the client browser and also which client in the network
Sorry if there any confusion. See if you can elaborate on this?

Should you have any queries then please do let me know.

Kind regards,
Hardik


13 years ago
Dear JavaRanchers,

I am developing a JAVA web application (JSP/Servlets), and this application would be accesible via a pc and a pda on the network. As the PC and PDA have different sizes, would have different browser versions(although of the same brand. Eg. Opera) and have different capabilities.

I am not sure if I need to create two different web pages(one for PDA browser and one for PC browser) or is there some technique to design a single web page and have it rendered properly in both of them?

Could anyone please comment(some suggestions and direction) on the above requirement?

Should anyone have some more queries please do let me know.

Kind regards,
Hardik
Dear JavaRanchers,

I am trying to implement a simple RMI application; It compiles successfully but I get an exception during execution. From the exception excerpt (see highlighted part in COMPLETE EXCEPTION below) it seems that the stub class(Iward.Hri.Remote.RemoteNotifyImplementation_Stub) is not found, but I did include its path in the classpath (so I guess the JVM should be able to find it).

I am not able to figure out the cause of this exception.

Could anyone please provide some input on this?

***IMPORTANT NOTE***
Please find below the exception during runtime as well as the actual code for your reference.

Also I have created the stub/skeleton as follows,
C:\>rmic -vcompat Iward.Hri.Remote.RemoteNotifyImplementation

and Stubs and skeletons are generated properly and included in the classpath

Kind regards,
Hardik Raja




  • COMPLETE EXCEPTION

  • java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: Iward.Hri.Remote.RemoteNotifyImplementation_Stub

    at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
    at sun.rmi.transport.Transport$1.run(Transport.java:159)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
    at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
    at java.rmi.Naming.rebind(Naming.java:160)
    at Iward.Hri.Remote.RemoteNotifyImplementation.main(RemoteNotifyImplementation.java:36)
    Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: Iward.Hri.Remote.RemoteNotifyImplementation_Stub
    at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
    at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
    at sun.rmi.transport.Transport$1.run(Transport.java:159)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.ClassNotFoundException: Iward.Hri.Remote.RemoteNotifyImplementation_Stub
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:434)
    at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
    at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
    at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
    at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
    ... 12 more
    BUILD STOPPED (total time: 9 seconds)




  • INTERFACE : RemoteNotifyInterface.java




  • INTERFACE IMPLEMENTATION : RemoteNotifyImplementation.java

  • 13 years ago
    Dear JavaRanchers,

    I am planning to use RMI for my distributed application.

    I just wondered if there is/are some API'S that extends the JAVA RMI mechanism and make it more efficient /simpler ?

    Could anyone please comment on the above question?

    Kind regards,
    Hardik Raja.
    13 years ago
    Dear Ernest Friedman-Hill,

    Many thanks for your inputs.

    Here's some more information and answers to your questions,

    how does the desktop app identify the one particular web client to notify, since potentially there could be many visitors to the web site.



    The desktop application has the static IP address of the machine (web client) on which the web application and the RMI Server would be running. Your question also highlighted the point that it wouldn't be possible to achieve the requirement via an HTTP call but would work by using RMI(I guess, but I will create a prototype to test it soon).

    Is this supposed to run on the Internet, or on an intranet?



    It would be running on an intranet.

    What should happen if the desktop client is running, but the web client is not?



    The desktop application will receive a failure message, but as the concept is at a very basic stage, we assume that the web client would be working
    (all time) when the desktop application sends a notification request.

    Kind regards,
    Hardik Raja
    13 years ago