Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

HXTT DBF
Error: "Failed to calculate"
Maria
2014-12-06 14:46:38.0
I am using the latest hxtt driver to connect to a foxpro database from a java application (Servoy) and get the error below. It's working fine with an earlier version of the foxpro db, but I'm not sure what changed since then. Would you be able to give me a clue on how to fix this issue? There are also a few similar errors on other tables: "Failed to calculate PADR(CHRTRAN(FAX,'()- ',''),LEN(FAX))'s length.", etc.


ERROR [main] com.servoy.j2db.util.Debug - Error while testing for auto-increment on column SERVCARDID of table tsm.servcard sql = select SERVCARDID from servcard where 1 = 2 [ ]
java.sql.SQLException: Failed to calculate EVALUATE('invoices.ap_invno')'s length.
at com.hxtt.global.SQLState.SQLException(Unknown Source)
at com.hxtt.e.e.case(Unknown Source)
at com.hxtt.e.m.if(Unknown Source)
at com.hxtt.e.e.a(Unknown Source)
at com.hxtt.e.e.case(Unknown Source)
at com.hxtt.e.m.if(Unknown Source)
at com.hxtt.sql.dbf.x.a(Unknown Source)
at com.hxtt.sql.dbf.DBFIndex.a(Unknown Source)
at com.hxtt.sql.dbf.DBFIndex.(Unknown Source)
at com.hxtt.sql.dbf.DBFIndex.a(Unknown Source)
at com.hxtt.sql.dbf.i.a(Unknown Source)
at com.hxtt.sql.dbf.d.a(Unknown Source)
at com.hxtt.sql.dbf.d.(Unknown Source)
at com.hxtt.sql.dbf.w.a(Unknown Source)
at com.hxtt.sql.b0.a(Unknown Source)
at com.hxtt.sql.d4.a(Unknown Source)
at com.hxtt.sql.d4.a(Unknown Source)
at com.hxtt.sql.df.a(Unknown Source)
at com.hxtt.sql.b0.a(Unknown Source)
at com.hxtt.sql.am.a(Unknown Source)
at com.hxtt.sql.am.a(Unknown Source)
at com.hxtt.sql.am.executeQuery(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.servoy.j2db.datasource.Zg.invoke(Zg.java:4)
at com.sun.proxy.$Proxy22.executeQuery(Unknown Source)
at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
at com.servoy.j2db.server.Za.Zo.Za(Zo.java:399)
at com.servoy.j2db.server.Za.Zo.reloadTableColumnInfo(Zo.java:955)
at com.servoy.j2db.server.Za.Zo.Zd(Zo.java:303)
at com.servoy.j2db.server.Za.Zo.Zc(Zo.java:1374)
at com.servoy.j2db.server.Za.Zo.getTable(Zo.java:951)
at com.servoy.j2db.server.Za.Zo.getTable(Zo.java:395)
at com.servoy.eclipse.model.util.ModelUtils$1.getTable(ModelUtils.java:397)
at com.servoy.j2db.persistence.Relation.getTable(Relation.java:590)
at com.servoy.j2db.persistence.Relation.getForeignTable(Relation.java:611)
at com.servoy.j2db.persistence.Relation.isValid(Relation.java:787)
at com.servoy.j2db.persistence.Relation.isGlobalEx(Relation.java:969)
at com.servoy.j2db.persistence.Relation.isGlobal(Relation.java:959)
at com.servoy.j2db.persistence.Solution.getRelations(Solution.java:287)
at com.servoy.j2db.persistence.Solution.getRelations(Solution.java:256)
at com.servoy.j2db.persistence.Solution.getRelations(Solution.java:163)
at com.servoy.eclipse.ui.views.solutionexplorer.SolutionExplorerTreeContentProvider.addGlobalRelationsNodeChildren(SolutionExplorerTreeContentProvider.java:1536)
at com.servoy.eclipse.ui.views.solutionexplorer.SolutionExplorerTreeContentProvider.addGlobalsNodeChildren(SolutionExplorerTreeContentProvider.java:1098)
at com.servoy.eclipse.ui.views.solutionexplorer.SolutionExplorerTreeContentProvider.addScopesNodeChildren(SolutionExplorerTreeContentProvider.java:1083)
at com.servoy.eclipse.ui.views.solutionexplorer.SolutionExplorerTreeContentProvider.addSolutionNodeChildren(SolutionExplorerTreeContentProvider.java:998)
at com.servoy.eclipse.ui.views.solutionexplorer.SolutionExplorerTreeContentProvider.getChildren(SolutionExplorerTreeContentProvider.java:646)
at org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren(AbstractTreeViewer.java:1374)
at org.eclipse.jface.viewers.TreeViewer.getRawChildren(TreeViewer.java:391)
at org.eclipse.jface.viewers.StructuredViewer.getFilteredChildren(StructuredViewer.java:917)
at org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildren(AbstractTreeViewer.java:620)
at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:820)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:797)
at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeViewer.java:644)
at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:768)
at org.eclipse.jface.viewers.AbstractTreeViewer.setExpandedState(AbstractTreeViewer.java:2500)
at com.servoy.eclipse.ui.views.solutionexplorer.SolutionExplorerView$2.runInUIThread(SolutionExplorerView.java:908)
at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4145)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3762)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
Re:Error:
HXTT Support
2014-12-06 15:46:05.0
>I am using the latest hxtt driver to connect to a foxpro database from a java application (Servoy)
It should be an older package before 2014-08-06, and Servoy should download the latest package and renew their license.
Re:Re:Error:
2014-12-06 15:51:39.0
So what version of the driver exactly should I use? I tried downloading version 4.0 for java 6, 7 and 8 from the downloads page and it didn't work.
Re:Re:Re:Error:
Maria
2014-12-06 16:42:17.0
I just downloaded DBF_JDBC42 and that one didn't work either. Same problem.
Our company has our own license, not sure if it's up to date, but I can check that.
Please advise what version of the driver is supposed to be used.
Re:Re:Re:Re:Error:
HXTT Support
2014-12-07 08:11:00.0
>Failed to calculate PADR(CHRTRAN(FAX,'()- ',''),LEN(FAX))'s length
Recurred and supported. Please download the latest package.

>Failed to calculate EVALUATE('invoices.ap_invno')'s length.
It should be an invalid index epxression, because your table servcard, but invoices is in index epxression.

Search Key   Search by Last 50 Questions




Google
 

Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Email: webmaster@hxtt.com
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap