Win a copy of Securing DevOps this week in the Security forum!

chandrap prakash

Greenhorn
+ Follow
since Sep 19, 2008
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 chandrap prakash

Hi,

i developed an application in j2me using MMAPI 1.2 to capture a image using device camera .
When i test this application on Nokia and Motorola mobile,i am able to take a snapshot.
But when i test on LG KP500 mobile ,its throws :

javax.microedition.media.MediaException: There is no matching DataSource.locator:capture://video Exception.

So i am not getting what is the matching locator for LG mobile.
My j2me code for this exception is :

private Player mPlayer;

try{
mPlayer = Manager.createPlayer("capture://video");
}
catch (MediaException me) { ahowAlert(me.getMessage()); }

Thanks & Regards,

Chandra Prakash
8 years ago
Hi,

In my application,using browse functionality i am trying to select a file from native directory of a device.I tested this functionality on sony and LG mobile,functionality works fine.

When i test the same application on Nokia E60 mobile on selection of a file,it throws "Unhandled Exception" .

I tried to put the code in try and catch block, to print the message then i got null.

following is the j2me code:

try
{
pictureURI.setString("");
pictureURI.setString(url);
display.setCurrent(detailsForm);
}

catch (Exception e)
{
System.out.println(e);
showAlert("Exception ===="+e.getMessage());
}

What is the issue i am not understanding.

Thanks & Regards,

Chandra Prakash
8 years ago
Hi Anuj,

Thanks for your reply,I tried the process to get certificate from symbian.But while uploading the .csr file its tellling:

Open Signed Offline/Developer Certificates are only available to users with a Publisher ID.

is this id is mandatory to get certification or how can i get this id free of cost?.

thanks & Regards,

Chandra Prakash

8 years ago
Hi,

I am having Fileconnection issue when i test the j2me application into Nokia device.So I am planning to sign application and get certificate from verisign or thwate.
before that i want to confirm is there any way, to get test account so i can test application while development .
or is there any easy way to sign the code to get certificate temporary.

Thanks & Regards,

8 years ago
Hi Tim,

Thanks for your replay,ya i am using JSR 135 standards for camera support in J2ME.

Now to find root folder is there any another way left out.So i can get the root in Motorola mobiles.

Thanks & Regards,

Chandra Prakash

8 years ago

Hi,

In my application i am using File Connection API to browse and access a file from the phone memory.The j2me code is

String initDir = System.getProperty("fileconn.dir.photos");

private FileConnection currentRoot = null;

if (initDir != null)
{
try
{
currentRoot = (FileConnection) Connector.open(initDir);

}
catch (Exception e)
{
showAlert("ConnectionNotFound : "+e.getMessage());

}
}


This code works fine in Sony mobiles but throws an exception "Application not authorized to access the restricted api" in Nokia and Motorolla devices.

I am unable to understand this problem.

Thanks & Regards,

Chandra Prakash
8 years ago
Hi,

In my application to get the root of image directory ,i use the following The j2me code

String initDir = System.getProperty("fileconn.dir.photos");

But when i test the application, the above code returns null in motorola phone.but when i test the application in Nokia and sony mobiles i am getting the root value.

So,is there any generalize way so we can get the images root folder of any mobile.

Thanks & Regards,

Chandra Prakash

8 years ago
Hi,

I am developing a mobile application using Java ME SDK 3.0.I have developed a module, now i want to keep this into a repository.

So is there any tool like SVN so we can maintain a centralized repository so other developers can synchronize the code with repository or can do the check in checkout code process.

or is there any plugin or process so we can configure svn with ME sdk 3.0.

Thanks & Regards,

Chandra Prakash
8 years ago
Hi,

We are going to deploy our spring based web application to production environment.
Till now for development envelopment we have used jetty server and on QA we used the tomcat.
It is going to production environment,so please let me know the best environment configuration to deploy.The application have heavy database search operations and will have a fair amount of concurrent users.
Which is better tomcat v/s jetty or any other alternatives.

Thanks & Regards,

Chandra Prakash
8 years ago
Hi,

In my application i am performing search functionality,the searched result i need to display into a jsp page.

But this functionality is taking some time to load a jsp page.so my requirement is to change label of the "search" button to "cancel " button after click on search .

And when i click on cancel the last search request should be canceled .the search request i am sending to servlet through ajax call.

So how i can cancel the current running thread of a servlet.

Regards,

Chandra Prakash
9 years ago
Hi,

In my application i am using Hibernate for ORM.I am done the search functionality through join,but this regrades the performance.so now i want to use view .I did the googling for this but i didn't get the too much idea.so,my query is it possible to create view using hibernate.

Thanks & regards


Chandra
Hi,

In my application i am performing search and sort functionality,for both i am using same ajax function .

The result of both i am displaying in a jsp page.the search functionality is working fine but the ajax call with sort always is getting fail.

I can see the list after sort after hitting the dB on console.

What is the issue i am not getting,please somebody look into that.

Regards,

Chandra Prakash
Hi,

I am uploading a 3GB of file through hibernate into DB.The flow of my functionality is,

1)Read the file character by character and add into a collection object.

2)I am checking size of collection object if it is 100 than this collection object i am pushing into DB using Hibernate.

3)when i come back to reading the file ,I am getting file not found exception.

The following is code for reading and pushing to DB:



Please look into this and let me know how to suspand and resume the file reading back.

Regards,

Chandra Prakash

JCE: please use code tags
9 years ago
hi,

In my application i need to uplaod a 3gb of file into db through hibernate.

The flow of my application is read the file character by character and put into a collection object ,this collection object i am saving to DB through hibernate.

The collection size is more than 1 lac of records.

So please look into that and tell me how i can read the file,so this problem can be resolved.

Regards,

Chandra Prakash
9 years ago
Hi,

I am using spring and hiberante into my appliaction.I am using ajax to retrive and display the data into jsp through jstl tags.

In my application i have search functionality,this will display the records into one jsp page.on the same page i have "sort " functionality also, with different criteria like "firstname","lastname" .

After search i can get the more than 1lac of records.According to my approach,the searched list i am adding into a session object and then while sorting i am sorting that added list only. but this approach is making the session object very heavy so might be a chance for the application can break.the searching and sorting i am performing through ajax call.

And after sorting the list i want to show into same(searched) jsp page.

Any help will be appreciated.

Regards,

Chandra