Win a copy of Head First Android this week in the Android forum!

Pandian Ranganathan

Greenhorn
+ Follow
since Oct 20, 2009
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Pandian Ranganathan

Hi All,

Thanks for your response...

Database stores internal and external results. The Internal results are stored against the one input and the External results are stored against the another input. So, i have to call the Stored procedure twice. Once with the one input and again with the another input to get internal and external results respectively.Those need to be accessed using sinle thread...if one use the thread other should wait unitl it finishes, second thread should check every 5 seconds whether first finishes .......... please provide sample code if possible.........

what concept i have to use other than synchronization......... give your suggestion... many thanks in advance
Hi Ulf Dittmer,

Thanks For your response....

i am using single object for synchronize the both threads.... can you explain clearly...can you modify the code....


Thanks in Advance...

Hi,

i am developing file lock concept in java. i am using two threads. first thread is in running state...second thread will wait untill first thread release... i cant make second thread will wait.. i am getting some exception...




i am getting exception like this

Inside Run...
fileC:\Test\Response File.txt
true
Channel sun.nio.ch.FileChannelImpl@addbf1
inside second try.....
inside second try----->sun.nio.ch.FileLockImpl[0:9223372036854775807 exclusive valid]
Inside finally.....
Inside Run...
fileC:\Test\Response File.txt
true
Channel sun.nio.ch.FileChannelImpl@190d11
inside second try.....
Exception java.nio.channels.OverlappingFileLockException
Inside finally.....
java.nio.channels.OverlappingFileLockException
at sun.nio.ch.FileChannelImpl$SharedFileLockTable.checkList(Unknown Source)
at sun.nio.ch.FileChannelImpl$SharedFileLockTable.add(Unknown Source)
at sun.nio.ch.FileChannelImpl.tryLock(Unknown Source)
at java.nio.channels.FileChannel.tryLock(Unknown Source)
at FileTest.run(FileTest.java:26)
at FileTest.main(FileTest.java:53)

Thanks in Advance...
Hi,

i am developing file lock concept in java. i am using two threads. first thread is in running state...second thread will wait untill first thread release... i cant make second thread will wait.. i am getting some exception...




i am getting exception like this

Inside Run...
fileC:\CMPS\Migration\Test\Response File.txt
true
Channel sun.nio.ch.FileChannelImpl@addbf1
inside second try.....
inside second try----->sun.nio.ch.FileLockImpl[0:9223372036854775807 exclusive valid]
Inside finally.....
Inside Run...
fileC:\CMPS\Migration\Test\Response File.txt
true
Channel sun.nio.ch.FileChannelImpl@190d11
inside second try.....
Exception java.nio.channels.OverlappingFileLockException
Inside finally.....
java.nio.channels.OverlappingFileLockException
at sun.nio.ch.FileChannelImpl$SharedFileLockTable.checkList(Unknown Source)
at sun.nio.ch.FileChannelImpl$SharedFileLockTable.add(Unknown Source)
at sun.nio.ch.FileChannelImpl.tryLock(Unknown Source)
at java.nio.channels.FileChannel.tryLock(Unknown Source)
at FileTest.run(FileTest.java:26)
at FileTest.main(FileTest.java:53)


Thanks in Advance...
[b]Hi,

I am developing sms encryption in j2me..i am using netbeans 6.8 when i build my project getting error...


Error: Can't read [proguard.ClassPathEntry@1feca64] (No such file or directory)
C:\Documents and Settings\smct.SMCT-91FE89EF48\My Documents\NetBeansProjects\SMS\nbproject\build-impl.xml:427: Obfuscation failed with error code 1.
BUILD FAILED (total time: 27 seconds)


when i clicked the error in build-imp.xml file



please reply me immediately...

Thanks in advance...[/b]
11 years ago
Hi,

i am developing a newsletter in java...i finished the task for sending mail(smtp server)...but i want the notification from receiver whether they opened the mail or not....if they read my mail notification come to my mail id... how will i do this task..please help me...


Thanks in Advance...
11 years ago
Hi david Newton..

i deleted lableSeparator attribute in index.jsp file..

now it is working...

Thank you....
12 years ago
Thanks David newton

i am using struts-2.0.14 and i used the code tags for coding...

please clarify my doubts...

Thanks for your reply...

Thanks in advance
...
12 years ago
[b]Hi...

i am using this web site tutorial http://www.interview-questions-tips-forum.net/index.php/Struts-Struts-2-Example-Tutorial/Struts2-Tags-Example/Code-and-Tutorial

My index.jsp file is


I am getting this error

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: /index.jsp(15,0) Attribute labelSeparator invalid for tag checkboxlist according to TLD
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:236)
org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1200)
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:821)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:840)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2417)
org.apache.jasper.compiler.Node$Root.accept(Node.java:495)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1736)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:183)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:332)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:416)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs.

how can i solve this error...

please reply immediately...

Thanks in advance...[/b]
12 years ago
Thanks Ankit...

Thank you for your immediate reply.....
12 years ago
Thanks Ankit and siva masilamani...

Thanks for your immediate reply

i want to know the best website for learning struts2 in easy way and simple examples...

please tell the website name...

i am very interesting to learn struts2...

i never studied struts1..Is it necessary to learn struts1 before starting struts2

when i using this url i will get the output

http://localhost:8080/struts2new/roseindia/HelloWorld.action

The output is:

[b]Struts 2 Hello World Tutorial!

Current date and time is: Sat Oct 24 18:58:45 IST 2009


i want to display the output when i am using this url

http://localhost:8080/struts2new/

what can i do for that...

Thanks in advance...
12 years ago
Thanks Ankit...


My web content directory is

struts2new
->WEB-INF
------lib
------libext
------src
|--------java(sub folder in inside the src)
|----net
|--roseindia
|-Struts2HelloWorld.java
|--------classes
|--------build.xml
|--------struts.xml
------classes
------web.xml
->pages
|---HelloWorld.jsp

My struts.xml file is below...

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">

<struts>

<constant name="struts.enable.DynamicMethodInvocation" value="false" />
<constant name="struts.devMode" value="true" />

<package name="roseindia" namespace="/roseindia" extends="struts-default">

<action name="HelloWorld" class="net.roseindia.Struts2HelloWorld">
<result>/pages/HelloWorld.jsp</result>
</action>

<!-- Add actions here -->
</package>


<!-- Add packages here -->

</struts>

Reply as soon as possible...
12 years ago
Hi,

i am using tomcat 6.0 and struts-2.0.14

when i am deploying the helloworld application,i am getting error



Struts Problem Report

Struts has detected an unhandled exception:
# Messages: There is no Action mapped for action name HelloWorld.
Stacktraces
There is no Action mapped for action name HelloWorld. - [unknown location]

com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:186)
org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:41)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:497)
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:421)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:574)
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1527)
java.lang.Thread.run(Unknown Source)


You are seeing this page because development mode is enabled. Development mode, or devMode, enables extra debugging behaviors and reports to assist developers. To disable this mode, set:

struts.devMode=false

in your WEB-INF/classes/struts.properties file.

please reply immediately...
12 years ago