JBoss Iron Jacamar

Tha’ts what I call a professional Java enterprise company – you go to  http://www.jboss.org/ironjacamar to see what that is and …  a stacktrace:

net.sf.ehcache.constructs.blocking.LockTimeoutException: Lock timeout. Waited more than 10000ms to acquire lock for key DefaultCacheKey{uri='/ironjacamar', serverName='www.jboss.org', locale='en', params={}} on blocking cache default
	net.sf.ehcache.constructs.blocking.BlockingCache.get(BlockingCache.java:532)
	info.magnolia.module.cache.ehcache.EhCacheWrapper.get(EhCacheWrapper.java:74)
	info.magnolia.module.cache.cachepolicy.Default.shouldCache(Default.java:96)
	info.magnolia.module.cache.filter.CacheFilter.doFilter(CacheFilter.java:127)
	info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:60)
	info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
	info.magnolia.cms.i18n.I18nContentSupportFilter.doFilter(I18nContentSupportFilter.java:75)
	info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:88)
	info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
	info.magnolia.module.cache.filter.GZipFilter.doFilter(GZipFilter.java:73)
	info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:60)
	info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
	info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:84)
	info.magnolia.cms.security.BaseSecurityFilter.doFilter(BaseSecurityFilter.java:64)
	info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:88)
	info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
	info.magnolia.cms.security.LogoutFilter.doFilter(LogoutFilter.java:88)
	info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:60)
	info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
	info.magnolia.cms.security.auth.login.LoginFilter.doFilter(LoginFilter.java:77)
	info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:88)
	info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
	info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:84)
	info.magnolia.cms.filters.CosMultipartRequestFilter.doFilter(CosMultipartRequestFilter.java:86)
	info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter.doFilter(OncePerRequestAbstractMgnlFilter.java:60)
	info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
	info.magnolia.cms.filters.ContentTypeFilter.doFilter(ContentTypeFilter.java:102)
	info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:88)
	info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
	info.magnolia.cms.filters.ContextFilter.doFilter(ContextFilter.java:120)
	info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:88)
	info.magnolia.cms.filters.MgnlFilterChain.doFilter(MgnlFilterChain.java:82)
	info.magnolia.cms.filters.CompositeFilter.doFilter(CompositeFilter.java:66)
	info.magnolia.cms.filters.AbstractMgnlFilter.doFilter(AbstractMgnlFilter.java:88)
	info.magnolia.cms.filters.MgnlMainFilter.doFilter(MgnlMainFilter.java:105)
	info.magnolia.cms.filters.MgnlMainFilter.doFilter(MgnlMainFilter.java:216)
	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

The Wonderful World of Microsoft (1)

This time: Why the Internet Explorer supports only 251 (with extension) character filenames?

Recently our test guy of the QA department of our company was testing our newest web application. We have a simple HTML form file upload included in this app. The test case said that we check for file names with a maximum of 255 characters. The app is used with IE6 (yes it’s still out there), so we still have to test it there.

We got a ticket with: “Cannot upload file with more than 222 chars” from our QA. We checked the problem and found out that this seems to be a problem only in IE (6 and 7) not in Firefox. Funny. We also found out that NTFS supports only path length of 255 (not filename length). That means file can only have 255 chars in the root of the filesystem.

With this in mind we tested again – this time with files in the root of the file system – there they could be 255 chars.  Again the problem was in IE – Firefox could upload files with 255 char filenames. We checked the Web for this without really finding anything.

Then I found out that the only problem in IE is the file picker – in the filename field you can enter 255 chars. You cannot select a file with more than 251 chars in the file system root.

Then our QA guy found the root of the problem: Microsoft Office does not support filename over a certain length (depends on version). You cannot open or save files with MsOffice 2000 with a filename longer than 251 chars (see also Microsoft Office Applications File Name Length Limitation). There is the reason.

Now you can ask yourself: “Does IE use the Office file picker or did the IE guys restrict filenames because of office? We’ll never know.

Songbird

Today, I found a really coooool music player (forget this ever hated Winamp and iTunes). Songbird is it’s name and it’s based on the Mozilla engine! 🙂

It has some really nice features:

  • Included Mozilla-based browser
  • Rrecognises audio files in pages and makes them playable directly in the player – you can also drag and drop them to your media library
  • Neat renaming of a bunch of files
  • All the usual iTunes features
  • Searches for audio files in blogs and other sites (podcasts, etc.)
  • Integrated video player

Here’s a screenshot