This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!

Alex Belt

Ranch Hand
+ Follow
since Jul 12, 2001
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 Alex Belt

This is actually an operating system issue. Linux treats everything as a file - if there are too many connections open on the machine, you'll get that message. Have your sys admin look at the max number of open file handles on the system to make sure it isn't set too low. Also, make sure you aren't opening system resources like Sockets and the such and failing to close them - poor programming practices can cause that error as well.

HTH,
Alex
7 years ago
Are you using an SDK? If so, which one? What are you using to build?
7 years ago
Do you control the web services also? My first thought was, why is the web service taking so long to complete? Also, 40 seems like a relatively small number of threads for a web container to run - is this running on a shared server or otherwise resource constrained?
7 years ago
Hi Everyone,

We're running Liferay 5.2.3EE on Tomcat 6.0. I need to create some SOAP based web services that will be consumed by .Net clients and ADFS. I've used ServiceBuilder to generate some web service code, but I need some things that I can't get using a standard web service, namely, some data about the user invoking the service. So, I'm looking into using a portlet and exposing it as a web service. Unfortunately, I haven't been able to find any documentation on how to expose a portlet as a web service inside the liferay environment. Can someone point me to some documentation or otherwise explain the process of exposing a portlet as a web service? Assuming that it's technically feasible, or course. If not, I'll have to try and find another way around the limitation.

Thanks,
Alex
7 years ago
It seems that JBoss has done away with the hibernate.org site, and individual hibernate downloads. I tried Googling for downloads, but the most of the links point to the hibernate.org site, and they all take me to the JBoss home page instead. Does anyone know what I can download to get the most recent hibernate jar file? I can't seem to find anything on the JBoss site, and I registered and posted this question there as well, but haven't gotten an answer yet.

TIA
Alex
Never mind - turned out to be a typo in the hibernate.cfg.xml file. DOH!
I have the exact same issue if I change the config file for MySQL and then proceed to use MySQL 5.1.22.
I'm working on the tutorial in the first chapter of the Hibernate documentation, and having a problem with it. I've created all the files listed along with their content. The problem I have, is that when I run it, I get a Table not found error because it's not being created. I have the

entry in my hibernate.cfg.xml file, but when I look at the logs, there's nothing to indicate that the table was created, or even attempted, and I don't understand why. I'm using the latest Hibernate version, 3.2.5, and the recommended HSQLDB version 1.8.0.1 for the db. I'm fairly new to Hibernate, have never used HSQLDB before, and after banging on it for a while, I'm lost. Has anyone else run into this?

Thanks,
Alex
Found the problem. Turns out the Cipher used to initialize the CipherOutputStream was null due to a local variable masking the class variable holding the Cipher. I hate debugging code I didn't write.

Thanks,
Alex
13 years ago
Here's the code the way I'm currently testing it:


It prints the fileoutputstream message, prints the outputstream message, does not print the null message, and does not print the objectoutputstream message. The catch block not only displays an error, it sends an email also, neither of which is occurring.
13 years ago
I have an application that sends an object over MQ. If for some reason this object isn't sent, I need to have it written to a local file after it's been encrypted. When I don't encrypt the object and wrap an ObjectOutputStream around a FileOutputStream, it works great. If I try to wrap an ObjectOutputStream around a CipherOutputStream which wraps a FileOutputStream, the FileOutputStream is created, the CipherOutputStream is created, and then it just fails. No exceptions are thrown, no error messages of any kind, it just fails to create the ObjectOutputStream wrapping the CipherOutputStream. I've searched Sun's bug database and done a Google search, but can't find any mention of this problem. If it makes a difference, I'm limited to 1.4.2_11, upgrading is not an option at this time.

TIA,
Alex
13 years ago
I had that same idea, but unfortunately, my boss would rather have something in his hand from a third party that says I completed it rather than taking my word for it, regardless of how good the training is.

thanks,
Alex
13 years ago
Hi all,
My boss has asked me to research taking one or more cbt's for training, as our training budget won't cover a class. I've looked around on Google and found a lot of overpriced or marginal material, so I thought maybe someone here could provide a recommendation? I have a SCJP 1.2, most of my work now is J2EE based, I could use some advanced XML or web services training. I'm not averse to SCWCD material, but it's not necessarily my primary focus. I just don't want something that explains the basic material, which I already know, I'm looking for more and not finding much.

Thanks in advance,
Alex
13 years ago
Thanks. I had figured out to separate the other tests from the ftp process, but I ran into a wall trying to figure out how to test the ftp. Fortunately, all the ftp code is already isolated to a single method so I won't have to use a mock framework for the other methods, as the only method that calls the ftp method is the class controller method.

Thank you,
akempo
15 years ago
I'm in the process of writing a test for a class that downloads a file using ftp and then does some processing on the information in the file after it's been downloaded. My problem is this: how do I test the method that does the actual ftp download? Do I download the file using a completely different method, say the command line, then when I download the file through the code generate a hash for both files and check for equality? I don't have a lot of experience using JUnit, but I'm trying to learn. I can figure out how to test the rest, I just haven't been able to devise a way to test the actual ftp process.

Thanks,
akempo
15 years ago