error

Why can't java find the JUnit framework?

Hey everyone, I am trying to get a test class compiling with JUnit, and I can't figure out why it will not compile. I have the following lines at the top of my class: import java.util.*; import org.junit.*; And the error I am getting is package org.junit does not exist JUnit.jar is currently located in Program Files\JUnit\junit.j...

Can't install Eclipse plugin

I'm trying to install an Eclipse plugin for Mylyn/Fogbugz, and I get the following error when I try either EclipseBugz or Foglyn: Cannot find a solution satisfying the following requirements Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.swt I'm using Eclipse 3.4.1 ...

C++ Tricky Inheritance Class Definition Problem

Hello! I'm getting this error when dealing with a number of classes including each other: error: expected class-name before '{' token I see what is going on, but I do not know how to properly correct it. Here is an abstracted version of the code: A.h #ifndef A_H_ #define A_H_ #include "K.h" class A { public: A(); }; #...

Why am I getting "Undefined index" from my PHP?

When I run this code: <?php if (preg_match('/^[a-z0-9]+$/', $_GET['p'])) { $page = realpath("includes/$_GET[p].php"); if ($page) { include $page; } } ?> I get this error: Notice: Undefined index: p in index.php on line 3 What am I doing wrong? ...

PHP 404 error page won't display content

Hi there, I'm having a problem implementing custom 404 error pages on my Windows/IIS/PHP webhost. Whenever I try to send the 404 status message in the header no content is sent to the client and a blank page is displayed instead. Here is a very simple script I'm using: <?php header('HTTP/1.1 404 Not Found'); header('Status: 404 No...

WSDL validation error when using MTOM

I am experiencing an issue with WSDL schema validation failing when my web service response contains an MTOM attachment. After searching the web I see I'm not the only one with this problem but have not found any solutions. It seems to fail because the web service response contains an xop:Include element similar to the following, which ...

How to check for LINQ to SQL connection error

How to check if Linq.DataContext object is filled with data and no connection error has appeared? Thanks. ...

Cannot insert string into MySQL text column

For some reason, my queries screw up when I write to a column of type "text". Here is an example: Describe messages; Format is: Field Type Null Key Default id int(11) NO PRI NULL auto_increment title varchar(255) YES NULL body text YES NULL to text YES NULL content_type varchar(255) YES NULL is_sms tinyint(1) YES ...

SQL Bulk Insert error 4863

Hey guys, I am trying to import some data to SQL Server 2008 by means of Bulk Insert, but I've been getting a ton of conversion errors: Msg 4864, Level 16, State 1, Line 1 Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 5902, column 2 (Type). OK so first things first: a) the da...

SetValue on PropertyInfo instance error "Object does not match target type" c#

Been using a Copy method with this code in it in various places in previous projects (to deal with objects that have same named properties but do not derive from a common base class or implement a common interface). New place of work, new codebase - now it's failing at the SetValue with "Object does not match target type" even on very s...

error C2664: in c++?

for (int v = 0; v <= WordChosen.length();v++) { if(Letter == WordChosen[v]) { WordChosenDuplicate.replace(v,1,Letter); } } I get this error "Error 4 error C2664: 'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::replace(__w64 unsigned int,__w64 unsigned int,const std::basic...

SQL Server 2008 Filestream Error

On my local Windows XP machine, I'm not able any more to create databases with FILESTREAM. This error is caused by one of these security updates from MS: KB952004 KB923561 KB961373 KB956572 KB959426 KB960863 Does anybody know how to resolve the problem WITHOUT removing the security updates? ...

iPhone SDK - String Comparison

I have a line of code that is cause a "EXC_BAD_ACCESS" error. The line of code is as follows (formatted into one line and nested code removed for ease of reading). if (![sendData isEqualToString:@"-"]){ ... } The actual error occurs on the IF line. the odd thing is that if I put a breakpoint on that line, the NSString called sendData ...

Why does my GridView give me an `allowDefinition='MachineToApplication'` error?

What does this error mean in the context of a GridView? It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. ...

Can anyone explain this MySQL error?

ERROR 1025 (HY000): Error on rename of '.\forumf\#sql-1718_20' to '.\forumf\posts' (errno: 150) Is the error number 1025 or 150? I was deleting a primary key (which I had set by mistake) which was also a foreign key at the time. What is HY000? I got this quite cryptic error message while editing keys on a MySQL table. Can someone ex...

ELMAH SQL Error Handler database not available- what happens to logging?

I'm testing ELMAH and have deliberately turned off the database connection for the ELMAH log in my application to see what will happen in production if the DB isn't available. It seems that ELMAH can't trap its own errors- the AXD file isn't available when the SQL databse log fails. What is the intended behavior of ELMAH if the databas...

Postgresql-specific database error: "ActiveRecord::StatementInvalid: PGError: ERROR: operator does not exist"

My state model looks like this: class State < ActiveRecord::Base belongs_to :country named_scope :order_by_name, :order => :name validates_presence_of [:country, :name] def <=>(other) name <=> other.name end end My country model looks like this: class Country < ActiveRecord::Base has_many :states named_scope :ord...

Exception Driven Programming for PHP?

I saw Jeff Atwood's post on his blog about Exception Driven Programming and I was curious if there is anything like ELMAH for PHP? G-Man ...

[Java] Boxlayout can't be shared error

I have this Java JFrame class, in which I want to use a boxlayout, but I get an error saying "java.awt.AWTError: BoxLayout can't be shared". I've seen others with this problem, but they solved it by creating the boxlayout on the contentpane, but that is what I'm doing here. Here's my code: class edit_dialog extends javax.swing.JFrame{ ...

"Rendered with sIFR 3, revision 436" appearing inline

I'm in the process of upgrading a client site to rev. 436 from an older version of sIFR 3, and can't for the life of me get the export to work correctly. I'm getting the following message when I view the .swf in the page or locally (via file://): Rendered with sIFR 3, revision 436 However, if I view the file directly (e.g., http://...