I am trying to load a file into an application but while loading it throws an error
2022/11/03 19:35:49 - ExtractRowDataTimeStamp.0 - ERROR (version 8.2.0.0-342, build 8.2.0.0-342 from 2018-11-14 10.30.55 by buildguy) : Unexpected error
2022/11/03 19:35:49 - ExtractRowDataTimeStamp.0 - ERROR (version 8.2.0.0-342, build 8.2.0.0-342 from 2018-11-14 10.30.55 by buildguy) : java.lang.NullPointerException
2022/11/03 19:35:49 - ExtractRowDataTimeStamp.0 - at org.pentaho.di.core.row.value.timestamp.SimpleTimestampFormat.parse(SimpleTimestampFormat.java:347)
2022/11/03 19:35:49 - ExtractRowDataTimeStamp.0 - at java.text.DateFormat.parse(DateFormat.java:364)
2022/11/03 19:35:49 - ExtractRowDataTimeStamp.0 - at org.pentaho.di.core.row.value.timestamp.SimpleTimestampFormat.parse(SimpleTimestampFormat.java:449)
2022/11/03 19:35:49 - ExtractRowDataTimeStamp.0 - at org.pentaho.di.core.row.value.ValueMetaTimestamp.convertStringToTimestamp(ValueMetaTimestamp.java:256)
2022/11/03 19:35:49 - ExtractRowDataTimeStamp.0 - at org.pentaho.di.core.row.value.ValueMetaTimestamp.convertData(ValueMetaTimestamp.java:418)
2022/11/03 19:35:49 - ExtractRowDataTimeStamp.0 - at org.pentaho.di.trans.steps.selectvalues.SelectValues.metadataValues(SelectValues.java:328)
2022/11/03 19:35:49 - ExtractRowDataTimeStamp.0 - at org.pentaho.di.trans.steps.selectvalues.SelectValues.processRow(SelectValues.java:381)
2022/11/03 19:35:49 - ExtractRowDataTimeStamp.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
2022/11/03 19:35:49 - ExtractRowDataTimeStamp.0 - at java.lang.Thread.run(Thread.java:748)
2022/11/03 19:35:49 - DataValidatorSequential.0 - Finished processing (I=0, O=0, R=9, W=9, U=0, E=0)
2022/11/03 19:35:49 - AVIVAPolicyHome - ERROR (version 8.2.0.0-342, build 8.2.0.0-342 from 2018-11-14 10.30.55 by buildguy) : Errors detected!
2022/11/03 19:35:49 - updateRiesgoHogar.0 - Finished reading query, closing connection.
2022/11/03 19:35:49 - DataValidatorRow11.0 - Finished processing (I=0, O=0, R=51, W=0, U=0, E=0)
2022/11/03 19:35:49 - deleteCustomerRemovedFromPersona.0 - Finished reading query, closing connection.
What could be the possible resolution?
Related
I am completely new to the Objective-C language. All I need to implement is the Push Notifications bit on my app for now. I have written the Client side on XCode 6 and the server side in Java using the javapns library. Now, while the server manages to send the notification (I get the confirmation message), I receive nothing on my device, be it the app is active or running in background.
Can somebody please direct me in the right direction? Thank you!
#import "AppDelegate.h"
#interface AppDelegate ()
#end
#implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeAlert |UIUserNotificationTypeBadge | UIUserNotificationTypeSound categories:nil];
[[UIApplication sharedApplication] registerUserNotificationSettings:settings];
[[UIApplication sharedApplication] registerForRemoteNotifications];
return YES;
}
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)newDeviceToken{
//Store the Device Token
NSLog(#"%#", newDeviceToken);
}
- (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error{
NSLog(#"Failed to register with error: %#", error);
}
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
NSLog(#"Push received: %#", userInfo);
}
Server side:
public class PushServer {
public static void main(String[] args) {
try {
BasicConfigurator.configure();
Push.alert("Message!", "***.p12", "***", false,
"92ab*************91af4");
} catch (CommunicationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (KeystoreException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
This is the output I receive when I try to send the notification:
0 [main] DEBUG javapns.notification.Payload - Adding alert [Message!]
210 [main] DEBUG javapns.communication.ConnectionToAppleServer - Creating SSLSocketFactory
229 [main] DEBUG javapns.communication.ConnectionToAppleServer - Creating SSLSocket to gateway.sandbox.push.apple.com:2195
1077 [main] DEBUG javapns.notification.PushNotificationManager - Initialized Connection to Host: [gateway.sandbox.push.apple.com] Port: [2195]: 735b478[SSL_NULL_WITH_NULL_NULL: Socket[addr=gateway.sandbox.push.apple.com/17.172.232.46,port=2195,localport=53762]]
1079 [main] DEBUG javapns.notification.PushNotificationManager - Building Raw message from deviceToken and payload
1080 [main] DEBUG javapns.notification.PushNotificationManager - Built raw message ID 1 of total length 73
1080 [main] DEBUG javapns.notification.PushNotificationManager - Attempting to send notification: {"aps":{"alert":"Message!"}}
1080 [main] DEBUG javapns.notification.PushNotificationManager - to device: 92a**********1af4
2327 [main] DEBUG javapns.notification.PushNotificationManager - Flushing
2327 [main] DEBUG javapns.notification.PushNotificationManager - At this point, the entire 73-bytes message has been streamed out successfully through the SSL connection
2327 [main] DEBUG javapns.notification.PushNotificationManager - Notification sent on first attempt
2327 [main] DEBUG javapns.notification.PushNotificationManager - Reading responses
2749 [main] DEBUG javapns.notification.PushNotificationManager - Found 0 notifications that must be re-sent
2749 [main] DEBUG javapns.notification.PushNotificationManager - No notifications remaining to be resent
2749 [main] DEBUG javapns.notification.PushNotificationManager - Closing connection
Any help is appreciated.
By chance would you happen to be building with Xcode 7 and targeting iOS 9?
If so, you are likely running into the new security default setting which requires accessing URLs securely, as described here:
Disabling ATS for an in-app browser in iOS 9?
Also, you seem to be mixing old methods with new.
registerUserNotificationSettings is an iOS 8 method that replaced registerForRemoteNotificationTypes.
So, only using the former, it looks like you're only targeting iOS 8 and later.
But then you use didReceiveRemoteNotification:, which is the old version of the method, corresponding to registerForRemoteNotificationTypes. But since you're going with the newer versions, you should be using
didReceiveRemoteNotification:fetchCompletionHandler.
You need to convert NSData to string and get actual device token by implementing following changes in your method.
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
{
NSString *myToken = [[[[deviceToken description] stringByReplacingOccurrencesOfString: #"<" withString: #""]
stringByReplacingOccurrencesOfString: #">" withString: #""]
stringByReplacingOccurrencesOfString: #" " withString: #""];
// *** Now user `myToken` to send notification ***
NSLog(#"%#",myToken);
}
Along with it you need to make sure you are running your application with same provisional profile (Developer/Distribution) which is used to send push notification on your server side. both should be same. I hope its clear to you.
I am doing something like this:
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
// Insert code here to initialize your application
NSApplication *application = [aNotification object];
NSRemoteNotificationType myTypes = NSRemoteNotificationTypeBadge;
[application registerForRemoteNotificationTypes:myTypes];
}
//Successful
-(void)application:(NSApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken{
NSLog(#"device token: %#", deviceToken);
}
//Failure to register
-(void)application:(NSApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error{
NSLog(#"ERROR: %#\nError object: %#", [error localizedDescription], error);
}
And I am getting the following error:
2014-06-14 20:47:13.656 RajamManagerStation[1878:303] ERROR: The operation couldn’t be completed. (OSStatus error 1.)
Error object: Error Domain=NSOSStatusErrorDomain Code=1 "The operation couldn’t be completed. (OSStatus error 1.)" (kCFHostErrorHostNotFound / kCFStreamErrorSOCKSSubDomainVersionCode / kCFStreamErrorSOCKS5BadResponseAddr / kCFStreamErrorDomainPOSIX / evtNotEnb / siInitSDTblErr / kUSBPending / dsBusError / kStatusIsError / kOTSerialSwOverRunErr / cdevResErr / EPERM: / Error code is the version of SOCKS which the server wishes to use / / POSIX errno; interpret using <sys/errno.h> / event not enabled at PostEvent / slot int dispatch table could not be initialized. / / bus error / / / Couldn't get a needed resource; alert / Operation not permitted)
I dont understand what I can do to fix it.
I was watching the WWDC apple video in 2011 relating to push notifications, and there was a slide in there that showed:
It tells me that if the error delegate callback is called that I should check my privisioning profile for entitlements.
I have done everything I possiby could to get things working but I am receiving this error still. What can I do to fix it?
UPDATE 1 - Just to affirm that I have enabled push notification services in the enabled services list.
UPDATE 2 - Affirming that push notifications is there on the provisioning profile
Switch on the Push Notifications capability for your target. In XCode, go to Target -> Capabilities, and ensure "Push Notifications" is set to ON:
(Thanks to #mateusmaso's comment for this solution!)
I have a question about dispatch_barrier and the target queue.
I have a custom serial queue and custom concurrent queue and I set the target queue of the serial queue to a concurrent queue which then targets a global concurrent queue:
(serial queue) -> (concurrent queue) -> (global concurrent queue)
What happens when I dispatch_barrier blocks on the serial queue? Will It block the execution of the blocks submitted to the concurrent queue too, or just the execution blocks in the serial queue only? Or if I dispatch_barrier blocks to the non-global concurrent queue, will It block the execution of blocks submitted to the serial queue too, or just the execution of blocks in the non-global concurrent queue only?
Thank you for your interest. :)
Submitting a dispatch_barrier_async to a serial queue is no different than dispatch_async because the queue is serial, so there couldn't be any readers to keep out, since only one block can execute on a serial queue at a time. Put differently, every block is a "barrier block" on a serial queue.
If you dispatch_barrier_async to the non-global concurrent queue, then readers will be kept out of THAT queue, but not the global queue it targets. It acts as a barrier only to the queue it is submitted to.
If you want to further convince yourself, think of it this way: All queues ultimately target one of the global concurrent queues (background, low, default, and high priority). With that in mind, if dispatch_barrier* to any queue transitively caused a barrier on the global queue that the submitted-to queue ultimately targeted, then it would be trivial to use dispatch_barrier* to starve out all other clients of GCD (by submitting a barrier block to 4 private concurrent queues, each of which targeted a different priority global queue.) That would be totally bogus.
Coming at it from the other direction: dispatch_barrier* is useful specifically because you can create arbitrary units of mutual exclusion (i.e. non-global concurrent queues).
In short: the queue you submit to is the unit of "protection" (or "barrier-ness").
EDIT: If you're willing to take the above at face value, you can stop reading, but in an effort to give some more clarity here, I coded up a quick example to prove my claims. As some background, this is from Apple's documentation:
If the queue you pass to this function [disaptch_barrier_async] is a
serial queue or one of the global concurrent queues, this function
behaves like the dispatch_async function.
This means that a disaptch_barrier_async submitted to a serial queue will have no external effect, nor will a disaptch_barrier_async submitted to a global queue. Rather than merely appeal to authority, I'll prove these two claims.
Barrier block submitted to private serial queue
Here's the code:
static void FakeWork(NSString* name, NSTimeInterval duration, dispatch_group_t groupToExit);
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
dispatch_queue_t privateSerialQueue = dispatch_queue_create("", DISPATCH_QUEUE_SERIAL);
dispatch_queue_t privateConcurQueue = dispatch_queue_create("", DISPATCH_QUEUE_CONCURRENT);
dispatch_queue_t globalConcurQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
dispatch_set_target_queue(privateSerialQueue, privateConcurQueue);
dispatch_set_target_queue(privateConcurQueue, globalConcurQueue);
// Barrier block submitted to serial queue. Per the docs, we expect this to have no effect
// and behave like dispatch_async. So, we expect this to run to completion in 15s.
{
NSString* testDesc = #"Checking for effects of barrier block on serial queue";
dispatch_suspend(globalConcurQueue);
dispatch_group_t group = dispatch_group_create();
NSDate* start = [NSDate date];
NSLog(#"%#\nStarting test run at: %#", testDesc, start);
// We expect these to take 15s total
dispatch_group_enter(group); dispatch_group_enter(group); dispatch_group_enter(group);
dispatch_async(privateSerialQueue, ^{ FakeWork(#"A1: 5s Job on privateSerialQueue", 5.0, group); });
dispatch_barrier_async(privateSerialQueue, ^{ FakeWork(#"A2: 5s BARRIER Job on privateSerialQueue", 5.0, group); });
dispatch_async(privateSerialQueue, ^{ FakeWork(#"A3: 5s Job on privateSerialQueue", 5.0, group); });
// So we'll make 3 15s jobs each for the privateConcurrentQueue and globalConcurrentQueue
dispatch_group_enter(group); dispatch_group_enter(group); dispatch_group_enter(group);
dispatch_async(privateConcurQueue, ^{ FakeWork(#"B1: 15s Job on privateConcurQueue", 15.0, group); });
dispatch_async(privateConcurQueue, ^{ FakeWork(#"B2: 15s Job on privateConcurQueue", 15.0, group); });
dispatch_async(privateConcurQueue, ^{ FakeWork(#"B3: 15s Job on privateConcurQueue", 15.0, group); });
dispatch_group_enter(group); dispatch_group_enter(group); dispatch_group_enter(group);
dispatch_async(globalConcurQueue, ^{ FakeWork(#"C1: 15s Job on globalConcurQueue", 15.0, group); });
dispatch_async(globalConcurQueue, ^{ FakeWork(#"C2: 15s Job on globalConcurQueue", 15.0, group); });
dispatch_async(globalConcurQueue, ^{ FakeWork(#"C3: 15s Job on globalConcurQueue", 15.0, group); });
dispatch_group_wait(group, DISPATCH_TIME_FOREVER);
NSDate* end = [NSDate date];
NSLog(#"Test run finished at: %# duration: %#", end, #([end timeIntervalSinceDate: start]));
}
}
static void FakeWork(NSString* name, NSTimeInterval duration, dispatch_group_t groupToExit)
{
NSDate* start = [NSDate date];
NSLog(#"Starting task: %# withDuration: %# at: %#", name, #(duration), start);
while (1) #autoreleasepool
{
NSTimeInterval t = [[NSDate date] timeIntervalSinceDate: start];
if (t >= duration)
{
break;
}
else if ((t + 0.0005) < duration)
{
usleep(50);
}
}
NSDate* end = [NSDate date];
duration = [end timeIntervalSinceDate: start];
NSLog(#"Finished task: %# withRealDuration: %# at: %#", name, #(duration), end);
if (groupToExit)
{
dispatch_group_leave(groupToExit);
}
}
If a dispatch_barrier_async had any effect at all on the targeted queue, we would expect this to take more than 15 seconds, but here's the output:
Checking for effects of barrier block on serial queue
Starting test run at: 2013-09-19 12:16:25 +0000
Starting task: C1: 15s Job on globalConcurQueue withDuration: 15 at: 2013-09-19 12:16:25 +0000
Starting task: C2: 15s Job on globalConcurQueue withDuration: 15 at: 2013-09-19 12:16:25 +0000
Starting task: C3: 15s Job on globalConcurQueue withDuration: 15 at: 2013-09-19 12:16:25 +0000
Starting task: A1: 5s Job on privateSerialQueue withDuration: 5 at: 2013-09-19 12:16:25 +0000
Starting task: B1: 15s Job on privateConcurQueue withDuration: 15 at: 2013-09-19 12:16:25 +0000
Starting task: B2: 15s Job on privateConcurQueue withDuration: 15 at: 2013-09-19 12:16:25 +0000
Starting task: B3: 15s Job on privateConcurQueue withDuration: 15 at: 2013-09-19 12:16:25 +0000
Finished task: A1: 5s Job on privateSerialQueue withRealDuration: 5 at: 2013-09-19 12:16:30 +0000
Starting task: A2: 5s BARRIER Job on privateSerialQueue withDuration: 5 at: 2013-09-19 12:16:30 +0000
Finished task: A2: 5s BARRIER Job on privateSerialQueue withRealDuration: 5 at: 2013-09-19 12:16:35 +0000
Starting task: A3: 5s Job on privateSerialQueue withDuration: 5 at: 2013-09-19 12:16:35 +0000
Finished task: C1: 15s Job on globalConcurQueue withRealDuration: 15.00000900030136 at: 2013-09-19 12:16:40 +0000
Finished task: C2: 15s Job on globalConcurQueue withRealDuration: 15 at: 2013-09-19 12:16:40 +0000
Finished task: C3: 15s Job on globalConcurQueue withRealDuration: 15 at: 2013-09-19 12:16:40 +0000
Finished task: B1: 15s Job on privateConcurQueue withRealDuration: 15 at: 2013-09-19 12:16:40 +0000
Finished task: B2: 15s Job on privateConcurQueue withRealDuration: 15 at: 2013-09-19 12:16:40 +0000
Finished task: A3: 5s Job on privateSerialQueue withRealDuration: 5 at: 2013-09-19 12:16:40 +0000
Finished task: B3: 15s Job on privateConcurQueue withRealDuration: 15 at: 2013-09-19 12:16:40 +0000
Test run finished at: 2013-09-19 12:16:40 +0000 duration: 15.00732499361038
Barrier block submitted to global concurrent queue
Let's also verify the point from the documentation that barrier blocks submitted to the global concurrent queue have no barrier effect. Here's some code (just the differences from the first example):
{
NSString* testDesc = #"Barrier block submitted to globalConcurQueue";
dispatch_group_t group = dispatch_group_create();
NSDate* start = [NSDate date];
NSLog(#"%#\nStarting test run at: %#", testDesc, start);
dispatch_group_enter(group); dispatch_group_enter(group); dispatch_group_enter(group);
dispatch_async(privateSerialQueue, ^{ FakeWork(#"A1: 5s Job on privateSerialQueue", 5.0, group); });
dispatch_async(privateSerialQueue, ^{ FakeWork(#"A2: 5s Job on privateSerialQueue", 5.0, group); });
dispatch_async(privateSerialQueue, ^{ FakeWork(#"A3: 5s Job on privateSerialQueue", 5.0, group); });
dispatch_group_enter(group); dispatch_group_enter(group); dispatch_group_enter(group);
dispatch_async(privateConcurQueue, ^{ FakeWork(#"B1: 15s Job on privateConcurQueue", 15.0, group); });
dispatch_async(privateConcurQueue, ^{ FakeWork(#"B2: 15s Job on privateConcurQueue", 15.0, group); });
dispatch_async(privateConcurQueue, ^{ FakeWork(#"B3: 15s Job on privateConcurQueue", 15.0, group); });
dispatch_group_enter(group); dispatch_group_enter(group); dispatch_group_enter(group);
dispatch_async(globalConcurQueue, ^{ FakeWork(#"C1: 15s Job on globalConcurQueue", 15.0, group); });
dispatch_barrier_async(globalConcurQueue, ^{ FakeWork(#"C2: 15s BARRIER Job on globalConcurQueue", 15.0, group); });
dispatch_async(globalConcurQueue, ^{ FakeWork(#"C3: 15s Job on globalConcurQueue", 15.0, group); });
dispatch_group_wait(group, DISPATCH_TIME_FOREVER);
NSDate* end = [NSDate date];
NSLog(#"Test run finished at: %# duration: %#", end, #([end timeIntervalSinceDate: start]));
}
If the barrier block submitted to the global concurrent queue had any effect, we would expect this to take longer than 15s, but here's the output:
Barrier block submitted to globalConcurQueue
Starting test run at: 2013-09-19 12:33:28 +0000
Starting task: C1: 15s Job on globalConcurQueue withDuration: 15 at: 2013-09-19 12:33:28 +0000
Starting task: C2: 15s BARRIER Job on globalConcurQueue withDuration: 15 at: 2013-09-19 12:33:28 +0000
Starting task: C3: 15s Job on globalConcurQueue withDuration: 15 at: 2013-09-19 12:33:28 +0000
Starting task: B1: 15s Job on privateConcurQueue withDuration: 15 at: 2013-09-19 12:33:28 +0000
Starting task: A1: 5s Job on privateSerialQueue withDuration: 5 at: 2013-09-19 12:33:28 +0000
Starting task: B2: 15s Job on privateConcurQueue withDuration: 15 at: 2013-09-19 12:33:28 +0000
Starting task: B3: 15s Job on privateConcurQueue withDuration: 15 at: 2013-09-19 12:33:28 +0000
Finished task: A1: 5s Job on privateSerialQueue withRealDuration: 5 at: 2013-09-19 12:33:33 +0000
Starting task: A2: 5s Job on privateSerialQueue withDuration: 5 at: 2013-09-19 12:33:33 +0000
Finished task: A2: 5s Job on privateSerialQueue withRealDuration: 5 at: 2013-09-19 12:33:38 +0000
Starting task: A3: 5s Job on privateSerialQueue withDuration: 5 at: 2013-09-19 12:33:38 +0000
Finished task: C1: 15s Job on globalConcurQueue withRealDuration: 15 at: 2013-09-19 12:33:43 +0000
Finished task: C2: 15s BARRIER Job on globalConcurQueue withRealDuration: 15 at: 2013-09-19 12:33:43 +0000
Finished task: C3: 15s Job on globalConcurQueue withRealDuration: 15 at: 2013-09-19 12:33:43 +0000
Finished task: B2: 15s Job on privateConcurQueue withRealDuration: 15 at: 2013-09-19 12:33:43 +0000
Finished task: B3: 15s Job on privateConcurQueue withRealDuration: 15 at: 2013-09-19 12:33:43 +0000
Finished task: B1: 15s Job on privateConcurQueue withRealDuration: 15 at: 2013-09-19 12:33:43 +0000
Finished task: A3: 5s Job on privateSerialQueue withRealDuration: 5 at: 2013-09-19 12:33:43 +0000
Test run finished at: 2013-09-19 12:33:43 +0000 duration: 15.00729995965958
Barrier block submitted to private concurrent queue
The next thing to test is the effects of barrier blocks submitted to the private concurrent queue. Since the serial queue targets the private concurrent queue, I expect blocks submitted to the serial queue to be held up for barrier blocks submitted to the private concurrent queue. And indeed, that's the case. Here's the code:
// Barrier block submitted to private concurrent queue.
{
NSString* testDesc = #"Checking for effects of barrier block on private concurrent queue";
dispatch_suspend(globalConcurQueue);
dispatch_group_t group = dispatch_group_create();
NSDate* start = [NSDate date];
NSLog(#"%#\nStarting test run at: %#", testDesc, start);
// Make 3 5s jobs on the private concurrent queue and make the middle one a barrier, which should serialize them
dispatch_group_enter(group); dispatch_group_enter(group); dispatch_group_enter(group);
dispatch_group_enter(group); dispatch_group_enter(group); dispatch_group_enter(group);
dispatch_async(privateSerialQueue, ^{ FakeWork(#"A1: 5s Job on privateSerialQueue", 5.0, group); });
dispatch_async(privateConcurQueue, ^{ FakeWork(#"B1: 5s Job on privateConcurQueue", 5.0, group); });
dispatch_async(privateSerialQueue, ^{ FakeWork(#"A2: 5s Job on privateSerialQueue", 5.0, group); });
dispatch_barrier_async(privateConcurQueue, ^{ FakeWork(#"B2: 5s BARRIER Job on privateConcurQueue", 5.0, group); });
dispatch_async(privateSerialQueue, ^{ FakeWork(#"A3: 5s Job on privateSerialQueue", 5.0, group); });
dispatch_async(privateConcurQueue, ^{ FakeWork(#"B3: 5s Job on privateConcurQueue", 5.0, group); });
dispatch_group_wait(group, DISPATCH_TIME_FOREVER);
NSDate* end = [NSDate date];
NSLog(#"Test run finished at: %# duration: %#", end, #([end timeIntervalSinceDate: start]));
}
And here's the output:
Checking for effects of barrier block on private concurrent queue
Starting test run at: 2013-09-19 12:24:17 +0000
Starting task: B1: 5s Job on privateConcurQueue withDuration: 5 at: 2013-09-19 12:24:17 +0000
Starting task: A1: 5s Job on privateSerialQueue withDuration: 5 at: 2013-09-19 12:24:17 +0000
Finished task: A1: 5s Job on privateSerialQueue withRealDuration: 5 at: 2013-09-19 12:24:22 +0000
Finished task: B1: 5s Job on privateConcurQueue withRealDuration: 5 at: 2013-09-19 12:24:22 +0000
Starting task: A2: 5s Job on privateSerialQueue withDuration: 5 at: 2013-09-19 12:24:22 +0000
Finished task: A2: 5s Job on privateSerialQueue withRealDuration: 5 at: 2013-09-19 12:24:27 +0000
Starting task: A3: 5s Job on privateSerialQueue withDuration: 5 at: 2013-09-19 12:24:27 +0000
Finished task: A3: 5s Job on privateSerialQueue withRealDuration: 5 at: 2013-09-19 12:24:32 +0000
Starting task: B2: 5s BARRIER Job on privateConcurQueue withDuration: 5 at: 2013-09-19 12:24:32 +0000
Finished task: B2: 5s BARRIER Job on privateConcurQueue withRealDuration: 5 at: 2013-09-19 12:24:37 +0000
Starting task: B3: 5s Job on privateConcurQueue withDuration: 5 at: 2013-09-19 12:24:37 +0000
Finished task: B3: 5s Job on privateConcurQueue withRealDuration: 5 at: 2013-09-19 12:24:42 +0000
Test run finished at: 2013-09-19 12:24:42 +0000 duration: 25.00404000282288
Not surprisingly, when the barrier block is executing, it is the only block submitted to either queue that is executing. That's because the "unit of protection" is the private concurrent queue of which the private serial queue is a "sub-unit" of. The curious thing that we see here is that task A3, which was submitted to the private serial queue AFTER task B2 was submitted to the private concurrent queue, executes before B2. I'm not sure why that is, but the fundamental unit of protection (i.e. the private concurrent queue) was not violated. Based on that, I conclude that you can't count on the ordering of tasks submitted to two different queues, even if you happen to know that one queue targets the other.
So there you have it. We've proved that dispatch_barrier_async is the same as dispatch_sync on serial and global concurrent queues, just like the documentation said it would be, which left only one operation left to test (a dispatch_barrier_async to the private concurrent queue), and we've illustrated that the unit of protection is preserved in that case including operations submitted to other private queues that target it.
If there's some case you're still not clear on, please comment.
Connect opefire server ok , and then to authentication:
- (void)xmppStreamDidConnect:(XMPPStream *)sender{
NSLog(#"connected --->YES");
isOpen = YES;
NSError *error = nil;
[xmppStream authenticateWithPassword:#"password" error:&error];
}
Openfire logs show:
2012.08.01 19:13:35 org.apache.mina.filter.executor.ExecutorFilter - Exiting since queue is empty for /121.0.29.220:60789
2012.08.01 19:13:35 org.apache.mina.filter.executor.ExecutorFilter - Launching thread for /121.0.29.220:60789
2012.08.01 19:13:35 org.apache.mina.filter.executor.ExecutorFilter - Exiting since queue is empty for /121.0.29.220:60789
2012.08.01 19:13:35 org.apache.mina.filter.executor.ExecutorFilter - Launching thread for /121.0.29.220:60789
2012.08.01 19:13:35 org.apache.mina.filter.executor.ExecutorFilter - Exiting since queue is empty for /121.0.29.220:60789
2012.08.01 19:13:35 org.apache.mina.filter.executor.ExecutorFilter - Launching thread for /121.0.29.220:60789
2012.08.01 19:13:35 org.jivesoftware.util.log.util.CommonsLogFactory - 000065 (01/05/00) - Connection #5 tested: OK
2012.08.01 19:13:35 org.jivesoftware.util.log.util.CommonsLogFactory - 000066 (01/05/00) - Connection #5 tested: OK
2012.08.01 19:13:35 org.jivesoftware.openfire.auth.AuthorizationManager - AuthorizationManager: Trying Default Mapping.map(shitiven)
2012.08.01 19:13:35 org.jivesoftware.openfire.auth.DefaultAuthorizationMapping - DefaultAuthorizationMapping: No realm found
2012.08.01 19:13:35 org.jivesoftware.openfire.auth.AuthorizationManager - AuthorizationManager: Trying Default Policy.authorize(shitiven , shitiven)
2012.08.01 19:13:35 org.jivesoftware.openfire.auth.DefaultAuthorizationPolicy - DefaultAuthorizationPolicy: Checking authenID realm
2012.08.01 19:13:35 org.jivesoftware.util.log.util.CommonsLogFactory - 000066 (01/05/00) - Connection #2 tested: OK
2012.08.01 19:13:35 org.jivesoftware.util.log.util.CommonsLogFactory - 000067 (01/05/00) - Connection #2 tested: OK
2012.08.01 19:13:35 org.jivesoftware.util.log.util.CommonsLogFactory - 000067 (01/05/00) - Connection #1 tested: OK
2012.08.01 19:13:35 org.jivesoftware.util.log.util.CommonsLogFactory - 000068 (01/05/00) - Connection #1 tested: OK
2012.08.01 19:13:35 org.apache.mina.filter.executor.ExecutorFilter - Exiting since queue is empty for /121.0.29.220:60789
2012.08.01 19:13:35 org.apache.mina.filter.executor.ExecutorFilter - Launching thread for /121.0.29.220:60789
2012.08.01 19:13:35 org.apache.mina.filter.executor.ExecutorFilter - Exiting since queue is empty for /121.0.29.220:60789
2012.08.01 19:13:35 org.apache.mina.filter.executor.ExecutorFilter - Launching thread for /121.0.29.220:60789
2012.08.01 19:13:35 org.apache.mina.filter.executor.ExecutorFilter - Exiting since queue is empty for /121.0.29.220:60789
But the delegate method "xmppStreamDidAuthenticate" not call:
- (void)xmppStreamDidAuthenticate:(XMPPStream *)sender{
NSLog(#"login success!!");
[self goOnline];
}
When I type wrong userid or password , the delegate method "didNotAuthenticate" call:
- (void)xmppStream:(XMPPStream *)sender didNotAuthenticate:(NSXMLElement *)error{
NSLog(#"authenticate fail %#",error); //console to the debug pannel
}
Can anyone help me?
I suspect that you're being haunted by the issue described here: https://github.com/robbiehanson/XMPPFramework/issues/81
You will have to update xmppframework to fix this.
Please help.
I met a problem when I built a server side rampart service. Im using Axis2 server to receive a Rampart client request.
I got a bad response in my Eclipse axis client. The server side is also in local.
Please see the full stack trace(log4j) below. I can only see an ClassNotFound exception for JuiCEProviderOpenSSL, but someone else said I can ignore it.
And I suspect the bold part causes this issue because after that a builder started to create fault message.
So, it makes me crazy. I can find out nothing about this issue.
Please help me. Thanks. Also, forgive my format, it's the first time to ask here.T-T
axis2.log - log4j
2012-05-22 18:00:52,585 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.impl.MTOMXMLStreamWriter - Calling MTOMXMLStreamWriter.flush
2012-05-22 18:00:52,585 [HttpConnection-8080-1] DEBUG org.apache.rampart.MESSAGE - *********************** RampartReceiver received
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="1"><wsse:BinarySecurityToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="CertId-984C299ACFD3E6AABA13376808432101">MIIDSzCCAjOgAwIBAgIEeiVTTzANBgkqhkiG9w0BAQUFADBWMQswCQYDVQQGEwJDTjELMAkGA1UECBMCTE4xCzAJBgNVBAcTAkRMMQ0wCwYDVQQKEwRDaXRpMQ8wDQYDVQQLEwZKUFRlY2gxDTALBgNVBAMTBFN0YXIwHhcNMTIwNTE3MDQzNjQxWhcNMTIwODE1MDQzNjQxWjBWMQswCQYDVQQGEwJDTjELMAkGA1UECBMCTE4xCzAJBgNVBAcTAkRMMQ0wCwYDVQQKEwRDaXRpMQ8wDQYDVQQLEwZKUFRlY2gxDTALBgNVBAMTBFN0YXIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCbDDrpjwITkzxFzNkGV7W5SHTMuNdw+miscGymTDAjJvQZU/FXScu5TtnqQzgef+FDE+Nuu4olMUAB1dYx3r8vucnNRo3i36N/mxA4lD3Y0A0JM1r0lCzxaYQPAaIw7FxQ2Tu7Vmso9b9Vpp4DrDL7U6Si7JlRB7RmzuEViWnvVfgK0cRN3KpjfaJc3Zpdj549dGLpVA/g2feXhEvpTxoCHfRuqUHGjbdHN0dRlmDk8KMi8MBuH+kivcKoWZAsQL8VCJwBgOg232v4ZcodOLyHUfA0eeKK/dht1NhOavlE8Mn/Lq4e8+B7RE8n4bq7wtYshXO02Vc2rSodqWHecm4TAgMBAAGjITAfMB0GA1UdDgQWBBS614JqGc6WsHsY8ZbC9p8R/38sHjANBgkqhkiG9w0BAQUFAAOCAQEALFwI0+ARt4BoCZDEjjBZjvMerCLOXirx3p5e1CYv5R8UTU+l7kTssQpQpDQuxVsyHuClnORyBadhuBKO78Ztq5MyPTBSf4tCxvtRd6ghM8B1FB7aopkHoP6CI016IMrVEfka+OVELrphOxyAeQU0/IOsT6zOWOzN2uUTvzqTYOtP+hI1DL9pYVIr+2R+4Qr5NuVv0Wi+nhFJTohpWRKZy7u27j07SHJ4rOfsaquNz1PohgbMDWULPLoivdUYEFgvDzolk/veqJ0ypqt3iIdQRSPfaIL6/eSZINmrjHvFo4EBi8s7zi12J3iFFpahVOoTZrb2RzC1UtWtfgkLfQWDsQ==</wsse:BinarySecurityToken><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="Signature-1">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
<ds:Reference URI="#Id-6349096">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>7Fk2H6qKHzE7LpXN0BbMnULTuZk=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>
c4XDzwPEh58ungiFCp7QaF+LvTjRqW3gE5iiLwWWJiq+AUVyN6l4zN2zRmpWhnAoNr9ecP48ZjkS
pk7LY8DsjEXLQ6j4mroM+fm9vuEoeXlVUmSLezC0cByVBGYDHNxLFC5hpVGYAhfC4gOqZBhmtT3U
ZNGn/5ZjR1aQowUrveCaBQ8Zoz8YjUnMsmdgDK9VD3G2gPwJ3Hujb4TicVP8jN9/FNn7jPPKFRDr
cqjvyApVEj1xn/VcpYlnpJxWG2/Jv9pLNTCBBnHE4gGXRjae5ZznLLYESeEaYRNYWqSKz51F28fU
+Imkj7qS06e8WHcxh2SnKat1fVwM6Agj4D5PnQ==
</ds:SignatureValue>
<ds:KeyInfo Id="KeyId-984C299ACFD3E6AABA13376808432422">
<wsse:SecurityTokenReference xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="STRId-984C299ACFD3E6AABA13376808432423"><wsse:Reference URI="#CertId-984C299ACFD3E6AABA13376808432101" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" /></wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature></wsse:Security></soapenv:Header><soapenv:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Id-6349096"><ns1:concat xmlns:ns1="http://ttdev.com/ss"><s1>xyz</s1><s2>123</s2></ns1:concat></soapenv:Body></soapenv:Envelope>
2012-05-22 18:00:53,570 [HttpConnection-8080-1] DEBUG org.apache.ws.security.WSSConfig - The provider BC was added at position: 2
2012-05-22 18:00:53,570 [HttpConnection-8080-1] DEBUG org.apache.ws.security.util.Loader - org.apache.security.juice.provider.JuiCEProviderOpenSSL
java.lang.ClassNotFoundException: org.apache.security.juice.provider.JuiCEProviderOpenSSL
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.apache.ws.security.util.Loader.loadClass(Loader.java:185)
at org.apache.ws.security.WSSConfig.loadProvider(WSSConfig.java:605)
at org.apache.ws.security.WSSConfig.addJceProvider(WSSConfig.java:662)
at org.apache.ws.security.WSSConfig.staticInit(WSSConfig.java:306)
at org.apache.ws.security.WSSConfig.<init>(WSSConfig.java:324)
at org.apache.ws.security.WSSConfig.getNewInstance(WSSConfig.java:333)
at org.apache.ws.security.WSSConfig.getDefaultWSConfig(WSSConfig.java:342)
at org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:345)
at org.apache.rampart.RampartEngine.process(RampartEngine.java:78)
at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:262)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:168)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:296)
at org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:281)
at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)
at org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
2012-05-22 18:00:53,585 [HttpConnection-8080-1] DEBUG org.apache.ws.security.WSSConfig - The provider JuiCE could not be added: org.apache.security.juice.provider.JuiCEProviderOpenSSL
2012-05-22 18:00:53,585 [HttpConnection-8080-1] TRACE org.apache.axiom.om.impl.builder.StAXOMBuilder - START_ELEMENT:
2012-05-22 18:00:53,585 [HttpConnection-8080-1] TRACE org.apache.axiom.om.impl.builder.StAXOMBuilder - QName: {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security
2012-05-22 18:00:53,632 [HttpConnection-8080-1] DEBUG org.apache.rampart.util.RampartUtil - Loading Signature crypto
2012-05-22 18:00:53,632 [HttpConnection-8080-1] DEBUG org.apache.rampart.RampartEngine - Processing security header in normal path
2012-05-22 18:00:53,632 [HttpConnection-8080-1] DEBUG org.apache.rampart.util.RampartUtil - Loading encryption crypto
2012-05-22 18:00:53,632 [HttpConnection-8080-1] DEBUG org.apache.rampart.util.RampartUtil - Trying the signature crypto info
2012-05-22 18:00:53,632 [HttpConnection-8080-1] DEBUG org.apache.rampart.util.RampartUtil - Loading Signature crypto
**2012-05-22 18:00:53,632 [HttpConnection-8080-1] DEBUG org.apache.ws.security.WSSecurityEngine - enter processSecurityHeader()
2012-05-22 18:00:53,648 [HttpConnection-8080-1] DEBUG org.apache.ws.security.WSSecurityEngine - Processing WS-Security header for '' actor.
2012-05-22 18:00:53,679 [HttpConnection-8080-1] DEBUG org.apache.axis2.client.Options - getAction (null) from org.apache.axis2.client.Options#12cfd62
2012-05-22 18:00:53,679 [HttpConnection-8080-1] DEBUG org.apache.axis2.context.MessageContext - Old WSAAction is (null)
2012-05-22 18:00:53,679 [HttpConnection-8080-1] DEBUG org.apache.axis2.context.MessageContext - New WSAAction is (http://www.w3.org/2005/08/addressing/soap/fault)
2012-05-22 18:00:53,679 [HttpConnection-8080-1] DEBUG org.apache.axis2.client.Options - setAction Old action is (null)
2012-05-22 18:00:53,679 [HttpConnection-8080-1] DEBUG org.apache.axis2.client.Options - setAction New action is (http://www.w3.org/2005/08/addressing/soap/fault)
2012-05-22 18:00:53,695 [HttpConnection-8080-1] TRACE org.apache.axis2.addressing.EndpointReference - hasAnonymousAddress: http://www.w3.org/2005/08/addressing/anonymous is Anonymous: true
2012-05-22 18:00:53,695 [HttpConnection-8080-1] TRACE org.apache.axis2.addressing.EndpointReference - hasAnonymousAddress: http://www.w3.org/2005/08/addressing/anonymous is Anonymous: true
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.util.MessageContextBuilder - start createFaultEnvelope()**
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.util.MessageContextBuilder - faultCode == null
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.util.MessageContextBuilder - context.isSOAP11() = true
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.util.MessageContextBuilder - End createFaultEnvelope()
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.addressing.AddressingHelper - [MessageContext: logID=19f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] isFaultRedirected: FaultTo is null. Returning isReplyRedirected
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.addressing.AddressingHelper - [MessageContext: logID=19f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] isReplyRedirected: ReplyTo is null. Returning false
2012-05-22 18:00:53,695 [HttpConnection-8080-1] TRACE org.apache.axis2.engine.AxisEngine - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] sendFault:null
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Checking pre-condition for Phase "MessageOut"
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking phase "MessageOut"
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking Handler 'AddressingOutHandler' in Phase 'MessageOut'
2012-05-22 18:00:53,695 [HttpConnection-8080-1] TRACE org.apache.axis2.handlers.addressing.AddressingOutHandler - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Addressing is disabled. Not adding WS-Addressing headers.
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Checking post-conditions for phase "MessageOut"
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Checking pre-condition for Phase "Security"
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking phase "Security"
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking Handler 'SecurityOutHandler' in Phase 'Security'
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking Handler 'Apache Rampart outflow handler' in Phase 'Security'
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Checking post-conditions for phase "Security"
2012-05-22 18:00:53,695 [HttpConnection-8080-1] TRACE org.apache.axis2.addressing.EndpointReference - hasAnonymousAddress: http://www.w3.org/2005/08/addressing/anonymous is Anonymous: true
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.client.Options - getAction (http://www.w3.org/2005/08/addressing/soap/fault) from org.apache.axis2.client.Options#12cfd62
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.context.MessageContext - SoapAction is (http://www.w3.org/2005/08/addressing/soap/fault)
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.CommonsHTTPTransportSender - SOAP Action from messageContext : (http://www.w3.org/2005/08/addressing/soap/fault)
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.OMOutputFormat - Start getContentType: OMOutputFormat [ mimeBoundary =null rootContentId=null doOptimize=false doingSWA=false isSOAP11=true charSetEncoding=UTF-8 xmlVersion=null contentType=null ignoreXmlDeclaration=false autoCloseWriter=true actionProperty=null optimizedThreshold=0]
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.OMOutputFormat - getContentType= {text/xml} OMOutputFormat [ mimeBoundary =null rootContentId=null doOptimize=false doingSWA=false isSOAP11=true charSetEncoding=UTF-8 xmlVersion=null contentType=text/xml ignoreXmlDeclaration=false autoCloseWriter=true actionProperty=null optimizedThreshold=0]
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter - contentType from the OMOutputFormat =text/xml
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter - contentType returned =text/xml; charset=UTF-8
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter - start writeTo()
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter - preserve=false
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter - isOptimized=false
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter - isDoingSWA=false
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.impl.MTOMXMLStreamWriter - Creating MTOMXMLStreamWriter
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.impl.MTOMXMLStreamWriter - OutputStream =class org.apache.axis2.transport.http.server.AxisHttpResponseImpl$AutoCommitOutputStream
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.impl.MTOMXMLStreamWriter - OMFormat = OMOutputFormat [ mimeBoundary =null rootContentId=null doOptimize=false doingSWA=false isSOAP11=true charSetEncoding=UTF-8 xmlVersion=null contentType=text/xml ignoreXmlDeclaration=false autoCloseWriter=true actionProperty=null optimizedThreshold=0]
2012-05-22 18:00:53,710 [HttpConnection-8080-1] TRACE org.apache.axiom.om.impl.MTOMXMLStreamWriter - Call Stack =DEBUG_FRAME = org.apache.axiom.om.util.CommonUtils.callStackToString(CommonUtils.java:78)
DEBUG_FRAME = org.apache.axiom.om.impl.MTOMXMLStreamWriter.<init>(MTOMXMLStreamWriter.java:100)
DEBUG_FRAME = org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:191)
DEBUG_FRAME = org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:74)
DEBUG_FRAME = org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:364)
DEBUG_FRAME = org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:241)
DEBUG_FRAME = org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:526)
DEBUG_FRAME = org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:320)
DEBUG_FRAME = org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)
DEBUG_FRAME = org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
DEBUG_FRAME = java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
DEBUG_FRAME = java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
DEBUG_FRAME = java.lang.Thread.run(Thread.java:595)
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.util.StAXUtils - XMLStreamWriter is org.apache.axiom.util.stax.dialect.WoodstoxStreamWriterWrapper
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl - Could not close builder or parser due to:
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl - builder is null
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.impl.MTOMXMLStreamWriter - Calling MTOMXMLStreamWriter.flush
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.server.wire - << HTTP/1.1 500 Internal server error
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.server.wire - << Date: Tue, 22 May 2012 10:00:53 GMT
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.server.wire - << Server: Simple-Server/1.1
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.server.wire - << Transfer-Encoding: chunked
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.server.wire - << Content-Type: text/xml; charset=UTF-8
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.impl.MTOMXMLStreamWriter - close
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter - end writeTo()
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.TransportUtils - Did not find RequestResponseTransport cannot set response written
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking flowComplete() in Phase "Security"
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking flowComplete() for Handler 'Apache Rampart outflow handler' in Phase 'Security'
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking flowComplete() for Handler 'SecurityOutHandler' in Phase 'Security'
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking flowComplete() in Phase "MessageOut"
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking flowComplete() for Handler 'AddressingOutHandler' in Phase 'MessageOut'
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.server.AxisHttpService - Remote address of the connection : 127.0.0.1
I finally found out the issue, however, I dont think my solution can help others because I made a very silly mistake.
I think the way I solve the problem is more valuable. I debugged the source code and traced every step to find out the position of the exception.
Next, I found that Rampart could not get security configuration from services.xml in which I put the Rampart configuration.
The error occurred because I missed the xmlns='..../rampart/policy' announcement. Therefor, the code couldn't recognize them as a RampartConfig object.
It would be much great if you have attached the service policy as well. What is the algorithm suit used in your policy. The JCE is need to be installed in your JVM in many cryptographic operations specially in cases where keys that are longer than 128bit is required. Refer to my blog at http://sureshatt.blogspot.com/2012/03/java-cryptography-extension-jce.html , install JCE and try the service again.