[OGo-GNUstep-Port] SkyCollapsibleContent unable to set 'nil' for key: 'visibility'
Sebastian Reitenbach
gnustep-port@opengroupware.org
Sun, 03 Jun 2007 16:51:06 +0200
Hi,
when opening the OGo Mail or Scheduler preferences page, ogo stopped with
the exception:
Jun 03 16:03:36 ogo-webui-1.1 [25547]: |ogo-webui-1.1|
<OpenGroupware[0x0x89e86208]: name=ogo-webui-1.1>: caught:
<NSException: 0x7e5b1028> NAME:NSInvalidArgumentException
REASON:setNilValueForKey: -- SkyCollapsibleContent 0x82eceb88: Given nil
value to set for key "visibility"
in context:
<0x0x8af4cc08[WOContext]: 0094662c9c78af4cc08 app=ogo-webui-1.1
sn=63CB63CB014662C98B eid=0094662c9c78af4cc08.0.17.1.1.47
rqeid=0084662c9c187206808.0.17.1.11.1.5.1.1.6.3>.
find the backtrace at the end.
I had to change the *.wod templates, whereever a SkyCollapsibleContents was
called, I exchanged "visibility" with "visibilityDefault" like this example:
original:
EditorTitle: SkyCollapsibleContent {
visibility = session.userDefaults.scheduler_pref_expand_editor;
submitActionName = "";
title = labels.EditorDefaults;
}
working version:
EditorTitle: SkyCollapsibleContent {
visibilityDefault = "scheduler_pref_expand_editor";
submitActionName = "";
title = labels.EditorDefaults;
}
I don't know why it was not working when using the original version with
visibility instead of visibilityDefault. I found the same on some other
places, and changed it there too. Don't know whether this is the best idea,
or a good one at all. But if it is, I could create a patch for testing.
kind regards
Sebastian
2007-06-03 16:01:44.475 ogo-webui-1.1[25547]
OGoUIElements/SkyCollapsibleContent.m: init: initialized self <0x0x82eceb88
[SkyCollapsibleContent]: name=SkyCollapsibleContent>!!!!
2007-06-03 16:01:44.476 ogo-webui-1.1[25547]
OGoUIElements/SkyCollapsibleContent.m: setVisibilityDefault: _defName: 0
Jun 03 16:01:44 ogo-webui-1.1 [25547]: [ERROR] SkyCollapsibleContent unable
to set 'nil' for key: 'visibility'
Breakpoint 2, -[NSException raise] (self=0x7e5b1028, _cmd=0x2b541598)
at NSException.m:782
782 if (GSPrivateEnvironmentFlag("GNUSTEP_STACK_TRACE", NO) == YES
(gdb) bt
#0 -[NSException raise] (self=0x7e5b1028, _cmd=0x2b541598)
at NSException.m:782
#1 0x0b5215a2 in +[NSException raise:format:arguments:] (self=0x2b5413a0,
_cmd=0x2b541580, name=0x2b5416dc, format=0x2b54725c,
argList=0xcfbce890 "\b\020
[~�?�\204\210��\202�>�\204=�Q+\210��\202���ϫ\024R\013=�Q+\230aW+
kU+\230aW+`kU+\210��\2028����\177_\013\210��\202(�V+�>�\204\016}_\013")
at
NSException.m:753
#2 0x0b5214f3 in +[NSException raise:format:] (self=0x2b5413a0,
_cmd=0x2b547090, name=0x2b5416dc, format=0x2b54725c) at
NSException.m:739
#3 0x0b541cd3 in -[NSObject(KeyValueCoding) setNilValueForKey:] (
self=0x82eceb88, _cmd=0x2b56e228, aKey=0x84bc3ea8)
at NSKeyValueCoding.m:274
#4 0x0b5f7fec in GSObjCSetVal (self=0x82eceb88,
key=0xcfbce960 "visibility",
val=0x0, sel=0x8867a520, type=0x814f3886 "C8", size=10,
offset=246198076)
at GSObjCRuntime.m:1817
#5 0x0b542ee3 in -[NSObject(KeyValueCoding) takeValue:forKey:] (
self=0x82eceb88, _cmd=0x2ea6d810, anObject=0x0, aKey=0x851056c8)
at NSKeyValueCoding.m:594
#6 0x0ea7427a in WOComponent_syncFromParent (self=0x82eceb88,
_parent=0x7c073408) at WOComponent+Sync.m:120
#7 0x0ea78a2f in WOContext_enterComponent (self=0x8af4cc08,
_component=0x82eceb88, _content=0x865e8988) at WOContext.m:430
#8 0x0ea9cc04 in -[WOChildComponentReference appendToResponse:inContext:] (
---Type <return> to continue, or q <return> to quit---
self=0x83e80c08, _cmd=0x2ea8d270, _response=0x8720ea88, _ctx=0x8af4cc08)
at WOChildComponentReference.m:187
#9 0x0eaeb04d in -[WOCompoundElement appendToResponse:inContext:] (
self=0x7c073208, _cmd=0x2ea8e1f0, _response=0x8720ea88, _ctx=0x8af4cc08)
at WOCompoundElement.m:247
#10 0x0eaeec70 in -[WOForm appendToResponse:inContext:] (self=0x80e73708,
_cmd=0x2ea8d270, _response=0x8720ea88, _ctx=0x8af4cc08) at WOForm.m:407
#11 0x0eaeb04d in -[WOCompoundElement appendToResponse:inContext:] (
self=0x7d779648, _cmd=0x20ed4980, _response=0x8720ea88, _ctx=0x8af4cc08)
at WOCompoundElement.m:247
#12 0x00ee731d in -[OGoWindowFrame _appendContentToResponse:inContext:] (
self=0x80e73788, _cmd=0x20ed4a58, _r=0x8720ea88, _ctx=0x8af4cc08)
at OGoWindowFrame.m:325
#13 0x00ee7a20 in -[OGoWindowFrame appendToResponse:inContext:] (
self=0x80e73788, _cmd=0x2ea8d270, _response=0x8720ea88, _ctx=0x8af4cc08)
at OGoWindowFrame.m:419
#14 0x0eaeb04d in -[WOCompoundElement appendToResponse:inContext:] (
self=0x7d779a48, _cmd=0x2ea8cb08, _response=0x8720ea88, _ctx=0x8af4cc08)
at WOCompoundElement.m:247
#15 0x0eae96bf in -[WOComponentContent appendToResponse:inContext:] (
self=0x82c03ee8, _cmd=0x2ea8d270, _response=0x8720ea88, _ctx=0x8af4cc08)
at WOComponentContent.m:157
#16 0x0eaeb04d in -[WOCompoundElement appendToResponse:inContext:] (
---Type <return> to continue, or q <return> to quit---
self=0x8899ba08, _cmd=0x2ea87ce8, _response=0x8720ea88, _ctx=0x8af4cc08)
at WOCompoundElement.m:247
#17 0x0ead9c96 in -[WOTemplate appendToResponse:inContext:]
(self=0x8a187c08,
_cmd=0x2ea6d1c8, _response=0x8720ea88, _ctx=0x8af4cc08) at
WOTemplate.m:128
#18 0x0ea72d53 in -[WOComponent appendToResponse:inContext:]
(self=0x82ec7788,
_cmd=0x253585c8, _response=0x8720ea88, _ctx=0x8af4cc08)
at WOComponent.m:924
#19 0x0535a180 in -[OGoComponent appendToResponse:inContext:] (
self=0x82ec7788, _cmd=0x20ed28b8, _r=0x8720ea88, _ctx=0x8af4cc08)
at OGoComponent.m:132
#20 0x00ee0509 in -[LSWSkyrixFrame appendToResponse:inContext:] (
self=0x82ec7788, _cmd=0x2ea77ba0, _r=0x8720ea88, _ctx=0x8af4cc08)
at LSWSkyrixFrame.m:452
#21 0x0ea9cc2f in -[WOChildComponentReference appendToResponse:inContext:] (
self=0x7d779a08, _cmd=0x2ea8d270, _response=0x8720ea88, _ctx=0x8af4cc08)
at WOChildComponentReference.m:188
#22 0x0eaeb04d in -[WOCompoundElement appendToResponse:inContext:] (
self=0x7d779ac8, _cmd=0x2ea87ce8, _response=0x8720ea88, _ctx=0x8af4cc08)
at WOCompoundElement.m:247
#23 0x0ead9c96 in -[WOTemplate appendToResponse:inContext:]
(self=0x81a86c48,
_cmd=0x2ea6d1c8, _response=0x8720ea88, _ctx=0x8af4cc08) at
WOTemplate.m:128
#24 0x0ea72d53 in -[WOComponent appendToResponse:inContext:]
(self=0x7c073408,
_cmd=0x253585c8, _response=0x8720ea88, _ctx=0x8af4cc08)
---Type <return> to continue, or q <return> to quit---
at WOComponent.m:924
#25 0x0535a180 in -[OGoComponent appendToResponse:inContext:] (
self=0x7c073408, _cmd=0x2ea72c30, _r=0x8720ea88, _ctx=0x8af4cc08)
at OGoComponent.m:132
#26 0x0ea8988d in -[WOSession appendToResponse:inContext:] (self=0x82df4f08,
_cmd=0x2535c710, _response=0x8720ea88, _ctx=0x8af4cc08) at
WOSession.m:550
#27 0x05365c21 in -[OGoSession appendToResponse:inContext:]
(self=0x82df4f08,
_cmd=0x2ea6b8e0, _response=0x8720ea88, _ctx=0x8af4cc08) at
OGoSession.m:478
#28 0x0ea6a385 in -[WOApplication appendToResponse:inContext:] (
self=0x89e86208, _cmd=0x2ea7d988, _response=0x8720ea88, _ctx=0x8af4cc08)
at WOApplication.m:928
#29 0x0eab4240 in -[WORequestHandler(Support)
generateResponseForComponent:inContext:application:] (self=0x7e84f138,
_cmd=0x2ea74fc8, _component=0x7c073408,
_ctx=0x8af4cc08, _app=0x89e86208) at WORequestHandler.m:483
#30 0x0ea917ae in -[OWViewRequestHandler runTransactionWithContext:] (
self=0x7e84f138, _cmd=0x2ea750d0, _ctx=0x8af4cc08)
at OWViewRequestHandler.m:113
#31 0x0ea92283 in -[OWViewRequestHandler
handleRequest:inContext:session:application:] (self=0x7e84f138,
_cmd=0x2ea7d858, _request=0x816aa188,
context=0x8af4cc08, session=0x82df4f08, app=0x89e86208)
at OWViewRequestHandler.m:279
#32 0x0eab3408 in -[WORequestHandler handleRequest:] (self=0x7e84f138,
_cmd=0x2ea6c578, _request=0x816aa188) at WORequestHandler.m:241
---Type <return> to continue, or q <return> to quit---
#33 0x0ea6e0cd in -[WOCoreApplication dispatchRequest:usingHandler:] (
self=0x89e86208, _cmd=0x2ea6c5b0, _request=0x816aa188,
handler=0x7e84f138)
at WOCoreApplication.m:669
#34 0x0ea6e424 in -[WOCoreApplication dispatchRequest:] (self=0x89e86208,
_cmd=0x3c0060a8, _request=0x816aa188) at WOCoreApplication.m:709
#35 0x1c006647 in -[OpenGroupware dispatchRequest:] (self=0x89e86208,
_cmd=0x2ea9b7f0, _request=0x816aa188) at OpenGroupware.m:829
#36 0x0eb13c4d in -[WOHttpTransaction _run] (self=0x85547408,
_cmd=0x2ea9b808)
at WOHttpTransaction.m:540
#37 0x0eb1401e in -[WOHttpTransaction run] (self=0x85547408,
_cmd=0x2ea9abb8)
at WOHttpTransaction.m:593
#38 0x0eb0fc48 in -[WOHttpAdaptor runConnection:] (self=0x8b303b48,
_cmd=0x2ea9ac08, _socket=0x86aa4c48) at WOHttpAdaptor.m:484
#39 0x0eb0fea7 in -[WOHttpAdaptor _handleAcceptedConnection:] (
self=0x8b303b48, _cmd=0x2ea9ac60, _connection=0x86aa4c48)
at WOHttpAdaptor.m:518
#40 0x0eb105e8 in -[WOHttpAdaptor acceptConnection:] (self=0x8b303b48,
_cmd=0x2ea9ab70, _notification=0x7ed6cd88) at WOHttpAdaptor.m:626
#41 0x0b54ca7a in -[NSNotificationCenter _postAndRelease:] (self=0x7d63a738,
_cmd=0x2b549168, notification=0x7ed6cd88) at NSNotificationCenter.m:1068
#42 0x0b54cd24 in -[NSNotificationCenter
postNotificationName:object:userInfo:]
(self=0x7d63a738, _cmd=0x2b549170, name=0x2acbb4c4, object=0x8b303c48,
info=0x0) at NSNotificationCenter.m:1136
---Type <return> to continue, or q <return> to quit---
#43 0x0b54cbd4 in -[NSNotificationCenter postNotificationName:object:] (
self=0x7d63a738, _cmd=0x2acbd988, name=0x2acbb4c4, object=0x8b303c48)
at NSNotificationCenter.m:1116
#44 0x0acdb4b1 in -[NSObject(FileObjectWatcher)
receivedEvent:type:extra:forMode:] (self=0x8b303c48, _cmd=0x2b5739a0,
_fdData=0x8, _type=ET_RDESC, _extra=0x8,
_mode=0x2b552db0) at NSRunLoop+FileObjects.m:57
#45 0x0b624b6c in -[GSRunLoopCtxt pollUntil:within:] (self=0x7e12a488,
_cmd=0x2b552cb0, milliseconds=7933, contexts=0x7efd0188)
at GSRunLoopCtxt.m:592
#46 0x0b58a363 in -[NSRunLoop acceptInputForMode:beforeDate:] (
self=0x7efd0148, _cmd=0x2b552cd8, mode=0x2b552db0,
limit_date=0x884a9a28)
at NSRunLoop.m:969
#47 0x0b58a70e in -[NSRunLoop runMode:beforeDate:] (self=0x7efd0148,
_cmd=0x2ea6c4e8, mode=0x2b552db0, date=0x7efd00e8) at NSRunLoop.m:1041
#48 0x0ea6d8d4 in -[WOCoreApplication run] (self=0x89e86208,
_cmd=0x2ea77870)
at WOCoreApplication.m:541
#49 0x0ea9beab in WOApplicationMain (_appClassName=0x3c005630, argc=3,
argv=0xcfbcfb94) at WOApplicationMain.m:42
#50 0x0eabbcaf in WOWatchDogApplicationMain (appName=0x3c005630, argc=3,
argv=0xcfbcfb94) at WOWatchDogApplicationMain.m:251
#51 0x1c001c88 in gnustep_base_user_main (argc=3, argv=0xcfbcfb94,
env=0xcfbcfba4) at main.m:32
#52 0x0b57716b in main (argc=3, argv=0xcfbcfb94, env=0xcfbcfba4)
---Type <return> to continue, or q <return> to quit---
at NSProcessInfo.m:897
#53 0x1c001b50 in ___start ()
#54 0x1c001abf in _start ()
#55 0x00000000 in ?? ()
(gdb) c
Continuing.
Jun 03 16:03:36 ogo-webui-1.1 [25547]: |ogo-webui-1.1|
<OpenGroupware[0x0x89e86208]: name=ogo-webui-1.1>: caught:
<NSException: 0x7e5b1028> NAME:NSInvalidArgumentException
REASON:setNilValueForKey: -- SkyCollapsibleContent 0x82eceb88: Given nil
value to set for key "visibility"
in context:
<0x0x8af4cc08[WOContext]: 0094662c9c78af4cc08 app=ogo-webui-1.1
sn=63CB63CB014662C98B eid=0094662c9c78af4cc08.0.17.1.1.47
rqeid=0084662c9c187206808.0.17.1.11.1.5.1.1.6.3>.