alex antony

Greenhorn
+ Follow
since Jan 26, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by alex antony

Sounds Great !.I Will try that and get to you back in case i hang still
13 years ago
Thanks for the reply.

The Thing is The Tick Values for Y Axis will remain Constant but for the X-Axis it will change as the thread runs.

Thats why i dint override the formatticklabel method in the normal way that i did for y axis.

The Function addvalue is called by the thread each second and the actual value of the graph is updated through this function data.xVValue=data.XValue-1 ;So I would need a method that i call which can update the xAxis tick label value

I Tried this inside the for loop xAxis.formatTickLabel function (value) {} but doesnt seem to work

Any Suggestions !
13 years ago
Hi all,

I have tried out some samples with Java FX and it is exciting.I have been trying to generate a dynamic Graph using JavaFX .It Worked out Well and i was able to see the Graph Moving .But as the Graph Moves i Would also like to see my x-axis labels moving.But i dont know how to do it .

I am posting my code here.






These are the two classes that i am using main.fx and AnimatedLineChart.fx In the Main .fx i have created a timer thread for one second and it calls the AnimatedLineChart.fx and deletes the rightmost value and adds the new Value to the left hand side which creates a moving impression.But the concern is the X-Axis Labels dont change.How to do that


Any Help is highly Appreciated
13 years ago
that error is resolved....i modified the web.xml file like this



Now the applet is launching fine but only the frame...The applet is still not communicating with the servlet .

if i give hard coded values it is running fine ..but i am not able to fetch values from the database.

13 years ago
Yes i am downloading the jar file from a web server.My server is configured to run servlets.


as far as i read from the articles the applet seeks the help of servlet to communicate with the database.i tried directly connecting to the database but it dint work.But i was able to get the database values if i put a servlet in between..

The reason i am confused is why this doesnt work if i use jnlp to launch it ...I suppose there might be something to do with the jar files but i am not sure .....

I have some jnlp development guides but there are no prior information on how to use servlets within JNLP.

What else approach i can do to make my client JNLP communicate with my server and fetch the db values.

13 years ago
Thanks for the reply.

I have tested launching the applet through jnlp and it works fine.

I have also tested the applet-servlet communication through http which works fine but in that case i have embedded that applet s class file in the html page .

Now where i am lacking is how to include the servlet in the jar file so that the applet that is launched through JNLP communicates with the servlet.

i read some articles and came to know about the jnlp-servlet.jar file and i have included that in the lib of my WEB-INF.

I have tried things but now i am struck up at this point

I have compiled all the classes and jar file looks like this


META-INF/MANIFEST.MF
META-INF/MYSELF7.SF
META-INF/MYSELF7.DSA
META-INF/
com/
com/alex/
com/alex/MenuDemo$MyTableCellRender.class
com/alex/PopupManager$1.class
com/alex/MenuDemo.class
com/alex/MenuDemo$HttpMessage.class
com/alex/MenuDemo$1.class
com/alex/PopupManager.class
com/alex/MenuDemo$2.class
WEB-INF/
WEB-INF/web.xml
WEB-INF/lib/
WEB-INF/lib/jnlp-servlet.jar
WEB-INF/classes/
WEB-INF/classes/DaytimeServlet.java~
WEB-INF/classes/DaytimeServlet.java
WEB-INF/classes/DaytimeServlet.class


my jnlp file is this


<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://150.236.9.70:8080/june/" href="alertsys.jnlp">
<information>
<title>Smart Alert Management System</title>
<vendor>ericsson india global Services</vendor>
<homepage href="http://150.236.9.70:8080/june/"/>
<description>Smart Alert Management System</description>
<description kind="short">IN Service Level Monitoring</description>
<offline-allowed />
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.6+"/>
<![CDATA[
<jar href="alert.jar" />
]]>
</resources>
<application-desc main-class="com.alex.MenuDemo"/>
</jnlp>


But i am getting this error

JNLParseException[ Could not parse launch file. Error at line 0.]
at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Failed to find the '<' charater that marks the end of a CDATA element. Exception parsing xml at line 0
at com.sun.deploy.xml.XMLParser.skipPCData(Unknown Source)
at com.sun.deploy.xml.XMLParser.nextToken(Unknown Source)
at com.sun.deploy.xml.XMLParser.parse(Unknown Source)
at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


Any ideas why this error occurs !

WOuld be really greatful for your help or ideas regards this
13 years ago
Hi all

While i am running the JNLP application i am getting this error.I am getting the following in the exception and in the wrapped exception.







here is my jnlp file

Please help me

13 years ago
Hi all,

I am seeking your help in my assignment.

I am launching an applet through JNLP.

The directory Structure i am following is like this

src/com/alex/MenuDemo.java
bin/com/alex/MenuDemo.class

The main code is here



This applet communicates with the servlet DaytimeServlet using the function httptext().The servlet connects to the database and returns back the values for filling the table.

When i am launching the applet via jnlp without the servlet it is launching fine.i.e i have hardcoded the values in the applet code only.But when i am trying to launch the applet with the servlet communication for getting the values from the database i am not able to launch it ..

i am not getting any errors ..i dont see anything

here is my jar file



here is my jnlp file



Anyone please suggest me where i am going wrong.Or please suggest me some atricles or link where i can get the communication going fine ..How to make this JNLP applet-Servlet Communication possible?
13 years ago
Hi everyone,

I have a very basic question regarding the directory structure for deploying an applet through JNLP.Let me explain my requirement.

I have an applet inside src/com/alex and the class files are in bin/com/alex directory.I have jar ed the class files in the bin directory and the applet is successfully launched.It works fine.

Now i have to make the applet-servlet communication working where the servlet will communicate with the database and give values to the applet.

I have a function httptext() in the applet class that will communicate with servlet in the WEB-INF/classes directory.the httptext() needs to import another function that would be sonwhere com/alex.httpmessage.

Now how should i place all my class files and how should i jar it to make it complete .

MenuDemo.java (main applet) is in src/com/alex/
MenuDemo.class(main applet class) is in bin/com/alex

The Function HttpMessage () is used by httptext() in the applet class to communicate with the servlet and in the applet class i have import com.alex.HttpMessage

Where should i place this HttpMessage()?

Any Help is highly appreciated !
13 years ago
Thanks Paul for your kind reply.

I tried yesterday and got it to work smoothly. I Cleared the cache such that the "no enough space on disk" got cleared.

I was successfully able to launch the applet.

Thank you for your response .

But i want to get cleared off something from you.The Applet gets stored on the local cache when loaded through JNLP and because of that we need to clear the cache to get proper outputs.

When getting this into live production,it is a bit difficult to prompt the users to clear the cache memory.

Is there any better solution for this?

I am newly using this protocol (JNLP) and i wish to get something clarified.

I am desiging an alarm management system for a network .The Server in which i have the application has connectivity to all the nodes that i want to make notification of the alarms when something goes wrong in that node.The Applet that is launced through JNLP will initially contain the alarms fetched from the database.Suppose that i have a new entry in my database(when anything goes wrong in any node it will automatically fill my database) ,is it possible to update the Applet that the client is looking at without actually refreshing the application again.Is this possible through JNLP.

Your suggestions Please !

thanks in advance
13 years ago


Hi all,

I am trying to launch an applet from my linux web server through JNLP.I have did a reading on the JNLP Developers Guide from Oracle and started working on this.

I have packaged my class files into a jar file and have specifically signed the jar file.On opening the applet through JNLP it is giving an exception "There is no enough space on the disk".

I have spent several hours in making this done , but i am unable to do so .

Anybody could help me out in solving this and put me in the right direction.

Any Guidance is highly appreciated.

Thanks in advance

I have posted the error message in the code tags
13 years ago