Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NotSerializableException when dragging JTabFrame tab #236

Closed
GraxCode opened this issue Jun 12, 2021 · 4 comments
Closed

NotSerializableException when dragging JTabFrame tab #236

GraxCode opened this issue Jun 12, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@GraxCode
Copy link

Describe the bug

java.io.NotSerializableException: com.github.weisj.darklaf.ui.tabframe.TabFrameTransferHandler$TabTransferable$TabTransferData
	at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1193)
	at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:353)
	at java.desktop/sun.awt.datatransfer.DataTransferer.convertObjectToBytes(DataTransferer.java:979)
	at java.desktop/sun.awt.datatransfer.DataTransferer.translateTransferable(DataTransferer.java:964)
	at java.desktop/sun.awt.datatransfer.DataTransferer$2.run(DataTransferer.java:1880)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:316)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

To Reproduce
Happens when dragging a JTabFrame tab to another location.

Additional Information:

  • OS: Manjaro
  • Darklaf Version: 2.6.1
@GraxCode GraxCode added the bug Something isn't working label Jun 12, 2021
@weisJ
Copy link
Owner

weisJ commented Jun 12, 2021

Is this within a single application or between different applications? Otherwise I'm not sure why serializing the 'TabTransferData' is even attempted.

@GraxCode
Copy link
Author

I don't know, but i assume it is not within a single one.

@GraxCode
Copy link
Author

It seems like this happens when dragging the tab outside of the frame onto the desktop. I am on Manjaro KDE.

@weisJ
Copy link
Owner

weisJ commented Jun 13, 2021

Thanks for the info. I'll investigate how to rule out the desktop as a drop target then. It really doesn't make much sense to drop a UI component on the desktop :D.

weisJ added a commit that referenced this issue Jun 13, 2021
@weisJ weisJ closed this as completed Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants