Main Page - Log in -

Blog 2009

From Noah.org

Jump to: navigation, search


The RSS feed for this page is here: RSS

<startFeed />

Typical Java

This is another reason I hate Java. Here is a typical runtime error exception. The only salient bit of information in this output is "java.lang.IllegalStateException: not started". I understand that a full stack trace is helpful to a developer, but it hardly helps the user to dump all this crap on them.

# java -classpath /usr/local/jboss/bin/shutdown.jar:/usr/local/jboss/client/jnet.jar org.jboss.Shutdown --shutdown -s 172.10.10.3
Exception in thread "main" javax.management.RuntimeMBeanException
        at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:180)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:165)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:270)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
        at org.jboss.jmx.connector.invoker.SerializableInterceptor.invoke(SerializableInterceptor.java:74)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
        at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
        at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:855)
        at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:422)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
        at sun.rmi.transport.Transport$1.run(Transport.java:159)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalStateException: not started
        at org.jboss.bootstrap.AbstractServerImpl.shutdown(AbstractServerImpl.java:543)
        at org.jboss.system.server.jmx.JMXKernel.shutdown(JMXKernel.java:367)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
        ... 48 more

--root 06:04, 25 February 2009 (PST)

F-Spot settings

I mistrust any application that does not store its settings in an easy to edit ~/.rc file. I give a begrudging pass to using SQLite. F-Spot Photo Manager stores its settings in this directory:

~/.gnome2/f-spot/

F-Spot is kind of annoying. I helped a friend organize her pictures so I imported everything into F-Spot. After we were done I couldn't get rid of her pictures. Conceptually, what I wanted was to start a new project; I wanted to open a new folder for my pictures; I wanted to keep my photos distinct and separate from others.

--root 15:15, 19 January 2009 (PST)

Firefox 3 unsigned SSL cert handling was thought up by an asshole

Error code: sec_error_untrusted_issuer

Probably 99% of web developers out there use self-signed certs for their own work and testing. Why did Mozilla decide to make the self-signed certificate handing default so stupid? I mean, the old way was annoying enough... and the thing is, it's not like this is a problem. I've never heard of anyone getting tricked by a man-in-the-middle attack based on a self-signed cert. The process has been fine for the last 10 years or so. The new process only makes self-signed cert handling more annoying.

Now I gotta go look up the internal config settings that will lobotomize Firefox...

--root 19:53, 3 January 2009 (PST)

Happy New Year

Man, I started this year off with a hangover and a bad cold. I wouldn't even have gone out on New Year's Eve except my friends kept calling me to come out... It's the third already and I'm still coughing and filled with snot... which reminds me, I had to shovel a trash can full of leaves off my sidewalk. The City and County of San Francisco recently saw fit to adjust the street sweeping schedule in my neighborhood to twice a month instead of once a week. And they canceled this week's street sweeping because of the holidays. So we haven't had a street cleaning in over three weeks. Normally I can sweep the leaves into the street on cleaning day, but after three weeks of leaves there were too many to just sweep into the gutter. This situation was made even more annoying for two reasons -- first, I have a cold on New Year's; and second, the city recently raised all the parking fines for violations such as parking on the street during sweeping day. So they cut back the street sweeping yet raise the fines. Fuckers. I hope the amount of revenue the city looses from lost parking fines is more than the amount they save by cutting back on street sweeping.

--root 19:49, 3 January 2009 (PST)

<endFeed />



-->