Nidhi Garg

Greenhorn
+ Follow
since Jun 19, 2009
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 Nidhi Garg

well i read about those five only
13 years ago
For duplicate form submission ::
Struts2 has token and tokenSession interceptor which prevents the duplicate form submission. You have to use either of the interceptor in the action along with the <s:token/> tag.
13 years ago
From 1.1 version we have two ways for having multiple configuration files.
- One way is to have comma-delimited values. For this changes have to be made in the web.xml file :


- Other way is to have separate modules each one having its own configuration file
13 years ago
There are basically 5 types present in Struts2. They are
- dispatcher
- Redirect
- rediretAction
- chain
- freemarker

If we dont specify the result type explicitly , by default it takes dispatcher
13 years ago
Some of the differences are as follows:

-Struts 2 has intelligent default configurations
-Struts 2 has JAVA POJO approach unlike struts1.2
-Struts 2 has no separate action form class
-Struts 2 uses both xml configuration and annotations for mapping
-Struts 2 has interceptors which leads to reduced coupling
-Struts 2 execute method returns a String. In Struts 1 execute method returns ActionForward object.
13 years ago
i have some .testdata and .testinfo files for junit testing. How do i include these in junit using emma.
when i am testing , i am getting error for these missing files.
where can i include non java classfiles in target test for junit ??

please reply
13 years ago
pageContext has some usefu page attributes , access to request , response, session as well as JspWriter (referenced by out). It can be used for including another URLs content or for forwarding like: pageContext.forward("other.jsp");
I am getting the following exception:

main, WRITE: TLSv1 Handshake, length = 73
main, WRITE: SSLv2 client hello message, length = 98
main, handling exception: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
mainERROR: Unrecognized SSL message, plaintext connection?


I am trying to implement SSL on JacORB.
Any idea how to solve this ?

Regards,
Nidhi
14 years ago
See below for properties that needs to be set in jacorb.properties file for connection timeout


# Wait the specified number of msecs for a reply to a request. If
# exceeded, a org.omg.CORBA.IMP_LIMIT exception will be thrown
#jacorb.client.pending_reply_timeout=0

# client-side connection idle timeout, set no non-zero to stop
# blocking after so many msecs.
#
# WARNING: This is independent of pending replies, i.e. the connection
# can also close, if the timeout is exceeded, but there are unanswered
# requests.
#jacorb.connection.client_idle_timeout=0

# max time a server keeps a connection open if nothing happens
#
# WARNING: This is independent of the requests currently being
# processed, i.e. the connection can also close, if the timeout is
# exceeded, but there are unanswered requests.
#
#jacorb.connection.server_timeout=10000
14 years ago
By using some framework it becomes easy to implement things. for example for writing html code if you do via struts , there are library predefined for that purpose.
so it becomes easy to write the code. Its much more maintainable too.
14 years ago
You can set that in jacorb.properties file.
Ensure that the property jacorb.connection.client.idle_timeout is uncommented, and set this property to a value between 5000 and 30000 milliseconds
14 years ago
I am trying to implement ssl on jacorb. I have made a HelloServer program.
It is giving me the following exception:

ERROR: org.omg.CORBA.COMM_FAILURE: IOException: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? vmcid: 0x0 minor code: 0 completed: No
0000: 47 49 4F 50 01 GIOP.
Thread-3, handling exception: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
Thread-3, SEND TLSv1 ALERT: fatal, description = unexpected_message
Thread-3, WRITE: TLSv1 Alert, length = 2
Thread-3, Exception sending alert: java.net.SocketException: Software caused connection abort: socket write error
Thread-3, called closeSocket()
main, handling exception: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
Thread-3, called close()
Thread-3, called closeInternal(true)
Thread-3, called close()
Thread-3, called closeInternal(true)
Thread-3, called close()
Thread-3, called closeInternal(true)
org.omg.CORBA.COMM_FAILURE: IOException: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? vmcid: 0x0 minor code: 0 completed: No
at org.jacorb.orb.etf.ConnectionBase.to_COMM_FAILURE(ConnectionBase.java:129)
at org.jacorb.orb.etf.StreamConnectionBase.flush(StreamConnectionBase.java:166)
at org.jacorb.orb.giop.GIOPConnection.sendMessage(GIOPConnection.java:853)
at org.jacorb.orb.giop.GIOPConnection.sendRequest(GIOPConnection.java:805)
at org.jacorb.orb.giop.ClientConnection.sendRequest(ClientConnection.java:302)
at org.jacorb.orb.giop.ClientConnection.sendRequest(ClientConnection.java:282)
at org.jacorb.orb.Delegate.invoke_internal(Delegate.java:912)
at org.jacorb.orb.Delegate.invoke(Delegate.java:857)
at org.jacorb.orb.Delegate.is_a(Delegate.java:1268)
at org.omg.CORBA.portable.ObjectImpl._is_a(Unknown Source)
at org.omg.CosNaming.NamingContextExtHelper.narrow(Unknown Source)
at HelloServer.main(HelloServer.java:99)
HelloServer Exiting ...

It gives error when I trying to:
NamingContextExt ncRef = NamingContextExtHelper.narrow(objRef);

Any pointers as to what is the root cause for this?


Regards,
Nidhi Garg
14 years ago
I am trying to implement ssl on jacorb. I have made a HelloServer program.
It is giving me the following exception:

ERROR: org.omg.CORBA.COMM_FAILURE: IOException: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? vmcid: 0x0 minor code: 0 completed: No
0000: 47 49 4F 50 01 GIOP.
Thread-3, handling exception: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
Thread-3, SEND TLSv1 ALERT: fatal, description = unexpected_message
Thread-3, WRITE: TLSv1 Alert, length = 2
Thread-3, Exception sending alert: java.net.SocketException: Software caused connection abort: socket write error
Thread-3, called closeSocket()
main, handling exception: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
Thread-3, called close()
Thread-3, called closeInternal(true)
Thread-3, called close()
Thread-3, called closeInternal(true)
Thread-3, called close()
Thread-3, called closeInternal(true)
org.omg.CORBA.COMM_FAILURE: IOException: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? vmcid: 0x0 minor code: 0 completed: No
at org.jacorb.orb.etf.ConnectionBase.to_COMM_FAILURE(ConnectionBase.java:129)
at org.jacorb.orb.etf.StreamConnectionBase.flush(StreamConnectionBase.java:166)
at org.jacorb.orb.giop.GIOPConnection.sendMessage(GIOPConnection.java:853)
at org.jacorb.orb.giop.GIOPConnection.sendRequest(GIOPConnection.java:805)
at org.jacorb.orb.giop.ClientConnection.sendRequest(ClientConnection.java:302)
at org.jacorb.orb.giop.ClientConnection.sendRequest(ClientConnection.java:282)
at org.jacorb.orb.Delegate.invoke_internal(Delegate.java:912)
at org.jacorb.orb.Delegate.invoke(Delegate.java:857)
at org.jacorb.orb.Delegate.is_a(Delegate.java:1268)
at org.omg.CORBA.portable.ObjectImpl._is_a(Unknown Source)
at org.omg.CosNaming.NamingContextExtHelper.narrow(Unknown Source)
at HelloServer.main(HelloServer.java:99)
HelloServer Exiting ...


It gives error when I trying to:
NamingContextExt ncRef = NamingContextExtHelper.narrow(objRef);

Any pointers as to what is the root cause for this?


Regards,
Nidhi Garg

14 years ago