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

Huboc refresh Token error with big list of uploads #26

Closed
Nolivfr opened this Issue May 25, 2014 · 4 comments

Comments

Projects
None yet
2 participants
@Nolivfr

Nolivfr commented May 25, 2014

Hi,

I tried multiple times to upload a big list of files (about 180,000 files), but it failed every time. I thought it was the memory allocation. I used the jar file with -xmx4096M from command line, but still can't complete my upload on Hubic and I had this error :

INFO Configuration - Refresh the access token.
ERROR AbstractCommand - JOSS / HTTP HEAD call https://lb1.hubic.ovh.net/v1/AUTH_9c10269d20b224601601d77440127958/NAS, HTTP status 401, Error UNAUTHORIZED
ERROR AbstractCommand - * X-Auth-Token=cHVbAZEjwjlCWj4GrQ2M6qZLixz0jeI2TTqB6fLOBS5MJNBUKNnhbwVvYJNDbR5j
ERROR AbstractCommand - * CONNECTION=Keep-Alive
INFO Configuration - Refresh the access token.
ERROR MainPanel - Error occurred
java.lang.RuntimeException: java.lang.IllegalArgumentException: Cannot get String from a null object
at org.swiftexplorer.gui.util.AsyncWrapper$1$1.run(AsyncWrapper.java:53)

    at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.IllegalArgumentException: Cannot get String from a null object
at org.scribe.utils.Preconditions.check(Preconditions.java:84)
at org.scribe.utils.Preconditions.checkNotNull(Preconditions.java:31)
at org.scribe.utils.StreamUtils.getStreamContents(StreamUtils.java:22)
at org.scribe.model.Response.parseBodyContents(Response.java:43)
at org.scribe.model.Response.getBody(Response.java:69)
at org.swiftexplorer.auth.oauth.HubicOAuth20ServiceImpl.refreshAccessToken(HubicOAuth20ServiceImpl.java:91)
at org.swiftexplorer.swift.util.HubicSwift.refreshAccessToken(HubicSwift.java:83)
at org.swiftexplorer.swift.command.impl.identity.ExtAuthenticationCommandImpl.call(ExtAuthenticationCommandImpl.java:62)
at org.swiftexplorer.swift.command.impl.identity.ExtAuthenticationCommandImpl.call(ExtAuthenticationCommandImpl.java:32)
at org.javaswift.joss.command.impl.factory.AccountCommandFactoryImpl.authenticate(AccountCommandFactoryImpl.java:66)
at org.javaswift.joss.client.core.AbstractAccount.authenticate(AbstractAccount.java:171)
at org.javaswift.joss.command.impl.core.AbstractSecureCommand.call(AbstractSecureCommand.java:34)
at org.javaswift.joss.client.core.AbstractContainer.getInfo(AbstractContainer.java:235)
at org.javaswift.joss.client.core.AbstractObjectStoreEntity.checkForInfo(AbstractObjectStoreEntity.java:98)
at org.javaswift.joss.client.core.AbstractObjectStoreEntity.checkForInfo(AbstractObjectStoreEntity.java:89)
at org.javaswift.joss.client.core.AbstractObjectStoreEntity.reload(AbstractObjectStoreEntity.java:138)
at org.swiftexplorer.swift.operations.SwiftOperationsImpl.reloadContainer(SwiftOperationsImpl.java:674)
at org.swiftexplorer.swift.operations.SwiftOperationsImpl.reloadContainer(SwiftOperationsImpl.java:665)
at org.swiftexplorer.swift.operations.SwiftOperationsImpl.uploadDirectory(SwiftOperationsImpl.java:1123)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.swiftexplorer.gui.util.AsyncWrapper$1$1.run(AsyncWrapper.java:48)

    ... 1 more

ERROR AbstractCommand - JOSS / HTTP HEAD call https://lb1.hubic.ovh.net/v1/AUTH_9c10269d20b224601601d77440127958/NAS, HTTP status 401, Error UNAUTHORIZED
ERROR AbstractCommand - * X-Auth-Token=cHVbAZEjwjlCWj4GrQ2M6qZLixz0jeI2TTqB6fLOBS5MJNBUKNnhbwVvYJNDbR5j
ERROR AbstractCommand - * CONNECTION=Keep-Alive
INFO Configuration - Refresh the access token.
ERROR AbstractCommand - JOSS / HTTP HEAD call https://lb1.hubic.ovh.net/v1/AUTH_9c10269d20b224601601d77440127958/NAS, HTTP status 401, Error UNAUTHORIZED
ERROR AbstractCommand - * X-Auth-Token=1NiobPo9TlIkc1ZqyAGmmSlGHdvFdFQupMwnrx3FbWoDmgMyBD1wkK214XxWhBjI
ERROR AbstractCommand - * CONNECTION=Keep-Alive
ERROR AbstractCommand - JOSS / HTTP HEAD call https://lb1.hubic.ovh.net/v1/AUTH_9c10269d20b224601601d77440127958/NAS, HTTP status 401, Error UNAUTHORIZED
ERROR AbstractCommand - * X-Auth-Token=1NiobPo9TlIkc1ZqyAGmmSlGHdvFdFQupMwnrx3FbWoDmgMyBD1wkK214XxWhBjI
ERROR AbstractCommand - * CONNECTION=Keep-Alive
INFO Configuration - Refresh the access token.
ERROR MainPanel - Error occurred
java.lang.IllegalArgumentException: Cannot get String from a null object
at org.scribe.utils.Preconditions.check(Preconditions.java:84)
at org.scribe.utils.Preconditions.checkNotNull(Preconditions.java:31)
at org.scribe.utils.StreamUtils.getStreamContents(StreamUtils.java:22)
at org.scribe.model.Response.parseBodyContents(Response.java:43)
at org.scribe.model.Response.getBody(Response.java:69)
at org.swiftexplorer.auth.oauth.HubicOAuth20ServiceImpl.refreshAccessToken(HubicOAuth20ServiceImpl.java:91)
at org.swiftexplorer.swift.util.HubicSwift.refreshAccessToken(HubicSwift.java:83)
at org.swiftexplorer.swift.command.impl.identity.ExtAuthenticationCommandImpl.call(ExtAuthenticationCommandImpl.java:62)
at org.swiftexplorer.swift.command.impl.identity.ExtAuthenticationCommandImpl.call(ExtAuthenticationCommandImpl.java:32)
at org.javaswift.joss.command.impl.factory.AccountCommandFactoryImpl.authenticate(AccountCommandFactoryImpl.java:66)
at org.javaswift.joss.client.core.AbstractAccount.authenticate(AbstractAccount.java:171)
at org.javaswift.joss.command.impl.core.AbstractSecureCommand.call(AbstractSecureCommand.java:34)
at org.javaswift.joss.client.core.AbstractContainer.getInfo(AbstractContainer.java:235)
at org.javaswift.joss.client.core.AbstractObjectStoreEntity.checkForInfo(AbstractObjectStoreEntity.java:98)
at org.javaswift.joss.client.core.AbstractObjectStoreEntity.checkForInfo(AbstractObjectStoreEntity.java:89)
at org.javaswift.joss.client.core.AbstractContainer.isPublic(AbstractContainer.java:135)
at org.swiftexplorer.gui.MainPanel.getContainerIcon(MainPanel.java:604)
at org.swiftexplorer.gui.MainPanel$2.getTreeCellRendererComponent(MainPanel.java:375)
at javax.swing.plaf.basic.BasicTreeUI.paintRow(Unknown Source)
at javax.swing.plaf.basic.BasicTreeUI.paint(Unknown Source)
at javax.swing.plaf.metal.MetalTreeUI.paint(Unknown Source)
at javax.swing.plaf.ComponentUI.update(Unknown Source)
at javax.swing.JComponent.paintComponent(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JViewport.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JSplitPane.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JSplitPane.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JLayeredPane.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown S
ource)
at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
at java.awt.Container.paint(Unknown Source)
at java.awt.Window.paint(Unknown Source)
at javax.swing.RepaintManager$3.run(Unknown Source)
at javax.swing.RepaintManager$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.access$1100(Unknown Source)
at javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$400(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at java.awt.Window.setVisible(Unknown Source)
at java.awt.Dialog.setVisible(Unknown Source)
at org.swiftexplorer.gui.MainPanel.showError(MainPanel.java:2333)
at org.swiftexplorer.gui.MainPanel$22.uncaughtException(MainPanel.java:2
017)
at java.lang.ThreadGroup.uncaughtException(Unknown Source)
at java.lang.ThreadGroup.uncaughtException(Unknown Source)
at java.awt.EventDispatchThread.processException(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
swiftexplorer_error

@roikku

This comment has been minimized.

Owner

roikku commented May 25, 2014

Hi,

When you say you have tried multiple times, do you mean that you have exited the application between two tries? Or have you tried several times without closing the application?

This problem is due to a failure to refresh the token. I am not quite sure about the reasons why the token was not refreshed, but I will investigate.

Meanwhile, I guess if you re-launch the application and start again to upload your directory, it should be fine (and the upload will be resumed, i.e., it will more or less pick up where it stopped - see this post).

@Nolivfr

This comment has been minimized.

Nolivfr commented May 25, 2014

Hi,

Yes, I have to close the application, because the interface is unusable (see the screenshot attached).

Thanks for the link, that's what I was doing but I wasn't sure about the overwrite button. I will check it now.

@roikku roikku added the bug label May 25, 2014

@roikku roikku added this to the release 1.0.5 milestone May 25, 2014

@roikku roikku self-assigned this May 25, 2014

@roikku

This comment has been minimized.

Owner

roikku commented May 25, 2014

I will check whether there are some anomalies in the mechanism that refreshes the token.

@roikku

This comment has been minimized.

Owner

roikku commented May 26, 2014

Hi,

This issue should now be fixed in the new version 1.0.5.

@roikku roikku closed this May 26, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment