1 Reply Latest reply on Mar 25, 2004 1:31 PM by 417623

    Problems with FileUpload demo

    417623
      Hello,

      I've been just working on setting up the FileUpload demo on Forms 6i, and it partly works (using Form server and in Applet viewer too), even it partly performs downloading, but at some moment it throws exception into Java console. The text in Java console is like this:

      oracle.forms.demos.uploadclient.FileUploader: LoadFile : File Selection

      oracle.forms.demos.uploadclient.FileUploader: Selected File = C:\Documents and Settings\Alina\Desktop\Congif_forms.txt

      oracle.forms.demos.uploadclient.FileUploader: <PERFORM UPLOAD>

      java.lang.NullPointerException

           at oracle.ewt.lwAWT.LWComponent.addNotify(Unknown Source)

           at java.awt.Container.addNotify(Unknown Source)

           at java.awt.Window.addNotify(Unknown Source)

           at java.awt.Dialog.addNotify(Unknown Source)

           at java.awt.Dialog.conditionalShow(Unknown Source)

           at java.awt.Dialog.show(Unknown Source)

           at java.awt.Component.show(Unknown Source)

           at java.awt.Component.setVisible(Unknown Source)

           at oracle.forms.demos.uploadclient.FileUploaderProgressBar.setVisible(FileUploaderProgressBar.java:136)

           at oracle.forms.demos.uploadclient.FileUploader.loadFile(FileUploader.java:357)

           at oracle.forms.demos.uploadclient.FileUploaderLoadThread.run(FileUploaderLoadThread.java:40)

      oracle.forms.demos.uploadclient.FileUploader: </PERFORM UPLOAD>

      Please help me, I did all possible to set up all poroper pathes and it finds all necessary classes and jars. But still something is wrong with that java code.

      Thanks,
      Alina
        • 1. Re: Problems with FileUpload demo
          417623
          Hello Again,

          The problem i was writing about had appeared due to wrong mechanism of registering the certificate (this problem was similar to that 332697 wrote in the topic line "Fresh start: 6i File Upload Demo Not Working" -after temporary deleting O/S JAVA_HOME and PATH variables it suddenly started to work, then i copied back JAVA_HOME and PATH values).

          So now my form is able to select the file, to start uploading, to show the progress bars, chunk the file and....
          suddenly it throws unknown exception again.

          I attach the java console messages again:

          Oracle JInitiator version 1.1.8.16

          Using JRE version 1.1.8.16

          User home directory = C:\Documents and Settings\Alina

          JAR caching enabled.
          Cache directory: C:\Program Files\Oracle\JInitiator 1.1.8.16\jcache
          Maximum cache size: 50000000 bytes

          Opening http://a-poliakova/forms60java/f60all_jinit.jar no proxy

          Loading http://a-poliakova/forms60java/f60all_jinit.jar from JAR cache.

          Opening http://a-poliakova/forms60java/uploadclient.jar.sig no proxy

          Loading http://a-poliakova/forms60java/uploadclient.jar.sig from JAR cache.

          Opening http://a-poliakova/forms60java/java/awt/KeyboardFocusManager.class no proxy

          Opening http://a-poliakova/forms60java/oracle/forms/engine/MainBeanInfo.class no proxy

          Opening http://a-poliakova/forms60java/sun/beans/infos/MainBeanInfo.class no proxy

          Opening http://a-poliakova/forms60java/oracle/ewt/swing/JBufferedAppletBeanInfo.class no proxy

          Opening http://a-poliakova/forms60java/sun/beans/infos/JBufferedAppletBeanInfo.class no proxy

          Opening http://a-poliakova/forms60java/oracle/ewt/lwAWT/BufferedAppletBeanInfo.class no proxy

          Opening http://a-poliakova/forms60java/sun/beans/infos/BufferedAppletBeanInfo.class no proxy

          Opening http://a-poliakova/forms60java/oracle/ewt/popup/PopupAppletBeanInfo.class no proxy

          Opening http://a-poliakova/forms60java/sun/beans/infos/PopupAppletBeanInfo.class no proxy

          Opening http://a-poliakova/dev60cgi/Teal no proxy

          Opening http://a-poliakova/forms60java/oracle/forms/registry/Registry.dat no proxy

          Opening http://a-poliakova/forms60java/oracle/forms/registry/default.dat no proxy

          proxyHost=null

          proxyPort=0

          connectMode=HTTP

          Opening http://a-poliakova/forms60java/oracle/forms/engine/RunformBundle_lt_LT.class no proxy

          Opening http://a-poliakova/forms60java/oracle/forms/engine/RunformBundle_lt_LT.properties no proxy

          Opening http://a-poliakova/forms60java/oracle/forms/engine/RunformBundle_lt.class no proxy

          Opening http://a-poliakova/forms60java/oracle/forms/engine/RunformBundle_lt.properties no proxy

          Opening http://a-poliakova/forms60java/oracle/forms/engine/RunformBundle_lt_LT.class no proxy

          Opening http://a-poliakova/forms60java/oracle/forms/engine/RunformBundle_lt_LT.properties no proxy

          Opening http://a-poliakova/forms60java/oracle/forms/engine/RunformBundle_lt.class no proxy

          Opening http://a-poliakova/forms60java/oracle/forms/engine/RunformBundle_lt.properties no proxy

          Forms Applet version is : 60824

          Opening http://a-poliakova/forms60java/oracle/ewt/meter/BoundedRangeModel.class no proxy

          Opening http://a-poliakova/forms60java/oracle/ewt/meter/ProgressBar.class no proxy

          Opening http://a-poliakova/forms60java/oracle/ewt/meter/Meter.class no proxy

          oracle.forms.demos.uploadclient.FileUploader: LoadFile : File Selection

          oracle.forms.demos.uploadclient.FileUploader: Selected File = C:\Documents and Settings\Alina\My Documents\a.jpg

          oracle.forms.demos.uploadclient.FileUploader: <PERFORM UPLOAD>

          Opening http://a-poliakova/forms60java/oracle/ewt/meter/BoundedRangeModelImpl.class no proxy

          Opening http://a-poliakova/forms60java/oracle/ewt/meter/PercentageSupport.class no proxy

          Opening http://a-poliakova/forms60java/oracle/ewt/meter/StringRangeModel.class no proxy

          Opening http://a-poliakova/forms60java/oracle/ewt/meter/Meter$Access.class no proxy

          Opening http://a-poliakova/forms60java/oracle/ewt/laf/oracle/OracleProgressBarUI.class no proxy

          Opening http://a-poliakova/forms60java/oracle/ewt/plaf/MeterUI.class no proxy

          Opening http://a-poliakova/forms60java/oracle/ewt/meter/Meter$_PropListener.class no proxy

          Opening http://a-poliakova/forms60java/oracle/ewt/laf/basic/ProgressBarPainter.class no proxy

          oracle.forms.demos.uploadclient.FileUploader: Filesize 264712

          oracle.forms.demos.uploadclient.FileUploader: Source file size before encoding 264712 Bytes; (Compressed to 264669 Bytes)

          oracle.forms.demos.uploadclient.FileUploader: Size of encoded byte array : 362180 (89 Chunks)

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 0:4096

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 1

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 4096:8192

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 2

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 8192:12288

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 3

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 12288:16384

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 4

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 16384:20480

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 5

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 20480:24576

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 6

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 24576:28672

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 7

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 28672:32768

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 8

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 32768:36864

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 9

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 36864:40960

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 10

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 40960:45056

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 11

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 45056:49152

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 12

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 49152:53248

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 13

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 53248:57344

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 14

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 57344:61440

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 15

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 61440:65536

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 16

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 65536:69632

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 17

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 69632:73728

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 18

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 73728:77824

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 19

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 77824:81920

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 20

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 81920:86016

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 21

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 86016:90112

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 22

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 90112:94208

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 23

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 94208:98304

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 24

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 98304:102400

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 25

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 102400:106496

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 26

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 106496:110592

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 27

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 110592:114688

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 28

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 114688:118784

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 29

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 118784:122880

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 30

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 122880:126976

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 31

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 126976:131072

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 32

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 131072:135168

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 33

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 135168:139264

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 34

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 139264:143360

          Opening http://a-poliakova/forms60java/oracle/ewt/alert/resource/AlertBundle_en_US.class no proxy

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 35

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 143360:147456

          Opening http://a-poliakova/forms60java/oracle/ewt/alert/resource/AlertBundle_en_US.properties no proxy

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 36

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 147456:151552

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 37

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 151552:155648

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 38

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 155648:159744

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 39

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 159744:163840

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 40

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 163840:167936

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 41

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 167936:172032

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 42

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 172032:176128

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 43

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 176128:180224

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 44

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 180224:184320

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 45

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 184320:188416

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 46

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 188416:192512

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 47

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 192512:196608

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 48

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 196608:200704

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 49

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 200704:204800

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 50

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 204800:208896

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 51

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 208896:212992

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 52

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 212992:217088

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 53

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 217088:221184

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 54

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 221184:225280

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 55

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 225280:229376

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 56

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 229376:233472

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 57

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 233472:237568

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 58

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 237568:241664

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 59

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 241664:245760

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 60

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 245760:249856

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 61

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 249856:253952

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 62

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 253952:258048

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 63

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 258048:262144

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 64

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 262144:266240

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 65

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 266240:270336

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 66

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 270336:274432

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 67

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 274432:278528

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 68

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 278528:282624

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 69

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 282624:286720

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 70

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 286720:290816

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 71

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 290816:294912

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 72

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 294912:299008

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 73

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 299008:303104

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 74

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 303104:307200

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 75

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 307200:311296

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 76

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 311296:315392

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 77

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 315392:319488

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 78

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 319488:323584

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 79

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 323584:327680

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 80

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 327680:331776

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 81

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 331776:335872

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 82

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 335872:339968

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 83

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 339968:344064

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 84

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 344064:348160

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 85

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 348160:352256

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 86

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 352256:356352

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 87

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 356352:360448

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 88

          oracle.forms.demos.uploadclient.FileUploader: Chunking : 360448:362180

          oracle.forms.demos.uploadclient.FileUploader: Dispatch Chunk 89

          oracle.forms.demos.uploadclient.FileUploader: </PERFORM UPLOAD>
          ---------------
          And right after that it throws ORA-105101 error message.
          Please give me an idea about how to determine the reason of that error and what can be the problem?

          Thanks,
          Alina