Friday, March 13, 2009
Devoxx 08 slides are now online
The ones for my talks are:
Enjoy! If you have question, contact me.
Talking at RheinJUG next week
Subject of the talk is:
"Server-Monitoring und -Management mit JBossON2"
RheinJUG created a cool announcement poster (original is on their web site, this is a scaled down png version of the original PDF):
You can find more details at the web site of RheinJUG.
I am pleased that Red Hat is providing free food and drinks for this event - many thanks for that.
Thursday, March 12, 2009
Review of my yesterday talk about Jopr at JUG-Ka
I went to Karlsruhe by train, took the tram to the city center and then walked to the University and the CS building. When I arrived the first two members of the audience have been there. David who used to organize the event unfortunately got ill and was not able to attend.
After some waiting, the audience grew to more than 20 people.
Before I started my talk, there was a presentation about Jazoon by Christian Frey. Christian explained why it is worthwhile to attend Jazoon and left some vouchers for user group members.
Christian Frei talking about Jazoon
Next was my talk, which went well. The audience was interested and from the questions, it was obvious that at least some of the members have management and monitoring experience. This also resulted in some good new ideas.
Of course I did a live demo of the latest Jopr 2.2 beta 1 release.
After the talk there was some Q&A and then (nearly) everyone went home quickly as it was already past 9pm.
Part of the audience
Eckes took a picture of me ..
You will be able to download the slides from the Jug pages; or from here (PDF, 2 MB).
I ended up back home at 1am this morning ...
Sunday, March 08, 2009
Reconfigure Oracle-XE to a different port for jdbc
I wanted to reconfigure my Oracle-XE instance to run the tnslsnr on port 1522 instead of 1521. So as first try I went in and just changed the listener.ora and tnsnames.ora files. But after those changes, the system did not give away a beep when I e.g. called lsnrctrl status.
Solution to this was (on RHEL 5.3):
# mv /etc/sysconfig/oracle-xe /tmp/
# /etc/init.d/oracle-xe configure
The script asked some questions about ports (you can look them up in the copy in /tmp) and the db password etc. And then started the database with the new port.
Wednesday, March 04, 2009
Apple heard my prayers: new keyboard
I saw this first on this post: http://elliotth.blogspot.com/2009/03/apple-keyboard.html
Apple has introduced a new keyboard that has a cable and does not have the numeric keypad, making it much smaller than the already existing one with keypad. Actually as it does not need the battery casing, it is even smaller than the wireless one (see e.g. http://www.apple.com/keyboard/ ) and http://store.apple.com/de/product/MB869?mco=NDE4NDE5NQ for the new one in the German Apple store.
And you can immediately see that this is a real Apple product, as it is the same price as the one with keypad :-/
See also Apple Quietly Bumps 15" MacBook Pro Speed, 256GB SSD Option, and New Keyboard
Tuesday, March 03, 2009
Public beta of Jopr 2.2 released
This first public beta consist of a big list of changes that you can see in the respective JIRAs:
- Roadmap for RHQ 1.2 - look for closed issues
- Roadmap for Jopr 2.2 - look for closed issues
As I have written earlier, there is a page available that shows an overview of the UI features - but of course it is better to try them yourself.
Please provide feedback
We have two jira systems as development effort is split between the foundation RHQ Project and the Jopr Project that is specific to JBoss technology management.
Or post a message in the Jopr user forum.
You can grab this public beta from the SourceForge download page.
Install documentation is available in the JBoss.org wiki.
Note, that there is no longer a separate agent download. The agent is delivered with the server package and you can install it as I have described here.
Are you in Karlsruhe and want to know about Jopr, RHQ and JBossON ?
The talk will be in the CS building of University of Karlsruhe
Uni Karlsruhe, ATIS,
Am Fasanengarten 5, Geb. 50.34,
76131 Karlsruhe
(view address in Google Maps)
Multimediahörsal im UG (102)
See also https://www.xing.com/events/313859
Sunday, March 01, 2009
Jopr 2.2 UI preview
My colleague Mazz has made a UI preview page of the upcoming Jopr 2.2 (and thus RHQ 1.2) release. You can view it at https://www.jboss.org/community/docs/DOC-13381 .
Of course you can always build Jopr 2.2 from svn and have a look at things yourself.
We have incorporated a lot of changes in the UI:
- Navigation tree on the left
- Subsystems view
- Summary view per resource
- More streamlined UI
- New Problem Resource / OOB view
As Jopr 2.2 is not yet released, this is all still work in progress and subject to changes.
Please give us feedback - e.g. via Jira or mail to jopr-dev @ lists.jboss.org. Or meet us in #jopr at irc.freenode.net
Thursday, February 26, 2009
Hibernate: QueryException: could not instantiate: (updated)
I was doing some queries today in EJB-QL on JBossAS (which uses Hibernate as persistence provider).
And for a query that was nicely working in the Jopr Gui, I got errors in the test suite:
javax.ejb.EJBTransactionRolledbackException: java.lang.IllegalArgumentException: org.hibernate.QueryException: could not instantiate: com.acme.Foo
at ...... ( a lot ) ....
Caused by: java.lang.IllegalArgumentException: org.hibernate.QueryException: could not instantiate: com.acme.Foo
Ok nice - Hibernate can not instantiate my class because it can not instantiate my class. So what?
After looking some time at this and debugging around I found out that the issue was the following. But before I show you the code, let me assure that IntelliJ flagged it as valid and it did work in the UI.
But now the code:
SELECT new com.acme.FOO(res.name, res.id, ... , parent.name, parent.id)
FROM Resource res
LEFT OUTER JOIN res.parentResource parent
...
WHERE ...
The constructor of com.acme.Foo looked like this:
Foo(String res.name, int res.id, ... , String parentName, int parentId) {}
This is all valid,
but:
It can happen for Resources at the root of the hierarchy to not have a parent (when they are roots). And in this case, parent is null and Hibernate is looking for a constructor to pass NULL in as last argument, which does not fit for 'int'. Thus the failure to instantiate the class.
The correct constrctor looks like this:
Foo(String res.name, int res.id, ... , String parentName, Integer parentId) {}
(of course you need to update the respective property within Foo too).
Conclusion:
Just to get it straight: Hibernate is doing the right thing - it's only not easy to find out what is going wrong.
Tuesday, February 24, 2009
Cups error on Leopard: "Missing filter"
Today I was trying to print some files over the printer attached to my mac mini. All I got were pages with errors
I thought first the word processor is sending crap, but after some investigation I found out that the issue is that the generic postscript printer driver is used and not the Laserjet one. Ok, went to preferences and changed the printer to use the Laserjet driver. But still no avail - now the printer even showed up as "not ready" :-(
ERROR: undefined
OFFENDING COMMAND: csq
Looking at /var/log/cups/error_log showed the following:
E [24/Feb/2009:11:02:59 +0100] Unable to execute /Library/Printers/hp/filter/hpPostProcessing.bundle/Contents/MacOS/hpPostProcessing: Operation not permitted
E [24/Feb/2009:11:02:59 +0100] [Job 50] Unable to start filter "/Library/Printers/hp/filter/hpPostProcessing.bundle/Contents/MacOS/hpPostProcessing" - Operation not permitted.
Looking at the two files showed that the x-Bit was missing from them. chmod +x solved this and now the printer is up and running nicely :-)
Thursday, February 19, 2009
Postgres/Hibernate sql fun - NOT
This probably isn't really a postgres, but a more general issue, but then ...
I was writing some stuff in EJB-QL and all I got from Postgres was
ERROR: could not identify an ordering operator for type record
SQLState:42883
This sucks of course :)
After some trial and error I found the following in my query:
group by resource4_.NAME , ... , (measuremen1_.TIME, measuremen1_.ID)
Removing the parens ('(',')') finally made the query run successfully.
Now you may ask, what was the input that led to this? Well, here is is:
SELECT new Foo(a.id, b.id, ..., bla.id, bla.time)
FROM .... , org.acme.Bla bla
GROUP by a.id, b.id, bla
So the query translated the bla in the GROUP BY to (bla,id, bla.time) - including the parens. Explicitly listing bla.id, bla.time in the GROUP BY clause solved this.
This is no fun, as the EJB-QL Query got correctly translated and postgres does not give any hint, what part of this longish SQL it does not like.
MacDeveloper
Are you interested in testing Mac software? You can do so at MacDeveloper.net. I met this site when reporting issues with Trailrunner and the TR autor pointed me to this site, where he has just opened an account.
Meanwhile MD is getting traction and new projects are popping up every week.
And - your time is honored: when you find an issue that is accepted by the developer, you will get points for this. If you have enough points, you will get a rebate on the license or even a license for free -- this depends on the developers and each individual project.
Tuesday, February 03, 2009
Upcoming speaking engagements in March '09
- JUG Karlsruhe: 11th March
- Rhein-JUG, Düsseldorf: 19th March 18:30h - click here for details
Both talks are special to me: As I studied in Karlsruhe, I will be talking in the same lecture auditorium in which I used to sit and listen to Professors talks some years ago. The user group in Düsseldorf will record the session and make it available on the web later on.
I am looking forward meeting as many as possible of you.
Monday, February 02, 2009
New OOB subsystem in RHQ
Here we have measurement values denoted by the green and red vertical bars (actually those are aggregates over several values as e.g. seen in the 1h tables). In addition to the values we have a band of 'good' or 'allowed' values (e.g. the typical variation of disk space used).
The measurement values marked in red have outliers outside of the band and thus trigger OOB conditions.
In previous RHQ versions, we were computing the OOB violations against the live data coming into the system, which was expensive on large scale systems. And if you had a violation every minute, the counter was showing you 3600 violations a day - but it did not tell you if those were severe conditions or just tiny little ones.
For the upcoming version of RHQ (or in svn HEAD) we revamped the system in a way that it calculates the OOB conditions from the hourly data table, that already has an aggregation of data from the last hour. Instead of recording the count of OOBs, we are now computing a factor. This is just a number that tells you how severe the violations are. A higher number means more severe. This could come from a one time big violation or from many smaller ones.
The new subsystem view will show you a table about the known OOB violators sorted by severity. You can then go to the individual metrics big charts and if you want also manually set a larger band. Resetting the band will automatically clean out the now obsolete OOBs, as will the automatic recalculation of baselines.
If you want to know more, have a look at the design page and the documentation jira entry.
Tuesday, January 13, 2009
Small review of my yesterdays talk at JBUG Munich (updated with pictures)
Munich is not that far from Stuttgart, but the train connection is still slow because part of the tracks are built over 100 years ago, so that the fast train can nevertheless only run 60km/h in some places.
When I arrived in Munich I first met with Heiko Braun from the jBPM team to have lunch together and to talk about Jopr and RHQ and to give him a hands on introduction.
We also took a photo for all of you that don't believe that we are not the same person:
Heiko (left) and Heiko (right)
Afterwards I worked from his office for some time and then went to the meeting venue (the linked page offers a link to the slides).
Attendance was around 15 people of which there were 4 people from Red Hat Munich. It was nice to meet them too and I think they were happy to get information about RHQ, Jopr and JBoss ON directly from the source.
My talk went on for 1,5 hours - I was showing some slides and also the live system, as well as introduced into plugin-writing (again, slides with all the links etc. should be available soon from the JBug web site).
After talk we had some Q&A and then went into the other room to conclude the meeting with Pizza.
My train back left in Munich on time and I arrived back in Stuttgart at 1:20am this morning. There is no more tram going at that time, so I decided to take a Taxi. Unfortunately I did not have enough cash with me, so I asked about credit card acceptance. "Yes, no problem". But as the driver heard that I don't want to travel a big distance, he indicated me to leave his taxi again "I don't accept credit cards for such a small distance". So I had a 25mins walk from the train station to my home (Germany is no Service Oriented Country).
Here are some impressions from the event:
Serge and I
Part of the audience
Me talking
Socializing after the talk
Sunday, January 11, 2009
Tremendous speedup for NSMetadataQuery
I have already restricted the searchScope to the directory with the notes in them.
Today I was experimenting with Spotlight again (is there really good documentation for it out there?).
When I add the type of the data I am expecting (plain text), the search gets real quick - exactly as expected. So the code now looks like this:
// Predicate expression for the search string
NSString *predicateFormat = @"kMDItemTextContent like[cd] %@";
// Predicate expression for
NSString *textType = @"kMDItemContentType == 'public.plain-text'";
// If there is something to search for ..
if (_searchKey != nil )
{
// Create the predicate for the key
NSPredicate *p = [NSPredicate predicateWithFormat:predicateFormat,
[_searchKey stringByAppendingString:@"*"]];
// And one for the type
NSPredicate * subPredicate = [NSPredicate predicateWithFormat:
textType];
// Combine the two
p = [NSCompoundPredicate andPredicateWithSubpredicates:
[NSArray arrayWithObjects:p, subPredicate, nil]];
// And set on the query
[_query setPredicate:p];
This simple addition of kMDItemContentType == 'public.plain-text' provides the speedup.
It is unfortunately not clear to me why, as I don't have any other files of other types in the searchScope.
Next thing for me to investigate is not why this spinning thingy (they are called async arrows :) does not stop spinning when spotlight does no longer return results. Perhaps I need to programatically set this and can't rely on the cocoa bindings here - does anyone know?
JBug-Munich talk 12.1.09
I'll talk about Jopr,RHQ and JBoss ON at the JBoss User Group Munich on Jan 12th. The talk wil start at 7pm.
Check out www.jbug-munich.org for more info.
Friday, January 09, 2009
Warranty, repairs, downtime etc.
The internal hard disk of the mini seems to have died and the raid behaved strangely too. Ok, I got myself a new internal hard disk for the mini and restored it from a Time Machine backup. No really big deal (wasn't too easy, as the installer does not want to directly install from the backup when the data on the backup is more than the internal HD size and it does not let you ignore parts of the data).
But then I had to find out that (very probably) the power supply (one of those external bricks) is broken. When I put a volt meter on the 12V line, I see the voltage dropping to < 11V when the drives want to start, so the drives don't spin up.
I had bought the Taurus enclosure at a local dealer and went there last monday. They were not able to do anything about it, but to sent it to their central office. Today I was calling them about the status and the lady on the phone told me that the box was sent to the central office on wednesday (Tue was a bank holiday here in Stuttgart) and that they did not yet have it in the systems in the central office. She told me that they will probably take it into the system today and starting on it on monday.
If I extrapolate this, I will hopefully the box back monday in a week resulting in 2 weeks of downtime just from the dealer service side.
This is extremely annoying.
When I think back - if I did not go to the local dealer "competent, service, ..." but would have ordered somewhere on the internet, I would probably have saved money when buying and wouldn't have a longer downtime now.
How are your experiences? How do you handle this? I am a prosumer here - this is no way to order a 1 day pickup-return service. Also I can't really afford a several k€ raid array. Actually that raid is just an example of the underlying issue: buying from a local dealer in the hope of getting service - or buying just at the lowest cost (and possibly throwing the stuff away to buy new one).
Monday, December 22, 2008
Zwitscher: JavaME client for Twitter
Over the weekend I have published a very first version, that is already able to post tweets and to get the friends timeline. So far it is still at a very basic level.
And I have only tested it on my SonyEriccson K610i phone.
If you are interested, you can download the current version from http://bsd.de/zwitscher/. Please provide feedback.
Friday, December 19, 2008
Plugin generator for Jopr/JBossON/RHQ updated
As I wrote previously, I have written a plugin generator for Jopr, JBoss ON and RHQ, which is hosted in the RHQ source tree.
This generator asks a few questions on the command line and creates the necessary directory structure and artifacts depending on the answers.
Since the last posting, I have updated the generator a lot, so that it
is now also able to generate embedded child servers/services and also supports most of the entries in the plugin descriptor.
I have added a dedicated page for the plugin generator in the RHQ wiki.
The old 1.0 version of the binary from the previous post has been removed.
Please provide feedback and report bugs to me.
Btw: If you are new to writing a RHQ plugin, you might want to first check out the "How-To"-Whitepaper.