Issue 11430

Summary: Sample ExampleSpreadSheet.sxc document fails to execute
Product: General Reporter: robert.kinsella
Component: scriptingAssignee: noel.power
Status: CLOSED FIXED QA Contact: issues@framework <issues>
Severity: Trivial    
Priority: P1 (highest) CC: issues
Version: 644   
Target Milestone: OOo 2.0   
Hardware: PC   
OS: Linux, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description robert.kinsella 2003-02-12 15:58:57 UTC
Scripting framework SFrameworkINstall.jar.02.12.2003, staroffice 644 build 'u'
(opneoffice 644 build not available for test yet) Linux RH 6.2.

After installing the scripting framework, ensure that the tools, option,
security settings is set to always.
Open the file <office-install>/user/Scripts/java/MemoryUsage/ExampleSpreadSheet.sxc

select ctrl-shoft-m, note the document updates.
select ctrl-shift-m the document does not update, it will not not update unless
the user restarts staroffice and opens the docuemnt again.

Below is trace of output when error occurs:-
Trace Message : ScriptNameResolverImpl::resolve Starting...
Trace Message : ** about to resolve from storage using id 3 from vector of size 3
Trace Message : ScriptSecurityManager::checkPermission: execute permission
request for
file:///hda8/solitst2/staroffice6.1/user/Scripts/java/MemoryUsage/ExampleSpreadSheet.sxc
Trace Message : ** ==> ScriptStorageManager in getStorageInstance

Trace Message : ** ==> request for id=3
Trace Message : received uri: script://MemoryUtils.MemUsage?location=document

Trace Message : log name: MemoryUtils.MemUsage

Trace Message : chunk: location=document

Trace Message : ScriptURI ctor: throwing IllegalArgException
Trace Message : < ScriptNameResolverImpl dtor called >

Trace Message : <Destructing a FunctionImpl>

Trace Message : ScriptProtocolHandler::dispatchWithNotificationn caught
RuntimeException: FunctionImpl::invoke RuntimeException :
ScriptRuntimeManager::invoke
RuntimeException: ScriptRuntimeManager::resolve RuntimeException:
ScriptNameResolverImpl::resolve : IllegalArgumentException
ScriptRuntimeManager::resolveURIFromStorageID IllegalArgumentException: Failed
to parse invalid URI: script://MemoryUtils.MemUsage?location=document
Trace Message : ScriptProtocolHandler::dispatchWithNotification - end
Trace Message : ScriptProtocolHandler::ScriptProtocolHandler - dtor
Trace Message : < FunctionProvider dtor called >

Trace Message : < ScriptingContext dtor called >

Trace Message : ScriptStorageManager::disposing started
Trace Message : Document disposing is ...
file:///hda8/solitst2/staroffice6.1/user/Scripts/java/MemoryUsage/ExampleSpreadSheet.sxc
Trace Message : disposing storageID = 3
Trace Message : < ScriptStorage dtor called >
Comment 1 Unknown 2003-02-12 18:18:37 UTC
Assign to NP to fix
Comment 2 noel.power 2003-02-13 15:54:57 UTC
Fixed..., improper use of sal_Bool/bool
Comment 3 noel.power 2003-02-13 16:01:52 UTC
fixed
Comment 4 robert.kinsella 2003-02-24 18:45:23 UTC
verifed as fixed on Solaris and win2000, SF..jar.21.02.2003, marking
issue as verified
Comment 5 michael.bemmer 2003-03-13 11:09:44 UTC
As mentioned on the qa dev list on March 5th I will close all resolved
<wontfix/duplicate/worksforme/invalid> issues. Please see this posting for details.