Chris Zaremba

Ranch Hand
+ Follow
since Nov 22, 2010
Chris likes ...
Eclipse IDE Spring Linux
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
11
Received in last 30 days
0
Total given
15
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Chris Zaremba

I am working on an application using/ running on Java 7 (compiling to Java 6)/ Tomcat 6/ Spring 3.1. I have a couple of places in the source where I create a javax.xml.validation.SchemaFactory and javax.xml.transform.TransformerFactory. One of my dependencies is stax-api and its jar contains an old versions of some javax.xml classes that incompatible with my code where I am creating the factories as I use new methods and constants. Spring also had a dependency on another jar that contained another version of javax.xml (although I couldn't find the source code to verify this). I excluded the spring dependency from Ivy and that seems ok at the moment. What can be done about stax?

EDIT:

Isn't it always the way. You spend ages searching for an answer and then as soon as you post a forum question you find the answer. Stax was incorporated into Java 6 (or a previous version) and the separate stax-api jar is no longer required.
10 years ago
I need to transform XML files into various other formats such as CSV, HTML, ODT etc.. In a previous project I did this using XSLT and although I got it working it was a bit of a slog. Getting certain things to work like escaping characters, managing white-space and more was just so awkward. I am a big fan of FreeMarker and I know it can work with XML files so this would be ideal. My concern is whether it can handle large XML files efficiently. Looking at the API and source it looks like it loads the entire XML file into memory instead of streaming it. The XML source files could be a couple of hundred MBs and I might need to process a few at a time. Does anyone have any experience of using FreeMarker with such large files. What was it's memory usage like?
I have a Spring MVC project to which I would like to add and update a number of classes without having to restart the server. From what I have read, OSGi is the way to go. The obvious choice of implementation is Spring DM (or it's replacement Gemini Blueprint). What I can't work out is how you actually add it to a Spring project. Does Spring run within Gemini Blueprint or does Gemini Blueprint run within Spring? The official documentation has left me somewhat confused. I don't mind getting a book on the subject but not until I know it will do what I want it to.
11 years ago
Well their new rules have made a great impovement to the Java community going by the number of new posts in this forum since the beginning of the month. I certainly learned a lot and improved my skills because I did the certification. If I had to pay for the course I doubt I would have done it and would not have learned a number of new skills and techniques. Going forward this will lower the Java skills out in the wild rather than improve them.
Roel, I've never seen the same exception listed more than once in javadoc. I realise they can be throw more than once and possibly with different messages but you way seems to go against the grain. Could you explain your choice please.
I set the default file filter to *.db but allowed *.* to be selected too.
It's not clear what classes you are importing so you might end up using a class that is not form the package you expect. Say you want to use com.exmaple.myapp.alpha.Point but com.exmaple.myapp.beta (which you imported with a *) also had a Point class. IDEs tend to take care of the imports for you anyway. Eclipse for example will manage the imports and hide them so you don't end up with a visible long list unless you want to.
Yes thanks. I knew this was a problem when doing a == b but can now see it's the same issue here. I'm using it for drawing 3d pie segments and have adjusted the drawing method so it doesn't matter if it is +/- a little bit.
12 years ago
S,

Would the examiner still be able to use your implementation using a the existing Oracle specified interface?



I extended the interface myself to add a new close method but made sure all existing methods worked according to the specification. I had a different assignment to yours though.

I understand that you shouldn't use equals for comparing two double values but does the same hold true for comparing a double to a literal using less than and greater than?

I have a double variable which holds an angle in degrees calculated using Math.asin and Math.toDegrees etc. If I then compare this to the literal 90 will the result always be true no matter how close a is to but less than 90 and false no matter how close a is to but greater than 90? I'm thinking if a was calculated to be 89.999999998 but the literal 90 is stored internally as 89.999999996;

12 years ago
I've just tried logging into Pearson VUE and managed to find "1Z0-851 Java Standard Edition 6 Programmer Certified Professional Exam" in the Schedule Exam list.

I do agree that the Oracle site can be very difficult to find things especially when you try to change to your local region.
I'm sorry but I think you need to stop talking down to those that ultimately have been trying to help you. If it was my choice I would rather have working along side me, the person with less experience but is motivated to research, test and work things out themselves rather than just talking the talk.
12 years ago