Giri Regu

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

Recent posts by Giri Regu

Hi,

actually i set the session time out as 30 mins. i have opened the login page browser left idle for 1 min then give the credentials then click the summit button then this exception throws.

"Determine the session ID using a dummy test filter."
can you explain a bit about how to do the above statement

Thanks,
Giridaran
16 years ago
JSF
Hi All,

i am developing a application Using MObile JSF. if i keep my page as idle i am getting the below exception

javax.faces.application.ViewExpiredException: viewId:/pages/mobile/login.jsp - View /pages/mobile/login.jsp could not be restored.
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:187)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.ericsson.sn.mobilefaces.MobileFacesServletFilter.doFilter(MobileFacesServletFilter.java:96)
at com.efici.eficash.client.filter.WapRequestFilter.doFilter(WapRequestFilter.java:37)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

AT that time my session is not expired i am sure about that.

Pleaes help me on this

Thanks in advance
16 years ago
JSF
Hi all,

I am trying to unzip a password protected zip using java.util.zip package.
it throw an error "java.util.zip.ZipException: encrypted ZIP entry not supported".

is there any specific classes to unzip password protected zip file in java?

how can i make this works?

Thanks in advanced,
Giri
16 years ago
Hi all,

i am very new to j2me application devlopment.i want to know about find the memory leaks in j2me application.
could you give brief information to find and fix the memory leaks.

thanks in advance
16 years ago
Hi All,

I just show a webpage(page developed in Drupal-PHP) in jeditor pane. occasionally it prints a message in console likePremature end of JPEG file sometimes its throws exception mentioned below

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at javax.swing.text.html.StyleSheet$ListPainter.paint(Unknown Source)
at javax.swing.text.html.ListView.paintChild(Unknown Source)
at javax.swing.text.BoxView.paint(Unknown Source)
at javax.swing.text.html.BlockView.paint(Unknown Source)
at javax.swing.text.html.ListView.paint(Unknown Source)
at javax.swing.text.BoxView.paintChild(Unknown Source)
at javax.swing.text.BoxView.paint(Unknown Source)
at javax.swing.text.html.BlockView.paint(Unknown Source)
at javax.swing.text.BoxView.paintChild(Unknown Source)
at javax.swing.text.BoxView.paint(Unknown Source)
at javax.swing.text.html.BlockView.paint(Unknown Source)
at javax.swing.text.BoxView.paintChild(Unknown Source)
at javax.swing.text.BoxView.paint(Unknown Source)
at javax.swing.text.html.TableView$RowView.paint(Unknown Source)
at javax.swing.text.html.TableView.paint(Unknown Source)
at javax.swing.text.BoxView.paintChild(Unknown Source)
at javax.swing.text.BoxView.paint(Unknown Source)
at javax.swing.text.html.BlockView.paint(Unknown Source)
at javax.swing.text.BoxView.paintChild(Unknown Source)
at javax.swing.text.BoxView.paint(Unknown Source)
at javax.swing.text.html.BlockView.paint(Unknown Source)
at javax.swing.plaf.basic.BasicTextUI$RootView.paint(Unknown Source)
at javax.swing.plaf.basic.BasicTextUI.paintSafely(Unknown Source)
at javax.swing.plaf.basic.BasicTextUI.paint(Unknown Source)
at javax.swing.plaf.basic.BasicTextUI.update(Unknown Source)
at javax.swing.JComponent.paintComponent(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

i am getting struk to get out of this problem.

i would much appriciate if any body solve this issue

Thanks in Advance
Giridaran
17 years ago
Hi all,

i want to create a Java application which can communicate(send and receive files) with iPod through iTunes.
is there any API available for that?
i dnt know how to start the application.
please help meout of this problem

thanks in advance
Giridaran
17 years ago
Hi all,

i want to create a java application which can able to transfer datas to iPod through iTunes.
i dont know how to start that
please help me regarding this problem.

thanks in advace
17 years ago
Thanks for your reply

I dont have the license.key file for j2me polish.
i am a student. i am trying at my own interest.
how can get that file?


thanks in advance
Giridaran.RS
17 years ago
Hi,

i am new to j2me technologies.
i am tryiny to develop a j2me application using j2me polish in exclips ebvironment.when i try to run the applicatin i got this errr below


j2mepolish:
[j2mepolish] info: the license attribute is no longer supported. Please place your license.key file either to ${project.home} or to ${polish.home}.
[j2mepolish] J2ME Polish 2.0-RC4 (GPL License)
[j2mepolish] Loading device database...
[j2mepolish] Using locale [en_US]...
[j2mepolish] assembling resources for device [Nokia/6020].
[j2mepolish] preprocessing for device [Nokia/6020].
[j2mepolish] nothing to compile for device [Nokia/6020].
[j2mepolish] preverifying for device [Nokia/6020].
[j2mepolish] creating JAR file [D:\Giri\Projects\S60\dist\Nokia-6020-en_US-example.jar].
[j2mepolish] creating JAD file [D:\Giri\Projects\S60\dist\Nokia-6020-en_US-example.jad].
[j2mepolish] Info: Emulator [C:\Nokia\Nokia_S40_DP20_SDK_1_1] not found.
[j2mepolish] Info: Emulator [C:\Nokia\Devices\Nokia_Prototype_SDK_3_0\devices\Prototype_3_0_S40_128x128_MIDP_Emulator] not found.
[j2mepolish] Info: Emulator [C:\Nokia\Devices\S40_SDK_3rd_Edition] not found.
[j2mepolish] Info: Emulator [C:\Nokia\Nokia_S40_DP20_SDK_1_1] not found.
[j2mepolish] Info: Emulator [C:\Nokia\Nokia_S40_DP20_SDK_1_0] not found.
[j2mepolish] Warning: unable to start the emulator: the emulator-skin [Nokia_S40_DP20_SDK_1_1] for the device [Nokia/6020] is not installed.


i am having the Nokia 60 series development kit.
i have configured the gobal.properties with nokia home and choose the nokia home at the time of project creation in eclipse but still i got the same error msg.

This samne error come for sony ericson sdk also.

please drive away from this problem........

Thanks in advance
Giridaran.R
17 years ago
Hi all,
i am doing a sample application in struts with struts validator plug in. it throwing a error while the application loading...
ct 15, 2007 5:49:03 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.5.0_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.5.0_06\bin\..\jre\bin\client;C:\Program Files\Java\jdk1.5.0_06\bin\..\jre\bin;D:\oracle\product\10.1.0\Db_1\bin;C:\Program Files\Java\jdk1.5.0_06\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\jdk1.5.0_06\bin;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\Common Files\Teleca Shared;D:\oracle\product\10.1.0\Db_1\orb\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin;C:\Program Files\Java\jdk1.5.0_06\bin;.;
Oct 15, 2007 5:49:03 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Oct 15, 2007 5:49:03 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1110 ms
Oct 15, 2007 5:49:04 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Oct 15, 2007 5:49:04 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.25
Oct 15, 2007 5:49:04 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Oct 15, 2007 5:49:05 PM org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from '/WEB-INF/validator-rules.xml'
Oct 15, 2007 5:49:05 PM org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from '/WEB-INF/validation.xml'
Oct 15, 2007 5:49:05 PM org.apache.struts.validator.ValidatorPlugIn init
SEVERE: null
java.lang.NullPointerException
at org.apache.commons.validator.ValidatorResources.internalProcessForms(ValidatorResources.java:464)
at org.apache.commons.validator.ValidatorResources.process(ValidatorResources.java:415)
at org.apache.commons.validator.ValidatorResources.<init>(ValidatorResources.java:162)
at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:233)
at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:164)
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:839)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:332)
at javax.servlet.GenericServlet.init(GenericServlet.java:168)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Oct 15, 2007 5:49:05 PM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet action as unavailable
Oct 15, 2007 5:49:05 PM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /AddressBook threw load() exception
javax.servlet.UnavailableException: Cannot load a validator resource from '/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml'
at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:174)
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:839)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:332)
at javax.servlet.GenericServlet.init(GenericServlet.java:168)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Oct 15, 2007 5:49:05 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Oct 15, 2007 5:49:05 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Oct 15, 2007 5:49:05 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16 config=null
Oct 15, 2007 5:49:05 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Oct 15, 2007 5:49:05 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2000 ms


My struts-config.xml

<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">

<struts-config>

<form-beans>
<form-bean name="loginform" type="LoginForm"/>
</form-beans>
<action-mappings>
<!-- Action Mapping for Login -->

<action path="/Login" type="LoginAction" name="loginform" validate="true" scope="request" input="/index.jsp">
<forward name="success" path="/jsp/Home.jsp"/>
<forward name="failure" path="/jsp/failure.jsp"/>
</action>
</action-mapping>
<message-resources parameter="org.properties"/>
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
</plug-in>
</struts-config>

i have my validation.xml and validation-rules.cml under WEB-INF dir

Validation.xml
<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE form-validation PUBLIC
"-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN"
"http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">

<form-validation>

<!--
This is a minimal Validator form file with a couple of examples.
-->
<global>

<!-- An example global constant
<constant>
<constant-name>maskCode</constant-name>
<constant-value>^[a-zA-Z]{1}[a-zA-Z0-9_]*$</constant-value>
</constant>
end example-->
</global>
<formset>
<!-- An example form -->
<form name="loginform">
<field property="login" depends="required,minlength,maxlength,mask">
<msg name="mask"
key="loginform.usernamemask"/>
<arg0 key="loginform.username"/>
<arg1 key="${var:minlength}" name="minlength" resource="false"/>
<arg1 key="${var:maxlength}" name="maxlength" resource="false"/>
<var>
<var-name>minlength</var-name>
<var-value>5</var-value>
</var>
<var>
<var-name>maxlength</var-name>
<var-value>9</var-value>
</var>
<var>
<var-name>mask</var-name>
<var-value>^[a-zA-Z]{1}[a-zA-Z0-9_]*$</var-value>
</var>
</field>
<field
property="password" depends="required,minlength,maxlength">
<arg0 key="loginform.password"/>
<arg1 key="${var:minlength}"
name="minlength"
resource="false"/>
<arg1 key="${var:maxlength}"
name="maxlength"
resource="false"/>
<var>
<var-name>minlength</var-name>
<var-value>5</var-value>
</var>
<var>
<var-name>maxlength</var-name>
<var-value>9</var-value>
</var>
</field>
</form>

<!-- An example form -->
<!-- An example form -->
</formset>
<!-- An example formset for another locale -->
<formset language="fr">
<constant>
<constant-name>postalCode</constant-name>
<constant-value>^[0-9a-zA-Z]*$</constant-value>
</constant>
<!-- An example form -->
<form name="logonForm">
<field
property="username" depends="required">
<arg key="loginform.username"/>
</field>
<field
property="password" depends="required,mask">
<arg key="loginform.password"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9a-zA-Z]*$</var-value>
</var>
</field>
</form>

</formset>

</form-validation>

i cant solve this problem
help me please

Thanks in advance
Giridaran.R
17 years ago
hi
i am developing a paint application .in that i draw lines and i can move it . the problem is when i am moving a line then the paint method called and draw all the lines once again. but the lines is not showed properly
here i attached java file.
plese take a look with my coding.
give me a solution
(i am using jdk1.1.8)
thanks in advance.
regards
Giri


[ March 14, 2007: Message edited by: Ulf Dittmer ]
18 years ago
hi
thanks craig thanks a lot.
your code is working properly.but i am using jdk1.18 version so the graphics2d and methods in Rectangle class insersectLine() ans setFrameCenter() is not available.
its my mistake to notice about version which i am working. anyway i am trying to convert in lower version . i am unable to understand the usage of rectangle class methods(mentioned above).
if you dont mine please tell me the logic of your program.
sorry for the inconvenence.

thanks and regards
Giridaran.r
18 years ago
import java.applet.*;
import java.awt.*;
import java.awt.event.*;

/**
* <applet code="DrawLine.class" height=500 width=500>
* </applet>
*/

public class DrawLine extends Applet implements ActionListener, MouseListener, MouseMotionListener
{
int width, height;
int x, y; // the coordinates of the upper-left corner of the box
int mx, my; // the most recently recorded mouse coordinates
boolean isMouseDragging = false;
Graphics g;
int flag=0;

public void init() {
width = getSize().width;
height = getSize().height;

setBackground( Color.black );

x = width/2 - 40 ;
y = height/2 - 40;

Button crt_btn = new Button("Create Line");
add(crt_btn);
crt_btn.addActionListener(this);
addMouseListener( this );
addMouseMotionListener( this );
}


public void actionPerformed(ActionEvent e)
{

if(e.getActionCommand()== "Create Line")
{
flag=1;
System.out.println("btn clicked");
repaint();
}
}

public void mouseEntered( MouseEvent e ) { }
public void mouseExited( MouseEvent e ) { }
public void mouseClicked( MouseEvent e ){}
public void mousePressed( MouseEvent e ) {
mx = e.getX();
my = e.getY();
if ( mx > x && mx < x+80 && my == y) {
isMouseDragging = true;
}
e.consume();
}
public void mouseReleased( MouseEvent e ) {
isMouseDragging = false;
e.consume();
}
public void mouseMoved( MouseEvent e ) { }
public void mouseDragged( MouseEvent e ) {
if ( isMouseDragging ) {
// get the latest mouse position
int new_mx = e.getX();
int new_my = e.getY();

// displace the box by the distance the mouse moved since the last event
// Note that "x += ...;" is just shorthand for "x = x + ...;"
x += new_mx - mx;
y += new_my - my;

// update our data
mx = new_mx;
my = new_my;

repaint();
e.consume();
}
}

public void paint( Graphics g ) {
g.setColor( Color.blue );
if(flag==1)
{
g.drawLine( x, y, x+80, y );
}
}
public void update(Graphics g ) {

paint(g);
}
}

this is my program .
in this program i can draw line when click the createline button.
wnen i try to move the line so many lines created in th emoving path.
this is
my first problem
18 years ago
Hi To all

i am developing a paint application in applet.
i am very strange for this applications.
i am facing lot of problems in that.
that is listed below.
1.how to select a particular from morethan one line.
2.how to move line around panel easily
3.how to grow and shrink the selected lines.

please give a solution for the above my questions.

i am developing some initial code for this application thst is below


using this code we can draw lines and gow also but its not full furnished
.
please help me.

thanks in advance

regards
Giri

[ UD: added code tags ]
[ March 09, 2007: Message edited by: Ulf Dittmer ]
18 years ago
hi
i want to play wav and mp3 songs using java program
i can easily play au audio format files using Audio clip interface
if i tryplay other files it throws unsuppoterfile format exception.
help me please
if any body have sample code thats very help to me
thanks in advance
[ December 04, 2006: Message edited by: Bear Bibeault ]
18 years ago