java.lang.NullPointerException java.lang.NullPointerException
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

java.lang.NullPointerException

Started by MAGIKS, March 16, 2009, 05:34:07 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MAGIKS

Installed latest version 3.4.0 on 1.4.19 gallery

in case of click on "JUpload" got a java error: on line 215 char 4 (bold)

function onAlbumChange() {
      if (document.form_album.album.value == '') {
         //First: clear the albumID in the applet.
         document.JUpload.setProperty('albumId', '');
         //Then: the input fields on the HTML form
         document.form_album.album_name.value = '';
         document.form_album.album_description.value = '';



07:31:32.616 [INFO] Debug level set to 100
07:31:32.642 [INFO] Current debug output file: E:\Users\HUNTER\AppData\Local\Temp\jupload_2178244872235372611_log.txt
07:31:32.644 [DEBUG] Parameter 'lang' loaded. Value: ru
07:31:32.644 [DEBUG] setLang - language read (no country): ru
07:31:32.648 [DEBUG] Parameter 'lookAndFeel' loaded. Value:
07:31:32.649 [DEBUG] Parameter 'sslVerifyCert' loaded. Value: none
07:31:32.649 [DEBUG] Parameter 'afterUploadURL' loaded. Value: null
07:31:32.650 [DEBUG] Parameter 'ftpCreateDirectoryStructure' loaded. Value: false
07:31:32.651 [DEBUG] Parameter 'ftpTransfertBinary' loaded. Value: true
07:31:32.651 [DEBUG] Parameter 'ftpTransfertPassive' loaded. Value: true
07:31:32.652 [DEBUG] Parameter 'allowedFileExtensions' loaded. Value: jpg/jpeg/jpe/gif/png/bmp/jpc/jp2/jpx/jb2/swc/iff/asf/asx/mpg/mpeg/wmv/swf/avi/mov/mp3/psd
07:31:32.653 [DEBUG] Parameter 'allowHttpPersistent' loaded. Value: false
07:31:32.654 [DEBUG] Parameter 'showStatusbar' loaded. Value: true
07:31:32.654 [DEBUG] Parameter 'showLogWindow' loaded. Value: true
07:31:32.654 [DEBUG] Parameter 'fileChooserIconFromFileContent' loaded. Value: true
07:31:32.657 [WARN] Invalid int value: true, using default value: 0
07:31:32.657 [DEBUG] Parameter 'fileChooserIconSize' loaded. Value: 50
07:31:32.658 [DEBUG] Parameter 'browsingDirectory' loaded. Value:
07:31:32.658 [WARN] DefaultUploadPolicy.setCurrentBrowsingDirectory():  doesn't exist.
07:31:32.659 [DEBUG] Parameter 'filenameEncoding' loaded. Value: null
07:31:32.659 [DEBUG] Parameter 'nbFilesPerRequest' loaded. Value: 1
07:31:32.659 [DEBUG] Parameter 'maxChunkSize' loaded. Value: 500000
07:31:32.660 [DEBUG] Parameter 'maxFileSize' loaded. Value: 512000
07:31:32.660 [DEBUG] Parameter 'postURL' loaded. Value: http://art-apple.ru/index.php?file=jupload/jupload&action=upload_picture
07:31:32.660 [DEBUG] Parameter 'specificHeaders' loaded. Value: null
07:31:32.661 [DEBUG] Parameter 'stringUploadError' loaded. Value: ^ERROR: (.*)$
07:31:32.661 [DEBUG] Parameter 'stringUploadSuccess' loaded. Value: ^SUCCESS$
07:31:32.661 [DEBUG] Parameter 'stringUploadWarning' loaded. Value: ^WARNING: (.*)$
07:31:32.662 [DEBUG] Parameter 'urlToSendErrorTo' loaded. Value: http://art-apple.ru/index.php?file=jupload/jupload&action=log_error
07:31:32.662 [DEBUG] Parameter 'formdata' loaded. Value: picture_data
07:31:32.662 [DEBUG] Parameter 'afterUploadTarget' loaded. Value: null
07:31:32.681 [DEBUG] cookie: cpg143_data=YTo2OntzOjI6IklEIjtzOjMyOiIwNTQ3ZGMwNGUyNTJlM2I2M2RlN2U3MzFjMGQwMDQ2MCI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJydXNzaWFuIjtzOjM6ImxpdiI7YTo1OntpOjA7czo0OiIzMjE4IjtpOjE7czo0OiIzMjMwIjtpOjI7czo0OiIxMjYzIjtpOjM7czo0OiIyMzY1IjtpOjQ7czo0OiIzMjg0Ijt9czo2OiJzZWFyY2giO2E6OTp7czo2OiJzZWFyY2giO3M6MjE6ItC00LXQvdGMINC%2F0L7QsdC10LTRiyI7czo1OiJhbGJ1bSI7czo2OiJzZWFyY2giO3M6NToidGl0bGUiO3M6Mjoib24iO3M6MTA6Im5ld2VyX3RoYW4iO3M6MDoiIjtzOjc6ImNhcHRpb24iO3M6Mjoib24iO3M6MTA6Im9sZGVyX3RoYW4iO3M6MDoiIjtzOjg6ImtleXdvcmRzIjtzOjI6Im9uIjtzOjQ6InR5cGUiO3M6MzoiQU5EIjtzOjY6InBhcmFtcyI7YTozOntzOjU6InRpdGxlIjtzOjI6Im9uIjtzOjc6ImNhcHRpb24iO3M6Mjoib24iO3M6ODoia2V5d29yZHMiO3M6Mjoib24iO319czozOiJsYXAiO2k6MTt9; __utma=8942181.514566509.1231320619.1237122115.1237172931.82; __utmz=8942181.1236612167.60.4.utmccn=(organic)|utmcsr=google|utmctr=90688-pchelkamia.jpg|utmcmd=organic; 87ac8d09d8e15ba05b8a74d2ba4bec0e=2a48de77721d0ef289dc76d07b03fb31; showitem2=Y; showitem10=Y; showitem6=Y; showitem52=Y; flash_im_pos_x=0; flash_im_pos_y=136; flash_im_width0=1259; flash_im_height=801; PHPSESSID=ljv0rjt3m4bedfrf488tpqk2m3; astratop=1; __utmc=8942181; __utmb=8942181
07:31:32.685 [DEBUG] userAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.30618)
07:31:32.685 [DEBUG] Parameter 'serverProtocol' loaded. Value: HTTP/1.1
07:31:32.688 [DEBUG] Checking protocol with URL: http://art-apple.ru/index.php?file=jupload/jupload&action=upload_picture&album=0
07:31:32.692 [DEBUG] Cookie: cpg143_data=YTo2OntzOjI6IklEIjtzOjMyOiIwNTQ3ZGMwNGUyNTJlM2I2M2RlN2U3MzFjMGQwMDQ2MCI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJydXNzaWFuIjtzOjM6ImxpdiI7YTo1OntpOjA7czo0OiIzMjE4IjtpOjE7czo0OiIzMjMwIjtpOjI7czo0OiIxMjYzIjtpOjM7czo0OiIyMzY1IjtpOjQ7czo0OiIzMjg0Ijt9czo2OiJzZWFyY2giO2E6OTp7czo2OiJzZWFyY2giO3M6MjE6ItC00LXQvdGMINC%2F0L7QsdC10LTRiyI7czo1OiJhbGJ1bSI7czo2OiJzZWFyY2giO3M6NToidGl0bGUiO3M6Mjoib24iO3M6MTA6Im5ld2VyX3RoYW4iO3M6MDoiIjtzOjc6ImNhcHRpb24iO3M6Mjoib24iO3M6MTA6Im9sZGVyX3RoYW4iO3M6MDoiIjtzOjg6ImtleXdvcmRzIjtzOjI6Im9uIjtzOjQ6InR5cGUiO3M6MzoiQU5EIjtzOjY6InBhcmFtcyI7YTozOntzOjU6InRpdGxlIjtzOjI6Im9uIjtzOjc6ImNhcHRpb24iO3M6Mjoib24iO3M6ODoia2V5d29yZHMiO3M6Mjoib24iO319czozOiJsYXAiO2k6MTt9; __utma=8942181.514566509.1231320619.1237122115.1237172931.82; __utmz=8942181.1236612167.60.4.utmccn=(organic)|utmcsr=google|utmctr=90688-pchelkamia.jpg|utmcmd=organic; 87ac8d09d8e15ba05b8a74d2ba4bec0e=2a48de77721d0ef289dc76d07b03fb31; showitem2=Y; showitem10=Y; showitem6=Y; showitem52=Y; flash_im_pos_x=0; flash_im_pos_y=136; flash_im_width0=1259; flash_im_height=801; PHPSESSID=ljv0rjt3m4bedfrf488tpqk2m3; astratop=1; __utmc=8942181; __utmb=8942181
07:31:32.695 [DEBUG] User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.30618)
07:31:32.695 [DEBUG] [HTTPConnectionHelper append]

07:31:32.695 [DEBUG] Before sendRequest()
07:31:32.696 [DEBUG] Using non SSL socket, direct connection
07:31:32.752 [DEBUG] After sendRequest()
07:31:32.752 [DEBUG] -------------------------------------------------------------------------
07:31:32.752 [DEBUG] -----------------   HEAD message sent (start)  --------------------------
07:31:32.753 [DEBUG] -------------------------------------------------------------------------
07:31:32.753 [DEBUG] HEAD /index.php?file=jupload/jupload&action=upload_picture&album=0 HTTP/1.1

07:31:32.753 [DEBUG] Host: art-apple.ru

07:31:32.753 [DEBUG] Accept: */*

07:31:32.753 [DEBUG] Accept-Encoding: identity

07:31:32.753 [DEBUG] Connection: close

07:31:32.753 [DEBUG] Cookie: cpg143_data=YTo2OntzOjI6IklEIjtzOjMyOiIwNTQ3ZGMwNGUyNTJlM2I2M2RlN2U3MzFjMGQwMDQ2MCI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJydXNzaWFuIjtzOjM6ImxpdiI7YTo1OntpOjA7czo0OiIzMjE4IjtpOjE7czo0OiIzMjMwIjtpOjI7czo0OiIxMjYzIjtpOjM7czo0OiIyMzY1IjtpOjQ7czo0OiIzMjg0Ijt9czo2OiJzZWFyY2giO2E6OTp7czo2OiJzZWFyY2giO3M6MjE6ItC00LXQvdGMINC%2F0L7QsdC10LTRiyI7czo1OiJhbGJ1bSI7czo2OiJzZWFyY2giO3M6NToidGl0bGUiO3M6Mjoib24iO3M6MTA6Im5ld2VyX3RoYW4iO3M6MDoiIjtzOjc6ImNhcHRpb24iO3M6Mjoib24iO3M6MTA6Im9sZGVyX3RoYW4iO3M6MDoiIjtzOjg6ImtleXdvcmRzIjtzOjI6Im9uIjtzOjQ6InR5cGUiO3M6MzoiQU5EIjtzOjY6InBhcmFtcyI7YTozOntzOjU6InRpdGxlIjtzOjI6Im9uIjtzOjc6ImNhcHRpb24iO3M6Mjoib24iO3M6ODoia2V5d29yZHMiO3M6Mjoib24iO319czozOiJsYXAiO2k6MTt9; __utma=8942181.514566509.1231320619.1237122115.1237172931.82; __utmz=8942181.1236612167.60.4.utmccn=(organic)|utmcsr=google|utmctr=90688-pchelkamia.jpg|utmcmd=organic; 87ac8d09d8e15ba05b8a74d2ba4bec0e=2a48de77721d0ef289dc76d07b03fb31; showitem2=Y; showitem10=Y; showitem6=Y; showitem52=Y; flash_im_pos_x=0; flash_im_pos_y=136; flash_im_width0=1259; flash_im_height=801; PHPSESSID=ljv0rjt3m4bedfrf488tpqk2m3; astratop=1; __utmc=8942181; __utmb=8942181

07:31:32.753 [DEBUG] User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.30618)

07:31:32.753 [DEBUG]

07:31:32.753 [DEBUG] -------------------------------------------------------------------------
07:31:32.754 [DEBUG] -----------------   HEAD message sent (end) -----------------------------
07:31:32.754 [DEBUG] -------------------------------------------------------------------------
07:31:32.837 [DEBUG] -------- Response Headers Start --------
07:31:32.838 [DEBUG] HTTP/1.1 200 OK
07:31:32.839 [DEBUG] Date: Mon, 16 Mar 2009 04:31:41 GMT
07:31:32.839 [DEBUG] Server: Apache/2.2.6 (Fedora)
07:31:32.840 [DEBUG] X-Powered-By: PHP/5.1.6
07:31:32.840 [DEBUG] Vary: Accept-Encoding
07:31:32.841 [DEBUG] Connection: close
07:31:32.841 [DEBUG] Content-Type: text/html; charset=utf-8
07:31:32.842 [DEBUG]
07:31:32.842 [DEBUG] --------- Response Headers End ---------
07:31:32.842 [DEBUG] This is a HEAD request: we don't care about the body
07:31:32.843 [DEBUG] HEAD status: 200
07:31:32.843 [DEBUG] HEAD protocol: HTTP/1.1
07:31:32.844 [DEBUG] [DefaultUploadPolicy] end of constructor (serverProtocol has been set)
07:31:32.844 [DEBUG] Parameter 'fileChooserImagePreview' loaded. Value: true
07:31:32.845 [DEBUG] Parameter 'highQualityPreview' loaded. Value: false
07:31:32.845 [DEBUG] Parameter 'maxPicHeight' loaded. Value: 1920
07:31:32.845 [DEBUG] Parameter 'maxPicWidth' loaded. Value: 1920
07:31:32.846 [DEBUG] Parameter 'pictureCompressionQuality' loaded. Value: 0.8
07:31:32.846 [DEBUG] Parameter 'pictureTransmitMetadata' loaded. Value: false
07:31:32.846 [DEBUG] Parameter 'realMaxPicHeight' loaded. Value: 1920
07:31:32.847 [DEBUG] Parameter 'realMaxPicWidth' loaded. Value: 1920
07:31:32.847 [DEBUG] Parameter 'storeBufferedImage' loaded. Value: false
07:31:32.847 [DEBUG] Parameter 'targetPictureFormat' loaded. Value: null
07:31:32.848 [DEBUG] [PictureUploadPolicy] end of constructor
07:31:32.848 [DEBUG] Parameter 'albumId' loaded. Value: -1
07:31:32.848 [DEBUG] uploadPolicy parameter = CoppermineUploadPolicy
07:31:32.849 [DEBUG] uploadPolicy = wjhk.jupload2.policies.CoppermineUploadPolicy
07:31:32.849 [DEBUG] =======================================================================
07:31:32.849 [DEBUG] ======= Parameters managed by DefaultUploadPolicy
07:31:32.849 [INFO] JUpload applet, version 4.1.1a [SVN-Rev: 630] (compiled: 02/23/2009 05:38 PM), available at http://jupload.sourceforge.net/
07:31:32.850 [DEBUG] Java version: 1.6.0_11
07:31:32.851 [DEBUG] Cookie: cpg143_data=YTo2OntzOjI6IklEIjtzOjMyOiIwNTQ3ZGMwNGUyNTJlM2I2M2RlN2U3MzFjMGQwMDQ2MCI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJydXNzaWFuIjtzOjM6ImxpdiI7YTo1OntpOjA7czo0OiIzMjE4IjtpOjE7czo0OiIzMjMwIjtpOjI7czo0OiIxMjYzIjtpOjM7czo0OiIyMzY1IjtpOjQ7czo0OiIzMjg0Ijt9czo2OiJzZWFyY2giO2E6OTp7czo2OiJzZWFyY2giO3M6MjE6ItC00LXQvdGMINC%2F0L7QsdC10LTRiyI7czo1OiJhbGJ1bSI7czo2OiJzZWFyY2giO3M6NToidGl0bGUiO3M6Mjoib24iO3M6MTA6Im5ld2VyX3RoYW4iO3M6MDoiIjtzOjc6ImNhcHRpb24iO3M6Mjoib24iO3M6MTA6Im9sZGVyX3RoYW4iO3M6MDoiIjtzOjg6ImtleXdvcmRzIjtzOjI6Im9uIjtzOjQ6InR5cGUiO3M6MzoiQU5EIjtzOjY6InBhcmFtcyI7YTozOntzOjU6InRpdGxlIjtzOjI6Im9uIjtzOjc6ImNhcHRpb24iO3M6Mjoib24iO3M6ODoia2V5d29yZHMiO3M6Mjoib24iO319czozOiJsYXAiO2k6MTt9; __utma=8942181.514566509.1231320619.1237122115.1237172931.82; __utmz=8942181.1236612167.60.4.utmccn=(organic)|utmcsr=google|utmctr=90688-pchelkamia.jpg|utmcmd=organic; 87ac8d09d8e15ba05b8a74d2ba4bec0e=2a48de77721d0ef289dc76d07b03fb31; showitem2=Y; showitem10=Y; showitem6=Y; showitem52=Y; flash_im_pos_x=0; flash_im_pos_y=136; flash_im_width0=1259; flash_im_height=801; PHPSESSID=ljv0rjt3m4bedfrf488tpqk2m3; astratop=1; __utmc=8942181; __utmb=8942181
07:31:32.852 [DEBUG] userAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; .NET CLR 3.0.30618)
07:31:32.852 [DEBUG] List of all applet parameters:
07:31:32.853 [DEBUG]   language: ru
07:31:32.853 [DEBUG]   country:
07:31:32.854 [DEBUG] afterUploadURL: null
07:31:32.854 [DEBUG] allowHttpPersistent: false
07:31:32.854 [DEBUG] allowedFileExtensions: /jpg/jpeg/jpe/gif/png/bmp/jpc/jp2/jpx/jb2/swc/iff/asf/asx/mpg/mpeg/wmv/swf/avi/mov/mp3/psd/
07:31:32.855 [DEBUG] browsingDirectory (current value): null
07:31:32.855 [DEBUG] debugLevel: 100 (debugfile: E:\Users\HUNTER\AppData\Local\Temp\jupload_2178244872235372611_log.txt)
07:31:32.855 [DEBUG] fileChooserIconFromFileContent: 0
07:31:32.855 [DEBUG] fileChooserIconSize: 50
07:31:32.856 [DEBUG] filenameEncoding: null
07:31:32.856 [DEBUG] ftpCreateDirectoryStructure: false
07:31:32.856 [DEBUG] ftpTransfertBinary: true
07:31:32.857 [DEBUG] ftpTransfertPassive: true
07:31:32.857 [DEBUG] lang: ru
07:31:32.857 [DEBUG] maxChunkSize: 500000
07:31:32.857 [INFO] maxFileSize: 512000
07:31:32.858 [DEBUG] nbFilesPerRequest: 1
07:31:32.858 [DEBUG] postURL: http://art-apple.ru/index.php?file=jupload/jupload&action=upload_picture
07:31:32.859 [DEBUG] serverProtocol: HTTP/1.1
07:31:32.859 [DEBUG] showLogWindow: true
07:31:32.859 [DEBUG] showStatusbar: true
07:31:32.860 [DEBUG] specificHeaders: null
07:31:32.860 [DEBUG] stringUploadError: ^ERROR: (.*)$
07:31:32.860 [DEBUG] stringUploadSuccess: ^SUCCESS$
07:31:32.860 [DEBUG] stringUploadWarning: ^WARNING: (.*)$
07:31:32.861 [DEBUG] urlToSendErrorTo: http://art-apple.ru/index.php?file=jupload/jupload&action=log_error
07:31:32.861 [DEBUG]
07:31:32.861 [DEBUG] ======= Parameters managed by PictureUploadPolicy
07:31:32.861 [DEBUG] fileChooserImagePreview: true
07:31:32.862 [DEBUG] highQualityPreview : false
07:31:32.862 [DEBUG] pictureCompressionQuality : 0.8
07:31:32.863 [DEBUG] pictureTransmitMetadata : false
07:31:32.863 [DEBUG] maxPicWidth : 1920, maxPicHeight : 1920
07:31:32.863 [DEBUG] realMaxPicWidth : 1920, realMaxPicHeight : 1920
07:31:32.864 [DEBUG] storeBufferedImage : false
07:31:32.864 [DEBUG] targetPictureFormat : null
07:31:32.864 [DEBUG]
07:31:32.864 [DEBUG] ======= Parameters managed by CoppermineUploadPolicy
07:31:32.865 [DEBUG] albumId : -1
07:31:32.865 [DEBUG]
07:31:33.114 [DEBUG] Within componentResized
07:31:33.138 [DEBUG] PicturePanel.paint(): offscreenImage is null


MAGIKS

looks like "JUPload" don't like when no album selected ^)

etienne_sf

Hi,

  Yes I've seen that. There is a javascript initialization trouble somewhere. I'll correct that.

Etienne

MAGIKS

etienne_sf, thanks!

And i see this on your demo site!

waiting for update, your plugin very very useful!

etienne_sf