Translate

Showing posts with label Error. Show all posts
Showing posts with label Error. Show all posts

Wednesday, February 29, 2012

Java - NoClassDefFoundError

Usually when you get an error telling you that a class cannot be found it really means that the class cannot be found. In my case I received this error because I was trying to run a Tomcat app from within Eclipse and the project I was running is referencing another project:

The error message said:
    java.lang.NoClassDefFoundError: Lcom/dataSpace/dataRecord/TableRecord;

I new that the class, TableRecord, is in the referenced project. To fix the problem I just had to add the refernced project to the DevLoader:

Thursday, February 23, 2012

SharePoint 2010 - Could not allocate space for object

The day was going along great when all of a sudden a lot of users were experiencing problems with our SharePoint site. I checked the SharePoint log file using the ULS viewer and with the correlation id from one of the errors I found this entry:

System.Data.SqlClient.SqlException: Could not allocate space for object 'dbo.AllUserData'.'AllUserData_ParentId' in database 'Insite_Content' because the 'PRIMARY' filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.HasMoreRows() at System.Data.SqlClient.SqlDataReader.ReadInternal(Boolean setTimeout) at System.Data.SqlClient.SqlDataReader.NextResult() at Microsoft.SharePoint.SPSqlClient.ExecuteQueryInternal(Boolean retryfordeadlock) at Microsoft.SharePoint.SPSqlClient.ExecuteQuery(Boolean retryfordeadlock)

Turns out our SQL server is configured to do a daily backup to the same drive as the SQL database files and the drive was full after three months of backups. Isn't that just brilliant! There was no room for the database to grow. I removed some of the old backup files to free up some space and things were back to normal. Just to make sure this problem didn't happen again before we found the time to make this right, I added a cleanup task onto the backup maitenance job so that backup files older then 4 weeks would be deleted.

Monday, January 16, 2012

MS SQL Import Truncation Error

I was having a problem importing an Excel spreadsheet into SQL Server that I just couldn't figure out.



After many attempts I decided to try importing into MS Access. It worked and it showed me where the errors are!



After fixing the errors I imported the Access table into SQL Server.