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


Permlink Replies: 76 - Pages: 6 [ Previous | 1 2 3 4 5 6 | Next ] - Last Post: 2 Oct 20, 20:52 Last Post By: PeterGibb
PeterGibb

Posts: 266
Registered: 20-Nov-2009
Re: Uploading Multiple Albums - In One Go!
Posted: 27 May 20, 16:13   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Will do, of which I have two....

This image (7) shows the New account being selected, I did another upload consisting
of multiple recent albums and older albums, the listing showed both accounts being selectively used

Many Many Thanks, all has been a huge help and in a way I probably caused it by renaming the account.

I do apologise, it has taught me some things though. When all this 'Lockdown' is over I look forward to a days fishing at Chiddingstone Castle Lake...

Regards Peter

Edited by: PeterGibb on 27-May-2020 15:15
davidekholm

Posts: 3,442
Registered: 18-Oct-2002
Re: Uploading Multiple Albums - In One Go!
Posted: 28 May 20, 09:35   in response to: PeterGibb in response to: PeterGibb
 
  Click to reply to this thread Reply
Great that this is resolved now. I spotted another location in the code where a better stack trace should have been generated. You may wish to try this one if you wish to pinpoint the cause of that nullpointer exception.
PeterGibb

Posts: 266
Registered: 20-Nov-2009
Re: Uploading Multiple Albums - In One Go!
Posted: 28 May 20, 10:09   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Hello David

I would like to give back some help and shall try it out.

I wish I had known this batch uploading feature was there, somehow I dont
experiment enough for fear of buggering it all up. its sooooo fast and very easy use.

Many Thanks

Kind Regards, Peter
PeterGibb

Posts: 266
Registered: 20-Nov-2009
Re: Uploading Multiple Albums - In One Go!
Posted: 28 May 20, 10:26   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Here we are.....

Album 20.1.2 system console running Groovy (Groovy JAlbum Script Engine)
This section captures debug prints sent to System.out and System.err
The top section evaluates expressions.
Press Ctrl+E to evaluate an expression. (Evaluates selected text if selection is active)
You have access to the basic jAlbum implicit objects such as engine and window

Sample expressions:
4*(3+2); // Basic calculations
engine.getSkin(); // Use of implicit object
for (AlbumObject ao : selectedObjects) System.out.println(ao); // Iterate over selected objects
window.messageBox("You can interact with any Java object");
Skin loading: 2.191s
Make changes

Processing ColGT writing to album

Processing ColGT writing to album
java.lang.RuntimeException: java.lang.NullPointerException
at se.datadosen.jalbum.UploadBean.setAccountProperties(UploadBean.java:402)
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 bsh.Reflect.invokeMethod(Reflect.java:146)
at bsh.Reflect.invokeObjectMethod(Reflect.java:79)
at bsh.Name.invokeMethod(Name.java:859)
at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BshMethod.invokeImpl(BshMethod.java:362)
at bsh.BshMethod.invoke(BshMethod.java:258)
at bsh.BshMethod.invoke(BshMethod.java:186)
at bsh.Name.invokeLocalMethod(Name.java:918)
at bsh.Name.invokeMethod(Name.java:804)
at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BSHBlock.eval(BSHBlock.java:46)
at bsh.BSHIfStatement.eval(BSHIfStatement.java:48)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BSHBlock.eval(BSHBlock.java:46)
at bsh.BSHTryStatement.eval(BSHTryStatement.java:88)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BSHBlock.eval(BSHBlock.java:46)
at bsh.BSHEnhancedForStatement.eval(BSHEnhancedForStatement.java:80)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BshMethod.invokeImpl(BshMethod.java:362)
at bsh.BshMethod.invoke(BshMethod.java:258)
at bsh.BshMethod.invoke(BshMethod.java:186)
at bsh.This.invokeMethod(This.java:352)
at actionPerformed$2.run(BeanShell Generated via ASM (www.objectweb.org))
Caused by: java.lang.NullPointerException
at se.datadosen.util.BeanBinder.getProperties(BeanBinder.java:416)
at se.datadosen.util.BeanBinder.getProperties(BeanBinder.java:354)
at se.datadosen.jalbum.UploadBean.setAccountProperties(UploadBean.java:400)
... 39 more
Exception in thread "AWT-EventQueue-0" java.lang.reflect.UndeclaredThrowableException
at com.sun.proxy.$Proxy23.run(Unknown Source)
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)
Caused by: bsh.EvalError: Attempt to resolve method: showErrorDialog() on undefined variable or class name: Debug : at Line: 261 : in file: inline evaluation of: ``import java.awt.BorderLayout; import java.awt.FlowLayout; import java.awt.Tool . . . '' : Debug .showErrorDialog ( window , ex )

Called from method: run : at Line: -1 : in file: <Called from Java Code> : <Compiled Java Code>
at bsh.UtilEvalError.toEvalError(UtilEvalError.java:89)
at bsh.UtilEvalError.toEvalError(UtilEvalError.java:94)
at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:99)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BshMethod.invokeImpl(BshMethod.java:362)
at bsh.BshMethod.invoke(BshMethod.java:258)
at bsh.BshMethod.invoke(BshMethod.java:186)
at bsh.This.invokeMethod(This.java:352)
at bsh.This.invokeMethod(This.java:273)
at bsh.This$Handler.invokeImpl(This.java:232)
at bsh.This$Handler.invoke(This.java:154)
... 14 more
Caused by: bsh.UtilEvalError: Attempt to resolve method: showErrorDialog() on undefined variable or class name: Debug
at bsh.Name.invokeMethod(Name.java:835)
at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
... 25 more
davidekholm

Posts: 3,442
Registered: 18-Oct-2002
Re: Uploading Multiple Albums - In One Go!
Posted: 28 May 20, 12:43   in response to: PeterGibb in response to: PeterGibb
 
  Click to reply to this thread Reply
Thanks Peter. This should be a corrected version that simply prints "Album not yet uploaded" if jAlbum can't match the project to its account profile.
PeterGibb

Posts: 266
Registered: 20-Nov-2009
Re: Uploading Multiple Albums - In One Go!
Posted: 28 May 20, 14:25   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Okeydoke, Thankyou.

I shall pop that in, am pleased to say that I understand what was happening now.

Many Thanks

Kind Regards, Peter
RobM

Posts: 3,815
Registered: 4-Aug-2006
Re: Uploading Multiple Albums - In One Go!
Posted: 28 May 20, 15:23   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
Thanks Peter. This should be a corrected version that simply prints "Album not yet uploaded" if jAlbum can't match the project to its account profile.
That could lead some people to think the album is being uploaded, it just hasn’t been done ‘yet’. It would be better to explicitly state the album will not be uploaded and to check upload settings, then manually upload the album.
PeterGibb

Posts: 266
Registered: 20-Nov-2009
Re: Uploading Multiple Albums - In One Go!
Posted: 28 May 20, 15:32   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
I did think the same thing, but didn't want to sound upity...

If a statement of this sort is something jAlbum has control of,
then maybe better to explicitly state that the 'Album will not be uploaded
due its account settings not matching those of the Upload Manager'...

Or, something like ' Unable to upload the album as the upload account name "Name" doesn't exist' - Check the Upload Manager

Maybe!

Regards Peter

Edited by: PeterGibb on 28-May-2020 14:37
RobM

Posts: 3,815
Registered: 4-Aug-2006
Re: Uploading Multiple Albums - In One Go!
Posted: 28 May 20, 16:06   in response to: PeterGibb in response to: PeterGibb
 
  Click to reply to this thread Reply
PeterGibb wrote:
I did think the same thing, but didn't want to sound upity...
That just proves our shared point, in a very polite way. Now, if we don’t get satisfaction, then we can get uppity ;)
JeffTucker

Posts: 8,039
Registered: 31-Jan-2006
Re: Uploading Multiple Albums - In One Go!
Posted: 28 May 20, 17:34   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
Now, if we don’t get satisfaction, then we can get uppity ;)

When properly provoked, I can even manage high dudgeon.
davidekholm

Posts: 3,442
Registered: 18-Oct-2002
Re: Uploading Multiple Albums - In One Go!
Posted: 28 May 20, 17:45   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
I agree. How about this text:

"Account profile not found. Skipping upload. To resolve, upload album manually once"
PeterGibb

Posts: 266
Registered: 20-Nov-2009
Re: Uploading Multiple Albums - In One Go!
Posted: 28 May 20, 17:59   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Phew!

That looks good, am I right in thinking that an album will take on the account settings
that it finds when its uploaded for the first time, then make a permanent note of them ?

Thats clever, and explains my issue straight away and as I have never used more than one
account I have never thought about it, until Gromit mentioned it and showed the way to go.

Thats pretty neat stuff !

Regards, Peter
RobM

Posts: 3,815
Registered: 4-Aug-2006
Re: Uploading Multiple Albums - In One Go!
Posted: 28 May 20, 18:10   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
I agree. How about this text:

"Account profile not found. Skipping upload. To resolve, upload album manually once"

Much better, assuming the null error can only be caused by a missing account profile.
PeterGibb

Posts: 266
Registered: 20-Nov-2009
Re: Uploading Multiple Albums - In One Go!
Posted: 28 May 20, 18:54   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Question, for Rob.

Soo, I hope I am explaining correctly, but I just created, made and uploaded to my site, a test album.

When I upload the album for the first time I don't see anything that might ask
me which account I would like to use.

I just have the large upload window and I select my album directory, whereupon
I select the create new directory icon (at the top left of the icons in a row), then
select upload,

Thats it..

The directory is created and jAlbum uploads the new album to it. All without fuss and
with no other interaction.

This is the bit I am struggling with at the moment, please bear with me.

I have attached a picture of my Upload Manager, in it you can see there are now two options displayed, MM and New account.

The brand new album uses 'New account' by default, my question is, why did it skip over MM and not use that, its the first one it sees and its a new album, yet it bypasses and goes
for New account.

Does it take the last one in the list, if so is there a way to swap the accounts, ie put MM beneath New account ?

How do I force a new album to use the MM account ?

The reason I am asking now, is that since using the 'Batch upload' feature
I have for the first time seen the target account displayed, I have never seen it shown before.

The manual upload dialogue never mention's or shows the account name its using,
it just goes ahead, all I see is the progress bar creeping along the little uploading window.

I know this will bring a smile to some peoples faces, but I'm learning here and would have renamed the 'New account' years ago, but, I thought it was just that, an option to
create a new account.... I had no idea it was actually the accounts name!!

Kind Regards, Peter

Edited by: PeterGibb on 28-May-2020 18:05
RobM

Posts: 3,815
Registered: 4-Aug-2006
Re: Uploading Multiple Albums - In One Go!
Posted: 28 May 20, 19:11   in response to: PeterGibb in response to: PeterGibb
 
  Click to reply to this thread Reply
Have you done a save as default at sometime, with the mm account being active at the time?
Legend
Forum admins
Helpful Answer
Correct Answer

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