jruby unicode extension e, f example

a = [0, 124, 0, 65, -40, 52, -35, 30, 57, 103, -40, 67, -36, -14, -40, 107, -34, 97, -40, 109, -33, -46, -40, 110, -36, -64, -40, 116, -35, 103, 0, 66, 0, 124].to_java :byte

puts a

b = java.lang.String.new(a, “UTF-16”)

puts b

require ‘fileutils’

FileUtils.touch(b)

 

I converted these from some java UTF-16 examples I had, and it actually worked, woot! 🙂

slf4j woe

Caused by: java.lang.NullPointerException

        at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:310)

        at org.apache.log4j.DailyRollingFileAppender.subAppend(DailyRollingFileAppender.java:369)

        at org.apache.log4j.WriterAppender.append(WriterAppender.java:162)

        at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)

        at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)

        at org.apache.log4j.Category.callAppenders(Category.java:206)

        at org.apache.log4j.Category.forcedLog(Category.java:391)

        at org.apache.log4j.Category.warn(Category.java:1043)

at …

        at java.io.PrintStream.println(PrintStream.java:806)

        at org.slf4j.impl.SimpleLogger.write(SimpleLogger.java:381)

        at org.slf4j.impl.SimpleLogger.log(SimpleLogger.java:376)

        at org.slf4j.impl.SimpleLogger.info(SimpleLogger.java:538)

        at org.apache.commons.logging.impl.SLF4JLog.info(SLF4JLog.java:152)

 

this meant “your log directory has the wrong permissions”.

librtmfp woes

sources/Base/Timezone.cpp: In constructor ‘Base::Timezone::Timezone()‘:

sources/Base/Timezone.cpp:497:31: error: cannot bind non-const lvalue reference of type ‘std::_Rb_tree_const_iterator<std::pair<const std::__cxx11::basic_string<char>, const char*> >&‘ to an rvalue of type ‘std::map<std::__cxx11::basic_string<char>, const char*>::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const std::__cxx11::basic_string<char>, const char*> >}

   auto& it = WindowToTZID.find(_name);

              ~~~~~~~~~~~~~~~~~^~~~~~~

 

 

I think meant declare it like

const auto& it = &_sockets.find(

add const…

jersey woe

Java::JavaLang::NoSuchMethodError: com.sun.jersey.client.apache.ApacheHttpClient.inject(Ljava/lang/Object;)V

 

I think meant “don’t mix your jersey jar versions” ( as always) in my case it was “don’t import into jruby jars from two different webapps that are out of sync jersey version wise LOL”)

Roger's meanderings, notes to himself, bug reports, and other things