This Question is Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
2 Replies Last post: Oct 16, 2007 7:52 AM by heimo  
heimo   10 posts since
Oct 12, 2007
Currently Being Moderated

Oct 16, 2007 7:00 AM

simple synchronize problem

if i need to update the browser property,

should i do something on synchronized issue?

here i just directly call the api to update the browser

browser.getproperty().setAllowContextMenu(true); <===something like that

 

 

however i got some problems

 

1. after i properties.setAllowNewWindow(false)

the browse still pop up something on click

am i misunderstanding the meaning of ("NewWindow")? as i can disable the image sound scripts in the browser by calling the similar APi

 

2. the main problem i wanna ask is that

here i got 2 panels

1. DOM Tree Panel

2. Properties panel allow people to enable or disable funciotns(scripts videos sound activeX...)

 

i got an error

after i update the properties from properties panel,

and i access the Dom Tree, it cannot repaint the tree and got some exceptions

it seems that, i cannot catch the properties update event

just after i update the properties, some nodes on Dom turns to null

so i want to* repaint my DOM Tree every time after the properties update* if it is possibles?

more if it is true that some pointer turns to null after updating the browser properties? do i need to do something on synchronization?

thanks very much for your help

 

 

 

 

Exception in thread "AWT-EventQueue-0" com.jniwrapper.win32.com.ComException: COM object method returns error code: 0x80070005; E_ACCESSDENIED (&#23384;&#21462;&#34987;&#25298;&#12290;)

     at com.jniwrapper.win32.com.impl.IUnknownImpl.invokeStandardVirtualMethod(SourceFile:681)

     at com.jniwrapper.win32.mshtml.impl.IHTMLElementImpl.getAttribute(IHTMLElementImpl.java:69)

     at com.jniwrapper.win32.ie.dom.c.b(SourceFile:152)

     at com.jniwrapper.win32.ie.dom.c.getAttribute(SourceFile:133)

     at com.jniwrapper.win32.ie.dom.c.getHTML(SourceFile:419)

     at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)

     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

     at java.lang.reflect.Method.invoke(Unknown Source)

     at com.jniwrapper.win32.ie.dom.j.run(SourceFile:592)

     at com.jniwrapper.win32.MessageLoopThread$ThreadSynchronizedAction.run(MessageLoopThread.java:569)

     at com.jniwrapper.win32.MessageLoopThread$LoopThread.run(MessageLoopThread.java:511)

Exception in thread "AWT-EventQueue-0" com.jniwrapper.win32.com.ComException: COM object method returns error code: 0x80070005; E_ACCESSDENIED (&#23384;&#21462;&#34987;&#25298;&#12290;)

     at com.jniwrapper.win32.com.impl.IUnknownImpl.invokeStandardVirtualMethod(SourceFile:681)

     at com.jniwrapper.win32.mshtml.impl.IHTMLElementImpl.getAttribute(IHTMLElementImpl.java:69)

     at com.jniwrapper.win32.ie.dom.c.b(SourceFile:152)

     at com.jniwrapper.win32.ie.dom.c.getAttribute(SourceFile:133)

     at com.jniwrapper.win32.ie.dom.c.getHTML(SourceFile:419)

     at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)

     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

     at java.lang.reflect.Method.invoke(Unknown Source)

     at com.jniwrapper.win32.ie.dom.j.run(SourceFile:592)

     at com.jniwrapper.win32.MessageLoopThread$ThreadSynchronizedAction.run(MessageLoopThread.java:569)

     at com.jniwrapper.win32.MessageLoopThread$LoopThread.run(MessageLoopThread.java:511)

building new tree:

Exception in thread "AWT-EventQueue-0" com.jniwrapper.win32.com.ComException: COM object method returns error code: 0x80070005; E_ACCESSDENIED (&#23384;&#21462;&#34987;&#25298;&#12290;)

     at com.jniwrapper.win32.com.impl.IUnknownImpl.invokeStandardVirtualMethod(SourceFile:681)

     at com.jniwrapper.win32.mshtml.impl.IHTMLElementImpl.getAttribute(IHTMLElementImpl.java:69)

     at com.jniwrapper.win32.ie.dom.c.b(SourceFile:152)

     at com.jniwrapper.win32.ie.dom.c.getAttribute(SourceFile:133)

     at com.jniwrapper.win32.ie.dom.c.getHTML(SourceFile:419)

     at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)

     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

     at java.lang.reflect.Method.invoke(Unknown Source)

     at com.jniwrapper.win32.ie.dom.j.run(SourceFile:592)

     at com.jniwrapper.win32.MessageLoopThread$ThreadSynchronizedAction.run(MessageLoopThread.java:569)

     at com.jniwrapper.win32.MessageLoopThread$LoopThread.run(MessageLoopThread.java:511)

More Like This

  • Retrieving data ...