[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
JDK 1.5 blues  XML
Forum Index -> Terracotta Platform
Author Message
Admin

master

Joined: 05/24/2006 12:45:08
Messages: 71
Offline

Trying to get demo to work with JDK 1.5 and generic TVS.

1st attempt resulted in StackOverflowError when starting the HelloWorld example.

Executed dso-make-boot-jar and replaced the old dso-boot.jar with the new one.

2nd attempt results in java.lang.NoSuchMethodError: java.lang.StringBuffer.__tc_getvalue()[C

java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode)
Admin

master

Joined: 05/24/2006 12:45:08
Messages: 71
Offline

.5 is not supported with the current release. However you may be able to get around this issue in one of two ways.

Problem: StringBuffer has a new superclass in jdk1.5

Solution 1: Run in 1.4.x
Solution 2: add the super class java.lang.AbstractStringBuilder to the the boot-jar using the L1Config.xml (see the sample config for an example of how to do this) and the dso-make-boot-jar
script.

It is worth noting that dso 1.1 has other 1.5 issues and it is an unsupported platform. Release 2.0 will have 1.5 support and should be out in the next few months.

Steve
Admin

master

Joined: 05/24/2006 12:45:08
Messages: 71
Offline

I will try it with the tvs that comes with a jdk.

Thanks,
Michael
Admin

master

Joined: 05/24/2006 12:45:08
Messages: 71
Offline

I am having the same problem. I am not going back to 1.4. Too much code to go backwards. No problem adding the xml file but couldn't figure out the script bin/dso-make-boot-jar... how do I add java.lang.AbstractStringBuilder to this script?

Currently, while running the jtable demo, the command to run the demo looks like (after all arguments have been replaced):

java -Xbootclasspath/p:"\work\tools\tvs1.1.18-generic\bin\.."\lib\dso-boot.jar -Dtc.install="\work\tools\tvs1.1.18-generic\bin\.." -cp .:classes demo.jtable.TableDemo

What should this string look like to add the AbstractStringBuilder class?

Thanks for any help.
Admin

master

Joined: 05/24/2006 12:45:08
Messages: 71
Offline

This is what I have done so far. I added the AbstractStringBuilder to the L1Config.xml file and had to move it to $TC/client directory and ran the dso-make-boot-jar.bat file and it produced a dso-boot.jar with no warnings and no errors. I copied that jar file to the lib directory (overwrote the old one). ran the build.bat clean and build.bat file. I am getting the same error.

I still have not figured out how to add the AbstractStringBuilder to the dso-make-boot-jar.bat file.

Thanks again for any help

There wouldn't happen to be a beta demo that we could help you test would there?
Admin

master

Joined: 05/24/2006 12:45:08
Messages: 71
Offline

Hi, I can try to help you out here. Here is the simplest thing that works for me

1) Make sure the following is in the L1Config.xml

<boot-jar>
<include>java.lang.AbstractStringBuilder</include>
</boot-jar>

2) cd into the directory where your L1Config.xml file is

3) Run [TVS]/bin/dso-make-boot-jar [bootjar-dir]

If everything is correct, you will know that it found your config because you won't see any WARNINGS at the top. You will also see AbstractStringBuilder in stdout the list of classes that get added to the bootjar.

Let me know if that works for you.

As Steve notes, though, we do not currently support 1.5. We can't be sure you won't run into more problems.

1.5 support will be in TVS version 2.0, which should be out very shortly. We do not currently have plans for a public beta release, but if it is critical for you to have access to it, please send me an email (pcal at terracottatech dot com). We'll see what we can do.

Cheers,

Patrick

_________________
Patrick Calahan
Director, Product Management
Terracotta, Inc.
Admin

master

Joined: 05/24/2006 12:45:08
Messages: 71
Offline

I hope this 2.0 version will come out Real Soon Now. It was easy to get
the example in the tutorial running with 1.5, but of course that doesn't
guarantee there aren't any problems...
Admin

master

Joined: 05/24/2006 12:45:08
Messages: 71
Offline

2.0 Real Soon Now - check. We're hard at work wrapping it up as I type. Stay tuned for announcements in the near future.

Cheers!

-p

_________________
Patrick Calahan
Director, Product Management
Terracotta, Inc.
Admin

master

Joined: 05/24/2006 12:45:08
Messages: 71
Offline

Admin wrote:
2.0 Real Soon Now - check. We're hard at work wrapping it up as I type. Stay tuned for announcements in the near future.

Cheers!

-p

/quote]

Feb 21 now...

Any news?
Admin

master

Joined: 05/24/2006 12:45:08
Messages: 71
Offline

Hi. We are testing release candidates as I write this. We should have something for you very very very soon :)

_________________
Patrick Calahan
Director, Product Management
Terracotta, Inc.
Admin

master

Joined: 05/24/2006 12:45:08
Messages: 71
Offline

Note that 1.5 support is now in the product - please go to the download page to give it a try:

http://www.terracottatech.com/downloads.jsp

Let us know how it works for you!

Cheers,
-p

_________________
Patrick Calahan
Director, Product Management
Terracotta, Inc.
 
Forum Index -> Terracotta Platform
Go to:   
Powered by JForum 2.1.7 © JForum Team