Questions tagged [faults]

It is a condition that causes the software to fail to perform its required function.

17 questions
55
votes
10 answers

"The creator of this fault did not specify a Reason" Exception

I have the following code in WCF service to throw a custom fault based on certain situations. I am getting a "The creator of this fault did not specify a Reason" exception. What am I doing wrong? //source code if(!DidItPass) { …
Michael Kniskern
  • 24,792
  • 68
  • 164
  • 231
10
votes
5 answers

To fault or not to fault

I'm having a discussion with a colleague about when to throw faults and when not to throw faults in a WCF service. One opinion is, that we only throw faults when the service operation could not do its work due to some error; and something may be in…
L-Four
  • 13,345
  • 9
  • 65
  • 109
5
votes
4 answers

How are you generating tests from specifications?

I came across a printed article by Bertrand Meyer where he states that tests can be generated from specifications. My development team does nothing like this, but it sounds like a good technique to consider. How are you generating tests from…
user290
4
votes
3 answers

Silverlight Faults

I;m trying to get WCF Silverlight faults working as per this : MSDN aricle After adding the SL fault to my Web.config file I get the following warning: The element 'behavior' has invalid child element 'silverlightFaults'. List of possible elements…
Bram
  • 127
  • 1
  • 9
3
votes
1 answer

WCF faults with SOAP

I'm confused on how I should return errors to a client using SOAP. I have a wcf service, but I'm not sure what technology the client is using, so I'd like to stick to the SOAP specification. As far as I've read, Fault messages seem to be the best…
stevenrosscampbell
  • 643
  • 1
  • 11
  • 20
2
votes
1 answer

Can't catch Java custom faults on WCF client

The problem is similar to this question: Does WCF FaultException support interop with a Java web service Fault. However, in my case, the custom fault is indeed returned from the service. Tricky to explain this but here it goes: From a new WCF…
1
vote
1 answer

To retrieve the values for only one property of an entity in Core Data of iOS

I have an entity called "Records", and it has an attribute named "amount" of NSDecimalNumber class. And of course "Record" has other attributes such as "name","date", and so on. Now I need to fetch only the amount attribute of all "Records" to sum…
Wang Liang
  • 941
  • 2
  • 15
  • 34
1
vote
2 answers

returnsObjectsAsFaults method of Core Data on iOS

I've read the document several times, but I still don't get what the "Fault" means? Is it an Object or just a value? And as a verb what would "Fault" do? Thanks a lot!
Wang Liang
  • 941
  • 2
  • 15
  • 34
1
vote
1 answer

throwing exceptions->faults from SOAP service Java with GlassFish

Possible Duplicate: JAX-WS - Map Exceptions to faults I do not normally use java, but I being forced to write a service wrapper around a 3rd party library that I need. (So I can call it from c#) I am using NetBeans with GlassFish, and I was…
csauve
  • 5,904
  • 9
  • 40
  • 50
1
vote
1 answer

how to reduce page faults in this program?

I'm gating more then 1000 page faults in this program. can i reduce them to some smaller value or even to zero ? or even any other changes can speed up the execution #include #include int main(int argc, char* argv[]) { …
1
vote
1 answer

Changing page mapping for a user process in the linux kernel

So lets say I have access to a process and its mm_struct, is there a way that I can change one of the mappings or remove a mapping and create a temporary one so that I can allocate an amount smaller than a page and have memory written to that? For…
Jesus Ramos
  • 22,940
  • 10
  • 58
  • 88
1
vote
1 answer

Segmentation fault when using pthreads for dotproduct

Ive been trying to make a dot product program for pthreads and I've been having some difficulties. Im getting a segmentation fault when I try to run the program. I am using c to code it. I had the program working initially with this code: a =…
harman litt
  • 47
  • 2
  • 11
1
vote
2 answers

What literally means coreserviceshell.exe has 481.510 page faults?

This is the service which has the most Page faults on the services list in Win XP Professional. Also it is the most RAM consuming service i have running. Page faults have to do something with paging of memory addresses etc. The real process of…
Dumitru mitru
  • 59
  • 1
  • 4
0
votes
2 answers

Catching a suspended message in BizTalk with System.Exception

In my BizTalk orchestration I'm trying to catch a suspended Message to down web server. I already caught an operation for server faults, my next task is to catch a message in the case when the web server is down. I'm currently using a…
Gakko no Ato
  • 105
  • 15
0
votes
0 answers

iOS core data faults outnumber entities after fetch

I'm building an app that stores locations in core data when the server connection is no longer available, then pushes these locations to the server when a connection is restored. After fetching and printing these fetched objects from core data, I…
user3050491
  • 95
  • 4
  • 12
1
2