ESP8266 constantly resetting, but blink script works - arduino

Hello I have been using the Wemos D1 mini lite for awhile now with this ArduCAM setup. Everything was working perfectly, but now my esp8266 is constantly resetting.
I unplugged the ArduCAM and saw I can ran the blink script successfully, but when I try to run a script where it attempts to connect to wifi, it constantly resets.
Here is my code:
#include <ESP8266WiFi.h> // Include the Wi-Fi library
const char* ssid = "ssid"; // The SSID (name) of the Wi-Fi network you want to connect to
const char* password = ""; // The password of the Wi-Fi network
void setup() {
Serial.begin(115200); // Start the Serial communication to send messages to the computer
delay(10);
Serial.println('\n');
WiFi.begin(ssid, password); // Connect to the network
Serial.print("Connecting to ");
Serial.print(ssid); Serial.println(" ...");
int i = 0;
while (WiFi.status() != WL_CONNECTED) { // Wait for the Wi-Fi to connect
delay(1000);
Serial.print(++i); Serial.print(' ');
}
Serial.println('\n');
Serial.println("Connection established!");
Serial.print("IP address:\t");
Serial.println(WiFi.localIP()); // Send the IP address of the ESP8266 to the computer
}
void loop() { }
When I run this, I get the following:
load 0x4010f000, len 1392, room 16
tail 0
chksum 0xd0
csum 0xd0
v3d128e5c
~ld
Exception (3):
epc1=0x40100710 epc2=0x00000000 epc3=0x00000000 excvaddr=0x4006e989 depc=0x00000000
>>>stack>>>
ctx: cont
sp: 3ffffb90 end: 3fffffc0 offset: 01a0
3ffffd30: feefeffe feefeffe feefeffe feefeffe
3ffffd40: feefeffe feefeffe feefeffe 3ffffef0
3ffffd50: 0000049c 0000049c 00000020 40100900
3ffffd60: feefeffe feefeffe feefeffe feefeffe
3ffffd70: 00000002 400042db 000000fd 40100b58
3ffffd80: 40004b31 00001000 000000fd 40100274
3ffffd90: 40105ae0 feefeffe feefeffe 4022da8d
3ffffda0: 40105c9d 4022db77 3ffef25c 0000049c
3ffffdb0: 000000fd 3ffffef0 3ffef25c 4022db5a
3ffffdc0: ffffff00 55aa55aa 0000000e 00000020
3ffffdd0: 00000020 00000078 00000012 aa55aa55
3ffffde0: 000000ff 4022e05a 3ffef25c 3ffef25c
3ffffdf0: 000000ff 00000119 00000119 40100640
3ffffe00: 40105c9d 00000001 3ffef26c 4022e27a
3ffffe10: 00000005 3ffef25c 000000ff 3ffffef0
3ffffe20: 3fffff10 3ffef293 0000000e 00000020
3ffffe30: 3ffef31c 3fffff51 00000001 4022e32a
3ffffe40: 3ffffef0 40239860 00000000 00000000
3ffffe50: 3ffef65c 3fffff10 3fff5594 4022e2f9
3ffffe60: 3ffef25c 4022e360 3ffe84d4 3ffe8642
3ffffe70: 40201946 3ffe8642 3ffe8663 4020189b
3ffffe80: 76696e55 69737265 6f207974 61572066
3ffffe90: 6e696873 6e6f7467 3ffffe00 40204cbc
3ffffea0: 3ffee400 00000000 3ffffe60 40204ef9
3ffffeb0: 00000f98 000001f3 000001f3 40100640
3ffffec0: 000006e8 000000dd 00000014 3ffeebc4
3ffffed0: 007a1200 44e0a632 00000000 401008cb
3ffffee0: adb5c801 fe20b34c feefeffe 00000100
3ffffef0: 76696e55 69737265 6f207974 61572066
3fffff00: 6e696873 6e6f7467 feefef00 feefeffe
3fffff10: 40203500 3ffeefcc 3ffeef4c 402035af
3fffff20: 0000001c 0001c200 00000000 00000000
3fffff30: 00000003 40203771 ffffffff 00000001
3fffff40: 40105065 00000001 3ffee35c 3ffee3d4
3fffff50: 00000000 00000001 3ffee381 00000000
3fffff60: 00000004 00000000 3ffee328 00000001
3fffff70: 0001c200 0000001c 00000000 3ffee3d4
3fffff80: 3fffdad0 3ffee328 3ffee35c 40201073
3fffff90: feefeffe feefeffe feefeffe feefeffe
3fffffa0: feefeffe 00000000 3ffee394 402024b4
3fffffb0: feefeffe feefeffe 3ffe84f0 40100b8d
<<<stack<<<
over and over and over.
I don't understand what is happening. Did I possibly short it? It couldn't have been the ArduCAM, since this was working fine already.
edit:
I found out that the Wifi.begin(ssid,password) command causes the constant reboots. When I remove this, it doesn't reboot. How can I fix this?

I think your main loop is empty. Add while(true) in the main loop function
and it´s better to set the esp in sation mode.
WiFi.mode(WIFI_STA);

Related

ESP8266 Telegram echo-bot throws exception

I am trying to run the echo bot example from https://github.com/CasaJasmina/TelegramBot-Library/tree/master/examples/EchoBot-ESP8266 on my ESP8266 NodeMCU using Arduino IDE 1.8.9
When Wifi is connected the serial monitor gives me the following exception:
13:48:10.135 -> WiFi connected
13:48:27.328 -> no new message
13:48:27.328 ->
13:48:27.328 -> Exception (3):
13:48:27.328 -> epc1=0x402077c6 epc2=0x00000000 epc3=0x00000000 excvaddr=0x4006ea81 depc=0x00000000
13:48:27.328 ->
13:48:27.328 -> >>>stack>>>
13:48:27.328 ->
13:48:27.328 -> ctx: cont
13:48:27.328 -> sp: 3ffffd50 end: 3fffffc0 offset: 01a0
13:48:27.328 -> 3ffffef0: 3ffeecac 0000ff19 0000ff19 402078c4
13:48:27.328 -> 3fffff00: 3fffdad0 00000000 3fffff64 40207cec
13:48:27.328 -> 3fffff10: 3ffe85dd 3fffff70 3ffeeba4 40205cb4
13:48:27.328 -> 3fffff20: 00000000 00000000 3ffeea78 40205cd8
13:48:27.328 -> 3fffff30: 3fffdad0 00000000 3ffeea78 40201134
13:48:27.362 -> 3fffff40: 000001bb 00000d50 3ffeeba4 3ffeec1c
13:48:27.362 -> 3fffff50: 000001bb 3ffeea84 3ffe865c 3ffeec1c
13:48:27.362 -> 3fffff60: 000001bb 3ffeea84 3ffe865c 402035bd
13:48:27.362 -> 3fffff70: 40208748 dca79a95 40208748 dca79a95
13:48:27.362 -> 3fffff80: 3fffdad0 3ffeeb50 3ffeea78 402042fc
13:48:27.362 -> 3fffff90: 3fffdad0 3ffeeb50 3ffeeba4 402010b6
13:48:27.362 -> 3fffffa0: feefeffe 00000000 3ffeebec 40206484
13:48:27.396 -> 3fffffb0: feefeffe feefeffe 3ffe8558 40100461
13:48:27.396 -> <<<stack<<<
13:48:27.396 ->
13:48:27.396 -> ets Jan 8 2013,rst cause:2, boot mode:(3,6)
13:48:27.396 ->
13:48:27.396 -> load 0x4010f000, len 1384, room 16
13:48:27.396 -> tail 8
13:48:27.396 -> chksum 0x2d
13:48:27.396 -> csum 0x2d
13:48:27.396 -> v8b899c12
13:48:27.396 -> ~ld
13:48:27.464 -> Connecting Wifi: ...
13:48:28.954 -> WiFi connected
and so on and so forth.
The bot itself seems to be working:
one can send messages within Telegram;
it is possible to send messages using the HTTP GET,
it is also possible to send messages from a browser like https://api.telegram.org/bot/sendMessage?chat_id=163202456&text=message-sent-from-browser)
What I will do next is to find out the "rst cause": https://www.espressif.com/sites/default/files/documentation/esp8266_reset_causes_and_common_fatal_exception_causes_en.pdf
Does anyone have an idea how to investigate further?

Unity3D Firebase Access Violation

I use FirebaseAuth.unitypackage and FirebaseDatabase.unitypackage packages in my project. When I want to test SignInWithCredentialAsync and SetRawJsonValueAsync operations in the editor, the editor crashes. When I checked the error.log, it says:
FirebaseCppApp-5.0.0.dll caused an Access Violation (0xc0000005)
in module FirebaseCppApp-5.0.0.dll at 0033:b7cf5c00.
Full error.log:
Unity Editor [version: Unity 5.6.3f1_d3101c3b8468]
FirebaseCppApp-5.0.0.dll caused an Access Violation (0xc0000005)
in module FirebaseCppApp-5.0.0.dll at 0033:b7cf5c00.
Error occurred at 2018-06-22_095612.
C:\Program Files\Unity_5.6.3\Editor\Unity.exe, run by Hammurabi Win01.
74% memory in use.
7923 MB physical memory [1986 MB free].
12608 MB paging file [5375 MB free].
134217728 MB user address space [134211578 MB free].
Write to location 00000028 caused an access violation.
Context:
RDI: 0x0dc44170 RSI: 0x00000003 RAX: 0x00000000
RBX: 0x0dc44178 RCX: 0xc19da2b4 RDX: 0x00000000
RIP: 0xb7cf5c00 RBP: 0x4678f409 SegCs: 0x00000033
EFlags: 0x00010206 RSP: 0x4678f270 SegSs: 0x0000002b
R8: 0x4678f208 R9: 0x4678f409 R10: 0x00000000
R11: 0x00000246 R12: 0x00000000 R13: 0x0b2267f8
R14: 0x00000000 R15: 0x00000000
Bytes at CS:EIP:
ff 40 28 48 8b 0b f6 43 08 01 74 08 ff 15 26 a7
Stack:
0x4678f270: 0dc44178 00000000 0dc44178 00000000 xA......xA......
0x4678f280: 00000000 00000000 000026ec 00000000 .........&......
0x4678f290: fffffffe ffffffff 00000000 00000000 ................
0x4678f2a0: 4678f378 00000000 b7cb6cd5 00007ff8 x.xF.....l......
0x4678f2b0: 0dc44178 00000000 0dc44218 00000000 xA.......B......
0x4678f2c0: 00000000 00000000 3aad0a60 00000000 ........`..:....
0x4678f2d0: 0dc44170 00000000 00000003 00000000 pA..............
0x4678f2e0: fffffffe ffffffff 4678f378 00000000 ........x.xF....
0x4678f2f0: 2da51300 00000000 2da515a0 00000000 ...-.......-....
0x4678f300: 00000000 00000000 0000000f 00000000 ................
0x4678f310: 5580bf25 0000e36d 2da515a0 00000000 %..Um......-....
0x4678f320: 0dc44218 00000000 4678f4e0 00000000 .B........xF....
0x4678f330: 0dc44218 00000000 b7cbb074 00007ff8 .B......t.......
0x4678f340: 00000000 002bbdb5 00000000 00000000 ......+.........
0x4678f350: 00000000 00000000 82c2bb0a 00007ff8 ................
0x4678f360: 2da51280 00000000 00000000 00000000 ...-............
0x4678f370: 00000000 00000000 0dc44170 00000000 ........pA......
0x4678f380: 00000008 00000000 00000003 00000000 ................
0x4678f390: 00000000 00000000 00000000 00000000 ................
0x4678f3a0: 2ca25b30 00000000 fffffffe ffffffff 0[.,............
0x4678f3b0: 4678f4e0 00000000 0aaf6b40 00000000 ..xF....#k......
0x4678f3c0: 00000000 00000000 2ca25b30 00000000 ........0[.,....
0x4678f3d0: 00000000 00000000 82c330c0 00007ff8 .........0......
0x4678f3e0: 00000000 00000000 00000000 00000000 ................
0x4678f3f0: 314f5690 00000000 82bb4862 00007ff8 .VO1....bH......
0x4678f400: 00000000 00000000 4678ff38 00000000 ........8.xF....
0x4678f410: 0b2267f8 00000000 00000000 00000000 .g".............
0x4678f420: 2ca25b30 00000000 0b27018f 00000000 0[.,......'.....
0x4678f430: 5580bed5 0000e36d 0aaf6b40 00000000 ...Um...#k......
0x4678f440: 4678ff38 00000000 0dc44218 00000000 8.xF.....B......
0x4678f450: 0aaf6b40 00000000 4678f4e0 00000000 #k........xF....
0x4678f460: 4678f500 00000000 b7cbaf3c 00007ff8 ..xF....<.......
0x4678f470: 82b47e48 00007ff8 82b804d9 00007ff8 H~..............
0x4678f480: 00000000 00000000 82c6aa2c 00007ff8 ........,.......
0x4678f490: 00000000 00000000 82b4749c 00007ff8 .........t......
0x4678f4a0: 4678f548 00000000 b7cae745 00007ff8 H.xF....E.......
0x4678f4b0: 00000000 00000000 4678ff38 00000000 ........8.xF....
0x4678f4c0: 0b2267f8 00000000 82c330c0 00007ff8 .g"......0......
0x4678f4d0: 00000000 00000000 fffffffe ffffffff ................
0x4678f4e0: 4678f5c0 00000000 82b80873 00007ff8 ..xF....s.......
0x4678f4f0: 31e92581 00000000 34beddb0 00000000 .%.1.......4....
0x4678f500: 4678f640 00000000 b7c8ff10 00007ff8 #.xF............
0x4678f510: 2d49a7c0 00000000 4678f548 00000000 ..I-....H.xF....
0x4678f520: 00000000 00000000 82c330c0 00007ff8 .........0......
0x4678f530: fffffffe ffffffff 00000000 00000000 ................
0x4678f540: 00000000 00000000 2ca25b30 00000000 ........0[.,....
0x4678f550: 0aaf6b40 00000000 00000000 40d24d80 #k...........M.#
0x4678f560: 2ca25b30 00000000 2da51707 00000000 0[.,.......-....
0x4678f570: 2d49a7c0 00000000 00000000 00000000 ..I-............
0x4678f580: 00000000 00000000 00000000 00000000 ................
0x4678f590: 00000000 00000000 00000000 00000000 ................
0x4678f5a0: 00000000 00000000 00000000 00000000 ................
0x4678f5b0: 2d49a7c0 00000000 00000000 00000000 ..I-............
0x4678f5c0: 0dc44218 00000000 0aaf6b40 00000000 .B......#k......
0x4678f5d0: 034e0000 00000000 31e92580 00000000 ..N......%.1....
0x4678f5e0: 34beddb0 00000000 0000000f 00000000 ...4............
0x4678f5f0: 2da5140b 00000000 2d49a7c0 00000000 ...-......I-....
0x4678f600: 4678f640 00000000 4678f570 00000000 #.xF....p.xF....
0x4678f610: 00000000 00000000 0b2267f8 00000000 .........g".....
0x4678f620: 4678ff38 00000000 00000000 00000000 8.xF............
0x4678f630: 2ca25b30 00000000 0aaf6b40 00000000 0[.,....#k......
0x4678f640: 4678f6c0 00000000 2da51313 00000000 ..xF.......-....
0x4678f650: 2ca25b30 00000000 00000000 00000000 0[.,............
0x4678f660: 00000000 00000000 0000000f 00000000 ................
0x4678f670: 314ea7e0 00000000 0dc44218 00000000 ..N1.....B......
0x4678f680: 0b2267f8 00000000 4678ff38 00000000 .g".....8.xF....
0x4678f690: 00000000 00000000 314ea7e0 00000000 ..........N1....
0x4678f6a0: 00000000 00000000 034e0000 00000000 ..........N.....
0x4678f6b0: 314ea7e0 00000000 0dc44218 00000000 ..N1.....B......
0x4678f6c0: 4678f740 00000000 2da5057a 00000000 #.xF....z..-....
0x4678f6d0: 2ca25b30 00000000 00000000 00000000 0[.,............
0x4678f6e0: 313ccbb8 00000000 348a3678 00000000 ..<1....x6.4....
0x4678f6f0: 034e0000 00000000 00000000 00000000 ..N.............
0x4678f700: 3138dfa8 00000000 3141c420 00000000 ..81.... .A1....
0x4678f710: 313f67e0 00000000 305d2850 00000000 .g?1....P(]0....
0x4678f720: 314ea7e0 00000000 034e0000 00000000 ..N1......N.....
0x4678f730: 313f67e0 00000000 313f67e0 00000000 .g?1.....g?1....
0x4678f740: 4678f7c0 00000000 2da4fd50 00000000 ..xF....P..-....
0x4678f750: 2ca25b30 00000000 00000000 00000000 0[.,............
0x4678f760: 313ccbb8 00000000 348a3678 00000000 ..<1....x6.4....
0x4678f770: 034e0000 00000000 313ccba0 00000000 ..N.......<1....
0x4678f780: 0b2267f8 00000000 4678ff38 00000000 .g".....8.xF....
0x4678f790: 313ccbb8 00000000 00000000 00000000 ..<1............
0x4678f7a0: 3138dfa8 00000000 3141c420 00000000 ..81.... .A1....
0x4678f7b0: 313ccba0 00000000 034e0000 00000000 ..<1......N.....
0x4678f7c0: 4678f820 00000000 2da4fc1c 00000000 .xF.......-....
0x4678f7d0: 2da4fa8f 00000000 00000000 00000000 ...-............
0x4678f7e0: 0b2267f8 00000000 4678ff38 00000000 .g".....8.xF....
0x4678f7f0: 00000000 00000000 3141c420 00000000 ........ .A1....
0x4678f800: 313ccbb8 00000000 00000000 00000000 ..<1............
0x4678f810: 3134ca98 00000000 034e0000 00000000 ..41......N.....
0x4678f820: 4678f890 00000000 2da4fa49 00000000 ..xF....I..-....
0x4678f830: 00000000 00000000 2a88e5d8 00000000 ...........*....
0x4678f840: 034e0000 00000000 00000000 00000000 ..N.............
0x4678f850: 3144b3e0 00000000 313ccbb8 00000000 ..D1......<1....
0x4678f860: 00000000 00000000 3134ca98 00000000 ..........41....
0x4678f870: 3144b3e0 00000000 00000000 00000000 ..D1............
0x4678f880: 3134c7c8 00000000 034e0000 00000000 ..41......N.....
0x4678f890: 4678f950 00000000 2da4f590 00000000 P.xF.......-....
0x4678f8a0: 00000000 00000000 347cf760 00000000 ........`.|4....
0x4678f8b0: 314442a0 00000000 00000001 00000000 .BD1............
0x4678f8c0: 311153c0 00000000 31423230 00000000 .S.1....02B1....
0x4678f8d0: 00000000 00000000 314f56f0 00000000 .........VO1....
0x4678f8e0: 00000000 00000000 314f56f0 00000000 .........VO1....
0x4678f8f0: 310c3060 00000000 00000001 00000000 `0.1............
0x4678f900: 00000001 00000000 314442a0 00000000 .........BD1....
0x4678f910: 3144b3e0 00000000 00000000 00000000 ..D1............
0x4678f920: 3134c7c8 00000000 314442a0 00000000 ..41.....BD1....
0x4678f930: 00000001 00000000 034e0000 00000000 ..........N.....
0x4678f940: 314f56f0 00000000 303e8620 00000000 .VO1.... .>0....
0x4678f950: 4678f990 00000000 2da4f299 00000000 ..xF.......-....
0x4678f960: 00000000 00000000 00000000 00000000 ................
0x4678f970: 2da4f220 00000000 ffffffff ffffffff ..-............
0x4678f980: 31444280 00000000 034e0000 00000000 .BD1......N.....
0x4678f990: 4678fa20 00000000 2da4ed7f 00000000 .xF.......-....
0x4678f9a0: 4678fad0 00000000 0aaf6b40 00000000 ..xF....#k......
0x4678f9b0: 2da4ecd6 00000000 00000000 00000000 ...-............
0x4678f9c0: 305d4500 00000000 305d4500 00000000 .E]0.....E]0....
0x4678f9d0: 305d4500 00000000 00000000 00000000 .E]0............
0x4678f9e0: 034e0000 00000000 4678ff38 00000000 ..N.....8.xF....
0x4678f9f0: 00000000 00000000 4678f9b0 00000000 ..........xF....
0x4678fa00: 2da4ebf0 00000000 fffffffe ffffffff ...-............
0x4678fa10: 0b950000 00000000 2da4ebf0 00000000 ...........-....
0x4678fa20: 4678fad0 00000000 2da341ad 00000000 ..xF.....A.-....
0x4678fa30: 30cbca10 00000000 00000000 00000000 ...0............
0x4678fa40: 2da3410b 00000000 4678f840 00000000 .A.-....#.xF....
0x4678fa50: 4678fb10 00000000 305d4820 00000000 ..xF.... H]0....
0x4678fa60: 305d4500 00000000 31444940 00000000 .E]0....#ID1....
0x4678fa70: 034e0000 00000000 2a88e5d8 00000000 ..N........*....
0x4678fa80: 034e0000 00000000 305d4820 00000000 ..N..... H]0....
0x4678fa90: 0b2267f8 00000000 4678ff38 00000000 .g".....8.xF....
0x4678faa0: 00000000 00000000 4678fa40 00000000 ........#.xF....
0x4678fab0: 0b271d10 00000000 349f4be8 00000000 ..'......K.4....
0x4678fac0: 0ab490e6 00000000 0b271d10 00000000 ..........'.....
0x4678fad0: 4678fb10 00000000 2da33afd 00000000 ..xF.....:.-....
0x4678fae0: 00000000 00000000 00000000 00000000 ................
0x4678faf0: 2da33ab0 00000000 ffffffff ffffffff .:.-............
0x4678fb00: 3138dc30 00000000 034e0000 00000000 0.81......N.....
0x4678fb10: 4678fba0 00000000 2da33796 00000000 ..xF.....7.-....
0x4678fb20: 4678fc30 00000000 0aaf6b40 00000000 0.xF....#k......
0x4678fb30: 2ca25b30 00000000 00000000 00000000 0[.,............
0x4678fb40: 31444500 00000000 00000000 00000000 .ED1............
0x4678fb50: 00000000 00000000 034e0000 00000000 ..........N.....
0x4678fb60: 0b2267f8 00000000 4678ff38 00000000 .g".....8.xF....
0x4678fb70: 00000000 00000000 00000000 00000000 ................
0x4678fb80: 2da33730 00000000 ffffffff ffffffff 07.-............
0x4678fb90: 0b95000e 00000000 2da33730 00000000 ........07.-....
0x4678fba0: 4678fc30 00000000 2da3337c 00000000 0.xF....|3.-....
0x4678fbb0: 4678fcc0 00000000 0aaf6b40 00000000 ..xF....#k......
0x4678fbc0: 2ca25b30 00000000 00000000 00000000 0[.,............
0x4678fbd0: 314f3b10 00000000 314f3b10 00000000 .;O1.....;O1....
0x4678fbe0: 00000000 00000000 034e0000 00000000 ..........N.....
0x4678fbf0: 0b2267f8 00000000 4678ff38 00000000 .g".....8.xF....
0x4678fc00: 00000000 00000000 00000000 00000000 ................
0x4678fc10: 0b271d10 00000000 2b1e0058 00000000 ..'.....X..+....
0x4678fc20: 2baf59fd 00000000 0b271d10 00000000 .Y.+......'.....
0x4678fc30: 4678fcc0 00000000 0aaf6c42 00000000 ..xF....Bl......
0x4678fc40: 00000020 00000000 00000000 00007ff8 ...............
0x4678fc50: 00000000 00000000 82b1232d 00007ff8 ........-#......
0x4678fc60: 2baf59fd 00000000 00000000 00000000 .Y.+............
0x4678fc70: 4678ff38 00000000 30cbc850 00000000 8.xF....P..0....
0x4678fc80: 00000000 00000000 00000000 00000000 ................
0x4678fc90: 034e0000 00000000 82b1228b 00007ff8 ..N......"......
0x4678fca0: 2ca25b30 00000000 2ca25b30 00000000 0[.,....0[.,....
0x4678fcb0: 0aaf6b40 00000000 4678fd00 00000000 #k........xF....
0x4678fcc0: 4678fd00 00000000 82c35827 00007ff8 ..xF....'X......
0x4678fcd0: 2ca25b30 00000000 00000001 00000000 0[.,............
0x4678fce0: 2d49a7c0 00000000 2ca25b30 00000000 ..I-....0[.,....
0x4678fcf0: 00000000 00000000 c195265b 00007ff8 ........[&......
0x4678fd00: 0b2267f8 00000000 00000001 00000000 .g".............
0x4678fd10: 00000018 00000000 2d49a7c0 00000000 ..........I-....
0x4678fd20: 299d4600 00000000 30cbc850 00000000 .F.)....P..0....
0x4678fd30: 00000000 00000000 4678ff38 00000000 ........8.xF....
0x4678fd40: 00000000 00000000 00000000 00000000 ................
0x4678fd50: 00000001 00000000 2a362d00 00000000 .........-6*....
0x4678fd60: 00000018 00000000 00000000 00000000 ................
0x4678fd70: 30cbc850 00000000 82c8a045 00007ff8 P..0....E.......
0x4678fd80: 4678fdf0 00000000 4678fdf0 00000000 ..xF......xF....
0x4678fd90: 00000000 00000000 001f0000 00000000 ................
0x4678fda0: 00000000 00000000 82c7787d 00007ff8 ........}x......
0x4678fdb0: 00000000 00000000 2a362d00 00000000 .........-6*....
0x4678fdc0: 00000018 00000000 4678ff38 00000000 ........8.xF....
0x4678fdd0: 00000000 00000000 82b1759c 00007ff8 .........u......
0x4678fde0: 4678fe50 00000000 4678fe50 00000000 P.xF....P.xF....
0x4678fdf0: 00000000 00000000 82b30000 00007ff8 ................
0x4678fe00: 4678fe60 00000000 82b14c69 00007ff8 `.xF....iL......
0x4678fe10: 2af644b0 00000000 4678ff38 00000000 .D.*....8.xF....
0x4678fe20: 4678ff38 00000000 4678fe60 00000000 8.xF....`.xF....
0x4678fe30: 2ca25b30 00000000 82b58059 00007ff8 0[.,....Y.......
0x4678fe40: 1656f65c 00000911 4678ff38 00000000 \.V.....8.xF....
0x4678fe50: 00000000 00000000 00000000 00000000 ................
0x4678fe60: 00000000 00000000 00000001 00000000 ................
0x4678fe70: 2a362d00 00000000 00000000 00000000 .-6*............
0x4678fe80: 4678ff38 00000000 2ca25b30 00000000 8.xF....0[.,....
0x4678fe90: 30cbc850 00000000 82b88439 00007ff8 P..0....9.......
0x4678fea0: 2ca25b30 00000000 00000000 00000000 0[.,............
0x4678feb0: 30cbc850 00000000 2a362d00 00000000 P..0.....-6*....
0x4678fec0: 00000000 00000000 82bb37cb 00007ff8 .........7......
0x4678fed0: 303fde60 00000000 00000000 00000000 `.?0............
0x4678fee0: 30cbc850 00000000 00000000 00000000 P..0............
0x4678fef0: 00000000 00000000 00000000 00000000 ................
0x4678ff00: 00000000 00000000 00000000 00000000 ................
0x4678ff10: 00000000 00000000 00000000 00000000 ................
0x4678ff20: 00000000 00000000 82c6841d 00007ff8 ................
0x4678ff30: 0000640c 00000000 00000000 00000000 .d..............
0x4678ff40: 0b23bed0 00000000 00000000 00000000 ..#.............
0x4678ff50: 00000000 00000000 bf503034 00007ff8 ........40P.....
0x4678ff60: 0b23bed0 00000000 00000000 00000000 ..#.............
0x4678ff70: 00000000 00000000 00000000 00000000 ................
0x4678ff80: 00000000 00000000 c19b1431 00007ff8 ........1.......
0x4678ff90: 00000000 00000000 00000000 00000000 ................
0x4678ffa0: 00000000 00000000 00000000 00000000 ................
0x4678ffb0: 00000000 00000000 bea9bf10 00007ff8 ................
0x4678ffc0: 4678e350 00000000 4678e350 00000000 P.xF....P.xF....
0x4678ffd0: 00000000 00000000 00000000 00000000 ................
0x4678ffe0: 00000000 00000000 00000000 00000000 ................
0x4678fff0: 00000000 00000000 00000000 00000000 ................
Module 1
C:\Program Files\Unity_5.6.3\Editor\OpenRL_pthread.dll
Image Base: 0x80000000 Image Size: 0x0000f000
File Size: 42496 File Time: 2017-07-23_105438
Version:
Company: Open Source Software community LGPL
Product: POSIX Threads for Windows LPGL
FileDesc: MS C 32 bit
FileVer: 2.9.0.0
ProdVer: 2.9.0.0
Module 2
C:\Program Files\Unity_5.6.3\Editor\OpenRL.dll
Image Base: 0x80000000 Image Size: 0x00c30000
File Size: 12654592 File Time: 2017-07-23_105438
Version:
Company: Imagination Technologies, Inc.
Product: OpenRL™
FileDesc: OpenRL™ Library
FileVer: 1.5.100.0
ProdVer: 1.5.100.0
Module 3
C:\WINDOWS\SYSTEM32\MSVCP100.dll
Image Base: 0x53ec0000 Image Size: 0x00098000
File Size: 608080 File Time: 2011-06-11_011538
Version:
Company: Microsoft Corporation
Product: Microsoft® Visual Studio® 2010
FileDesc: Microsoft® C Runtime Library
FileVer: 10.0.40219.325
ProdVer: 10.0.40219.325
Module 4
C:\WINDOWS\SYSTEM32\MSVCR100.dll
Image Base: 0x53f60000 Image Size: 0x000d2000
File Size: 829264 File Time: 2011-06-11_011538
Version:
Company: Microsoft Corporation
Product: Microsoft® Visual Studio® 2010
FileDesc: Microsoft® C Runtime Library
FileVer: 10.0.40219.325
ProdVer: 10.0.40219.325
== [end of error.log] ==
It does not happen all the time but frequently. Let say, 1/2 of my tests.
public void SendData() {
FirebaseAuth auth = FirebaseAuth.DefaultInstance;
Credential credential = FacebookAuthProvider.GetCredential(accessToken);
auth.SignInWithCredentialAsync(credential).ContinueWith(task => {
if (task.IsCompleted) {
FirebaseUser firebaseUser = task.Result;
Debug.LogFormat("User signed in successfully: {0} ({1})",
firebaseUser.DisplayName, firebaseUser.UserId);
// FIREBASE DATABASE INIT
// THIS IS EDITOR ONLY CODE. Firebase handles differently in the client.
FirebaseApp.DefaultInstance.SetEditorDatabaseUrl("https://<<hidden>>.firebaseio.com/");
// FIREBASE DATABASE SAVE (Root Reference)
DatabaseReference reference = FirebaseDatabase.DefaultInstance.RootReference;
User user = new User(firebaseUser.UserId, "Eray", "test#testing.me");
string json = JsonUtility.ToJson(user);
reference.Child("users").Child("Eray").SetRawJsonValueAsync(json).ContinueWith(setValueTask => {
Debug.Log("Set Completed: " + setValueTask.IsCompleted);
Debug.Log("Successful: " + (setValueTask.Exception != null));
});
} else {
Debug.LogError("Firebase SignIn is NOT completed");
}
});
}
Adding a folder with your package name (i.e. com.companyName.appName) into AppData/Local worked for me. Found the solution here

what the structure of dsym file?

What's structure of a dsym file generated when build the app. I know it contain DWARF debug info, but what's a dsym file. I want to read the DWARF info in it.
Is it just a Mach-O binary file that contain only debug sections? How do I pass it to a DWARF parse tool like pyelftool, which read the DWARF info in a ELF file's debug sections.
I use objdump -h to print the sections of a dsym file ( a .dsym file is a package, I just refer the binary file in the package )
/Users/luna/Desktop/EarList.app.dSYM/Contents/Resources/DWARF/EarList: file format mach-o-i386
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00001738 000026e0 000026e0 00000000 2**4
ALLOC, LOAD, CODE
1 .symbol_stub 00000054 00003e18 00003e18 00000000 2**1
ALLOC, LOAD, CODE
2 __TEXT.__stub_helper 00000098 00003e6c 00003e6c 00000000 2**2
ALLOC, LOAD, READONLY, CODE
3 .const 00000010 00003f08 00003f08 00000000 2**3
ALLOC, LOAD, READONLY, DATA
4 __TEXT.__objc_methname 000007db 00003f18 00003f18 00000000 2**0
ALLOC, LOAD, READONLY, CODE
5 .cstring 000001a9 000046f3 000046f3 00000000 2**0
ALLOC, LOAD, READONLY, DATA
6 __TEXT.__objc_classname 0000003c 0000489c 0000489c 00000000 2**0
ALLOC, LOAD, READONLY, CODE
7 __TEXT.__objc_methtype 0000049d 000048d8 000048d8 00000000 2**0
ALLOC, LOAD, READONLY, CODE
8 __TEXT.__unwind_info 0000007c 00004d75 00004d75 00000000 2**0
ALLOC, LOAD, READONLY, CODE
9 .eh_frame 00000204 00004df8 00004df8 00000000 2**3
ALLOC, LOAD, READONLY, DATA
10 __DATA.__program_vars 00000014 00005000 00005000 00000000 2**2
ALLOC, LOAD, DATA
11 .non_lazy_symbol_pointer 00000008 00005014 00005014 00000000 2**2
ALLOC, LOAD, DATA
12 .lazy_symbol_pointer 00000038 0000501c 0000501c 00000000 2**2
ALLOC, LOAD, DATA
13 __DATA.__objc_classlist 00000008 00005054 00005054 00000000 2**2
ALLOC, LOAD, DATA
14 __DATA.__objc_protolist 00000008 0000505c 0000505c 00000000 2**2
ALLOC, LOAD, DATA
15 __DATA.__objc_imageinfo 00000008 00005064 00005064 00000000 2**2
ALLOC, LOAD, DATA
16 __DATA.__objc_const 00000518 00005070 00005070 00000000 2**3
ALLOC, LOAD, DATA
17 __DATA.__objc_selrefs 00000054 00005588 00005588 00000000 2**2
ALLOC, LOAD, DATA
18 __DATA.__objc_classrefs 00000010 000055dc 000055dc 00000000 2**2
ALLOC, LOAD, DATA
19 __DATA.__objc_superrefs 00000004 000055ec 000055ec 00000000 2**2
ALLOC, LOAD, DATA
20 __DATA.__objc_data 00000050 000055f0 000055f0 00000000 2**2
ALLOC, LOAD, DATA
21 .cfstring 00000290 00005640 00005640 00000000 2**2
ALLOC, LOAD, DATA
22 __DATA.__objc_ivar 00000004 000058d0 000058d0 00000000 2**2
ALLOC, LOAD, DATA
23 .data 00000058 000058d4 000058d4 00000000 2**2
ALLOC, LOAD, DATA
24 __DATA.__common 00000010 0000592c 0000592c 00000000 2**2
ALLOC
25 .debug_abbrev 0000028a 00008000 00008000 00002000 2**0
CONTENTS, DEBUGGING
26 .debug_aranges 000000c0 0000828a 0000828a 0000228a 2**0
CONTENTS, DEBUGGING
27 .debug_info 0000813c 0000834a 0000834a 0000234a 2**0
CONTENTS, DEBUGGING
28 __DWARF.__debug_inlined 00000038 00010486 00010486 0000a486 2**0
CONTENTS, ALLOC, LOAD, DATA
29 .debug_line 00001205 000104be 000104be 0000a4be 2**0
CONTENTS, DEBUGGING
30 .debug_pubnames 0000028e 000116c3 000116c3 0000b6c3 2**0
CONTENTS, DEBUGGING
31 .debug_pubtypes 0000159f 00011951 00011951 0000b951 2**0
CONTENTS, DEBUGGING
32 .debug_str 00005e4f 00012ef0 00012ef0 0000cef0 2**0
CONTENTS, DEBUGGING
33 __DWARF.__apple_names 0000033c 00018d3f 00018d3f 00012d3f 2**0
CONTENTS, ALLOC, LOAD, DATA
34 __DWARF.__apple_types 000016a3 0001907b 0001907b 0001307b 2**0
CONTENTS, ALLOC, LOAD, DATA
35 __DWARF.__apple_namespac 00000024 0001a71e 0001a71e 0001471e 2**0
CONTENTS, ALLOC, LOAD, DATA
36 __DWARF.__apple_objc 00000088 0001a742 0001a742 00014742 2**0
CONTENTS, ALLOC, LOAD, DATA
dSYM is indeed a container (directory), within which is a Mach O binary containing only DWARF debug data, and no code.
You can inspect it in Python using filebytes and pyelftools:
import io
from filebytes.mach_o import MachO
from elftools.dwarf.dwarfinfo import DWARFInfo, DebugSectionDescriptor, DwarfConfig
macho = MachO(filename)
data = {
section.name: DebugSectionDescriptor(io.BytesIO(section.bytes), section.name, None, len(section.bytes), 0)
for loadcmd in macho.loadCommands
if getattr(loadcmd, 'name', None) == '__DWARF'
for section in loadcmd.sections
}
dwarfinfo = DWARFInfo(
config=DwarfConfig(
little_endian=True,
default_address_size=8, # 64 bit
machine_arch='x64',
),
debug_info_sec=data['__debug_info'],
debug_aranges_sec=None,
debug_abbrev_sec=data['__debug_abbrev'],
debug_frame_sec=None,
eh_frame_sec=data['__eh_frame'],
debug_str_sec=data['__debug_str'],
debug_loc_sec=data['__debug_loc'],
debug_ranges_sec=data['__debug_ranges'],
debug_line_sec=data['__debug_line']
)
You will be able to read the DWARF debug info with the dwarfdump command.
There's also a GUI DWARF Explorer at https://pypi.org/project/dwex/ . Install by running pip install dwex from the command, then run with dwex.
It supports dSYM bundles. Drag one over the main window, and watch the tree.

Generic keyboard emulation using Arduino Leonardo

I am trying to use an Arduino Leonardo for keyboard emulation since that is one of its advertised features. I have been playing with the Leonardo and wrote a very simple sketch based off the Blink example.
// Pin 13 has an LED connected on most Arduino boards.
int led = 13;
// The setup routine runs once when you press reset:
void setup()
{
// Initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
// The loop routine runs over and over again forever:
void loop()
{
delay(5000); // Wait for five seconds
digitalWrite(led, HIGH); // Turn the LED on (HIGH is the voltage level)
delay(100); // Wait for a secondA
digitalWrite(led, LOW); // Turn the LED off by making the voltage LOW
Keyboard.write('A'); // Write an A using keyboard emulator
}
Now this example works great on my Windows XP machine. It is recognized as a generic HID keyboard and will type an 'A' every five seconds.
The targeted environment is running DOS so to my knowledge I need to get the Arduino Leonardo recognized by the BIOS on this machine, which it is not and it does not type the 'A' in DOS.
I have been making modifications to the USB device descriptor of the Leonardo, trying to make it match a Dell L100 as much as possible. The modifications I've made haven't helped, and I suspect it is because the Leonardo is a composite device which exposes the serial communication, keyboard emulation, and mouse emulation on the same USB port. The source code for the USB descriptors/configuration is available to be edited and is located at:
Arduino_Installation\hardware\arduino\cores\arduino\HID.cpp
Arduino_Installation\hardware\arduino\cores\arduino\USBDesc.h
Arduino_Installation\hardware\arduino\cores\arduino\USBCore.h
Arduino_Installation\hardware\arduino\cores\arduino\USBCore.cpp
The following is a dump from USB Device Viewer for the Leonardo:
[Port3] : USB Composite Device
---===>Device Information<===---
English product name: "Arduino Leonardo"
ConnectionStatus:
Current Config Value: 0x01 -> Device Bus Speed: Full
Device Address: 0x03
Open Pipes: 4
===>Endpoint Descriptor<===
bLength: 0x07
bDescriptorType: 0x05
bEndpointAddress: 0x81 -> Direction: IN - EndpointID: 1
bmAttributes: 0x03 -> Interrupt Transfer Type
wMaxPacketSize: 0x0010 = 0x10 bytes
bInterval: 0x40
===>Endpoint Descriptor<===
bLength: 0x07
bDescriptorType: 0x05
bEndpointAddress: 0x02 -> Direction: OUT - EndpointID: 2
bmAttributes: 0x02 -> Bulk Transfer Type
wMaxPacketSize: 0x0040 = 0x40 bytes
bInterval: 0x00
===>Endpoint Descriptor<===
bLength: 0x07
bDescriptorType: 0x05
bEndpointAddress: 0x83 -> Direction: IN - EndpointID: 3
bmAttributes: 0x02 -> Bulk Transfer Type
wMaxPacketSize: 0x0040 = 0x40 bytes
bInterval: 0x00
===>Endpoint Descriptor<===
bLength: 0x07
bDescriptorType: 0x05
bEndpointAddress: 0x84 -> Direction: IN - EndpointID: 4
bmAttributes: 0x03 -> Interrupt Transfer Type
wMaxPacketSize: 0x0040 = 0x40 bytes
bInterval: 0x01
===>Device Descriptor<===
bLength: 0x12
bDescriptorType: 0x01
bcdUSB: 0x0110
bDeviceClass: 0x00
*!*ERROR: device class should be Multi-interface Function 0xEF
When IAD descriptor is used
bDeviceSubClass: 0x00
*!*ERROR: device SubClass should be USB Common Sub Class 2
When IAD descriptor is used
bDeviceProtocol: 0x00
*!*ERROR: device Protocol should be USB IAD Protocol 1
When IAD descriptor is used
bMaxPacketSize0: 0x40 = (64) Bytes
idVendor: 0x2341 = Vendor ID not listed with USB.org as of 03-19-2008
idProduct: 0x8036
bcdDevice: 0x0100
iManufacturer: 0x01
English (United States) "Arduino LLC"
iProduct: 0x02
English (United States) "Arduino Leonardo"
iSerialNumber: 0x00
bNumConfigurations: 0x01
===>Configuration Descriptor<===
bLength: 0x09
bDescriptorType: 0x02
wTotalLength: 0x0064 -> Validated
bNumInterfaces: 0x03
bConfigurationValue: 0x01
iConfiguration: 0x00
bmAttributes: 0x80 -> Bus Powered
MaxPower: 0xFA = 500 mA
===>IAD Descriptor<===
bLength: 0x08
bDescriptorType: 0x0B
bFirstInterface: 0x00
bInterfaceCount: 0x02
bFunctionClass: 0x02 -> This is Communications (CDC Control) USB Device Interface Class
bFunctionSubClass: 0x01
bFunctionProtocol: 0x01
iFunction: 0x00
===>Interface Descriptor<===
bLength: 0x09
bDescriptorType: 0x04
bInterfaceNumber: 0x00
bAlternateSetting: 0x00
bNumEndpoints: 0x01
bInterfaceClass: 0x02 -> This is Communications (CDC Control) USB Device Interface Class
bInterfaceSubClass: 0x01
bInterfaceProtocol: 0x00
CAUTION: This may be an invalid bInterfaceProtocol
iInterface: 0x00
-> This is a Communications (CDC Control) USB Device Interface Class
===>Descriptor Hex Dump<===
bLength: 0x05
bDescriptorType: 0x24
05 24 00 10 01
-> This is a Communications (CDC Control) USB Device Interface Class
===>Descriptor Hex Dump<===
bLength: 0x05
bDescriptorType: 0x24
05 24 01 01 01
-> This is a Communications (CDC Control) USB Device Interface Class
===>Descriptor Hex Dump<===
bLength: 0x04
bDescriptorType: 0x24
04 24 02 06
-> This is a Communications (CDC Control) USB Device Interface Class
===>Descriptor Hex Dump<===
bLength: 0x05
bDescriptorType: 0x24
05 24 06 00 01
===>Endpoint Descriptor<===
bLength: 0x07
bDescriptorType: 0x05
bEndpointAddress: 0x81 -> Direction: IN - EndpointID: 1
bmAttributes: 0x03 -> Interrupt Transfer Type
wMaxPacketSize: 0x0010 = 0x10 bytes
bInterval: 0x40
===>Interface Descriptor<===
bLength: 0x09
bDescriptorType: 0x04
bInterfaceNumber: 0x01
bAlternateSetting: 0x00
bNumEndpoints: 0x02
bInterfaceClass: 0x0A -> This is a CDC Data USB Device Interface Class
bInterfaceSubClass: 0x01
bInterfaceProtocol: 0x00
CAUTION: This may be an invalid bInterfaceProtocol
iInterface: 0x00
===>Endpoint Descriptor<===
bLength: 0x07
bDescriptorType: 0x05
bEndpointAddress: 0x02 -> Direction: OUT - EndpointID: 2
bmAttributes: 0x02 -> Bulk Transfer Type
wMaxPacketSize: 0x0040 = 0x40 bytes
bInterval: 0x00
===>Endpoint Descriptor<===
bLength: 0x07
bDescriptorType: 0x05
bEndpointAddress: 0x83 -> Direction: IN - EndpointID: 3
bmAttributes: 0x02 -> Bulk Transfer Type
wMaxPacketSize: 0x0040 = 0x40 bytes
bInterval: 0x00
===>Interface Descriptor<===
bLength: 0x09
bDescriptorType: 0x04
bInterfaceNumber: 0x02
bAlternateSetting: 0x00
bNumEndpoints: 0x01
bInterfaceClass: 0x03 -> HID Interface Class
bInterfaceSubClass: 0x01
bInterfaceProtocol: 0x00
CAUTION: This may be an invalid bInterfaceProtocol
iInterface: 0x00
===>HID Descriptor<===
bLength: 0x09
bDescriptorType: 0x21
bcdHID: 0x0101
bCountryCode: 0x00
bNumDescriptors: 0x01
bDescriptorType: 0x22
wDescriptorLength: 0x0065
===>Endpoint Descriptor<===
bLength: 0x07
bDescriptorType: 0x05
bEndpointAddress: 0x84 -> Direction: IN - EndpointID: 4
bmAttributes: 0x03 -> Interrupt Transfer Type
wMaxPacketSize: 0x0040 = 0x40 bytes
bInterval: 0x01
How could I get this Leonardo recognized by a BIOS as a generic keyboard?
Arduino does not support the boot protocol. I have started using Teensy (which is Arduino compatible), and it works pretty well.
I might be mistaken, but if you want your device to be recognized during boot, its bInterfaceSubClass should be 0x01 (boot device subclass).
In source files, as you have pointed out, sub class is set to 0x00 everywhere.
You may try to set the subclass in all usages of the D_INTERFACE macro from file USBCore.h to 0x01.
I'm not an Arduino user. I was only once playing with HID keyboard emulation on AVR using V-USB. You can try to find detailed information about usb descriptors at USB.org in documentation. But it's quite a pile of pages to read.
Here is part od HID descriptor dump of my keyboard, notice values in Interface Descriptor:
Bus 005 Device 002: ID 046d:c30e Logitech, Inc. UltraX Keyboard (Y-BL49)
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x046d Logitech, Inc.
idProduct 0xc30e UltraX Keyboard (Y-BL49)
bcdDevice 1.80
iManufacturer 1 Logitech
iProduct 2 HID compliant keyboard
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 59
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 1 Keyboard
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 62
The dump was made using "lsusb -v" as root under Linux.

Unable to lookup remote EJB on Websphere 8

I have deployed an EJB with local and remote interfaces, and I can lookup the local one OK after deployment, but I'm not able to to do with the remote, from a Java SE client.
The EJB code is simple:
#Local(DemoFacade.class)
#Remote(DemoFacadeRemote.class)
#Stateless
public class DemoFacadeBean implements DemoFacade
<snip>
The lookup code is also simple:
Properties env1 = new Properties();
env1.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
env1.put(Context.PROVIDER_URL, "corbaloc:iiop:localhost:2809");
Context initialContext;
initialContext = new InitialContext(env1);
Object ejbHome = initialContext.lookup("cell/nodes/OVLM46008QPZKQ1Node01/servers/server1/ejb/DemoFacadeRemote");
I also tried many variations of the jndi lookup, but all fails with the same error.
Object ejbHome = initialContext.lookup("cell/nodes/OVLM46008QPZKQ1Node01/servers/server1/java:global/WebSphereDemo/WebSphereDemoEJB/DemoFacadeBean!com.test.DemoFacadeRemote");
I have added the following arguments to help debug:
-Dcom.ibm.CORBA.Debug=true -Dcom.ibm.CORBA.CommTrace=true -Dcom.ibm.CORBA.Debug.Output=c:/temp/client.log -Dcom.ibm.ejs.ras.lite.traceSpecification=*=all -Djava.endorsed.dirs=C:/data/workspace/WebSphereDemoEJBTest/lib/websphereclient/eee
The classpath is set to all jars of the websphere/lib folder.
The full console output is (sorry by the length of the output, some of it is ommitted). Real error at the very end.
thanks for any suggestions.
************ Start Display Current Environment ************
<snip>
[26/07/2011 15:49:32:122 EST] 00000000 com.ibm.ws.naming.ipbase.NameSpace > lookUpRootContext Entry
bindingName=IIOP_DEFAULT_ROOT
rootBindingData=com.ibm.ws.naming.ipbase.BindingsTableData#fffd6386
[26/07/2011 15:49:32:123 EST] 00000000 com.ibm.ws.naming.ipbase.NameSpace < lookUpRootContext Exit
javax.naming.NameNotFoundException: Root context not found.
[26/07/2011 15:49:32:123 EST] 00000000 com.ibm.ws.naming.jcache.Cache 3 lookup
NamingException: javax.naming.NameNotFoundException: Root context not found.
[26/07/2011 15:49:32:123 EST] 00000000 com.ibm.ws.naming.jcache.Cache < lookup Exit
Throwing CacheEntryNotFoundException: com.ibm.ws.naming.jcache.CacheEntryNotFoundException: Entry "IIOP_DEFAULT_ROOT" not found in cache. [Root exception is javax.naming.NameNotFoundException: Root context not found.]
[26/07/2011 15:49:32:123 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory > getRootJndiContext Entry
[26/07/2011 15:49:32:124 EST] 00000000 com.ibm.ws.naming.util.TransactionUtil 3 SOURCE CODE INFO: SERV1/ws/code/naming.client/src/com/ibm/ws/naming/util/TransactionUtil.java, WAS.naming.client, WAS80.SERV1, m1116.12, ver. 1.5
[26/07/2011 15:49:32:124 EST] 00000000 com.ibm.ws.naming.util.TransactionUtil > suspend Entry
[26/07/2011 15:49:32:127 EST] 00000000 com.ibm.ws.uow.UOWManagerFactory > getUOWManager Entry
[26/07/2011 15:49:32:128 EST] 00000000 com.ibm.ws.uow.UOWManagerFactory < getUOWManager Exit
com.ibm.ws.uow.ClientUOWManagerImpl#fffdb786
[26/07/2011 15:49:32:128 EST] 00000000 com.ibm.ws.naming.util.TransactionUtil 3 suspend
current transaction suspended
[26/07/2011 15:49:32:128 EST] 00000000 com.ibm.ws.naming.util.TransactionUtil < suspend Exit
[26/07/2011 15:49:32:129 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory > getRootContextFromServer Entry
wsnObjectUrl=corbaloc:iiop:1.0#ovlm46008qpzkq1.oakton.com.au:2809/WsnNameService
objectUrl=corbaloc:iiop:1.0#ovlm46008qpzkq1.oakton.com.au:2809/NameService
[26/07/2011 15:49:32:129 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory > getWsnNameService Entry
objectUrl=corbaloc:iiop:1.0#ovlm46008qpzkq1.oakton.com.au:2809/WsnNameService
[26/07/2011 15:49:32:130 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory 3 getWsnNameService
Attempting to connect to name server using URL corbaloc:iiop:1.0#ovlm46008qpzkq1.oakton.com.au:2809/WsnNameService
[26/07/2011 15:49:32:130 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory > stringToObject Entry
string=corbaloc:iiop:1.0#ovlm46008qpzkq1.oakton.com.au:2809/WsnNameService
[26/07/2011 15:49:32:137 EST] 00000000 er.router.selection.WLMClientForCommonRouterImpl > initialize Entry
[26/07/2011 15:49:32:138 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR 3 version :
1.30
[26/07/2011 15:49:32:138 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR > getWLMIOR Entry
[26/07/2011 15:49:32:138 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR 3 getWLMIOR - typeid=
[26/07/2011 15:49:32:138 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR 3 getWLMIOR - host= ovlm46008qpzkq1.oakton.com.au
[26/07/2011 15:49:32:138 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR 3 getWLMIOR - port= 2809
[26/07/2011 15:49:32:139 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR 3 getWLMIOR - objectKey= 0x57736e4e616d6553657276696365
[26/07/2011 15:49:32:139 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR 3 getWLMIOR - taggedcomponent= [Lcom.ibm.rmi.Profile$TaggedComponent;#fffde943
[26/07/2011 15:49:32:143 EST] 00000000 ebsphere.cluster.topography.KeyRepositoryFactory 3 version :
1.2
[26/07/2011 15:49:32:147 EST] 00000000 com.ibm.ws.cluster.topography.KeyRepositoryImpl 3 version :
1.15
[26/07/2011 15:49:32:147 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR 3 component_data
[26/07/2011 15:49:32:147 EST] 00000000 er.router.selection.WLMClientForCommonRouterImpl < initialize - getWLMIOR returned a null Exit
[26/07/2011 15:49:32:192 EST] 00000000 er.router.selection.WLMClientForCommonRouterImpl > initialize Entry
[26/07/2011 15:49:32:192 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR > getWLMIOR Entry
[26/07/2011 15:49:32:192 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR 3 getWLMIOR - typeid= IDL:com.ibm/WsnBootstrap/WsnNameService:1.0
[26/07/2011 15:49:32:192 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR 3 getWLMIOR - host= OVLM46008QPZKQ1.oakton.com.au
[26/07/2011 15:49:32:192 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR 3 getWLMIOR - port= 0
[26/07/2011 15:49:32:193 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR 3 getWLMIOR - objectKey= 0x4a4d4249000000104773e3aa0000000000000000000000000000000000000024000000080000000000000000
[26/07/2011 15:49:32:193 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR 3 getWLMIOR - taggedcomponent= [Lcom.ibm.rmi.Profile$TaggedComponent;#fffc731f
[26/07/2011 15:49:32:193 EST] 00000000 com.ibm.ws.wlm.configuration.WLMIOR 3 component_data
[26/07/2011 15:49:32:193 EST] 00000000 er.router.selection.WLMClientForCommonRouterImpl < initialize - getWLMIOR returned a null Exit
[26/07/2011 15:49:32:198 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory < stringToObject Exit
[26/07/2011 15:49:32:200 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory < getWsnNameService Exit
[26/07/2011 15:49:32:202 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory > mergeWsnNSProperties Entry
[26/07/2011 15:49:32:217 EST] 00000000 com.ibm.ws.ffdc.FFDCFilter 3 FFDC exception: org.omg.CORBA.TRANSIENT: java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine:host=OVLM46008QPZKQ1.oakton.com.au,port=0 vmcid: IBM minor code: E02 completed: No com.ibm.ws.orbimpl.transport.WSTransport.getConnection 448
[26/07/2011 15:49:32:237 EST] 00000000 com.ibm.ws.naming.util.RasUtil 3 SOURCE CODE INFO: SERV1/ws/code/naming/src/com/ibm/ws/naming/util/RasUtil.java, WAS.naming, WAS80.SERV1, m1116.12, ver. 1.2
[26/07/2011 15:49:32:238 EST] 00000000 com.ibm.ws.ffdc.FFDCFilter 3 FFDC exception: org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible vmcid: IBM minor code: E07 completed: No com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties 1549
[26/07/2011 15:49:32:238 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory mergeWsnNSProperties
FFDC: sourceId=com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties, probeId=1549
org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible vmcid: IBM minor code: E07 completed: No
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1274)
at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1342)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1162)
at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1308)
at com.ibm.rmi.corba.ClientDelegate.request(ClientDelegate.java:1884)
at com.ibm.CORBA.iiop.ClientDelegate.request(ClientDelegate.java:1264)
at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:458)
at com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(_WsnNameServiceStub.java:38)
at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1547)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:1040)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:960)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:612)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:128)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:765)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
at javax.naming.InitialContext.lookup(InitialContext.java:431)
at com.oakton.MainTest.main(MainTest.java:20)
Caused by: java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:383)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:245)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:232)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
at java.net.Socket.connect(Socket.java:539)
at com.ibm.ws.orbimpl.transport.WSTCPTransportConnection.createSocket(WSTCPTransportConnection.java:295)
at com.ibm.CORBA.transport.TransportConnectionBase.connect(TransportConnectionBase.java:354)
at com.ibm.ws.orbimpl.transport.WSTransport.getConnection(WSTransport.java:436)
at com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.java:187)
at com.ibm.rmi.iiop.TransportManager.get(TransportManager.java:89)
at com.ibm.rmi.iiop.GIOPImpl.getConnection(GIOPImpl.java:130)
at com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:219)
at com.ibm.rmi.corba.ClientDelegate.locate(ClientDelegate.java:1981)
at com.ibm.rmi.corba.ClientDelegate._createRequest(ClientDelegate.java:2006)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1184)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1270)
... 17 more
[26/07/2011 15:49:32:239 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory < mergeWsnNSProperties Exit
javax.naming.NamingException: Error getting WsnNameService properties [Root exception is org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible vmcid: IBM minor code: E07 completed: No]
at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1550)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:1040)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:960)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:612)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:128)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:765)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
at javax.naming.InitialContext.lookup(InitialContext.java:431)
at com.oakton.MainTest.main(MainTest.java:20)
Caused by: org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible vmcid: IBM minor code: E07 completed: No
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1274)
at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1342)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1162)
at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1308)
at com.ibm.rmi.corba.ClientDelegate.request(ClientDelegate.java:1884)
at com.ibm.CORBA.iiop.ClientDelegate.request(ClientDelegate.java:1264)
at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:458)
at com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(_WsnNameServiceStub.java:38)
at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1547)
... 9 more
Caused by: java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:383)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:245)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:232)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
at java.net.Socket.connect(Socket.java:539)
at com.ibm.ws.orbimpl.transport.WSTCPTransportConnection.createSocket(WSTCPTransportConnection.java:295)
at com.ibm.CORBA.transport.TransportConnectionBase.connect(TransportConnectionBase.java:354)
at com.ibm.ws.orbimpl.transport.WSTransport.getConnection(WSTransport.java:436)
at com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.java:187)
at com.ibm.rmi.iiop.TransportManager.get(TransportManager.java:89)
at com.ibm.rmi.iiop.GIOPImpl.getConnection(GIOPImpl.java:130)
at com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:219)
at com.ibm.rmi.corba.ClientDelegate.locate(ClientDelegate.java:1981)
at com.ibm.rmi.corba.ClientDelegate._createRequest(ClientDelegate.java:2006)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1184)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1270)
... 17 more
[26/07/2011 15:49:32:240 EST] 00000000 com.ibm.ws.ffdc.FFDCFilter 3 FFDC exception: javax.naming.NamingException: Error getting WsnNameService properties [Root exception is org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible vmcid: IBM minor code: E07 completed: No] com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext 963
[26/07/2011 15:49:32:240 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory getRootJndiContext
FFDC: sourceId=com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext, probeId=963
javax.naming.NamingException: Error getting WsnNameService properties [Root exception is org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible vmcid: IBM minor code: E07 completed: No]
at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1550)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:1040)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:960)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:612)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:128)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:765)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
at javax.naming.InitialContext.lookup(InitialContext.java:431)
at com.oakton.MainTest.main(MainTest.java:20)
Caused by: org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible vmcid: IBM minor code: E07 completed: No
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1274)
at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1342)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1162)
at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1308)
at com.ibm.rmi.corba.ClientDelegate.request(ClientDelegate.java:1884)
at com.ibm.CORBA.iiop.ClientDelegate.request(ClientDelegate.java:1264)
at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:458)
at com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(_WsnNameServiceStub.java:38)
at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1547)
... 9 more
Caused by: java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:383)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:245)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:232)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
at java.net.Socket.connect(Socket.java:539)
at com.ibm.ws.orbimpl.transport.WSTCPTransportConnection.createSocket(WSTCPTransportConnection.java:295)
at com.ibm.CORBA.transport.TransportConnectionBase.connect(TransportConnectionBase.java:354)
at com.ibm.ws.orbimpl.transport.WSTransport.getConnection(WSTransport.java:436)
at com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.java:187)
at com.ibm.rmi.iiop.TransportManager.get(TransportManager.java:89)
at com.ibm.rmi.iiop.GIOPImpl.getConnection(GIOPImpl.java:130)
at com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:219)
at com.ibm.rmi.corba.ClientDelegate.locate(ClientDelegate.java:1981)
at com.ibm.rmi.corba.ClientDelegate._createRequest(ClientDelegate.java:2006)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1184)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1270)
... 17 more
[26/07/2011 15:49:32:242 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory 3 getRootJndiContext
Could not connect to name server using URL corbaloc:iiop:1.0#ovlm46008qpzkq1.oakton.com.au:2809/NameService
[26/07/2011 15:49:32:245 EST] 00000000 com.ibm.ws.ffdc.FFDCFilter 3 FFDC exception: javax.naming.NamingException: NMSV0602E: Naming Service unavailable. A communications error occurred. [Root exception is javax.naming.NamingException: Error getting WsnNameService properties [Root exception is org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible vmcid: IBM minor code: E07 completed: No]] com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext 886
[26/07/2011 15:49:32:247 EST] 00000000 com.ibm.ws.naming.util.WsnInitCtxFactory getRootJndiContext
FFDC: sourceId=com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext, probeId=886
javax.naming.NamingException: NMSV0602E: Naming Service unavailable. A communications error occurred. [Root exception is javax.naming.NamingException: Error getting WsnNameService properties [Root exception is org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible vmcid: IBM minor code: E07 completed: No]]
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:979)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:612)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:128)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:765)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
at javax.naming.InitialContext.lookup(InitialContext.java:431)
at com.oakton.MainTest.main(MainTest.java:20)
Caused by: javax.naming.NamingException: Error getting WsnNameService properties [Root exception is org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible vmcid: IBM minor code: E07 completed: No]
at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1550)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:1040)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:960)
... 7 more
Caused by: org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible vmcid: IBM minor code: E07 completed: No
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1274)
at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1342)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1162)
at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1308)
at com.ibm.rmi.corba.ClientDelegate.request(ClientDelegate.java:1884)
at com.ibm.CORBA.iiop.ClientDelegate.request(ClientDelegate.java:1264)
at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:458)
at com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(_WsnNameServiceStub.java:38)
at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1547)
... 9 more
Caused by: java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:383)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:245)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:232)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
at java.net.Socket.connect(Socket.java:539)
at com.ibm.ws.orbimpl.transport.WSTCPTransportConnection.createSocket(WSTCPTransportConnection.java:295)
at com.ibm.CORBA.transport.TransportConnectionBase.connect(TransportConnectionBase.java:354)
at com.ibm.ws.orbimpl.transport.WSTransport.getConnection(WSTransport.java:436)
at com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.java:187)
at com.ibm.rmi.iiop.TransportManager.get(TransportManager.java:89)
at com.ibm.rmi.iiop.GIOPImpl.getConnection(GIOPImpl.java:130)
at com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:219)
at com.ibm.rmi.corba.ClientDelegate.locate(ClientDelegate.java:1981)
at com.ibm.rmi.corba.ClientDelegate._createRequest(ClientDelegate.java:2006)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1184)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1270)
... 17 more
[26/07/2011 15:49:32:247 EST] 00000000 com.ibm.ws.naming.util.TransactionUtil > resume Entry
wrapper=com.ibm.ws.naming.util.TransactionUtil$TransactionWrapper#fffae2a9[_manager=com.ibm.ws.uow.ClientUOWManagerImpl#fffdb786, _token=null]
[26/07/2011 15:49:32:248 EST] 00000000 com.ibm.ws.naming.util.TransactionUtil 3 resume
no transaction to resume
[26/07/2011 15:49:32:248 EST] 00000000 com.ibm.ws.naming.util.TransactionUtil < resume Exit
javax.naming.NamingException: Error getting WsnNameService properties [Root exception is org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible vmcid: IBM minor code: E07 completed: No]
at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1550)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:1040)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:960)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:612)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:128)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:765)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
at javax.naming.InitialContext.lookup(InitialContext.java:431)
at com.oakton.MainTest.main(MainTest.java:20)
Caused by: org.omg.CORBA.TRANSIENT: initial and forwarded IOR inaccessible vmcid: IBM minor code: E07 completed: No
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1274)
at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1342)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1162)
at com.ibm.CORBA.iiop.ClientDelegate.createRequest(ClientDelegate.java:1308)
at com.ibm.rmi.corba.ClientDelegate.request(ClientDelegate.java:1884)
at com.ibm.CORBA.iiop.ClientDelegate.request(ClientDelegate.java:1264)
at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:458)
at com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(_WsnNameServiceStub.java:38)
at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:1547)
... 9 more
Caused by: java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:383)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:245)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:232)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
at java.net.Socket.connect(Socket.java:539)
at com.ibm.ws.orbimpl.transport.WSTCPTransportConnection.createSocket(WSTCPTransportConnection.java:295)
at com.ibm.CORBA.transport.TransportConnectionBase.connect(TransportConnectionBase.java:354)
at com.ibm.ws.orbimpl.transport.WSTransport.getConnection(WSTransport.java:436)
at com.ibm.CORBA.transport.TransportBase.getConnection(TransportBase.java:187)
at com.ibm.rmi.iiop.TransportManager.get(TransportManager.java:89)
at com.ibm.rmi.iiop.GIOPImpl.getConnection(GIOPImpl.java:130)
at com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:219)
at com.ibm.rmi.corba.ClientDelegate.locate(ClientDelegate.java:1981)
at com.ibm.rmi.corba.ClientDelegate._createRequest(ClientDelegate.java:2006)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1184)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:1270)
... 17 more
I came across something like this and adding these two params helped:
-Dcom.ibm.SSL.ConfigURL=file:$profile_root/properties/ssl.client.props
-Dcom.ibm.CORBA.ConfigURL=file:$profile_root/properties/sas.client.props
You may also have to set these params too or hardcode them in sas.client.props, I noticed that the prompt kept timing out waiting for login credentials if I did not include these ones.
-Dcom.ibm.CORBA.loginUserid=${WasUserid}
-Dcom.ibm.CORBA.loginPassword=${WasPassword}
-Dcom.ibm.CORBA.loginSource=properties
just noticed that my listener address / url format is different too:
-Djava.naming.provider.url=iiop://localhost:${ORB_LISTENER_ADDRESS} . You can find the orb listener port in config/cells//nodes//serverindex.xml .
Hope that works!

Resources