Hi,
We are using Jacob in GDAPI (2) project.
Our test code throws a stack overflow exception when uses version 1.11,
while the error doesn't appear in version 1.10.1.
This is the stack trace and status. I hope it helps you.
Bye,
GDAPI team.
Exception in thread "main" java.lang.StackOverflowError
Stack trace:
...
Variant.toString() line: 571
Variant.toString() line: 571
Variant.toString() line: 571
Variant.toString() line: 571
Variant.toString() line: 571
Query.execute() line: 167
Test.main(String[]) line: 56 (aprox)
--------------------------------------
STATUS of Query.execute() line: 167 ----------->>>>>>>>>>>>>
this Query (id=15)
async false
category "file"
count 4
hash 3143036
offset 0
value char[4] (id=123)
cookie "845620341"
cookieVariant Variant (id=84)
filterDuplicates true
matchAllTerms true
queryString "foo bar baz"
useQueryEx true
results QueryResultSet (id=67)
count Integer (id=92)
value 66
queryResultItems null
queryParameter Variant (id=72)
m_pVariant 183836640
qapi ActiveXComponent (id=73)
m_pDispatch 637432
programId "GoogleDesktop.QueryAPI"
searchResultVariant Variant (id=75)
m_pVariant 183836256
categoryVariant Variant (id=69)
m_pVariant 183836608
searchResultDispatch Dispatch (id=70)
m_pDispatch 0
programId null
searchResult ActiveXComponent (id=100)
m_pDispatch 765976
programId null
readyState Variant (id=101)
m_pVariant 183836224
countVariant Variant (id=102)
m_pVariant 183836192
count 66
availableCount Variant (id=103)
m_pVariant 183836160
queryResultItems ArrayList<E> (id=104)
elementData Object[66] (id=129)
modCount 0
size 0
finished false
i 1
searchResultEntryVariant Variant (id=118)
m_pVariant 183836128
searchResultEntryDispatch Dispatch (id=120)
m_pDispatch 0
programId null
searchResultEntry ActiveXComponent (id=121)
m_pDispatch 771504
programId null
uriVariant Variant (id=16)
m_pVariant 183836032
URI "C:\Documents and
Settings\XX\workspace.00\gdapi2\src\jgd\comapi\test\Test.java"
count 84
hash 0
offset 0
value char[84] (id=139)
queryResultItem QueryResultItem (id=132)
itemNumber 1
properties HashMap<K,V> (id=140)
schema "Google.Desktop.TextFile"
snippet null
URI "C:\Documents and
Settings\XX\workspace.00\gdapi2\src\jgd\comapi\test\Test.java"
schemaVariant Variant (id=134)
m_pVariant 183836000
st StringTokenizer (id=135)
currentPosition 395
delimiterCodePoints null
delimiters ","
delimsChanged false
hasSurrogates false
maxDelimCodePoint 44
maxPosition 1224
newPosition -1
retDelims false
str
"actual_work,album_title,artist,assistant,attendees,author,bcc,birthday,bit
_rate,bookmarked,buddy_name,business_address,business_fax,business_home_pag
e,business_phone,categories,cc,channels,children_names,comment,companies,co
mpany,company_name,company_phone,component_guid,component_id,content,conver
sation_id,cookie,cookie_raw,country,data_rate,date,date_completed,departmen
t,display_name,doc_id,due_date,duration,email1,email2,email3,end_date,event
_id,extra_binary_data,extra_data,flags,folder_name,format,from,genre,height
,hobbies,home_address,home_fax,home_phone,im_address,importance,info_tip,in
teraction_period,internet_shortcut_name,job_title,keywords,language,last_mo
dified_time,length,location,lyrics,machine_name,mail_flags,mail_header,mail
_id,manager_name,message_time,mobile_phone,native_size,nickname,office_loca
tion,organizer,original_date,other_address,other_phone,owner,pager,particip
ants,percent_complete,personal_home_page,primary_fax,primary_phone,professi
on,received,recurrence_pattern,replyto,shortcut_target,spouse,start_date,st
art_time,status,subject,text_content,thumbnail,thumbnail_format,timestamp,t
itle,to,total_work,track_number,type,uri,user_name,web_page,wedding_anniver
sary,width,year_published"
propertyName "doc_id"
count 6
hash 0
offset 389
value char[1224] (id=243)
propertyValueVariant Variant (id=53)
m_pVariant 183839520
-----------------------------------------------------------------
STATUS of Variant.toString() line: 571 ----------->>>>>>>>>>>>>>>>>>>>>
this Variant (id=53)
m_pVariant 183839520
foo Variant (id=53)
m_pVariant 183839520
----------------------------------------------
Code that fails:Variant.toString() line: 571
...
try {
Object foo = toJavaObject();
// rely on java objects to do the right thing
>>>> return foo.toString();
} catch (NotImplementedException nie){
// some types do not generate a good description yet
return "Description not available for type: "+getvt();
}
...
Of course, in this case, foo is a Variant object.
Nobody/Anonymous
Jacob COM
1.11
Public
|
Date: 2006-12-18 03:20
|
|
Date: 2006-12-03 14:56
|
|
Date: 2006-12-03 14:29
|
|
Date: 2006-12-03 13:31
|
|
Date: 2006-12-03 13:31
|
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Pending | 2006-12-18 03:20 | sf-robot |
| close_date | 2006-12-03 14:56 | 2006-12-18 03:20 | sf-robot |
| status_id | Open | 2006-12-03 14:56 | clay_shooter |
| close_date | - | 2006-12-03 14:56 | clay_shooter |