Question about Java API for XML schema?
Hello, everyone!
I am looking for a java api for XML schema. I hope the API is capable for parsing the structure of element
or complextype declarations in XML schema. So for example, if I specify a name of an element or
complextype defined in a schema, the name, dataype and other constraints of contained child elements can be returned.
Does anyone know if there exists such a paser?
Thanks very much!
An implementation of DOM Level 3.
Similar Messages
-
Question about Java,XSLT and XML
I am new to Java and XML. I'm not quite clear the relationship between Java,XSLT and XML.
To exercise, I am going to write a Java program that makes embedded calls to an XSLT processor(XALAN), to produce results for several constrained transformations from a given XML document(x.xml) such as:
1.Transform the x.xml (which satisfies d1.dtd) in such a way that it now conforms to the DTD d2.dtd. Output the resulting xx.xml document.
2.query some information from the x.xml and then form an Html output.
3.summary some information, do some statistics from the x.xml and then form an Html output.
I don't konw which java classes and XSLT functions might be used.(Actually I don't know how/where to start).
Can anyone give me some clue ?
thanks a lot!You must provide XSLT stylesheeds to specify transformations (1), (2),
and (3); let's call those stylesheets task1.xsl and so on.
The following code will transform x.xml into xx.xml according to task1.xsl. It gives you an idea which packages and classes to use, but it doesn't teach you proper Java programming technics :)
import java.io.File;
import javax.xml.transform.*;
import javax.xml.transform.stream.*;
public class Test
public static void main(String[] args) throws Exception
TransformerFactory factory = TransformerFactory.newInstance();
Source config = new StreamSource(new File("task1.xsl"));
Transformer transformer = factory.newTransformer(config);
Source source = new StreamSource(new File("x.xml"));
Result result = new StreamResult(new File("xx.xml"));
transformer.transform(source, result);
}To read about XSLT, see:
http://www.w3.org/TR/xslt
there is a tutorial on using XSLT with Java:
http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/xslt/index.html. -
JAVA API for XML Web Services (JAX-WS), version 2.0.
i read the article "Introducing JAX-WS 2.0 With the Java SE 6 Platform, Part 1 By Robert Eckstein and Rajiv Mordani, September 2006 " and i was impressed by it.
I tried to implement it on NETBEANS 5.5 and i only changed the package name from HELLO to wsPOJO
i got the following error
Exception in thread "main" Server Runtime Error: class: wspojo.jaxws.GetArea could not be found
at com.sun.xml.ws.transport.http.server.HttpEndpoint.publish(HttpEndpoint.java:267)
at com.sun.xml.ws.transport.http.server.EndpointImpl.publish(EndpointImpl.java:85)
at com.sun.xml.ws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:57)
at javax.xml.ws.Endpoint.publish(Endpoint.java:156)
at wspojo.CircleFunctions.main(CircleFunctions.java:29)
if any one can help.
Thanks in advance.Try your question here,
http://forums.java.net/jive/forum.jspa?forumID=46 -
Any tools for converting java class to xml schema ?
Hi,
Are there any tools out there that can convert my java class to xml schema. How such tools take care of java collections like HashTable, ArrayList etc. in my class structure. I am not interested in writing any configuration files(like jaxb configuration files, jibx binding xml files etc.) for serving this purpose and the can be able to give me xml schema from the java classes. Please suggest ...
I am not sure even JAXB 2.0 allows me to do this without writing any jaxb configuration files or annotations in my java class which is not there in JDK 1.4.2
Thanks & Regards,
Kr.Hi,
You can convert the EDI file to XML in any of the ways
1) Using third party seeburger adapters
2) Conversion agent
3) Stylus studio.
I think using java code it will be very difficult.
Thnx
Chirag -
Java API for Adobe Flex(AIR and Browser)
Hello Community,
Sometime ago i started the project located at: : http://code.google.com/p/gwt4air/ , wich primary goal was to bring another approach on writing AIR application by providing a Java API for the AIR API. On top of that i added support for PDF and Excel generation using Java.
I m glad to announce that the project will now add support for the Flex Framework
I wrote a post about it on the main page.
The Idea behind it is to give Java Developers a more simple way to write Flex Application by leaveraing a swing like API.
I hope this project will be a good alternative to the MXML+ ActionScript approach and looking for people willing to join the project.
Regards,
AlainGood question, I'd like to know this myself. 4.5 has a huge number of changes since 4.0.
-
Question about Java's HttpServer: Threading? Backlog?
Hello,
I have two questions about Java's HttpServer (com.sun.net.httpserver). From the JavaDoc:
>
Management of threads can be done external to this object by providing a Executor object. If none is provided a default implementation is used.
>
How can I get information about the default implementation in 1.6.0_13? Do you know the behavior? From my observations, the default implementation uses no Threads, meaning every request is handled in the same Thread, this results in handling the requests to the HttpServer one after another.
Is this right?
The second question is about this, also from the JavaDoc:
>
When binding to an address and port number, the application can also specify an integer backlog parameter. This represents the maximum number of incoming TCP connections which the system will queue internally. [...]
>
When setting the backlog to -1, it uses the systems default backlog. How can I determine the systems default backlog? Can some lines of Java code reveal it (there is no getBeacklog() method)? Or is it up to the Operating System (we use Redhat Linux)?
Thanks a lot for your help!
Regards,
TimoHow can I determine the systems default backlog?You can't. There is no API for that even at the C level.
Can some lines of Java code reveal itNo.
Or is it up to the Operating System (we use Redhat Linux)?Yes. Linux provides a large default. It seems to be at least 50 on most platforms. This is not something you should be worrying about. -
Unable to locate Spring NamespaceHandler for XML schema namespace
I am not sure if this is the best practice approach but this is the problem I am ruining into. Below, I explain what I am doing:
1) What I am doing:
=============
Based on the oracle incubator example (http://coherence.oracle.com/display/INCUBATOR/Processing+Pattern+Examples); I am running a server and submitting tasks through a proxy application that submits them to ProcessingPatternConfigurator; let's call my task processReport.
a) my processReport is using spring and ibatis together, I created a utility static class to obtain a spring context and retrieves beans using the following lines ( see exhibit "A1 and A2" below).
b) when my task calls the context and that spring loads, it is failing with the error show in exhibit "B".
I suspect I am missing a lib? I googled the error and searched you site but could find a meaningful discussion on it. I guess my question is if this is not the best approach, how do I integrated with spring initializing beans and setting up ibatis framwork, providing beans and database access through Ibatis for each task ruining on the grid (processReport).
thanks
A1) processReport (submitted in the grid) uses this line
AbstractXmlApplicationContext ctx = (AbstractXmlApplicationContext) AmrContextUtil.getInstance();
System.out.println("Classpath loaded. Executing Report...");
ReportProcessor repProcessor = (ReportProcessor) ctx.getBean("reportProcessor");
A2) Here is the AmrContextUtil:
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public final class AmrContextUtil {
private static AbstractApplicationContext ctx = null;
public AmrContextUtil() {
super();
public final static synchronized AbstractApplicationContext getInstance(){
if (ctx == null){
ctx = new ClassPathXmlApplicationContext("classpath:config/applicationContext.xml");
setCtx(ctx);
return ctx;
public final static synchronized AbstractApplicationContext getCtx() {
return ctx;
public final static synchronized void setCtx(AbstractApplicationContext ctx) {
AmrContextUtil.ctx = ctx;
B) Here is the error reported by the server:
2010-02-10 15:42:28.312/57.986 Oracle Coherence GE 3.5.2/463 <Warning> (thread=GridExecutor:Thread-2
, member=1): TaskRunner - Failed to process 0x00000126B99E5524AC1F007AAB1587BBCFEC5E6637E1DED6CCB984
03D6AADF4D due to:org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from URL location [classpath:config/reports-application.xml] Offending resource: class path resource [config/applicationContext.xml]; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unexpected failure during bean definition parsing
Offending resource: class path resource [config/reports-application.xml] Bean 'reportSqlMapConfig'; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: *Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/util]*
*Offending resource: class path resource [config/reports-application.xml] Bean 'reportSqlMapConfig'*
-> Property 'resourceMap'
c)Here is my application-context.xml offending line:
<bean id="reportSqlMapConfig"
class="com.xx.report.generator.ReportSqlMapConfig">
<property name="resourceMap">
<map>
<entry>
<key>
<util:constant static-field="com.xx.report.domain.ReportType.FPA"/>
</key>
<value>classpath:config/diehardReportSqlMapConfig.xml</value>
</entry>
<entry>
<key>
<util:constant static-field="com.xx.report.domain.ReportType.FCN"/>
</key>
<value>classpath:config/falconReportSqlMapConfig.xml</value>
</entry>
<entry>
<key>
<util:constant static-field="com.xx.report.domain.ReportType.ODS"/>
</key>
<value>classpath:config/odsReportSqlMapConfig.xml</value>
</entry>
</map>
</property>
</bean>My guess is that something is broken in the configuration of the cacheServer and its not finding
all of the dependencies that your process pattern application needs. Probably the best way
to debug this stuff is to define a static main in your runnable task which will make the call
to the run() method and invoke it as the main class using the identical settings (classpath,
run directory) that you are using to launch the Coherence cache server.
Regards,
Bob -
Java Mapping Using JAXB [Java Arch for XML Binding]
Hi All,
Anyone tried using JAXB [Java Architecture for XML Binding API available with Java WebServices Pack] technique for XML processing in Java Mapping??
I am facing the following problems..
1. I am not able to generate namespace while marshalling target XML [In standalone mode and not tried in XI].
2. What are the jar files we need to import?
I tried importing the following jar files in XI.
jaxb-api.jar,jaxb-impl.jar,jaxb-libs.jar,jax-qname.jar,namespace.jar,relaxngDatatype.jar
and getting some errors while importing these files in XI.
3. It throws error at runtime [Interface Mapping-Test Tab]
like Resource not found:javax/xml/bind/Messages_en.properties,javax/xml/bind/Messages_en_US.properties
4. Even after creating a copy of available file Messages.Properties with name: Messages_en.properties and Messages_en_US.properties.. it is not generating any messages in Target message tab
Thanks in Advance,
Ananth ChinnarajSravya ,
I have searched wide and far for this, but no success.
A lot on JAXB XI and Webdynpro, but nothing on JAXB, XI and mappings.
Could you please post the url here ?
Thanks and kind regards,
Jan -
Image not displayed in pdf generated using Java API for Forms service
Hi,
I am creating a pdf document using Java API for Forms Service.
I am able to generate the pdf but the images are not visible in the generated pdf.
The image relative path is coming in the xml as defined below. The images are stored dynamically in the Livecycle repository each time a request is fired with unique name before the xml is generated.
<imageURI xfa:contentType="image/png" href="../Images/logo.png"></imageURI>
Not sure if I need to specify specify specific URI values that are required to render a form with image.
The same thing is working when I generate pdf document using Java API for Output Service.
As, I need to generate interactive form, I have to use Forms service to generate pdfs.
Any help will be highly appreciated.
Thanks.Below is the code snippet:
//Create a FormsServiceClient object
FormsServiceClient formsClient = new FormsServiceClient(myFactory);
//Specify URI values that are required to render a form
URLSpec uriValues = new URLSpec();
// Template location contains the whole rpository path for the form
uriValues.setContentRootURI(templateLocation);
// The base URL where form resources such as images and scripts are located. Whole Image path is passed in BaseUrl in the http format.
String baseLocation = repositoryPath.concat(serviceName).concat(imagesPath);
uriValues.setBaseURL(baseLocation);
// Set run-time options using a PDFFormRenderSpec instance
PDFFormRenderSpec pdfFormRenderSpec = new PDFFormRenderSpec();
pdfFormRenderSpec.setCacheEnabled(new Boolean(true));
pdfFormRenderSpec.setAcrobatVersion(com.adobe.livecycle.formsservice.client.AcrobatVersio n.Acrobat_8);
//Invoke the renderPDFForm method and write the
//results to a client web browser
String tempTemplateName =templateName;
FormsResult formOut = formsClient.renderPDFForm(tempTemplateName,
inXMDataTransformed,pdfFormRenderSpec,uriValues,null);
//Create a Document object that stores form data
Document outputDocument = formOut.getOutputContent();
InputStream inputStream = outputDocument.getInputStream(); -
Support for XML schema by Sun's parser
Does Sun's ProjectX XML parser proovide support for XML schema.
The JAXP conformance documentation does not mention about XML Schemas, therefore it does not yet support it. If you are looking for an XML parser that supports XML Schema validation, you can download Multi Schema Validator (MSV) from http://www.sun.com. Xerces 2.0.0 beta 3 mentions support for XML Schema. I have not tested it though. Hope this helps.
-
hi,
can anyone tell me whether there is any Java APIs for creating XML file( similar to the one used for parsing).
thx in advance,
-Soni.Hi,
you can try the org.apache.xml.serialize.XMLSerializer which is included in the Apache Xerces Package (http://xml.apache.org/xerces). This Class allows you to serialize a org.w3c.dom.Document to a OutputStream which can be a FileOutputStream.
Check out this code:
OutputFormat format = new OutputFormat();
format.setDoctype("mapping","mapping.dtd");
format.setEncoding("ISO-8859-1");
format.setLineWidth(100);
XMLSerializer ser = new XMLSerializer(new FileOutputStream(f),format);
ser.serialize(doc);
Rgds,
Sebastian -
Three questions about Java and Ftp
Hello, i've the following questions about Java and Ftp:
1- .netrc file is in $HOME directory but i can't access to this directory from java code. The following line producesan Exception (directory doesn't exists)
FileWriter file = new FileWriter ("$HOME/.netrc");
2- .netrc file must have the following permissions: -rw- --- --- but when i create the .netrc file the following permissions are on default: -rw- r-- r--, how can i change this permissions? (In java code, i can't use chmod.....)
3- Are there any way to pass parameters to a .netrc file? If i get to do this i needn't change the permissions because i can't modify or create/destroy this file.
Thanks in advanced!!!
Kike1- .netrc file is in $HOME directory but i can't
access to this directory from java code. The
following line producesan Exception (directory
doesn't exists)
FileWriter file = new FileWriter ("$HOME/.netrc");$HOME would have to be replaced by a shell, I don't
think you can use it as part of a legal path.
Instead, use System.getProperty("user.home");
Ok, thanks
2- .netrc file must have the followingpermissions:
-rw- --- --- but when i create the .netrc file the
following permissions are on default: -rw- r--r--,
how can i change this permissions? (In java code,i
can't use chmod.....)Yes, you can: Runtime.exec("chmod ...");
I need to use estrictly the .netrc with -rw- --- --- permissions
Yes, i can use Runtime.exec ("chmod ..."); but i don't like very much this solution because is a slow solution, am i right?
3- Are there any way to pass parameters to a.netrc
file? If i get to do this i needn't change the
permissions because i can't modify orcreate/destroy
this file.I don't think so. Why do you need the .netrc file in
Java at all? Writing a GUI frontend?I want to use automatic ftp in a java program and FTP server, the files and path are not always the same, so i can:
- modify .netrc (for me is the complex option)
- destroy and create a new .netrc (is easier but i have permissions problem)
- use .netrc with parameters but i haven't found any help about it
Thanks for your prompt reply!!!!
Kike -
JSR-173: Streaming API for XML (StAX)
http://www.jcp.org/en/jsr/detail?id=173
"The Streaming API for XML (StAX) is a Java based API for pull-parsing XML."
BEA is the spec lead.http://www.xml.com/pub/a/2003/09/17/stax.html
-
Hi all,I am using Java Apis for Essbase 7.1. I am using following Api for Database Filters to get the "Access Level". IEssCube.IEssSecurityFilter.getAccess()Gets the default filter access level. However the doumentation does not provide any information about the value returned by this Api and its meaning.Please can you tell what each integer value returned by this Api represents..Thanks.
I believe the values are documented in IEssCube.EEssCubeAccess.Be aware the security filter class is marked 'for future use' in the docs:The IEssSecurityFilter is cube security filter. (FOR FUTURE USE). That may mean it is not fully tested or perhaps not even fully implemented.Tim TowApplied OLAP, Inc
-
Java API for running entire ".sql" files on a remote DB ( mySQL or Oracle)?
Hi,
Would anyone happen to know if there's a java API for executing entire ".sql" files (containing several different SQL commands), on a remote database server ?
It's enough if the API works with MySQL and/or Oracle.
Just to demonstrate what i'm looking for:
Suppose you've created sql file "c:/test.sql" with several script lines:
-- test.sql:
insert into TABLE1 values(3,3);
insert into TABLE1 values(5,5);
create table TABLE2 (name VARCHER) ENGINE innoDB; -- MYSQL specific
Then the java API should look something like:
// Dummy java code:
String driver="com.mysql.jdbc.Driver";
String url= "jdbc:mysql://localhost:3306/myDb";
SomeAPI.executeScriptFile( "c:/test.sql", driver, url);
Thanks.No such a API, but it's easy to parse all sqls in a file, then run those command:
For instance:
import java.sql.*;
import java.util.Properties;
/* A demo show how to load some sql statements. */
public class testSQL {
private final static Object[] getSQLStatements(java.util.Vector v) {
Object[] statements = new Object[v.size()];
Object temp;
for (int i = 0; i < v.size(); i++) {
temp = v.elementAt(i);
if (temp instanceof java.util.Vector)
statements[i] = getSQLStatements( (java.util.Vector) temp);
else
statements[i] = temp;
return statements;
public final static Object[] getSQLStatements(String sqlFile) throws java.
io.IOException {
java.util.Vector v = new java.util.Vector(1000);
try {
java.io.BufferedReader br = new java.io.BufferedReader(new java.io.
FileReader(sqlFile));
java.util.Vector batchs = new java.util.Vector(10);
String temp;
while ( (temp = br.readLine()) != null) {
temp = temp.trim();
if (temp.length() == 0)
continue;
switch (temp.charAt(0)) {
case '*':
case '"':
case '\'':
// System.out.println(temp);
break; //Ignore any line which begin with the above character
case '#': //Used to begin a new sql statement
if (batchs.size() > 0) {
v.addElement(getSQLStatements(batchs));
batchs.removeAllElements();
break;
case 'S':
case 's':
case '?':
if (batchs.size() > 0) {
v.addElement(getSQLStatements(batchs));
batchs.removeAllElements();
v.addElement(temp);
break;
case '!': //Use it to get a large number of simple update statements
if (batchs.size() > 0) {
v.addElement(getSQLStatements(batchs));
batchs.removeAllElements();
String part1 = temp.substring(1);
String part2 = br.readLine();
for (int i = -2890; i < 1388; i += 39)
batchs.addElement(part1 + i + part2);
for (int i = 1890; i < 2388; i += 53) {
batchs.addElement(part1 + i + part2);
batchs.addElement(part1 + i + part2);
for (int i = 4320; i > 4268; i--) {
batchs.addElement(part1 + i + part2);
batchs.addElement(part1 + i + part2);
for (int i = 9389; i > 7388; i -= 83)
batchs.addElement(part1 + i + part2);
v.addElement(getSQLStatements(batchs));
batchs.removeAllElements();
break;
default:
batchs.addElement(temp);
break;
if (batchs.size() > 0) {
v.addElement(getSQLStatements(batchs));
batchs.removeAllElements();
br.close();
br = null;
catch (java.io.FileNotFoundException fnfe) {
v.addElement(sqlFile); //sqlFile is a sql command, not a file Name
Object[] statements = new Object[v.size()];
for (int i = 0; i < v.size(); i++)
statements[i] = v.elementAt(i);
return statements;
public static void main(String argv[]) {
try {
String url;
Object[] statements;
switch (argv.length) {
case 0: //Use it for the simplest test
case 1:
url = "jdbc:dbf:/.";
if (argv.length == 0) {
statements = new String[1];
statements[0] = "select * from test";
else
statements = argv;
break;
case 2:
url = argv[0];
statements = getSQLStatements(argv[1]);
break;
default:
throw new Exception(
"Syntax Error: java testSQL url sqlfile");
Class.forName("com.hxtt.sql.dbf.DBFDriver").newInstance();
//Please see Connecting to the Database section of Chapter 2. Installation in Development Document
Properties properties = new Properties();
Connection con = DriverManager.getConnection(url, properties);
Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY);
//Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
// stmt.setMaxRows(0);
stmt.setFetchSize(10);
final boolean serializeFlag = false;//A test switch to serialize/deserialize the resultSet
ResultSet rs;
for (int i = 0; i < statements.length; i++) {
if (statements[i] instanceof java.lang.String) {
String temp = (java.lang.String) statements;
switch (temp.charAt(0)) {
case 'S':
case 's':
case '?':
System.out.println(temp);
rs = stmt.executeQuery(temp);
if (serializeFlag) {
// serialize the resultSet
try {
java.io.FileOutputStream fileOutputStream = new
java.io.FileOutputStream("testrs.tmp");
java.io.ObjectOutputStream
objectOutputStream = new java.io.
ObjectOutputStream(fileOutputStream);
objectOutputStream.writeObject(rs);
objectOutputStream.flush();
objectOutputStream.close();
fileOutputStream.close();
catch (Exception e) {
System.out.println(e);
e.printStackTrace();
System.exit(1);
rs.close(); //Let the CONCUR_UPDATABLE resultSet release its open files at once.
rs = null;
// deserialize the resultSet
try {
java.io.FileInputStream fileInputStream = new
java.io.FileInputStream("testrs.tmp");
java.io.ObjectInputStream objectInputStream = new
java.io.ObjectInputStream(
fileInputStream);
rs = (ResultSet) objectInputStream.
readObject();
objectInputStream.close();
fileInputStream.close();
catch (Exception e) {
System.out.println(e);
e.printStackTrace();
System.exit(1);
ResultSetMetaData resultSetMetaData = rs.
getMetaData();
int iNumCols = resultSetMetaData.getColumnCount();
for (int j = 1; j <= iNumCols; j++) {
// System.out.println(resultSetMetaData.getColumnName(j));
/* System.out.println(resultSetMetaData.getColumnType(j));
System.out.println(resultSetMetaData.getColumnDisplaySize(j));
System.out.println(resultSetMetaData.getPrecision(j));
System.out.println(resultSetMetaData.getScale(j));
System.out.println(resultSetMetaData.
getColumnLabel(j)
+ " " +
resultSetMetaData.getColumnTypeName(j));
Object colval;
rs.beforeFirst();
long ncount = 0;
while (rs.next()) {
// System.out.print(rs.rowDeleted()+" ");
ncount++;
for (int j = 1; j <= iNumCols; j++) {
colval = rs.getObject(j);
System.out.print(colval + " ");
System.out.println();
rs.close(); //Let the resultSet release its open tables at once.
rs = null;
System.out.println(
"The total row number of resultset: " + ncount);
System.out.println();
break;
default:
int updateCount = stmt.executeUpdate(temp);
System.out.println(temp + " : " + updateCount);
System.out.println();
else if (statements[i] instanceof java.lang.Object[]) {
int[] updateCounts;
Object[] temp = (java.lang.Object[]) statements[i];
try {
for (int j = 0; j < temp.length; j++){
System.out.println( temp[j]);
stmt.addBatch( (java.lang.String) temp[j]);
updateCounts = stmt.executeBatch();
for (int j = 0; j < temp.length; j++)
System.out.println((j+1)+":"+temp[j]);
for (int j = 0; j < updateCounts.length; j++)
System.out.println((j+1)+":" +updateCounts[j]);
catch (java.sql.BatchUpdateException e) {
updateCounts = e.getUpdateCounts();
for (int j = 0; j < updateCounts.length; j++)
System.out.println((j+1)+":"+updateCounts[j]);
java.sql.SQLException sqle = e;
do {
System.out.println(sqle.getMessage());
System.out.println("Error Code:" +
sqle.getErrorCode());
System.out.println("SQL State:" + sqle.getSQLState());
sqle.printStackTrace();
while ( (sqle = sqle.getNextException()) != null);
catch (java.sql.SQLException sqle) {
do {
System.out.println(sqle.getMessage());
System.out.println("Error Code:" +
sqle.getErrorCode());
System.out.println("SQL State:" + sqle.getSQLState());
sqle.printStackTrace();
while ( (sqle = sqle.getNextException()) != null);
stmt.clearBatch();
System.out.println();
stmt.close();
con.close();
catch (SQLException sqle) {
do {
System.out.println(sqle.getMessage());
System.out.println("Error Code:" + sqle.getErrorCode());
System.out.println("SQL State:" + sqle.getSQLState());
sqle.printStackTrace();
while ( (sqle = sqle.getNextException()) != null);
catch (Exception e) {
System.out.println(e.getMessage());
e.printStackTrace();
Maybe you are looking for
-
My computer is a Dell with Windows Vista. I just did a complete factory restore, not the system restore. Firefox was the first thing I downloaded and it still doesn't respond quickly and sometimes has to be shut down with the task manager. It's the l
-
2:30 QuickTime Movie in Presentation
Greetings, We are using Keynote 08 as an electronic kiosk. When we add the movie it will not play the entire 2:30 before transitioning to the next slide. Only see an option for :60...how do you instruct Keynote to play the entire 2:30 QuickTime movie
-
Black border around clip in canvas
When I edit a shot in the viewer, it takes up the whole window, but when I move it to the timeline I have to render it, and it doesn't take up the whole canvas window like it should. Other clips, which I don't have to render, fill the entire canvas w
-
WRT350N: External Drive Set-Up
I've been trying like heck to get a 500G Mybook hooked up to the router properly. I plug the Mybook into the usb port of the router. I create a share and the whole thing. From my laptop (XP) I map the drive to a letter and can read and write to the
-
Someone at Apple please explain to us or even explain to the game developer, Brian Greenstone, why especially since ios8 there is terrible lag and skipping in this game making it unplayable for many players. These are often people with lightening fas