feroz pasha

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

Recent posts by feroz pasha

hi all

can any body tell me how to track the vehicle using j2me in GPS enabled mobile i know we require GPS to get the Longitute and latitude of any object which are the APIs are the to track the vehicle
pl pl pl pl tell me
15 years ago
STACK TRACE EXCEPTION I AM GETTING PL GIVE SOLUTION

java.lang.IllegalArgumentException:
at javax.microedition.lcdui.ImmutableImage.<init>(+11)
at javax.microedition.lcdui.Image.createImage(+40)
at GoogleMaps.retrieveStaticImage(+28)
at SimpleSlidingCanvas.<init>(+63)
at Example.startApp(+8)
at javax.microedition.midlet.MIDletProxy.startApp(+7)
at com.sun.midp.midlet.Scheduler.schedule(+270)
at com.sun.midp.main.Main.runLocalClass(+28)
at com.sun.midp.main.Main.main(+80)
15 years ago
i am trying to display the google map in mobile using google API as user enter the location it will display the image for that code is

retriveStaticMap(width, height,longitude, latitude,zoom, format);


this.image = Image.createImage(gMap.retrieveStaticImage(35, 35, lanLng[0], lanLng[1], 10, "png32"));

for 35*35 image get displayed
but if i increase size from 35 to 35 it showing illegalArgumentException

as i am using sun java wireless toolkit 2.5.2
emulator as screen size of 240*291

if i resize the image to 240*291 it get blur

so pleeeeeeeeeeeeeeee give me solution
15 years ago
hi friends

I am not getting how to send the sms from servlet to mobile which technology should i use wheather javamail, j2me .......


i am new to this field i am not getting how to do it pl pl pl pl pl help me its urgent

thanks in advance
15 years ago
hi friends

I am not getting how to send the sms from servlet to mobile which technology should i use wheather javamail, j2me .......


i am new to this field i am not getting how to do it pl pl pl pl pl help me its urgent

thanks in advance
15 years ago
ya i got your code and woked it
now my code is working through web logic server

thank you very much

weblogic is a server that is aplication server(that handle servlet jsp, ejb)


---------------------------------

i have another doubt

now my applet code is embedded in servlet code
if i write System.out.println("any msg"); in servlet it will be showing server console

but if i write System.out.println("any msg"); in applet and try to run in server it will not be showing in server console
tell me the reason

pl pl pl
15 years ago
sir
in my web based project i need to read file from directory and display it in applet which in turn displayed in html means applet code is embedded in html .

and this is running through web server tomcat tell now applet is displaying all components in html next step is to read the file and display it

when i directly display without server by double clicking html it will show file read in applet and displayed in html

then how shell i do it through server can any body guide me its urgent i am not getting

when i try to do this it is showing exception
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------

The Direcory location=null
Full directory path=/localhost:7001/appletcodenull
java.security.AccessControlException: access denied (java.io.FilePermission \localhost:7001\appletcodenull read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkRead(Unknown Source)
at java.io.File.isDirectory(Unknown Source)
at Backup.init(Backup.java:131)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

and my code to read file in applet is this
///============Reading from file==========

questionDir=getParameter("questionDir");
dirName=getCodeBase()+"";
System.out.println(dirName);
dirName=(dirName.substring(0,dirName.length()));
System.out.println(dirName);
dirName=dirName.substring(6,dirName.lastIndexOf('/'));
System.out.println(dirName);
dirName=dirName+questionDir;
System.out.println(dirName);
File f=new File(dirName);
if(f.isDirectory())
{
noOfFiles=f.list();
}

readFile();// it is method calling from init()method
==============================================
public void readFile()
{

String line;
InputStream in;

try
{
fileToRead=dirName+File.separator+"Question"+(countFile+1)+".java";
in = new FileInputStream(fileToRead);
BufferedReader bf = new BufferedReader(new InputStreamReader(in));
strBuff = new StringBuffer();
while((line = bf.readLine()) != null)
{
strBuff.append(line + "\n");
}
questionArea.append(strBuff.toString());
}
catch(IOException e)
{
e.printStackTrace();
}
countFile++;
}
-------------------------------------------------------------------

if any changes are there correct it pl
its urgent
thanks
15 years ago
i am using applet code in jsp page in weblogic server so pl help me in my jsp page it is showing all components

now i want to read file and display in appplet without server it is working but with server how to work i am not getting any permission should be kept
15 years ago
i have set the access permission buy
keytool -genkey -keyalg rsa -alias feroz
after i made the certificate:

keytool -export -alias feroz -file yourcert.crt

after that i have created a bat file which contains

javac Backup.java
jar cvf Backup.jar Backup.class
jarsigner Backup.jar feroz


The batch-file compiles the applet, makes a jar-archive and signs the jar-file.

but when i am running my html file iam getting this exception.

Java Plug-in 1.5.0_12
Using JRE version 1.5.0_12 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\emminent


----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------

file:/C:/AppletCode/AllQuestions/Question1.java
java.lang.SecurityException: class "Backup$1"'s signer information does not match signer information of other classes in the same package
at java.lang.ClassLoader.checkCerts(Unknown Source)
at java.lang.ClassLoader.preDefineClass(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at Backup.init(Backup.java:154)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
what should i do
15 years ago
Java Plug-in 1.5.0_12
Using JRE version 1.5.0_12 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Emminent


----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------

The Direcory location=null
Full directory path=/localhost:7001/appletcodenull
java.security.AccessControlException: access denied (java.io.FilePermission \localhost:7001\appletcodenull read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkRead(Unknown Source)
at java.io.File.isDirectory(Unknown Source)
at Backup.init(Backup.java:131)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


this is the exception i am getting sir
help me what is the next step shall i take to over come the exception
15 years ago
i did in that way also but it was showing the java.io.filepermission and AccessControlException


wat sall i do for this can you help me pl pl
15 years ago
hi

i am able to run the simple rmi program in standalone system
but i am not able to execute in LAN it is showing the unmarshalled exception etc

guide me

wat should be the code for client and server to run in lan
pl pl

thanks in advance
15 years ago
this is the exception i amgetting sir pl help me


Java Plug-in 1.5.0_12
Using JRE version 1.5.0_12 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Emminent


----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------

load: class java.Backup not found.
java.lang.ClassNotFoundException: java.Backup
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more

i am getting this one

and my applet tag in html is in this way

<Applet code="java.Backup" Width=920 height=580 >
<PARAM NAME="questionDir" VALUE="/AllQuestions">
</Applet>

and my directory structure is

appletcode ( App.html)/WEB-INF/classes/java(applet class file ,AllQuestion folder)

this online exam project where i am reading the questions from folder AllQuestions and display it in applet when i click the button this folder is in java as shown in above directory structure

pl pl
pl
help me

thanks in advance
15 years ago