Win a copy of Securing DevOps this week in the Security forum!

Brent Pathakis

Greenhorn
+ Follow
since Jul 20, 2011
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 Brent Pathakis

Paul,

Thanks for having a look.

You are right about casting not being needed here.

It came up in training, so I wanted to come up with an example (albeit a contrived, and probably invalid one), so I could play with it and get my head wrapped around the concept.
5 years ago
Hi,

I'm currently going through some training in Java. Most if has gone smoothly, but I'm stuck on one point: casting.

What I've done is created a Java project in eclipse (for learning purposes).

Two basic classes in it: buildings and houses. Houses inherits from buildings:







Nothing to complex aside from a few getter's and setter's.

I also have a tester class:




The part I'm hung up on is the casting. The way it is now, I get: Type mismatch: cannot convert from buildings to int.

I've also tried:



That gives: getStories cannot be resolved or is not a field.

Any ideas what I'm doing wrong?

Any help would be appreciated.


5 years ago
Hi,

We have several apps we're hosting on tomcat 6029 on linux (SLES 11 64bit).

We're getting errors in our tomcat, and also having hang and /or restart from time to time:



Is there something I'm missing in my configuration?

We use these parameters is catalina.sh:

-server -XX:+UseParallelOldGC -Xms1024m -Xmx1256m -XX:PermSize=256m -XX:MaxPermSize=512m"

Any help or insight into this would be appreciated.
6 years ago
Hi,

I've set up our test box to start tomcat 6.0.32 as a service. It starts tomcat with no problems, but when I try to stop i get:

Could not stop the Apache Tomcat 6 service on local computer.

Error: 1053: The service did not respond in a timely fashion.

If I look at the event view, I see: timeout (30000 miliseconds) waiting for a transaction response from the service.


This happens on Windows 2003 32bit and Windows xp sp3. The xp box is my local machine, and the tomcat install there has no apps, while the Tomcat on Windows 2003 has several apps. The behaviour is the same on both.

Any ideas / help would be appreciated.
6 years ago