Hello All,
I'm using MS-SQL 2005 DB, Smart GWT EE 2.2 (eval 2010-05-18)
when i do edit , it works OK.
when i do insert, it works, the DB is updated, but the grid still marks the row as not saved yet (blue font) and i get the following exception on the log file of the tomcat:
=== 2010-05-19 14:43:37,218 [55-1] INFO SQLDriver - [builtinApplication.worldDS_add] Executing SQL update on 'SQLServer': INSERT INTO worldDS (countryName, area, countryCode, continent, government, capital) VALUES ('Jordan', 4.2, '975', 'Asia', 'Kingdom', 'Amman')
=== 2010-05-19 14:43:37,218 [55-1] DEBUG SQLDataSource - [builtinApplication.worldDS_add] add operation affected 1 rows
=== 2010-05-19 14:43:37,218 [55-1] INFO SQLDriver - [builtinApplication.worldDS_add] Executing SQL query on 'SQLServer': SELECT SCOPE_IDENTITY()
=== 2010-05-19 14:43:37,218 [55-1] WARN RequestContext - dsRequest.execute() failed:
java.lang.NullPointerException
at com.isomorphic.sql.SQLServerDriver.fetchLastPrimaryKeys(SQLServerDriver.java:174)
at com.isomorphic.sql.SQLDataSource.getLastPrimaryKeys(SQLDataSource.java:490)
at com.isomorphic.sql.SQLDataSource.getLastRow(SQLDataSource.java:377)
at com.isomorphic.sql.SQLDataSource.SQLExecute(SQLDataSource.java:1217)
at com.isomorphic.sql.SQLDataSource.execute(SQLDataSource.java:243)
at com.isomorphic.application.AppBase.executeDefaultDSOperation(AppBase.java:721)
at com.isomorphic.application.AppBase.executeAppOperation(AppBase.java:658)
at com.isomorphic.application.AppBase.execute(AppBase.java:491)
at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:1298)
at com.isomorphic.servlet.IDACall.handleDSRequest(IDACall.java:155)
at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:106)
at com.isomorphic.servlet.IDACall.doPost(IDACall.java:54)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:259)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
at java.lang.Thread.run(Thread.java:619)
i have attached the entry point class ( the only class in the project), the server property file, web xml and the DS xml file.
Please help!
Thanks
Ahmad
EDIT::
here is the DB table script :
USE [smartGWT]
GO
/****** Object: Table [dbo].[worldDS] Script Date: 05/19/2010 16:50:15 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[worldDS](
[PK] [int] IDENTITY(1,1) NOT NULL,
[CountryName] [nvarchar](150) NOT NULL,
[Area] [float] NULL,
[GDP] [float] NULL,
[Continent] [nvarchar](150) NULL,
[CountryCode] [nvarchar](150) NULL,
[Independence] [datetime] NULL,
[Government] [nvarchar](150) NULL,
[Capital] [nvarchar](150) NULL,
[Population] [int] NULL,
[Member_G8] [bit] NULL,
CONSTRAINT [PK_worldDS] PRIMARY KEY CLUSTERED
(
[PK] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
I'm using MS-SQL 2005 DB, Smart GWT EE 2.2 (eval 2010-05-18)
when i do edit , it works OK.
when i do insert, it works, the DB is updated, but the grid still marks the row as not saved yet (blue font) and i get the following exception on the log file of the tomcat:
=== 2010-05-19 14:43:37,218 [55-1] INFO SQLDriver - [builtinApplication.worldDS_add] Executing SQL update on 'SQLServer': INSERT INTO worldDS (countryName, area, countryCode, continent, government, capital) VALUES ('Jordan', 4.2, '975', 'Asia', 'Kingdom', 'Amman')
=== 2010-05-19 14:43:37,218 [55-1] DEBUG SQLDataSource - [builtinApplication.worldDS_add] add operation affected 1 rows
=== 2010-05-19 14:43:37,218 [55-1] INFO SQLDriver - [builtinApplication.worldDS_add] Executing SQL query on 'SQLServer': SELECT SCOPE_IDENTITY()
=== 2010-05-19 14:43:37,218 [55-1] WARN RequestContext - dsRequest.execute() failed:
java.lang.NullPointerException
at com.isomorphic.sql.SQLServerDriver.fetchLastPrimaryKeys(SQLServerDriver.java:174)
at com.isomorphic.sql.SQLDataSource.getLastPrimaryKeys(SQLDataSource.java:490)
at com.isomorphic.sql.SQLDataSource.getLastRow(SQLDataSource.java:377)
at com.isomorphic.sql.SQLDataSource.SQLExecute(SQLDataSource.java:1217)
at com.isomorphic.sql.SQLDataSource.execute(SQLDataSource.java:243)
at com.isomorphic.application.AppBase.executeDefaultDSOperation(AppBase.java:721)
at com.isomorphic.application.AppBase.executeAppOperation(AppBase.java:658)
at com.isomorphic.application.AppBase.execute(AppBase.java:491)
at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:1298)
at com.isomorphic.servlet.IDACall.handleDSRequest(IDACall.java:155)
at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:106)
at com.isomorphic.servlet.IDACall.doPost(IDACall.java:54)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:259)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
at java.lang.Thread.run(Thread.java:619)
i have attached the entry point class ( the only class in the project), the server property file, web xml and the DS xml file.
Please help!
Thanks
Ahmad
EDIT::
here is the DB table script :
USE [smartGWT]
GO
/****** Object: Table [dbo].[worldDS] Script Date: 05/19/2010 16:50:15 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[worldDS](
[PK] [int] IDENTITY(1,1) NOT NULL,
[CountryName] [nvarchar](150) NOT NULL,
[Area] [float] NULL,
[GDP] [float] NULL,
[Continent] [nvarchar](150) NULL,
[CountryCode] [nvarchar](150) NULL,
[Independence] [datetime] NULL,
[Government] [nvarchar](150) NULL,
[Capital] [nvarchar](150) NULL,
[Population] [int] NULL,
[Member_G8] [bit] NULL,
CONSTRAINT [PK_worldDS] PRIMARY KEY CLUSTERED
(
[PK] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
Comment