Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

problem viewing local html page containing applet!

887433Sep 10 2011 — edited Sep 19 2011
I have the following requisite three files in a local directory "C:\Users\thomas\Documents\vinu\hyperdyn\src\":

*.html
*.jar
*.jnlp

When I double click the html file to launch it, the applet fails to load and the Java console prints the following error message:

Java Plug-in 1.6.0_26
Using JRE version 1.6.0_26-b03 Java HotSpot(TM) Client VM
User home directory = C:\Users\thomas
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------


MissingFieldException[ The following required field is missing from the launch file: <jnlp><applet-desc>width]
at com.sun.javaws.jnl.XMLUtils.getRequiredIntAttribute(Unknown Source)
at com.sun.javaws.jnl.XMLFormat.buildAppletDesc(Unknown Source)
at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptorFromCache(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptorFromCache(Unknown Source)
at sun.plugin2.applet.JNLP2Manager.initialize(Unknown Source)
at sun.plugin2.main.client.PluginMain.initManager(Unknown Source)
at sun.plugin2.main.client.PluginMain.access$300(Unknown Source)
at sun.plugin2.main.client.PluginMain$2.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Error while initializing manager: MissingFieldException[ The following required field is missing from the launch file: <jnlp><applet-desc>width], bail out

The strange thing is that I do have the height and width parameters specified in the jnlp file:

<applet-desc
name="..."
main-class="..."
width="640"
height="355">
</applet-desc>

The stranger thing is that if I modify the path to the local directory, for example, add a dash to make it "C:\Users\thomas\Documents\vinu\hyperdyn\src-\", then the applet launches without any error! I am working on Windows 7 Home Premium, Service Pack 1. Any insights anyone may have will be greatly appreciated.

Comments

jgarry

Oracle tables are heap tables, there is no intrinsic order.

You can either use the order by statement when you select, or use an index-organized table with an order by.  The correct answer depends on what exactly you intend to do with the table, why you feel there should be an inherent order.

unknown-7404
I was trying to import a large text file to a table.  The text file has more that 1 million lines.  The table has only 1 column to hold one line from the text file.  I made sure that the CLEAR TABLE is checked before I start the process.  Commit every 100.

Oracle has no 'CLEAR TABLE' command so you must be using some tool or GUI front-end you haven't told us about.

If you commit every 100 you will just slow things down so just issue a commit at the end of the data load.

When I checked the resulting table, I noticed that it reoganized the sequence of lines from the text file.

No - Oracle doesn't 'organize' or 'reorganize' the rows. It just dumps them into a table; there is NO first row or last row. Just like if you throw a bunch of tennis balls into a basket you won't know afterward which one was the first ball you threw in.

How can I import from the text file onto a table without reorganizing the data.  I really need the data on this table to be in the same line sequence as the text file.  I also tried commit every 1 record.

Just use my 'tennis ball' example from above. If you want the balls to have an order you need to write a number on each one as you throw it into the basket. Then later you can find ball #1, #37 or sort the balls in order if you want.

For your use case that means add a second column to the table (e.g. LINE_NO) and use an Oracle sequence to 'number' them.

lov2tango

Now I understand.  Thank you very much!

lov2tango

I did used PL/SQL Developer's Text Importer feature.

unknown-7404
I did used PL/SQL Developer's Text Importer feature.

Thanks for sharing but how is that relevant? Your problem is that you need to create your own ordering since the database doesn't create one for you. What tool you use to import the data doesn't really matter unless that tool won't allow you to create an ordering.

1 - 5
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 17 2011
Added on Sep 10 2011
2 comments
693 views