java.lang.SecurityException null error

Help
2011-08-08
2012-12-10
  • John Roberts
    John Roberts
    2011-08-08

    I installed anyremote from the anyremote PPA. I was able to istall the java client successfully on the phone and it was able to detect my computer. However when I try to connect to the computer I get the following error

    openConnection Exception java.lang.SecurityException null

    Below is the information regarding my computer system and log file. Can anybody inform me what I am doing wrong?

    Thanks,
    JR

    OS - Ubuntu Lucid Lynx 10.04.3 LTS
    Phone - Sony Ericsson w810i
    anyRemote v5.4.1
    anyRemote command - anyremote -s bluetooth:19 -f /usr/share/anyremote/cfg-data/Server-mode/all-in-one2.cfg -log
    Error - openConnection Exception java.lang.SecurityException null

    anyRemote log -

    CFG - Sun Aug  7 20:56:08 2011
    CFG - anyRemote v5.4.1
    CFG - [Mode] _ALL_IN_ONE_
    CFG -   * * = Set(text,replace,Help,Press 1, then\n choose application to manage<|>);
    CFG -   1 = Macro(SHOWSW<|>);
    CFG -   0 = Exit<|>;
    CFG -   Select($$) = Make(flush<|>);\
    CFG -       Set(title,<|>);\
    CFG -       Set(status,<|>);\
    CFG -       Include($(CfgDir)/Server-mode/$(Param).cfg<|>);\
    CFG -       Include($(CfgDir)/Server-mode/all-in-one2.cfg<|>);\
    CFG -       Macro(ALLIN1MENU<|>);
    CFG -   Back($$) = Set(list,close<|>);\
    CFG -       Set(title,all-in-one<|>);\
    CFG -       Set(status,<|>);
    CFG -   Back = Set(text,close<|>);
    CFG -   Cancel = Exit<|>;
    CFG -   REGEN_FILE = Set(text,replace,Wait,Wait ...<|>);\
    CFG -       Macro(GEN_FILE<|>);
    CFG -   Regenerate = Macro(REGEN_FILE<|>);
    CFG -   Regenerate($$) = Macro(REGEN_FILE<|>);
    CFG -   LOAD_FILE = Set(text,replace,Wait,Wait ...<|>);\
    CFG -       Include($(home)/.anyRemote/AllInOneTmp.cfg<|>);\
    CFG -       Macro(FILL_LIST<|>);
    CFG -   GEN_FILE = ExecAndSet(text,replace,Wait<|>,$(CfgDir)/Utils/all-in-1.py $(CfgDir);echo "Wait ....");\
    CFG -       Include($(home)/.anyRemote/AllInOneTmp.cfg<|>);\
    CFG -       Macro(UPLOAD0<|>);
    CFG -   GEN_FILE_IF = Exec(<|>rm -f /tmp/AllInOneUpload.start;echo 'S="GEN_FILE";if [ -f $HOME/.anyRemote/AllInOneTmp.cfg ]; then S="LOAD_FILE"; fi; echo "Macro($S)" > /tmp/AllInOneUpload.start;'|bash -f -s);\
    CFG -       ExecAndSet(text,replace,Wait<|>,sleep 1;echo "Wait ...");\
    CFG -       Load(/tmp/AllInOneUpload.start<|>);
    CFG -   SHOWSW = Macro(GEN_FILE_IF<|>);
    CFG -   ALL_IN_ONE_SETUP = Set(icons,All-in-one,1,plus,2,default,3,default,4,default,5,default,6,default,7,default,8,default,9,default,*,question,0,no,#,default<|>);\
    CFG -       Set(list,font,medium<|>);
    CFG -   (EnterMode) = Make(var,home<|>,echo $HOME);\
    CFG -       Macro(ALL_IN_ONE_SETUP<|>);\
    CFG -       Macro(SHOWSW<|>);
    CFG - [ModeEnd] _ALL_IN_ONE_
    CFG - [Mode] default
    CFG -   POWER = Macro(#<|>);
    CFG -   TEXT = Macro(*<|>);
    CFG -   All-in-1 = Make(mode<|>,_ALL_IN_ONE_);
    CFG -   ALLIN1MENU = Set(menu,add,All-in-1<|>);
    CFG -   (Connect) = Set(parameter,debug,on<|>);\
    CFG -       Make(mode<|>,_ALL_IN_ONE_);
    CFG -   (Init) = Include($(CfgDir)/Utils/aliases-server.cfg<|>);\
    CFG -       Make(var,from_utf<|>,by_value,);\
    CFG -       Make(var,to_utf<|>,by_value,);
    CFG - [ModeEnd] default
    CFG - [Variables]
    CFG -   IViewer     -> false
    CFG -   ToMainMenu  -> E
    CFG -   TwoWayComm  -> false
    CFG -   ServiceName     -> anyRemote
    CFG -   RetrySeconds    -> 60
    CFG -   Logging     -> debug
    CFG -   Device  -> bluetooth:19
    CFG -   CmerOn  -> (empty)
    CFG -   CmerOff     -> (empty)
    CFG -   CharSet     -> 8859-1
    CFG -   Baudrate    -> 19200
    CFG -   AutoRepeat  -> false
    CFG -   AutoConnect     -> false
    CFG -   MixerChannel    -> Master
    CFG -   MixerCard   -> 0
    CFG -   Dbus    -> yes
    CFG -   Bluez   -> yes
    CFG -   Xtest   -> yes
    CFG -   CfgDir  -> /usr/share/anyremote/cfg-data/Server-mode/..
    CFG -   Home    -> /home/johnroberts
    CFG - [End]
    [20:56: 8] - DBG - g_main_loop_new
    [20:56: 8] - DBG - Do not setup front-end connection
    [20:56: 8] - DBG - g_main_loop_run
    [20:56: 8] - INF - [EX]: Start executor thread
    [20:56: 8] - DBG - dbusInit
    [20:56: 8] - DBG - [DS]: start dispatcher thread
    [20:56: 8] - DBG - [DS]: wait init OK event
    [20:56: 8] - INF - [EX]: DBUS initialized
    [20:56: 8] - DBG - findItemInMode >default,(Init)<
    [20:56: 8] - INF - [EX]: Exec cmd on init
    [20:56: 8] - DBG - handleCmdByKey() >(Init)<
    [20:56: 8] - DBG - getCommand for >(Init)<
    [20:56: 8] - INF - processOneCommand >$(CfgDir)/Utils/aliases-server.cfg< >no exec params< >1<
    [20:56: 8] - DBG - substParams >$(CfgDir)/Utils/aliases-server.cfg<
    [20:56: 8] - DBG - searchVar() OK
    [20:56: 8] - DBG - Add bytes: 35
    [20:56: 8] - DBG - Allocate >70< bytes for parametrized command
    [20:56: 8] - DBG - cur cmd >$(CfgDir)/Utils/aliases-server.cfg<
    [20:56: 8] - DBG - papameterized >$(CfgDir)/Utils/aliases-server.cfg<
    [20:56: 8] - DBG - substitute: searchVar() OK
    [20:56: 8] - DBG - cmd var value >/usr/share/anyremote/cfg-data/Server-mode/..<
    [20:56: 8] - DBG - cur cmd >/Utils/aliases-server.cfg<
    [20:56: 8] - DBG - no more parameters
    [20:56: 8] - DBG - cur cmd >/usr/share/anyremote/cfg-data/Server-mode/../Utils/aliases-server.cfg<
    [20:56: 8] - DBG - final cmd >/usr/share/anyremote/cfg-data/Server-mode/../Utils/aliases-server.cfg< 44
    [20:56: 8] - INF - Command: Include
    [20:56: 8] - DBG - findMode() default = default
    CFG - Sun Aug  7 20:56:08 2011
    CFG - anyRemote v5.4.1
    CFG - [Mode] _ALL_IN_ONE_
    CFG -   * * = Set(text,replace,Help,Press 1, then\n choose application to manage<|>);
    CFG -   1 = Macro(SHOWSW<|>);
    CFG -   0 = Exit<|>;
    CFG -   Select($$) = Make(flush<|>);\
    CFG -       Set(title,<|>);\
    CFG -       Set(status,<|>);\
    CFG -       Include($(CfgDir)/Server-mode/$(Param).cfg<|>);\
    CFG -       Include($(CfgDir)/Server-mode/all-in-one2.cfg<|>);\
    CFG -       Macro(ALLIN1MENU<|>);
    CFG -   Back($$) = Set(list,close<|>);\
    CFG -       Set(title,all-in-one<|>);\
    CFG -       Set(status,<|>);
    CFG -   Back = Set(text,close<|>);
    CFG -   Cancel = Exit<|>;
    CFG -   REGEN_FILE = Set(text,replace,Wait,Wait ...<|>);\
    CFG -       Macro(GEN_FILE<|>);
    CFG -   Regenerate = Macro(REGEN_FILE<|>);
    CFG -   Regenerate($$) = Macro(REGEN_FILE<|>);
    CFG -   LOAD_FILE = Set(text,replace,Wait,Wait ...<|>);\
    CFG -       Include($(home)/.anyRemote/AllInOneTmp.cfg<|>);\
    CFG -       Macro(FILL_LIST<|>);
    CFG -   GEN_FILE = ExecAndSet(text,replace,Wait<|>,$(CfgDir)/Utils/all-in-1.py $(CfgDir);echo "Wait ....");\
    CFG -       Include($(home)/.anyRemote/AllInOneTmp.cfg<|>);\
    CFG -       Macro(UPLOAD0<|>);
    CFG -   GEN_FILE_IF = Exec(<|>rm -f /tmp/AllInOneUpload.start;echo 'S="GEN_FILE";if [ -f $HOME/.anyRemote/AllInOneTmp.cfg ]; then S="LOAD_FILE"; fi; echo "Macro($S)" > /tmp/AllInOneUpload.start;'|bash -f -s);\
    CFG -       ExecAndSet(text,replace,Wait<|>,sleep 1;echo "Wait ...");\
    CFG -       Load(/tmp/AllInOneUpload.start<|>);
    CFG -   SHOWSW = Macro(GEN_FILE_IF<|>);
    CFG -   ALL_IN_ONE_SETUP = Set(icons,All-in-one,1,plus,2,default,3,default,4,default,5,default,6,default,7,default,8,default,9,default,*,question,0,no,#,default<|>);\
    CFG -       Set(list,font,medium<|>);
    CFG -   (EnterMode) = Make(var,home<|>,echo $HOME);\
    CFG -       Macro(ALL_IN_ONE_SETUP<|>);\
    CFG -       Macro(SHOWSW<|>);
    CFG - [ModeEnd] _ALL_IN_ONE_
    CFG - [Mode] default
    CFG -   DEFAULT_VOLUME_SET = Exec(<|>$(default_mixer_set) $(default_mixer_value));
    CFG -   DEFAULT_VOLUME_GET = Make(var,default_mixer_value<|>,$(default_mixer_get));
    CFG -   DEFAULT_TOGGLE_MUTE = Exec(<|>$(default_mixer_mute));
    CFG -   DEFAULT_VOLUME_DOWN = Exec(<|>$(default_mixer_down));
    CFG -   DEFAULT_VOLUME_UP = Exec(<|>$(default_mixer_up));
    CFG -   SETUP_PACTL = Make(var,default_sink<|>,LANG=C;pactl stat|grep "Default Sink"|cut -f 2 -d ":"|tr -d ' ');\
    CFG -       Make(var,default_mixer_down<|>,by_value,$(CfgDir)/Utils/pulse-audio-ctl.sh down $(default_sink));\
    CFG -       Make(var,default_mixer_up<|>,by_value,$(CfgDir)/Utils/pulse-audio-ctl.sh up $(default_sink));\
    CFG -       Make(var,default_mixer_mute<|>,by_value,$(CfgDir)/Utils/pulse-audio-ctl.sh mute $(default_sink));\
    CFG -       Make(var,default_mixer_get<|>,by_value,$(CfgDir)/Utils/pulse-audio-ctl.sh get $(default_sink));\
    CFG -       Make(var,default_mixer_set<|>,by_value,$(CfgDir)/Utils/pulse-audio-ctl.sh set $(default_sink));
    CFG -   SETUP_AMIXER = Make(var,default_mixer_up<|>,by_value,amixer sset Master,0 5%+ -q);\
    CFG -       Make(var,default_mixer_down<|>,by_value,amixer sset Master,0 5%- -q);\
    CFG -       Make(var,default_mixer_mute<|>,by_value,amixer sset Master,0 toggle -q);\
    CFG -       Make(var,default_mixer_get<|>,by_value,amixer sget Master,0|grep '\['|head -1|cut -f 2 -d "["|cut -f 1 -d "]"|sed "s/%//");\
    CFG -       Make(var,default_mixer_set<|>,by_value,amixer -q sset Master,0);\
    CFG -       Make(stop<|>);
    CFG -   SETUP_DEFAULT_MIXER = Macro(SETUP_AMIXER<|>,pactl -h|grep set-sink-mute|wc -l);\
    CFG -       Macro(SETUP_PACTL<|>);
    CFG -   69 = no command
    CFG -   -8 = no command
    CFG -   -11 = no command
    CFG -   POWER = Macro(#<|>);
    CFG -   TEXT = Macro(*<|>);
    CFG -   All-in-1 = Make(mode<|>,_ALL_IN_ONE_);
    CFG -   ALLIN1MENU = Set(menu,add,All-in-1<|>);
    CFG -   (Connect) = Set(parameter,debug,on<|>);\
    CFG -       Make(mode<|>,_ALL_IN_ONE_);
    CFG -   (Init) = Include($(CfgDir)/Utils/aliases-server.cfg<|>);\
    CFG -       Make(var,from_utf<|>,by_value,);\
    CFG -       Make(var,to_utf<|>,by_value,);
    CFG - [ModeEnd] default
    CFG - [Variables]
    CFG -   IViewer     -> false
    CFG -   ToMainMenu  -> E
    CFG -   TwoWayComm  -> false
    CFG -   ServiceName     -> anyRemote
    CFG -   RetrySeconds    -> 60
    CFG -   Logging     -> debug
    CFG -   Device  -> bluetooth:19
    CFG -   CmerOn  -> (empty)
    CFG -   CmerOff     -> (empty)
    CFG -   CharSet     -> 8859-1
    CFG -   Baudrate    -> 19200
    CFG -   AutoRepeat  -> false
    CFG -   AutoConnect     -> false
    CFG -   MixerChannel    -> Master
    CFG -   MixerCard   -> 0
    CFG -   Dbus    -> yes
    CFG -   Bluez   -> yes
    CFG -   Xtest   -> yes
    CFG -   CfgDir  -> /usr/share/anyremote/cfg-data/Server-mode/..
    CFG -   Home    -> /home/johnroberts
    CFG - [End]
    [20:56: 8] - DBG - isNew 0 isConnected 0
    [20:56: 8] - INF - processOneCommand >var,from_utf< >by_value,< >1<
    [20:56: 8] - INF - Command: Make
    [20:56: 8] - INF - Command: Make(var,...)
    [20:56: 8] - DBG - substParams ><
    [20:56: 8] - DBG - setVar() >from_utf->NULL<
    [20:56: 8] - INF - processOneCommand >var,to_utf< >by_value,< >1<
    [20:56: 8] - INF - Command: Make
    [20:56: 8] - INF - Command: Make(var,...)
    [20:56: 8] - DBG - substParams ><
    [20:56: 8] - DBG - setVar() >to_utf->NULL<
    [20:56: 8] - DBG - handleHook() >1<
    [20:56: 8] - DBG - loadCmds
    [20:56: 8] - INF - [EX]: init hooks done
    [20:56: 8] - INF - [EX]: Send init OK event to dispatcher
    [20:56: 8] - DBG - send to dispatcher 98
    [20:56: 8] - DBG - [DS]: Got event
    [20:56: 8] - INF - [DS]: Got init OK event
    [20:56: 8] - DBG - [DS]: ************ outer loop **********
    [20:56: 8] - INF - [DS]: openPort()
    [20:56: 8] - DBG - [DS]: Bluetooth Sockets Server mode. Use channel 19
    [20:56: 8] - INF - registered SP for channel 19
    [20:56: 8] - DBG - [DS]: Device open OK
    [20:56: 8] - DBG - [DS]: initPort
    [20:56: 8] - INF - [DS]: Server mode: Waiting connection
    [20:56: 8] - INF - listenAndAcceptSocketConn
    [20:56: 8] - INF - listenAndAcceptSocketConn: accept
    
     
  • John Roberts
    John Roberts
    2011-08-08

    I missed adding this above but the configuration file I am using is

    /usr/share/anyremote/cfg-data/Server-mode/all-in-one2.cfg