This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 22 - Pages: 2 [ 1 2 | Next ] - Last Post: 12 Apr 21, 14:11 Last Post By: davidekholm Threads: [ Previous | Next ]
PeterGibb

Posts: 181
Registered: 20-Nov-2009
Uploading - Connection preview
Posted: 6 Apr 21, 17:18
 
  Click to reply to this thread Reply
Good Afternoon,

I have been having issues recently uploading and have noticed something
that I just would like to ask about.

If I 'make' an album using jAlbums usual option, all gets done and
an option of 'Upload' then appears. I select Upload, a window with heading 'Connect' is 'Preparing preview...'

Now, at this point the change has been that it literally takes an age to prepare preview, with this change happening all the time now.

Sooo, I have reverted to using Multi Maker to upload, as I can upload a single existing album in less time than it takes to prepare the preview using the normal way and Multi Maker literally flies.

I have changed what settings I can find in the 'preferences' and switched off publishing the album, but uploads always baulk at the 'Preparing preview...' window

So if I may, I am asking why the 'Connect' 'Preparing preview' is taking soooo long to achieve ?

Kind Regards Peter
JeffTucker

Posts: 7,531
Registered: 31-Jan-2006
Re: Uploading - Connection preview
Posted: 6 Apr 21, 17:50   in response to: PeterGibb in response to: PeterGibb
 
  Click to reply to this thread Reply
This sounds familiar, but I'm struggling to remember what I know about it. Just a hunch, but take a look at Tools > Preferences > General > Preview > Type. If it's not External browser, try switching to that and see if it makes a difference. A long shot....
PeterGibb

Posts: 181
Registered: 20-Nov-2009
Re: Uploading - Connection preview
Posted: 6 Apr 21, 18:09   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Hello Jeff,

Yes, I went in there and it was indeed already set to Preview type = External Browser.

I switched it to 'windowed' and no change was seen, so I reset it back to external browser.

I then switched off 'use embedded server', no change, so I switched it back on again.

Hey Ho...

I hope this isn't a daft thing to say, but if Multi Maker was able to know that an album was new and had not been uploaded before, it would then load the Upload/Manage - Step 2 of 2 window, automatically...

Regards Peter
JeffTucker

Posts: 7,531
Registered: 31-Jan-2006
Re: Uploading - Connection preview
Posted: 6 Apr 21, 18:40   in response to: PeterGibb in response to: PeterGibb
 
  Click to reply to this thread Reply
Well, I'm probably out of hunches for the day. My batting average has been suffering, of late. ;)
PeterGibb

Posts: 181
Registered: 20-Nov-2009
Re: Uploading - Connection preview
Posted: 6 Apr 21, 18:46   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Not to worry Jeff, I spect you have been busy.

I just thought I would ask, as I have seen that the Multi Maker
upload routine really is fantastic, it just gets on with it and doesn't
ask any questions, plus, its incredibly fast.

If it could handle new albums then that would be brilliant.

Peter
PeterGibb

Posts: 181
Registered: 20-Nov-2009
Re: Uploading - Connection preview
Posted: 6 Apr 21, 19:13   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
While attempting an upload using the normal way, not Multi Maker, I waited a long time and then got this...

I have attached the two little warning windows as well.

Any ideas...

java.lang.reflect.InvocationTargetException
at java.desktop/java.awt.EventQueue.invokeAndWait(Unknown Source)
at java.desktop/java.awt.EventQueue.invokeAndWait(Unknown Source)
at java.desktop/javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
at se.datadosen.jalbum.JPublishWizard$AccountsStep$4$1.operation(JPublishWizard.java:435)
at se.datadosen.jalbum.SlowOperation.run(SlowOperation.java:115)
Caused by: java.lang.StringIndexOutOfBoundsException: begin 34, end 1, length 34
at java.base/java.lang.String.checkBoundsBeginEnd(Unknown Source)
at java.base/java.lang.String.substring(Unknown Source)
at com.enterprisedt.net.ftp.FTPControlSocket.getPASVParts(FTPControlSocket.java:962)
at com.enterprisedt.net.ftp.FTPControlSocket.createDataSocketPASV(FTPControlSocket.java:880)
at com.enterprisedt.net.ftp.FTPControlSocket.createDataSocket(FTPControlSocket.java:632)
at com.enterprisedt.net.ftp.FTPClient.createDataSocket(FTPClient.java:2756)
at com.enterprisedt.net.ftp.FTPClient.dir(FTPClient.java:3918)
at com.enterprisedt.net.ftp.FTPClient.dir(FTPClient.java:4023)
at com.enterprisedt.net.ftp.FTPClient.dirDetails(FTPClient.java:3837)
at info.cqs.remotefs.ftp.FtpAdapter.getFiles(FtpAdapter.java:322)
at info.cqs.remotefs.RemoteFSBean.getFiles(RemoteFSBean.java:351)
at info.cqs.remotefs.RemoteFSBean.getFiles(RemoteFSBean.java:365)
at info.cqs.remotefs.RemoteFSBean.getFiles(RemoteFSBean.java:358)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at info.cqs.remotefs.RemoteFSBean$RemoteFSHandler.invoke(RemoteFSBean.java:516)
at com.sun.proxy.$Proxy11.getFiles(Unknown Source)
at se.datadosen.jalbum.RemoteFSNode.defineChildNodes(RemoteFSNode.java:147)
at se.datadosen.jalbum.RemoteFSNode.getChildCount(RemoteFSNode.java:116)
at se.datadosen.jalbum.RemoteFSNode.treePath(RemoteFSNode.java:272)
at se.datadosen.jalbum.JPublishWizard$PublishStep.onShow(JPublishWizard.java:1628)
at se.datadosen.component.JWizard$2.actionPerformed(JWizard.java:57)
at se.datadosen.jalbum.JPublishWizard$AccountsStep$4$1.lambda$operation$0(JPublishWizard.java:436)
at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.desktop/java.awt.Dialog.show(Unknown Source)
at java.desktop/java.awt.Component.show(Unknown Source)
at java.desktop/java.awt.Component.setVisible(Unknown Source)
at java.desktop/java.awt.Window.setVisible(Unknown Source)
at java.desktop/java.awt.Dialog.setVisible(Unknown Source)
at se.datadosen.component.JSmartDialog.setVisible(JSmartDialog.java:239)
at se.datadosen.jalbum.SlowOperation.launch(SlowOperation.java:82)
at se.datadosen.jalbum.JPublishWizard$AccountsStep$4.actionPerformed(JPublishWizard.java:456)
at se.datadosen.jalbum.JAlbumFrame$JAlbumFrameActions$28.actionPerformed(JAlbumFrame.java:3969)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.desktop/java.awt.Component.processEvent(Unknown Source)
at java.desktop/java.awt.Container.processEvent(Unknown Source)
at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.desktop/java.awt.Dialog.show(Unknown Source)
at java.desktop/java.awt.Component.show(Unknown Source)
at java.desktop/java.awt.Component.setVisible(Unknown Source)
at java.desktop/java.awt.Window.setVisible(Unknown Source)
at java.desktop/java.awt.Dialog.setVisible(Unknown Source)
at se.datadosen.jalbum.JProgressDialog.setVisible(JProgressDialog.java:331)
at se.datadosen.jalbum.JProgressDialog.updateStateAndSetVisible(JProgressDialog.java:451)
at se.datadosen.jalbum.JAlbumFrame.lambda$setupNewEngine$15(JAlbumFrame.java:1479)
at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Unknown Source)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
PeterGibb

Posts: 181
Registered: 20-Nov-2009
Re: Uploading - Connection preview
Posted: 6 Apr 21, 21:48   in response to: PeterGibb in response to: PeterGibb
 
  Click to reply to this thread Reply
If anyone could say what the error codes mean I would appreciate it.

I just did a few more uploads using the normal approach, all took an age but did eventually go.

I hope I haven't missed something, but when uploading an album that has already
been uploaded, the behaviour of a Multi Maker upload is definitely much much better, as it cuts out having to acknowledge anything and it literally just gets straight into it.

It just made me wonder, would it be possible to apply that approach, or the option of it, when uploading normally ?

Perfectly fine if not, as I shall use Multi Maker, it just seems as if Multi Maker is a bit hidden away actually, its a fantastically rapid uploading tool which is a powerful thing in its own right ! And other than not being able to capture a brand new album, Multi Maker knocks the spots off a 'normal' upload when it comes to its shere speed....!

I just had a quick go with five of my existing albums, Multi Maker made and delivered all five albums before a normal upload even got past preparing its first preview...!

Regards Peter
RobM

Posts: 3,420
Registered: 4-Aug-2006
Re: Uploading - Connection preview
Posted: 6 Apr 21, 22:11   in response to: PeterGibb in response to: PeterGibb
 
  Click to reply to this thread Reply
PeterGibb wrote:
If anyone could say what the error codes mean I would appreciate it.
Sorry, I don't know but this isn't why I'm responding (:

Perfectly fine if not, as I shall use Multi Maker, it just seems as if Multi Maker is a bit hidden away actually...
It's only in the Tool's menu, and you can always use CMD/CNTRL + M
:)
PeterGibb

Posts: 181
Registered: 20-Nov-2009
Re: Uploading - Connection preview
Posted: 6 Apr 21, 22:21   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Hello Rob

Yes, I spose so and you are right, its in the Make Album listing too, I think its probably me just being silly. I apologise for that.

Its quite the most amazingly fast upload facility though, with complete albums uploading literally in seconds.

Peter
JeffTucker

Posts: 7,531
Registered: 31-Jan-2006
Re: Uploading - Connection preview
Posted: 6 Apr 21, 23:16   in response to: PeterGibb in response to: PeterGibb
 
  Click to reply to this thread Reply
PeterGibb wrote:
If anyone could say what the error codes mean I would appreciate it.

We would, if we had a clue. But those kinds of thread dumps are usually meaningful only to David.
RobM

Posts: 3,420
Registered: 4-Aug-2006
Re: Uploading - Connection preview
Posted: 6 Apr 21, 23:25   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
JeffTucker wrote:
PeterGibb wrote:
If anyone could say what the error codes mean I would appreciate it.

We would, if we had a clue. But those kinds of thread dumps are usually meaningful only to David.

Maybe the 'StringIndexOutOfBoundsException: begin 34, end 1, length 34' indicates a weird file/folder name, or something not encoded correctly? Just a wild (incorrect) guess, for the fun of it ;)
PeterGibb

Posts: 181
Registered: 20-Nov-2009
Re: Uploading - Connection preview
Posted: 6 Apr 21, 23:39   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Hahaha, Ok Jeff, Rob, not to worry.

I think my questions are...

Multi maker uploads existing albums with no faffing at all and no questions. It knows where they have got to go and just gets on with it.

But when uploading an existing album using the standard option,
there is a 'Preview' to get, then a window pops up displaying the directory structure
and the albums it contains, whilst landing on the albums existing destination directory.

Sooo, could there be a setting somewhere that could be set to upload the same way as Multi maker does, for existing albums, with no faffing and no questions ? The albums directory exists anyway.

There is such a massive performance difference between the two upload functions, so much so in fact that I just wondered why thats all ?

Peter
davidekholm

Posts: 3,494
Registered: 18-Oct-2002
Re: Uploading - Connection preview
Posted: 9 Apr 21, 21:15   in response to: PeterGibb in response to: PeterGibb
 
  Click to reply to this thread Reply
I can debug this error message once I can reproduce it here. It's caused by an unexpected listing format from the ftp server. A possible workaround is to switch ftp connection type to the other of the two ftp connection types we provide. Try "ftp (ftp4j)". However, I don't think this resolves the delay issue.
PeterGibb

Posts: 181
Registered: 20-Nov-2009
Re: Uploading - Connection preview
Posted: 9 Apr 21, 21:55   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Thanks for having a go David, its much appreciated.

My ftp was set to ftp (edtFTPj) That one takes and age but does eventually lock on to the target directory of the album and displayed it as the destination.

So I changed it to ftp (ftp4j) and all attempts to upload took a while as before but only landed at my server ftp.manxmaniac.co.uk asking for a location for the album.

I tried that several times all with the same result.

I then restored my ftp setting back to ftp (edtFTPj) and all was back to normal when I uploaded an album, it took a while but my albums target was displayed

I thank you for having a look at this, I really dont have any ideas but hopefully at some stage things will improve and the waiting time will come down.

Most of what I do now is editing existing albums so I am able to use the Multi maker

Regards Peter
davidekholm

Posts: 3,494
Registered: 18-Oct-2002
Re: Uploading - Connection preview
Posted: 9 Apr 21, 22:23   in response to: PeterGibb in response to: PeterGibb
 
  Click to reply to this thread Reply
Hi Peter,

I can reproduce the slow response towards your server. I've checked the ftp communication with the server. It seems like ordinary calls like "PWD" (print working directory) and "SIZE" (checking whether a file/directory exists) takes ages to return from the server. Only those who administer the server can sort out the reason for this slowdown. Let them know what I've reported here. If you also experience slowness from FileZilla, it helps.

For them to debug this better, let a client pass commands like these and report the timings:
SIZE /htdocs/thumbs
SIZE /logfiles/thumbs
SIZE /private/thumbs
SIZE /webapp/thumbs
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums