Giter Club home page Giter Club logo

simpl09's People

Contributors

hahnml avatar schneimi avatar

simpl09's Issues

Retrieve data from MySQL results in java.sql.SQLException

Exception in thread "main" java.lang.RuntimeException: 
java.sql.SQLException: Cannot convert value '0000-00-00 00:00:00' from 
column 4 to TIMESTAMP.
    at 
org.apache.tuscany.das.rdb.impl.ReadCommandImpl.executeQuery(ReadCommandImp
l.java:279)
    at 
org.simpl.core.plugins.datasource.rdb.MySQLRDBDataSource.retrieveData(MySQL
RDBDataSource.java:111)
    at Test.main(Test.java:44)
Caused by: java.sql.SQLException: Cannot convert value '0000-00-00 
00:00:00' from column 4 to TIMESTAMP.
    at 
com.mysql.jdbc.ResultSet.getTimestampFromBytes(ResultSet.java:6864)
    at 
com.mysql.jdbc.ResultSet.getTimestampInternal(ResultSet.java:6899)
    at com.mysql.jdbc.ResultSet.getTimestamp(ResultSet.java:6218)
    at com.mysql.jdbc.ResultSet.getObject(ResultSet.java:4999)
    at 
org.apache.tuscany.das.rdb.graphbuilder.impl.ResultSetRow.getObject(ResultS
etRow.java:209)
    at 
org.apache.tuscany.das.rdb.graphbuilder.impl.ResultSetRow.processRow(Result
SetRow.java:74)
    at 
org.apache.tuscany.das.rdb.graphbuilder.impl.ResultSetRow.<init>(ResultSetR
ow.java:59)
    at 
org.apache.tuscany.das.rdb.graphbuilder.impl.ResultSetProcessor.processResu
ltSet(ResultSetProcessor.java:90)
    at 
org.apache.tuscany.das.rdb.graphbuilder.impl.ResultSetProcessor.processResu
lts(ResultSetProcessor.java:77)
    at 
org.apache.tuscany.das.rdb.impl.ReadCommandImpl.buildGraph(ReadCommandImpl.
java:309)
    at 
org.apache.tuscany.das.rdb.impl.ReadCommandImpl.executeQuery(ReadCommandImp
l.java:277)
    ... 2 more


Original issue reported on code.google.com by [email protected] on 26 Apr 2010 at 7:22

Wrong path to simp-config.xml under Linux filesystems.

In class SIMPLConfig (org.simpl.core) the path to the simpl-config.xml is only 
correct for Win filesystems.

This should be fixed to use SIMPL on Linux without problems.

To avoid this problem without code fix, the simpl-config.xml must be copied to 
the root directory of the JVM during tomcat runtime. This means if you start 
the tomcat server with startup.sh in folder /bin this is the root folder and 
the config file has to be copied there.

Original issue reported on code.google.com by [email protected] on 14 Sep 2010 at 9:17

Retrieve data from MySQL results in java.lang.ClassCastException

Exception in thread "main" java.lang.ClassCastException: The value of type 
'class java.lang.Long' must be of type 'class java.lang.Integer'
    at 
org.eclipse.emf.ecore.impl.EStructuralFeatureImpl$InternalSettingDelegateSi
ngleDataUnsettableStatic.validate(EStructuralFeatureImpl.java:2195)
    at 
org.eclipse.emf.ecore.impl.EStructuralFeatureImpl$InternalSettingDelegateSi
ngleDataUnsettable.dynamicSet(EStructuralFeatureImpl.java:2116)
    at 
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicSet(BasicEObjectImpl.ja
va:709)
    at 
org.apache.tuscany.sdo.impl.DynamicDataObjectImpl.eDynamicSet(DynamicDataOb
jectImpl.java:160)
    at 
org.apache.tuscany.sdo.impl.DataObjectImpl.eSet(DataObjectImpl.java:1459)
    at 
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjectImpl.java:654)
    at 
org.apache.tuscany.sdo.impl.DataObjectImpl.set(DataObjectImpl.java:142)
    at 
org.apache.tuscany.das.rdb.graphbuilder.impl.DataObjectMaker.createAndAddDa
taObject(DataObjectMaker.java:90)
    at 
org.apache.tuscany.das.rdb.graphbuilder.impl.ResultSetProcessor.addRowToGra
ph(ResultSetProcessor.java:127)
    at 
org.apache.tuscany.das.rdb.graphbuilder.impl.ResultSetProcessor.processResu
ltSet(ResultSetProcessor.java:91)
    at 
org.apache.tuscany.das.rdb.graphbuilder.impl.ResultSetProcessor.processResu
lts(ResultSetProcessor.java:77)
    at 
org.apache.tuscany.das.rdb.impl.ReadCommandImpl.buildGraph(ReadCommandImpl.
java:309)
    at 
org.apache.tuscany.das.rdb.impl.ReadCommandImpl.executeQuery(ReadCommandImp
l.java:277)
    at 
org.simpl.core.plugins.datasource.rdb.MySQLRDBDataSource.retrieveData(MySQL
RDBDataSource.java:111)
    at Test.main(Test.java:44)

Original issue reported on code.google.com by [email protected] on 26 Apr 2010 at 7:22

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.