Rajkumar Chandrasekaran

Greenhorn
+ Follow
since Nov 23, 2004
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 Rajkumar Chandrasekaran

Hi,

I am trying to write a application which would count the network traffic transmitted/recieved through a interface and log into a database so that over a period of time we can find out what is the actual data which has been consumed.

is there a utility to do this. Is JPCAP the solution

Please let me know

Thanks
Rajkumar
Hi,

I am trying to do a packet count using jpcap on windows xp. After installing all the necessary things i am getting the following error on my system

using device '\Device\NPF_GenericDialupAdapter
Generic dialup adapter'.
'\Device\NPF_GenericDialupAdapter
Generic dialup adapter' was found but couldn't be properly opened.
Error: Error opening adapter: The system cannot find the device specified. (20)
You may need to run this tool as root in order to capture packets.


I have logged in as the Administrator user only.

Is there something which i am missing out.

Please let me know

Thanks
Rajkumar
Thanks for the information, Finally got it to work,

Using corbertura -1.8 and tomcat the files got placed from where the server's executable was present. Was able to generate the .ser file and the reports as well.

Once again thanks for the information

Rajkumar
17 years ago
I am not sure if you can do this. Because your other server which is being contacted from your Tomcat should be started in Debug mode as well and then you have your remote debug attach to it and then give the source path of the code present in the other server in your eclipse.

Thanks
Rajkumar
If you have your eclipse installed you can import the plugins as shown in the above post. Or you can go to the jboss site and you can download the ide, which is eclipse and contains the jboss plugins with it as well.

Check this link out

http://labs.jboss.com/portal/index.html?ctrl:id=page.default.downloads&project=jbosside

Thanks
Rajkumar
Hi,

I changed the build file to something like this <cobertura-instrument todir="${instrumented.dir}" datafile="c:\cobertura.ser">
and ran the sample script which came with the download. I am getting a error as follows
[cobertura-instrument] Cobertura: Error reading file c:\cobertura.ser: null
[cobertura-instrument] Instrumenting 1 file to D:\cobertura-1.8\examples\basic\i

please let me know if i am missing something here.

Thanks for the help

With Regards
Rajkumar
17 years ago
Hi,
The article was really useful. But i have a situation here where i must find out the code coverage when my application is running. In more detailed terms, i compile the classes and instrument them and if i build a war or a ear file with the instrumented classes and deploy it on the server like tomcat or jboss and i hit the url the classes work fine, but where will the .ser (trying to use jcoverage). files will be created so that i can generate reports.
Please let me know if there is some other option to the above mentioned problem

Thanks
Rajkumar
17 years ago
Can anyone please let me know what could be the circumstances that lead to InvocationTargetException

Thanks
Rajkumar
19 years ago
Hi,

Can anyone let me know the differences between the Naming.bind (present in java.rmi.Naming or weblogic.rmi.Naming) and the Context.bind (present in javax.naming.Context).

Given a choice between the two on a application server like weblogic 8.1 which implementation would be choosen and why. Can someone provide me with valid reasons.

Thanks
Rajkumar
19 years ago
Hi,

I am using weblogic 8.1 for app. development. I have 4 startup classes which binds the objects so that they can be invoked remotely. these classes are given in the startup class tag in the config.xml file. I have to remove these startup classes because of our folder structure problems. If i call the same class using a servlet and the servlet is configured as a startup servlet i am getting the following exception

Completed Loading Serialized Catalog: Mon Nov 22 12:16:22 GMT+05:30 2004
ReferenceDataServerImpl.main: an exception occurred:
weblogic.rmi.ConnectIOException: An unexpected exception occurred
at weblogic.rmi.Naming.toWeblogicRmiException(Naming.java:244)
at weblogic.rmi.Naming.rebindInternal(Naming.java:176)
at weblogic.rmi.Naming.rebind(Naming.java:162)
at com.bellatlantic.eo.service.common.referencedata.ReferenceDataServer

Folloing are excerpts from my code

public static void main(String args[]) {


try {
ReferenceDataServerImpl rd = new ReferenceDataServerImpl();
Naming.rebind("ReferenceDataServer", rd);
Debug.out("ReferenceDataServerImpl created and bound in the registry " +
"to the name ReferenceDataServer");

The servlet which invokes the above method is as follows:-

public class Startup extends HttpServlet {

public Startup()
{
String args[]={};
ReferenceDataServerImpl.main(args);


Please let me know your suggestions and comments and also let me know if i am wrong somewhere
19 years ago