dattathreya bonakurthi

Greenhorn
+ Follow
since Sep 17, 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 dattathreya bonakurthi

Hi ,
I need help to debug the transactions in JBOSS server.

I m getting an exception in server.log file but unable to get the location or file from which it is throwing the exception.
When checked the code of the that error message I m unable to understand it.

So I thought of enable the debug in next level, if I can get more information.

Exception thrown :
ERROR [org.jboss.remoting.transport.coyote.CoyoteInvoker] Service error
java.lang.ArrayIndexOutOfBoundsException: 0
at org.jboss.remoting.transport.coyote.CoyoteInvoker.normalize(CoyoteInvoker.java:763)
at org.jboss.remoting.transport.coyote.CoyoteInvoker.postParseRequest(CoyoteInvoker.java:608)
at org.jboss.remoting.transport.coyote.CoyoteInvoker.service(CoyoteInvoker.java:287)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:595)

My findings:
As per the that particular class, I can see some lines of code from which it is called but unable to find the exact reason for it.
Can someone please guide me.

http://www.massapi.com/source/JBossRemoting-2_2_0_GA/src/org/jboss/remoting/transport/coyote/CoyoteInvoker.java.html


Thanks in Advance.
8 years ago
Hi Kiran,

thanks for your response.

Below is some information which I can share.
Please see the attached file for request flow image.

1. Obrm sends request to jboss IP.
2. the request is handled by esb file.
2.1 in the esb file the input data parsing is done.
2.2 the actual input is generated finally and send to wsdl
2.3 the wsdl call the required processes and transaction is completed.
3. Final response is send back to OBRM.
-------------------------------------------------------
Problem location:
--> As per the server.log file, the request coming to jboss are not tracked correctly and below error is displayed if any requets is not success.

2013-09-17 18:51:29,432 ERROR [org.jboss.remoting.transport.coyote.CoyoteInvoker] Service error
java.lang.ArrayIndexOutOfBoundsException: 0
at org.jboss.remoting.transport.coyote.CoyoteInvoker.normalize(CoyoteInvoker.java:763)
at org.jboss.remoting.transport.coyote.CoyoteInvoker.postParseRequest(CoyoteInvoker.java:608)
at org.jboss.remoting.transport.coyote.CoyoteInvoker.service(CoyoteInvoker.java:287)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:595)
---------------------------------------------------------

As per the above error message I checked the grep code link.

http://grepcode.com/file/repository.jboss.org/nexus/content/repositories/releases/org.jboss.remoting/jboss-remoting/2.4.0.SP1/org/jboss/remoting/transport/coyote/CoyoteInvoker.java#87


--------------------------------------------------------
When I checked in the esb file..
It contains jboss-esb.xml file...
I thought if there is any problem with the thread count but when I chked the count it is 200.

Can you suggest me any info.


Thanks
Datta


8 years ago
Hi,

I haven't seen that code path before, as shown in the stacktrace. Which JBoss AS version is this and what exactly are you doing?

Version : jboss 4.2.2 GA


What do you mean by "done using source"?


Jboss has some wsdl, which are called by other external systems to generate some transaction in the database level.

Whenever they send multiple requests some are not received at my end and throwing the exception as given by me.
8 years ago
2013-09-17 18:51:29,432 ERROR [org.jboss.remoting.transport.coyote.CoyoteInvoker] Service error
java.lang.ArrayIndexOutOfBoundsException: 0
at org.jboss.remoting.transport.coyote.CoyoteInvoker.normalize(CoyoteInvoker.java:763)
at org.jboss.remoting.transport.coyote.CoyoteInvoker.postParseRequest(CoyoteInvoker.java:608)
at org.jboss.remoting.transport.coyote.CoyoteInvoker.service(CoyoteInvoker.java:287)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:595)

For example, if 100 accounts are triggerred from source to jboss only 50% are success or sometimes all are failed .

One thing I can observe if I submit the requests using web client all the success but if the same is done using source then they are getting failed
8 years ago
Hi Bear,
I know that I m not following any architecture but I want to know the reason beyond the error displayed.
If I can resolve this one, I would be going to do it in an MVC.

In my first step, I m facing the problem.
What could be the reason for it.

If any jar files are missed by me ?

Thanks,
Hi,

I have written an simple jsp code to connect to the database and retrive some records.

In the first stage, it is giving me below error message.

" java.sql.SQLException: Io exception: The Network Adapter could not establish the connection "

I m running it on the eclipse.

Jsp code file :

<%@ page import="java.sql.*" %>
<%

try {
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con=DriverManager.getConnection("jdbc:oracle:thin://10.26.71.17:1521/preclrty","cprg","c10");
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("select * from service_types");
%>
<% if(rs.next())
{
rs.previous();
%>
<table width="830" border="1" align="center" bordercolor="#000000">
<tr>
<td width="63" align="center"><span class="style25">Your Account Balance: <b>Rs.</b></span></td>
<%

while(rs.next())
{
%>
<td width="63" align="center"><span class="style25"><%=rs.getString(2)%></span></td>
</tr>



<%
}

}
else
{
%>

<%
}

}catch(Exception e)
{
out.println("the error is "+e);
}
%>

Note : I have removed the html tags from the file.

Can someone help help.
I m trying to learn basic programming using the JSPs, to build an front for my daily activities.

I think I have missed out some configurations.

Please help me thank you in advance.











Tim Holloway wrote:In that case, I suspect that the environment variables are not set for the execution context that you are trying to run Tomcat in.

In the command window where you issue the Tomcat "startup.bat" command, issue this command:


In order for Tomcat to launch properly, that command should have printed a value that points to a valid Java JDK.



Hi,

I have checked it.
there is no environmnet variable "JDK_HOME".
should I define it.


8 years ago

Tim Holloway wrote:Why are you attempting to use two completely different versions of Java at the same time?

You do not need to set JRE_HOME. JAVA_HOME is sufficient.



i had tried using single environmnet variable JAVA_HOME still it was throwing the error.

Can you please guide me.

thanks
datta
8 years ago
Hi All,
I have below configurations in my system.
Jdk1.6
Jre 1.7
below system variables are set :
JRE_HOME = C:\Program Files\Java\jre7;
JAVA_HOME = C:\Program Files\Java\jdk1.6.0_37;
CATALINA_HOME = D:\JAVA_2\apache-tomcat-7.0.37;

when trying to start the tomcat using below command by going to the bin folder of apache :

D:\JAVA_2\apache-tomcat-7.0.37\bin>startup
The JRE_HOME environment variable is not defined correctly
This environment variable is needed to run this program

tried to set the path for jre_home but still the error exists.

In my system, I have two program files folders
1. C:\Program Files (x86)
2. C:\Program Files
are these the problem for the above message ?

Thanks,
Datta


8 years ago
Hi,
I worked on Servlets & JSP till know and some idea on Struts.
I want to know about web Services.
Can any one guide to start from where.

11 years ago
I am working on servlets & JSP's from last one year but till know I haven't used the MVC in my work.
I want to know about the MVC and its implementation on web application.
11 years ago
JSP
thanks for your reply.
I will have a look at them and get to you back.
12 years ago
hi friend ,

I too require the same application type but i got some other application like yahoo chat implemented by a person.
You just have a look in to that application.

you type chat "application by sukwinder " where you can download the application from that link try it.

If you have any other idea please write to me @

dattu.bonakurthi@gmail.com

thank you.
12 years ago