If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Sybase > xml sample compilation error

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-04-02, 10:15
kamalakar_v kamalakar_v is offline
Registered User
 
Join Date: Jul 2002
Posts: 3
xml sample compilation error

I am using ASE 12.5 eval copy in WINNT 4.0 I have installed java and when i am trying to workout XML in sample given in sybase java manual i am getting the following error

E:\ase\java\xml>javac Sql2OrderClient.java
Sql2OrderClient.java:11: Method sql2order() not found in class jcs.xml.order.Ord
erXml.
FileUtil.string2File("Order-sql2Order.xml",order.sql2order());
^
1 error


the code in Sql2OrderClient.java file is as follows

import java.io.*;
import java.util.*;
import jcs.xml.order.*;
import jcs.util.*;

public class Sql2OrderClient {
public static void main (String args[]) {
try{
OrderXml order =
new OrderXml("990704", "123","KAMAL:5000?user=sa");
FileUtil.string2File("Order-sql2Order.xml",order.getXmlText());
} catch (Exception e) {
System.out.println("Exception:");
e.printStackTrace();
}
}
}

can anybody help me to solve the problem pls also help with some sample code to transfer data from sql to xml and viceversa.or a reference to a web site of sample will be helpful

Thanks
Kamalakar Vangara
Reply With Quote
  #2 (permalink)  
Old 01-08-03, 13:06
Brody Brody is offline
Registered User
 
Join Date: Nov 2002
Location: Omaha, Ne
Posts: 4
Not sure about your problem, but the message
"Method sql2order() not found in class jcs.xml.order.Ord" is referring to a method named >sql2order<.

I don't see a method by that name in the Sql2OrderClient java code.

I do see a filename of Order-sql2Order.xml. I suspect something is getting confused on what is a filename/string and what is a method invocation.

HopeThisHelped.

Brody
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On