DefaultTreeNode exception when being modified from a different thread
Hi,
I have two panels, each one displays a separate tree structure, when I attempt to copy from one tree to another in a different thread I get the following exception.
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 84 >= 83
at java.util.Vector.elementAt(Vector.java:427)
at javax.swing.tree.VariableHeightLayoutCache.getNode(VariableHeightLayoutCache.java:976)
at javax.swing.tree.VariableHeightLayoutCache.getPreferredHeight(VariableHeightLayoutCache.java:274)
at javax.swing.plaf.basic.BasicTreeUI.updateCachedPreferredSize(BasicTreeUI.java:1872)
at javax.swing.plaf.basic.BasicTreeUI.getPreferredSize(BasicTreeUI.java:2015)
at javax.swing.plaf.basic.BasicTreeUI.getPreferredSize(BasicTreeUI.java:2003)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1627)
at javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:769)
at java.awt.Container.layout(Container.java:1432)
at java.awt.Container.doLayout(Container.java:1421)
at java.awt.Container.validateTree(Container.java:1519)
at java.awt.Container.validate(Container.java:1491)
at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:639)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:127)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)Obviously if I revert back the copying to the same thread the problem is avoided, however the program appears to be frozen for the duration of the copying. I also tried changing the way that the information is displayed (ie in a table) and that did not throw exceptions.
I also found this http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4704869 on the Sun Website, however there was no solution.
Therefore, how do I construct a tree that can be modified from a separate thread.
Any assistance greatly appreciated.
The bug you referred to states that the exception is due to the tree being modified by a thread not being the EDT.
What kind of thread are you using? The �correct� way of doing this would be by using SwingWorker: http://java.sun.com/javase/6/docs/api/javax/swing/SwingWorker.html
If you were not, please give SwingWorer a try and tell us if the exception is still thrown!
Similar Messages
-
Modifying an NSMutableDictionary from a different thread that created it?
I've been getting a execbadaccess error when I try to do this (setObject: count:, etc).
Any reason why NSMutableDictionary doesn't like it when you try to modify it from a different thread?
ThanksCan anyone tell me why this code breaks at runtime? It spits out this error:
"Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[NSCFSet setObject:forKey:]: unrecognized selector sent to instance ..."
- (void)applicationDidFinishLaunching:(UIApplication *)application {
md = [NSMutableDictionary dictionaryWithCapacity:10];
[NSThread detachNewThreadSelector:@selector(update) toTarget:self withObject:nil];
[window makeKeyAndVisible];
-(void) update {
NSAutoreleasePool *pool = [NSAutoreleasePool new];
NSString *key = @"Key";
NSString *value = @"Value";
[md setObject:value forKey:key];
[pool release];
I don't understand it. I stepped through it with the debugger and 'key', 'value', and 'md' are all non-nil instances.
Thanks for any help
{quote}
You're trampling another execution context's address space. It might crash, it might not. Lock before you write. {quote}
I would understand that if I had two different threads both trying to add objects to this, but I create the dictionary in the main thread, then spawn a thread an access it. It shouldn't need locks since there's only one thread writing to the dictionary after it was created. -
Awful Java applet performance -- never mind, being handled in a different thread
Awful Java applet performance -- never mind, being handled in a different thread.
Here's some more info that may be of use ... The Applet is signed and this particular problem only occurs with Safari. It has not been seen as of yet when using Firefox. And it definitey does not occur on Windows platforms with IE or Firefox. It's been observed across multiple versions of the applet and appears to have become an issue around the time of Leopard 10.5.6/Safari 3.2.1. I don't know if it has anything to do with the problem, but the html that starts the applet is dynamically generated from javascript. A user clicks a thumbnail image on a web page, the javascript opens a dojo dialog, and within the div that contains the dialog, another div is inserted containing the html that starts the applet. The applet also does a number of liveconnect calls to call javascript methods. When a "close" button is clicked on the Applet, the inverse occurs. The javascript clears the html that contained the applet. The applet's destroy method is called and there are no apparent memory leaks.
The problem never seems to occur the first time the applet is started. It's always on a subsequent instantiation. Frequently, when it occurs, the applet is only partially painted and I sometimes see paint related calls on the stack trace of the awt thread. -
Logo not printing in PDF form, when being printing from the B2b Portal
Hello -
I have a smartform, in our CRM 4.0 system. When I go into transaction smartforms, the logo shows up in the preview of the smartform. In displaying the PDF from the Portal, the logo is not showing. I debugged in the background, the function SSFCOMP_PRINT_GRAPHIC is returning a value of sy-subrc = 0. Any ideas?
Thanks,
GeorgeRaised different thread.
-
Exception when opening migrating From Jdev9.02 to 9.03
I am getting the following exception when migrating my project from Jdeveloper 9.02 to 9.031 version.
Below is the Exception Stack trace
java.lang.NullPointerException
void oracle.ideimpl.scm.impl.BufferWatcher.handleWatchEvent()
BufferWatcher.java:135
java.util.List oracle.ideimpl.scm.env.OperationRuntimeImpl.performImpl(oracle.ide.scm.SCMOperation, java.util.List, boolean)
OperationRuntimeImpl.java:207
void oracle.ideimpl.scm.impl.ActionController.handleEventImpl(oracle.ide.scm.SCMOperation, oracle.ide.IdeAction, oracle.ide.addin.Context)
ActionController.java:604
void oracle.ideimpl.scm.impl.ActionController.access$2000071(oracle.ideimpl.scm.impl.ActionController, oracle.ide.scm.SCMOperation, oracle.ide.IdeAction, oracle.ide.addin.Context)
ActionController.java:68
void oracle.ideimpl.scm.impl.ActionController$1.run()
ActionController.java:181
void oracle.ideimpl.scm.impl.OperationThread$ThreadRunnable.run()
OperationThread.java:212
void oracle.ideimpl.scm.impl.OperationThread$ThreadRunnable.access$2000071(oracle.ideimpl.scm.impl.OperationThread$ThreadRunnable)
OperationThread.java:184
void oracle.ideimpl.scm.impl.OperationThread.run()
OperationThread.java:157Hi,
How did you upgrade JDeveloper? You should install new releases of JDeveloper into a new, empty directory, not over the top of any existing installation. I'm not sure if this is the cause of your problem, but we've seen many other issues in the past due to this.
Thanks,
Brian
JDev Team -
Exception when retreiveing list from JNDI when the list updates at the same time.
Hi
I get a Exception when i am retreiving a list from the jndi:
Start server side stack trace:
com.sun.java.util.collections.ConcurrentModificationException
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.RuntimeException.<init>(Compiled Code)
at
com.sun.java.util.collections.ConcurrentModificationException.<init>(Concurr
entModificationException.java:48)
at com.sun.java.util.collections.HashMap$HashIterator.next(Compiled
Code)
at
weblogic.jndi.toolkit.ReadOnlyMapBasedNamingStore$1.nextElement(Compiled
Code)
at weblogic.jndi.toolkit.AbstractNamingEnumeration.next(Compiled
Code)
at
weblogic.jndi.toolkit.AbstractNamingEnumeration.nextElement(Compiled Code)
at
weblogic.utils.enumerations.BatchingEnumerationBase.nextBatch(Compiled Code)
at
weblogic.utils.enumerations.BatchingEnumerationBase_WLSkel.invoke(BatchingEn
umerationBase_WLSkel.java:66)
at weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(Compiled
Code)
at
weblogic.rmi.extensions.BasicRequestHandler.handleRequest(Compiled Code)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:1
5)
at weblogic.kernel.ExecuteThread.run(Compiled Code)
End server side stack trace
It says in the documentation of the weblogic server that: if the jndi is
updated while you are retreiving the list from the server, you will only get
the old list.
And that is ok for me. But insted i get this exception that interupts the
list retreiving. And if i just catch this exception an just continue or
start again, it comes over and over.
the code that does this, is like this:
InitialContext context = new InitialContext(env);
NamingEnumeration list = context.listBindings("sid");
Vector copy = new Vector(10000,1000);
log("Initiating copy of JNDI list!");
try
while (list.hasMore())
copy.addElement(list.next());
catch (Exception e)
log("Copying interupted:" + e.toString());
How can i solve this ?
Is it a configuration of the server problem ?
Are ther other ways of retreiving the list ?
-Ståle TomtenBe carefull - you read Object two times, so if you
have only one object you will get null after second
reading, and NullPointerException as a result if you
try to do smth with null.
Wrong:
while( inputFromServlet1.readObject() != null)
Object o = inputFromServlet1.readObject();Previous man example is also wrong because you
cannot declare anything in while
Sorry for this one... I certainly must have spent too much time on these fora ;-)
Thanks for the correction, by the way...
Correct:
Object o;
while( (o = inputFromServlet1.readObject()) != null)
String str = (String)o;
System.out.println("Got Object"); -
Getting a security exception when invoking EJB from a webservice
Hi,
I am getting the following exception when Invoke an EJB from a web service.
The EJB fails when it tries to access a remote object(RMI).
When I invoke the EJB directly I dont get this exception.
Both the EJB and the WS are deployed as part of the same application on weblogic 9.2 .
the WS was created by jwsc ant task.
This is the exception:
java.rmi.ServerException: RemoteException occurred in server thread; nested exce
ption is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested excep
tion is:
java.lang.ClassNotFoundException: com.bea.xml.XmlCalendar (no security m
anager: RMI class loader disabled)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
60)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
.java:701)
at java.lang.Thread.run(Thread.java:534)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
RemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
at com.netcom.server.rmi.RequestHandlerImpl_
Stub.copy(Unknown Source)
Message was edited by:
guyhHi Jitu,
I changed the wsdl. And so I don�t get the warning anymore. My Webservice also runs well, now. Thanks anyway for the reply.
There is a nice tech article on the sun network, which solved my problem. The basic idea is to split the wsdl into 2 wsdl documents. one containing all the porttypes messages and so on. And the other wsdl contains the binding and service elements.
If you are interested check out this link:
http://java.sun.com/developer/technicalArticles/xml/jaxrpcpatterns/index2.html
thanks,
footman -
I messages being received from a different numner
When i send a message to a friend who has an i phone they receive the message from a different number how can i stop this? as they are replying to this number and i am not receiving their messages.
More than likely someone sent you an iMessage addressed to your Apple ID email address that is also registered with iMessage on your iPhone in addition to your cell phone number. The cell phone number is registered with the Apple ID email address when activating iMessage on an iPhone.
Go to Settings > Messages > Send & Receive.
Under You Can Be Reached By iMessage At, deselect your Apple ID email address.
Under Start New Conversations From, make sure your cell phone number is selected. -
Message format exception when running TestProducer from EDM
Hi,
I'm getting weblogic.jms.common.MessageFormatException: Illegal property name, 'error-contex
t' error when running TestProducer from EDM. Does anyone know how i can change error-context to a string without - ? Or any suggestion to make it work ?
Thanks,
Jessie
Hi Jessie,
As per the JMS specification, property names must be a legal identifier,
similar to java variable names. I think the reason for this is
that property names are used in selectors, and the parser would have
no clue what do with an expression like:
error-context > 10
Tom
Jessie Yau wrote:
> Hi,
> I'm getting weblogic.jms.common.MessageFormatException: Illegal property name, 'error-contex
> t' error when running TestProducer from EDM. Does anyone know how i can change error-context to a string without - ? Or any suggestion to make it work ?
>
> Thanks,
> Jessie
-
Is possible to use ExportController suite from a different thread?
I need to command some exports asynchronously.
Running multiple exports in parallel is not a requirement, but it would be nice at least to request them from a thread that is not the callback thread (i'm using the microsoft concurrency runtime framework)
Thank youThe main thread (exportController_ExportTimeline) has proper synchronization for waiting the result to become available
2nd THREAD ROUTINE PSEUDO CODE{
ret = pExportControllerSuite->ExportFile(pJob->pTimelineInfo->mModuleID, pJob->pTimelineInfo->mTimelineID, &ecExportRec); //deadlocks here, but in background it works (high CPU usage, output file valid)
signalExportDone(); //never reached
ADDITIONAL NOTE: when the export is fired from the second thread the Premiere progress GUI is not shown!! -
Exception when deploying application from workshop.
Hi All,
When I deploy the application from my workshop IDE I get follwoing exception. Not sure what this is...
If any body has faced similar issue ? I am using workshop 9.2.1
java.lang.NullPointerException
at com.bea.staxb.buildtime.internal.bts.XmlTypeName.findTypeIn(XmlTypeName.java:559)
at weblogic.wsee.bind.runtime.internal.RuntimeBindingsImpl.getSchemaTypeForXmlTypeName(RuntimeBindingsImpl.java:
257)
at weblogic.wsee.ws.WsBuilder.addXmlObject(WsBuilder.java:486)
at weblogic.wsee.ws.WsBuilder.createXmlBeansBindings(WsBuilder.java:408)
at weblogic.wsee.ws.WsBuilder.completeTypeInfo(WsBuilder.java:889)
Truncated. see log file for complete stacktrace
>
<Jun 25, 2007 10:44:33 AM PDT> <Error> <Deployer> <BEA-149265> <Failure occured in the execution of deployment request w
ith ID '1182793472425' for task '1'. Error is: 'weblogic.application.ModuleException: [HTTP:101216]Servlet: "WivWSServic
eServlethttp" failed to preload on startup in Web application: "wivWebServices".
java.lang.NullPointerException
at com.bea.staxb.buildtime.internal.bts.XmlTypeName.findTypeIn(XmlTypeName.java:559)
at weblogic.wsee.bind.runtime.internal.RuntimeBindingsImpl.getSchemaTypeForXmlTypeName(RuntimeBindingsImpl.java:
257)
at weblogic.wsee.ws.WsBuilder.addXmlObject(WsBuilder.java:486)
at weblogic.wsee.ws.WsBuilder.createXmlBeansBindings(WsBuilder.java:408)
at weblogic.wsee.ws.WsBuilder.completeTypeInfo(WsBuilder.java:889)
at weblogic.wsee.ws.WsBuilder.createRuntimeBindingProvider(WsBuilder.java:387)
at weblogic.wsee.ws.WsBuilder.buildService(WsBuilder.java:135)
at weblogic.wsee.ws.WsFactory.createServerService(WsFactory.java:55)
at weblogic.wsee.server.servlet.WebappWSServlet.initRuntime(WebappWSServlet.java:67)
at weblogic.wsee.server.servlet.WebappWSServlet.initImpl(WebappWSServlet.java:32)
at weblogic.wsee.server.servlet.BaseWSServlet.init(BaseWSServlet.java:61)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:274)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:504)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1716)
at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1693)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1613)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2764)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:889)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:333)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:154)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:566)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:
136)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:104)
at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:131)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:320)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:815)
at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1222)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:433)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:161
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(Deployment
ReceiverCallbackDeliverer.java:181)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiv
erCallbackDeliverer.java:12)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCal
lbackDeliverer.java:67)
at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)Hi
Issue 1: Regarding the deployment issue, do you see the line in your JWS?
Following soapbinding annotation:
@SOAPBinding(style=SOAPBinding.Style.DOCUMENT, use=SOAPBinding.Use.LITERAL,parameterStyle=SOAPBinding.ParameterStyle.BARE)
Change it to
following soapbinding annotation:
@SOAPBinding(style=SOAPBinding.Style.DOCUMENT, use=SOAPBinding.Use.LITERAL,parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
it should deploy fine. This is a known issue and BARE style is unsupported as described at http://edocs.bea.com/workshop/docs92/relnotes/relnotes.html (look for CR283457)
Here is what it says:
CR283457 - XBeans are not supported as parameters or return type for doc/lit/bare operations.
Use of Xbeans as a parameter or return type with doc/lit/bare bindings is not supported in operations or callbacks and will result in a failure during deployment.
Platform: All
Workaround: Use doc/lit/wrapped for services that use XBeans as parameters or return types.
Issue 2: Failure on the client side
Are you using clientgen and a java client for the webservice?
I found a bug on the same issue CR340707 but it appears we don't support Xmlbeans with clientgen and was closed as NotSupported feature.
Vimala- -
Error is STMS when import client from 2 different system
I have two system in same landscape, system 1 is production with system ID : SEP, system 2 is develop with system ID : SED (is Domain Controller),
system 1 & 2 in same domain with Domain Controller : DOMAIN_SED in STMS
And then, I exported client 800 on production system (system 1) with profile SAP_EXPA
and I have 3 request : KO00189.SEP ; KT00189.SEP ; KX00189.SEP (cofiles) and RO00189.SEP ; RT00189.SEP ; RX00189.SEP (data)
I copied 3 request above into system 3 (system 3 is different landscape with 2 system above and i setup system 3 at different location, so called backup system. System 3 is setup with system ID: SED and Domain Controller DOMAIN_SED too)
Then i imported client 800 into system 3
and i have an error in system 3 : System unknown in Transport Management System
Please help me ...
Thanks allhi Shanker !
after reset user TMSADM -> connection not change -> connection work OK
i tried it but error remaining
Information extra :
system 3 is a physical system with Domain Controller : DOMAIN_SED ****** SID : SED and extra setup a virtual system as SEP on system 3
I configured tranport route from SED to SEP, so error "System unknown in Transport Management System" no longer
but arise new error "Error occurred in SED TMS communication"
Information extra error "Error occurred in SED TMS communication" when import request :
Error occurred in SED TMS communication
Message no. XT149
Diagnosis
An error occurred in the TMS communication layer of the following SAP system:
System: SED.DOMAIN_SED(000)
Function: TMS_CC_READ_CCCFLOW_OF_TRKORR
Error: SERVICE_NOT_AVAILABLE ()
System Response
The function terminates.
Procedure
Check your transport control station configuration with transaction STMS.
thanks all
I hope error to solve soon ..... -
Security Exception when loading image from other host
Hi,
I have a signed webstart application, with 'all-permissions' set, which displays HTML in an JEditorPane.
The displayed HTML code contains an image tag which wants to load the image from another host. This results in a security exception.
I thought 'all-permissions' allows everything. Is there a workaround?
TIA
Chrissigning your app and specifying <all-permissions> in the security tag of the jnlp file will grant all permissions to all code loaded by the JNLPClassLoader.
In some cases your app or an extension it includes contains it's own classloader which dosnt extend SecureClassLoader, and so code loaded by that classloader will not be run with all-permissions when a SecurityManager is installed by Java Web Start. If this is the case you can get around this by calling:
Systerm.setSecurityManager(null).
To see what the specific cause in this case, you would have to post the exception thrown.
/Andy -
Photoshop is changing file names when being accessed from EmbARK software
Files open up within PS when accessed from a share on the server. When attempting to save the file the name is always changed.
Here is the system info:
Adobe Photoshop Version: 11.0.2 (11.0.2x20100514 [20100514.r.591 2010/05/14:02:00:00 cutoff; r branch])
Operating System: Windows NT
Version: 6.1 Service Pack 1
System architecture: Intel CPU Family:6, Model:10, Stepping:7 with MMX, SSE Integer, SSE FP, SSE2
Physical processor count: 2
Logical processor count: 4
Processor speed: 3093 MHz
Video Card Vendor: Intel
Video Card Renderer: Intel(R) HD Graphics Family
OpenGL Drawing: Enabled.
Video Card: Intel(R) HD Graphics Family
Video Mode: 1600 x 900 x 4294967296 colors
Video Card Driver: igdumd64.dll,igd10umd64.dll,igd10umd64.dll,igdumdx32,igd10umd32,igd10umd32
Driver Version: 8.15.10.2312
Built-in memory: 2983 MB
Free memory: 998 MB
Memory available to Photoshop: 2488 MB
Memory used by Photoshop: 60 %
Image cache levels: 4
Serial number:
Application folder: C:\Program Files (x86)\Adobe\Adobe Photoshop CS4\
Temporary file path: C:\Users\ALLYSO~1.BUR\AppData\Local\Temp\
Photoshop scratch has async I/O enabled
Scratch volume(s):
Startup, 222.6G, 121.7G free
Primary Plug-ins folder: C:\Program Files (x86)\Adobe\Adobe Photoshop CS4\Plug-ins\
Additional Plug-ins folder: not set
Installed components:
ACE.dll ACE 2008/08/27-18:10:41 53.355610 53.355610
AdobeLinguistic.dll Adobe Linguisitc Library 4.0.0
AdobeLM.dll AdobeLM 3.0.11.10077 (BuildVersion: 53.352460; BuildDate: Tue Jul 29 2008 16:47:08) 53.352460
AdobeLM_libFNP.dll FLEXnet Publisher (32 bit) 11.5.0.1 build 57427
AdobeOwl.dll Adobe Owl 2008/08/14-18:38:42 2.0.70 53.354161
AdobeOwlCanvas.dll Adobe Owl Canvas 2.0.70 53.354161
AdobePDFL.dll PDFL 2008/08/20-20:15:08 53.204060 53.204060
AdobeUpdater.dll Adobe Updater Library 6.0.0.1452 (BuildVersion: 52.338651; BuildDate: Wed Apr 16 2008 19:28:20) 52.338651
AdobeXMP.dll Adobe XMP Core 4.2.2 53.352624
AdobeXMPFiles.dll Adobe XMP Files 4.2.2 53.352624
AdobeXMPScript.dll Adobe XMP Script 4.2.2 53.352624
adobe_caps.dll Adobe CAPS 2,0,99,0 2.135373
adobe_epic.dll Adobe EPIC 3.0.1.10077 (BuildVersion: 53.352460; BuildDate: Tue Jul 29 2008 16:47:08) 53.352460
adobe_eula.dll Adobe EPIC EULA 3.0.1.10077 (BuildVersion: 53.352460; BuildDate: Tue Jul 29 2008 16:47:08) 53.352460
AFlamingo.dll AFlamingo 2008/07/09-11:28:44 53.350580 53.350580
AGM.dll AGM 2008/08/27-18:10:41 53.355610 53.355610
ahclient.dll AdobeHelp Dynamic Link Library 1, 3, 12, 0
aif_core.dll AIF 1.0 53.352475
aif_ogl.dll AIF 1.0 53.352475
amtlib.dll AMTLib 2.0.1.10077 (BuildVersion: 53.352460; BuildDate: Tue Jul 29 2008 16:47:08) 53.352460
amtservices.dll AMTServices 2.0.1.10077 (BuildVersion: 53.352460; BuildDate: Tue Jul 29 2008 16:47:08) 53.352460
ARE.dll ARE 2008/08/27-18:10:41 53.355610 53.355610
asneu.dll AsnEndUser Dynamic Link Library 1, 6, 0, 8
authplay.dll
AXE8SharedExpat.dll AXE8SharedExpat 2008/06/11-20:19:53 NFR 53.348206 53.348206
AXEDOMCore.dll AXEDOMCore 2008/06/11-20:19:53 53.348206 53.348206
Bib.dll BIB 2008/08/27-18:10:41 53.355610 53.355610
BIBUtils.dll BIBUtils 2008/08/27-18:10:41 53.355610 53.355610
cg.dll NVIDIA Cg Runtime 2.0.0015
cgGL.dll NVIDIA Cg Runtime 2.0.0015
CoolType.dll CoolType 2009/01/16-10:41:46 53.372607 53.372607
data_flow.dll AIF 1.0 53.352475
ExtendScript.dll ExtendScript 2008/07/17-13:28:24 53.351316 53.351316
FileInfo.dll Adobe XMP FileInfo 4.2.2 53.352624
FNP_Act_Installer.dll FLEXnet Publisher (32 bit) 11.6.0.1 build 60959
icucnv36.dll International Components for Unicode 2008/03/20-16:33:10 Build gtlib_1.1 CL#7223
icudt36.dll International Components for Unicode 2008/03/20-16:33:10 Build gtlib_1.1 CL#7223
image_flow.dll AIF 1.0 53.352475
image_runtime.dll AIF 1.0 53.352475
JP2KLib.dll JP2KLib 2008/06/11-20:19:53 53.100857 53.100857
libifcoremd.dll Intel(r) Visual Fortran Compiler 10.0 (Update A)
libmmd.dll Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler 10.0
MPS.dll MPS 2008/07/07-10:33:04 53.350311 53.350311
msvcp71.dll Microsoft® Visual Studio .NET 7.10.3077.0
msvcr71.dll Microsoft® Visual Studio .NET 7.10.3052.4
pdfsettings.dll Adobe PDFSettings 1.04
Photoshop.dll Adobe Photoshop CS4 CS4
Plugin.dll Adobe Photoshop CS4 CS4
PlugPlug.dll Adobe(R) CSXS PlugPlug Standard Dll (32 bit) 1.0.0.73
PSArt.dll Adobe Photoshop CS4 CS4
PSViews.dll Adobe Photoshop CS4 CS4
registration.dll Registration 2.0.1.10077 (BuildVersion: 53.352460; BuildDate: Tue Jul 29 2008 16:47:08) 53.352460
SCCore.dll ScCore 2008/07/17-13:28:24 53.351316 53.351316
shfolder.dll Microsoft(R) Windows (R) 2000 Operating System 5.50.4027.300
WRServices.dll WRServices Friday May 30 2008 7:18:42 Build 0.7713 0.7713
Installed plug-ins:
ADM 3.11x01
Accented Edges 11.0
Angled Strokes 11.0
Average 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
BMP 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Bas Relief 11.0
Camera Raw 5.7
Chalk & Charcoal 11.0
Charcoal 11.0
Chrome 11.0
Cineon 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Clouds 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Color Halftone 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Colored Pencil 11.0
CompuServe GIF 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Conté Crayon 11.0
Craquelure 11.0
Crop and Straighten Photos 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Crop and Straighten Photos Filter 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Crosshatch 11.0
Crystallize 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Cutout 11.0
Dark Strokes 11.0
De-Interlace 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Difference Clouds 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Diffuse Glow 11.0
Displace 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Dry Brush 11.0
Embed Watermark 3.0
Extrude 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
FXG 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
FastCore Routines 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Fibers 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Film Grain 11.0
Filmstrip 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Filter Gallery 11.0
Fresco 11.0
Glass 11.0
Glowing Edges 11.0
Grain 11.0
Graphic Pen 11.0
HDRMergeUI 11.0
Halftone Pattern 11.0
IFF Format 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Ink Outlines 11.0
Lens Blur 11.0
Lens Correction 11.0
Lens Flare 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Lighting Effects 11.0.2 (11.0.2x20100514 [20100514.r.591 2010/05/14:02:00:00 cutoff; r branch])
Liquify 11.0
MMXCore Routines 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Matlab Operation 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Measurement Core 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Mezzotint 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Mosaic Tiles 11.0
Multiprocessor Support 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
NTSC Colors 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Neon Glow 11.0
Note Paper 11.0
Ocean Ripple 11.0
OpenEXR 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
PCX 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
PNG 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Paint Daubs 11.0
Palette Knife 11.0
Patchwork 11.0
Paths to Illustrator 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Photocopy 11.0
Picture Package Filter 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Pinch 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Pixar 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Plaster 11.0
Plastic Wrap 11.0
Pointillize 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Polar Coordinates 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Portable Bit Map 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Poster Edges 11.0
Radial Blur 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Radiance 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Read Watermark 3.0
Reticulation 11.0
Ripple 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Rough Pastels 11.0
Save for Web & Devices 11.0
ScriptingSupport 11.0.2
Send Video Preview to Device 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Shear 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Smart Blur 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Smudge Stick 11.0
Solarize 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Spatter 11.0
Spherize 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Sponge 11.0
Sprayed Strokes 11.0
Stained Glass 11.0
Stamp 11.0
Sumi-e 11.0
Targa 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Texturizer 11.0
Tiles 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Torn Edges 11.0
Twain Acquire 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Twain Select 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Twirl 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Underpainting 11.0
Vanishing Point 11.0
Variations 11.0 (11.0x001)
Video Preview 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
WIA Support 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Water Paper 11.0
Watercolor 11.0
Wave 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Wind 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Wireless Bitmap 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
ZigZag 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Plug-ins that failed to load: NONE
Flash:
Connections
Kuler
Installed TWAIN devices: NONE -
Exception when fetch message from pop3 mail server
below exception occur whenever i fetched message from pop3 mail server. Its occur for perticular message. so i catched javax.mail.MessagingException but this is not working and rest of the messages skips.
plz help me , its urgent.
javax.mail.MessagingException: error loading POP3 headers;
nested exception is:
java.io.IOException: Unexpected response: ------=_NextPart_000_01B9_01C8
A1AB.148BE090
at com.sun.mail.pop3.POP3Message.loadHeaders(POP3Message.java:467)
at com.sun.mail.pop3.POP3Message.getHeader(POP3Message.java:275)
at javax.mail.internet.MimeMessage.getSubject(MimeMessage.java:717)
at fetch1.<init>(fetch1.java:92)
at fetch1.main(fetch1.java:185)
Caused by: java.io.IOException: Unexpected response: ------=_NextPart_000_01B9_0
1C8A1AB.148BE090
at com.sun.mail.pop3.Protocol.simpleCommand(Protocol.java:361)
at com.sun.mail.pop3.Protocol.multilineCommand(Protocol.java:373)
at com.sun.mail.pop3.Protocol.top(Protocol.java:271)
at com.sun.mail.pop3.POP3Message.loadHeaders(POP3Message.java:451)
... 4 more
Press any key to continue...Code :-
import java.util.*;
import java.io.*;
import javax.mail.*;
import javax.mail.Flags.*;
import javax.mail.internet.*;
import javax.activation.*;
public class fetch3
fetch3()
try
// Setup properties
Properties props = System.getProperties();
props.put("mail.pop3.host","myMailserver ip");
// Setup authentication, get session
Authenticator auth = new PopupAuthenticator();
Session session = Session.getDefaultInstance(props, auth);
// Get the store
Store store = session.getStore("pop3");
store.connect();
// Get folder
Folder folder = store.getFolder("INBOX");
folder.open(Folder.READ_WRITE);
Flags flag = folder.getPermanentFlags();
// Get directory
Message message[] = folder.getMessages();
// Display from (only first) and subject of messages
for (int i=0, n=message.length; i<n; i++)
System.out.println ("------------------------------------------------------");
System.out.println(" From : "+message.getFrom()[0]);
System.out.println(" To : "+message[i].getAllRecipients()[0]+" "+message[i].getAllRecipients().length);
System.out.println(" Replyto : "+message[i].getReplyTo()[0]);
System.out.println(" Subject : "+message[i].getSubject());
System.out.println ("type "+message[i].getContent());
Part messagePart=message[i];
Object content=messagePart.getContent();
// -- or its first body part if it is a multipart message --
if (content instanceof Multipart)
messagePart=((Multipart)content).getBodyPart(0);
// System.out.println("[ Multipart Message ]");
// -- Get the content type --
String contentType=messagePart.getContentType();
// -- If the content is plain text, we can print it --
System.out.println("CONTENT:"+contentType);
if (contentType.startsWith("text/plain") || contentType.startsWith("text/html") || contentType.startsWith("multipart/alternative"))
InputStream is = messagePart.getInputStream();
BufferedReader reader
=new BufferedReader(new InputStreamReader(is));
String thisLine=reader.readLine();
while (thisLine!=null)
System.out.println(thisLine);
thisLine=reader.readLine();
System.out.println ("------------------------------------------------------");
// Close connection
folder.close(false);
store.close();
catch(Exception e)
e.printStackTrace();
public static void main(String s[])
new fetch3();
Regards
Sagar
Edited by: sagar_birari on 23 Apr, 2008 1:18 PM
Edited by: sagar_birari on 23 Apr, 2008 4:30 PMit shows below output
C:\>java -Dmail.debug=true fetch1
DEBUG: JavaMail version 1.4ea
DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jre1.5.0_06\lib\java
mail.providers (The system cannot find the file specified)
DEBUG: !anyLoaded
DEBUG: not loading resource: /META-INF/javamail.providers
DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
DEBUG: Tables of loaded providers
DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax
.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsyste
ms, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com
.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLSt
ore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsyst
ems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.su
n.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=jav
ax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc],
com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP
3Store,Sun Microsystems, Inc]}
DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.
sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STOR
E,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Prov
ider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc],
pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems
, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.S
MTPTransport,Sun Microsystems, Inc]}
DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
DEBUG: !anyLoaded
DEBUG: not loading resource: /META-INF/javamail.address.map
DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jre1.5.0_06\lib\java
mail.address.map (The system cannot find the file specified)
DEBUG: getProvider() returning javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.
POP3Store,Sun Microsystems, Inc]
DEBUG POP3: connecting to host "pop3_server_ip", port 110, isSSL false
S: +OK Hello there.
C: USER [email protected]
S: +OK Password required.
C: PASS mypass
S: +OK logged in.
DEBUG: setDebug: JavaMail version 1.4ea
C: STAT
S: +OK 16 143077
C: NOOP
S: +OK Yup.Edited by: sagar_birari on 24 Apr, 2008 1:16 PM
Edited by: sagar_birari on 24 Apr, 2008 1:18 PM
Maybe you are looking for
-
The computer I had all of my iTunes music on recently got a virus and was completley wiped. I will now be attempting to use my laptop for iTunes, which I just installed. But now my iPhone 4 has 150+ songs and my iTunes has none. I know I cannot trans
-
Check Sysdate for a specified Time
Hi, I have requirement to check sysdate for particular time in a script,If it has systime is equal to that time in the evening, I need to exit the script and write messages to log file. I am doing the following but it's not working properly, Can anyb
-
How to write dbms_out traces into a file (in a shell script)?
I'm afraid this is a shell scripting question: I have the following lines in a script: ls $salida/EXAR* | while read FILE do sqlplus -s user@isntance/password << EOF set serveroutput on size 1000000 set feedback off --set trimspool on var p_out_resul
-
Problems Upgrading from 4.5.20 to 4.6.21
Hello, For some reason my program keeps crashing when we try to complie and load against 4.6.21. I have checked the following things: 1. Make sure that all modules are compiled using 4.6.21 (no version mixing.) 2. When using debug modules, make sure
-
Trend Micro Internet Security 2009
Does anyone know how I can fix the settings on Trend Micro Internet Security 2009, so that I am able to download songs again? The song partially downloads, and then it says processing file, and never finishes. What can I do to fix this?