ERROR: MFMessageErrorDomain/Encryption

Hi,
I'm using different email certificates for Mail. Every mail-address has a seperate email certificate. I'm using Secure Email Certificates from comodo.com.
On my mac everything works fine.
On my iOS 7 devices only decryption is working.
Encryption doesn't work.
It always says that there is no cerificate for encryption available.
I have installed all the cerificates via keychain export.
decryption is working well!
Any idea?
Thank you
Klaus

anu1106 wrote:
Hi all,
I have problem with decryption data because of byte[] as input
Used 256 bit AES key encryption
byte[] bytes1 = mc.getBytes();
I am doing following steps:
1) Encrypt the String data. Encryption method takes input as byte[] so used encrypt(mc.getBytes()) & write encrypted data on file.
2)Read data from that binary file & transfer to another computer using httpClient.Now, httpClient transfer data as request so receive on other end as String.No you don't receive on the other end as String (or if you do you shouldn't). You should receive the data as bytes or before shipping you should Base64 or ASCII85 or Hex encode so that you can then work with Strings.
You have been told this in your thread [http://forums.sun.com/thread.jspa?threadID=5438011&tstart=0|http://forums.sun.com/thread.jspa?threadID=5438011&tstart=0] yet you seem to be ignoring it.
3) After that, what i Did receive data as string Till here everything fine
Now Problem is
Now, i need to decrypt data decryption method also take input as byte[] So , I convert String into byte[] using method byte[] bytes = String.getByte();
But bytes not giving object value same as bytes1.
So my code giving error at decryption because bytes1 have different value.
Also used
byte[] bytes1 = mc.getBytes("UTF-8");
byte[] bytes = String.getByte("UTF-8"); but did notworkBecause it is just plain WRONG!
>
>
Thanks
Anu

Similar Messages

  • Error during encryption or decryption. System error code 997.

    Hello,
    I am trying to reconnect to a farmafter my PDC crashed and I had to create all the new users, When I run the sharepoint configuration tool and can get as far as entering the DB server which then finds the sharepoint_config. I add the connection details and select next which then throws up the following error:
    09/13/2008 13:20:34  8  INF                              The parameter user is chosen,
    so returning the value as IPIC\cdigby
    09/13/2008 13:20:34  8  INF                              Entering function Command.this[string key]
    09/13/2008 13:20:34  8  INF                                Entering function CommandCollectionBase.Get
    09/13/2008 13:20:34  8  INF                                  Found value in collection for key password
    09/13/2008 13:20:34  8  INF                                Leaving function CommandCollectionBase.Get
    09/13/2008 13:20:34  8  INF                                Found parameter password in collection
    09/13/2008 13:20:34  8  INF                              Leaving function Command.this[string key]
    09/13/2008 13:20:34  8  INF                              The parameter password is chosen, so returning the value as ***************
    09/13/2008 13:20:34  8  INF                              The parameter password is chosen, so returning the value as ***************
    09/13/2008 13:20:34  8  INF                              Entering function Common.CreateSecureSringFrom
    09/13/2008 13:20:34  8  INF                              Leaving function Common.CreateSecureSringFrom
    09/13/2008 13:20:34  8  INF                              Entering function Farm.IsJoinedToFarm
    09/13/2008 13:20:34  8  INF                                Entering function Farm.TryIsJoinedToFarm
    09/13/2008 13:20:34  8  INF                                  My cached Farm object is null, so will load it
    09/13/2008 13:20:34  8  INF                                  Calling SPFarm.Local and SPServer.Local to get the local farm objects
    09/13/2008 13:20:34  8  INF                                  SPFarm.Local returned null.  This usually means that the server is not joined.  But, you can delete a server from the configdb without unjoining, which would mean that this machine still thinks it is joined.
    09/13/2008 13:20:34  8  INF                                  Trying to access the server farm connection string
    09/13/2008 13:20:34  8  INF                                  Entering function TaskCommon.TryGetWssVersion3ConnectionStringExists
    09/13/2008 13:20:34  8  INF                                    Entering function RegistryHelper.RegistryHelper
    09/13/2008 13:20:34  8  INF                                      The RegistryHelper has the key name as SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Secure\ConfigDB and the registry hive as LocalMachine
    09/13/2008 13:20:34  8  INF                                    Leaving function RegistryHelper.RegistryHelper
    09/13/2008 13:20:34  8  INF                                    WSS v3 registry key SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Secure\ConfigDB for the connection string does not exist
    09/13/2008 13:20:34  8  INF                                    Unable to get the WSS v3 connection string
    09/13/2008 13:20:34  8  INF                                  Leaving function TaskCommon.TryGetWssVersion3ConnectionStringExists
    09/13/2008 13:20:34  8  INF                                  DID NOT discover a v3 connection string and SPFarm.Local indicates that this machine is not joined.
    09/13/2008 13:20:34  8  INF                                  Entering function Farm.Clear
    09/13/2008 13:20:34  8  INF                                    Entering function CentralAdminServiceInstance.Reset
    09/13/2008 13:20:34  8  INF                                    Leaving function CentralAdminServiceInstance.Reset
    09/13/2008 13:20:34  8  INF                                  Leaving function Farm.Clear
    09/13/2008 13:20:34  8  INF                                Leaving function Farm.TryIsJoinedToFarm
    09/13/2008 13:20:34  8  INF                              Leaving function Farm.IsJoinedToFarm
    09/13/2008 13:20:34  8  INF                              Creating connection string for config db SharePoint_Config server IPIC-SERVER2\SHAREPOINT
    09/13/2008 13:20:34  8  INF                              Creating connection string for admin content db SharePoint_AdminContent_938f78c4-0a10-4a04-b4e0-26a95d7a9022 server IPIC-SERVER2\SHAREPOINT
    09/13/2008 13:20:34  8  INF                              Using NTLM for sql connection string
    09/13/2008 13:20:34  8  INF                              Openning configdb so that I can join it at server IPIC-SERVER2\SHAREPOINT database SharePoint_Config in farm mode
    09/13/2008 13:20:34  8  INF                              Now joining to farm at server IPIC-SERVER2\SHAREPOINT database SharePoint_Config
    09/13/2008 13:21:38  8  ERR                              Task configdb has failed with an unknown exception
    09/13/2008 13:21:38  8  ERR                              Exception: System.ArgumentException: Error during encryption or decryption. System error code 997.
       at Microsoft.SharePoint.Administration.SPCredentialManager.DecryptWithMasterKey(Byte[] rgbEncryptedPassphrase)
       at Microsoft.SharePoint.Administration.SPEncryptedString.GetSecureStringValue()
       at Microsoft.SharePoint.Administration.SPEncryptedString.get_SecureStringValue()
       at Microsoft.SharePoint.Administration.SPProcessIdentity.get_SecurePassword()
       at Microsoft.SharePoint.Administration.SPApplicationPool.Provision()
       at Microsoft.SharePoint.Administration.SPWebServiceInstance.Provision()
       at Microsoft.SharePoint.Administration.SPFarm.Join()
       at Microsoft.SharePoint.PostSetupConfiguration.ConfigurationDatabaseTask.CreateOrConnectConfigDb()
       at Microsoft.SharePoint.PostSetupConfiguration.ConfigurationDatabaseTask.Run()
       at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()
    If anyone can help me work around this I would be extremly grateful.
    Thanks

       Hi,
    I found an article explaining the issue: http://support.microsoft.com/kb/927156.
    Please try to disconnect the configuration database from existing farm environment, and then create a new configuration database:
    1.      Click Start, click Run, type cmd in the Open box, and then click OK.
    2.      At the command line, change to the following directory: \Program Files\Common Files\Microsoft Shared\web server extensions
          \12\BIN
    3.      At the command prompt, type the following command to create a new configuration database: psconfig -cmd configdb -create -server
         ServerName -database ConfigDBName -user Domain\User -password Password
    4.      Rerun the SharePoint Products and Technologies Wizard.
    Hope it helps.

  • When trying to launch my mail for the 1st time on apple 4s, mail error MFMessageErrorDomain error 1032

    when trying to launch my mail for the 1st time on apple 4s, mail error MFMessageErrorDomain error 1032 happenes

    https://discussions.apple.com/thread/4772709?start=0&tstart=0

  • Clip Notes .pdf error - "Bad encrypt dictionary"

    I'm using OS X Leopard (10.5)
    I created a Premiere Pro 2.0.1 project, added a couple of markers with comments, and exported to Clip Notes. I did not set any password protection. Emailed it as an attachment to a client who is using Windows, to see if they could open it. They could not, they received the following error message:
    "There was an error opening this document. Bad encrypt dictionary."
    Any ideas what this is? Is there a basic incompatibility between Mac-generated Clip Notes files and Windows platform? (I know that Mac can only export the video file in a Clip Notes .pdf as QuickTime, but that does not seem to be the problem here, the client does have QT on their Windows PC.)
    Apologies if this is the wrong forum, I could not find any obvious place to post questions about Clip Notes .pdf files.

    Same thing happened to me.  Update your adobe reader to the latest version.  Open the file with that reader instead of with your copy of adobe acrobat.  Unfortuanltey, you lose all the features of the adobe software, but at least you can read the file.
    Hope you are able to read the doucments from the utility.
    Note:  If you are saving pdf's save then in a version that will allow those who have at least acrobat 6.0.  Many orgnaizations and people are a couple of versions behind due to realative costs of upgrading.  This simple task will save you those emails about "bad encrypt dictionary" and allow many to read your pdf's with no problems.  At least that's been my experience.

  • [Solved] ^has_journal error for encrypted USB installation

    Hi,
    I am trying to install Arch on an encrypted USB stick, but i am facing a challenge in the very initial stages.
    Its been advised that if installing arch on a USB stick, one should disable journaling. But the command to format to ext4 without journaling fails. Here is what i am doing
    # cryptsetup -y -v luksFormat /dev/sda2
    # cryptsetup open /dev/sda2 cryptroot
    # mkfs.ext4 -O ^has_journal /dev/sda2
    the mkfs.ext4 command above gives the following error:
    /dev/sda2 is apparently in use by the system; will not make a filesystem here
    Instead, when i use the slightly modified version of the original command specified in https://wiki.archlinux.org/index.php/Dm … _with_LUKS, i get the following error:
    mkfs -t ext4 -O ^has_journal /dev/mapper/cryptroot
    Invalid filesystem option set: install.txt
    Can you advise whats going wrong with the mkfs.ext4 command?
    Last edited by njathan (2014-08-05 17:44:59)

    Hello All,
    I have same problem installing the new (2014.08.01) iso to an old EeePC 4G.
    I think I'll format a partition booting ubuntu live...
    Cheers!

  • Getting error:  Bad Encrypt Dictionary have tried available solutions

    I searched this forum for solutions.  Found only one, but it refers to making adjustments to Distiller, and I am not using Distiller.
    I am using Acrobat 9 Pro on Windows XP, SP3.
    I am creating PDFs directly from Microsoft WORD, 2007 -  via  File --->  Print ----> to Adobe PDF
    Many of my customers are using Adobt Reader 6 - I realize that they need to upgrade, but I don't have much control over this beyond suggesting they do and providing a link.
    My pssword-protected docs are unable to be opened, users are getting "Bad Encrypt Error". 
    When I go to Document Properties  --> PDF Version, it says Acrobat 7.x.
    I cannot find a place where I can change this to 6.x
    Any thoughts?
    Also, I opened distiller to check the PDF settings and it says 6.x, BUT I don't believe Distiller is part of the process when I print to PDF directly from WORD.  Is there a way that I CAN print to PS then Distill?  This may be a solution, but WORD does not have a PS option for printing.
    Thank you kindly....
    Cynthia-

    Hi Cynthia,
    Here's what you need to do:
    Launch MS Word
    Select the Acrobat tab on the toolbar
    Click on the Preferences toolbar button
    Select the Settings tab on the Acrobat PDF Maker dialog (mouse over PDFMaker.jpg below for a screen shot)
    Click on the Advanced button in the PDFMaker Settings group box
    Select Acrobat 6.0 (PDF1.5) from the Compatibility drop-down list (mouse over PDFMaker_Adv.jpg below for a screen shot)
    Click the OK button on the Adobe PDF Settings dialog to save your changes
    Click the OK button on the Acrobat PDF Maker dialog
    That should fix the problem. Let me know if you need more help,
    Steve

  • Key invalid in messgae error (BouncyCastle Encryption)

    I am trying to use bouncycastle to encrypt some data but am getting a "key invalid in message" error whenever I run it. My question is: what the hell could this mean? what could i be doing wrong. I get a feeling it's not a code issue, so what could it be?
    This is the actual place it falls over at:
    CMSEnvelopedData envData = envGenerator.generate( new CMSProcessableByteArray(signed),CMSEnvelopedDataGenerator.DES_EDE3_CBC, 192,"BC" );
    Please help. I am officially confused.

    I have the same exception but with an other problem. I want to read an encrypted mail.
    KeyStore    ks = KeyStore.getInstance("PKCS12", "BC");
                ks.load(new FileInputStream("/coucou.pfx"), "azerty".toCharArray());
                Enumeration e = ks.aliases();
                String      keyAlias = null;
                while (e.hasMoreElements())
                    String  alias = (String)e.nextElement();
                    if (ks.isKeyEntry(alias))
                        keyAlias = alias;
                X509Certificate cert = (X509Certificate)ks.getCertificate(keyAlias);
                RecipientId     recId = new RecipientId();
                recId.setSerialNumber(cert.getSerialNumber());
                recId.setIssuer(cert.getIssuerX500Principal().getEncoded());
                SMIMEEnveloped       m = new SMIMEEnveloped(msg);
                RecipientInformationStore   recipients = m.getRecipientInfos();
                RecipientInformation        recipient = recipients.get(recId);
                Iterator iterator = recipients.getRecipients().iterator();
                while(iterator.hasNext())
                     RecipientInformation temp = (RecipientInformation)iterator.next();
                     if(temp!=null)
                          recipient = temp;
                MimeBodyPart        res = SMIMEUtil.toMimeBodyPart(recipient.getContent(ks.getKey(keyAlias, null), "BC"));
                System.out.println(res.getContent());The message "Key invalid in message error " appears at the line :
    MimeBodyPart        res = SMIMEUtil.toMimeBodyPart(recipient.getContent(ks.getKey(keyAlias, null), "BC"));Please help !

  • Aspnet_regiis error when encrypting connectionStrings

    I have a website whose domain is www.myWebsite.com and on my server it is located in a directory on my c: drive at the following physical path:
       c:\dirVirtual\myWebsite
    I have a connection string defined in my web.config in the connectionString section.
    <connectionStrings>
       <add name="myConnectionString" connectionString="Data Source = 1.2.3.4; Initial Catalog = XYZ; UserID=user;Passowrd=xyz" providername="System.Data.SqlClient" />
    </connectionStrings>
    I go to the c:\Windows\Microsoft.Net\FrameWork\2.050727 directory and there run the following command to try to encrypt this section:
    aspnet_regiis -pe "connectionStrings" -app "/myWebsite" -prov DataProtectionConfigurationProvider
    When I do this I get an error
    Encrypting configuration section...
    A configuration file cannot be created for the requested Configuration object.
    Failed!
    The -app parameter says it is supposed to be the virtual path but I'm not certain I have that correct. I don't know where to look to see what the virtual name is.
    I have been able to successfully encrypt other websites on the same server. Is there any way to find out what the error really is?
    Thanks,
    Bob

    Hi,
    I  am not sure that I am the “Philippe” concerned and I am even not more aware that I had problems with encrypting connection strings. Nevertheless, this is the procedure I use regularly:
    To my knowledge, the procedure works only for virtual websites, i.e. in ISS under “Web Sites” I create a new virtual website (I can also create it directly using the publish procedure in visual studio)
    In IIS I create an application pool for that website
    Be sure that the website uses this application pool : Website – properties – home directory – fields “Application name” AND “ Application pool”
    Start the Command Prompt on the computer where the website resides
    Change the directory to ... in my case : cd \WINDOWS\Microsoft.NET\Framework\v2.0.50727
    Run the following command .... in my case : aspnet_regiis -pe "connectionStrings" -app "/DiddelengVirtual" -site "1219903565"  
    That’s all
    To find the site number (1219903565 in my case) I use the logger of my website (of course logging must be ON) because the log is written in a new directory with directory name W3VC1219903565
    Don’t be frustrated but when someone knows the way it’s always difficult to understand that others have difficulties with it.
    Have a nice day
    Philippe
     

  • I am getting the error "MFMessageErrorDomain error 1032 whenever I try to log into my email. Any suggestions?

    I am trying to log into my email account but cannot. I get the message "MRMessageErrorDomain error 1032".
    Does anyone know what this is and how do I fix it?

    http://support.apple.com/kb/TS4006

  • Error while encrypting the xml file using asymmetric cipher...pls help

    i am encryption the xml file using asymmetric cyper....
    in one class , i am generating private key and public key using "RSA" algorithm..using 1024 byte initialization...
    it is generating properly...
    and after that in second class i am encrypting the xml file using "DESede" algorithm and i am using public key of above class..
    but i am getting exceptione :
    java.security.InvalidKeyException: Invalid key length: 162 bytes
    at com.sun.crypto.provider.DESedeCipher.engineGetKeySize(DashoA6275)
    at javax.crypto.Cipher.init(DashoA6275)
    at XmlEncryption.getEncryptedData(XmlEncryption.java:147)
    at XmlEncryption.encryptCompleteXmlFile(XmlEncryption.java:123)
    at demoXmlEncApp.simulateBookSellersEnd(demoXmlEncApp.java:72)
    at demoXmlEncApp.main(demoXmlEncApp.java:29)
    so, what is that ?
    i want to use RSA algo for key generatiion and DESede for cipher initialization .
    is there any site for where source code of xml file encryption using asymmetric cipher is available?
    pls, help me.....

    Sachin,
    What sabre150 is trying to explain to you, is that encrypting data (such as an XML file) is a 2-step process. In the first step, you generate a symmetric key (such as DES, 3DES, AES) and encrypt your file with this key (and the appropriate mode and padding).
    In order to ensure that your encrypted data cannot be decrypted by unauthorized individuals, you now need to protect the symmetric key. Encrypting your symmetric key with another symmetric key does not solve the problem, since you have a chain of symmetric keys that need to be encrypted into infinity.
    Cryptographers solve this problem by encrypting the symmetric key with an asymmetric key, such as as RSA. To perform this second step, you generate an RSA key-pair, encrypt the symmetric key you generated in step 1 with the Public key of the RSA key-pair, and give the recipient of the encrypted XML file, access to the Private key of the RSA key-pair as well as the encrypted symmetric key.
    The recipient, then uses the RSA Private key to decrypt the symmetric key first, and then uses the "plaintext" symmetric key to decrypt the XML file.
    What sabre150 was also attempting to explain to you, is the traditional way of transporting an encrypted "blob" that consists of data + symmetric key. With a modern key-management system, combining the two would be unnecessary.

  • Mail error: MFMessageErrorDomain error 1028

    Mail will open but will not receive. Mail will send, but appears as though it is hanging up. If I close Mail with or w/out using the application i get this error:
    Some actions taken while the account "[email protected]" was offline could not be completed online.
    Mail has undone actions on some messages so that you can redo the actions while online.
    Additional information:Operation could not be completed. (FMessageErrorDomain error 1028).
    Does anyboy know how to fix this?

    Thank you for posting this! For the last 24 hrs I have been screaming since Mail just stopped working and would open and then quit. I thought I messed something up when I connected my iPhone to my macbook. But your instructions worked and it's working fine again!!!

  • Error when encrypting external hard drive

    When I tried to encrypt my external harddrive I get the message "Core storage volume is already encrypt". And it isnt. It has been but i decrpyted it for a couple of days, and no I cannot encrypt the disk. Can any1 help me?

    Triple-click anywhere in the line below to select it:
    { diskutil list; echo; diskutil cs list; } | open -f -a TextEdit
    Copy the selected text to the Clipboard (command-C).
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V).
    A TextEdit window will open with the output of the command. Post the contents of that window, if any — the text, please, not a screenshot. The title of the window doesn't matter, and you don't need to post that.

  • Getting error mfmessageerrordomain error 1032

    I am getting a message MRMessageErrorDomain error 1032 when trying to install my yahoo & bellsouth.net emails

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
    http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom
    Tap Settings > Mail, Contacts, Calendar and delete your email account.
    Then tap Settings > Safari > and Tap Clear History and Clear Cookies and Data.
    Now tap Settings > Mail, Contacts, Calendar and re-enter your email account credentials.
    Message was edited by: Texas Mac Man

  • SQL Error on MBAM ISS server while MBAM client encryption

    Hi
    While I am starting the encryption through MBAM client getting below error..
    unable to connect to the MBAM recovery and hardware service
    An error occurred while sending encryption status data
    for resolve this issue I have done the
    http://support.microsoft.com/kb/2612822?wa=wsignin1.0
     Also on MBAM server (where Self service and monitoring components installed)I am getting below SQl error  while encryption starts on MBAM client machines. can you please suggest for resolve this issue
    Error:-
    Log Name:      Application
    Source:        ASP.NET 2.0.50727.0
    Date:          4/2/2014 2:50:15 PM
    Event ID:      1310
    Task Category: Web Event
    Level:         Warning
    Keywords:      Classic
    User:          N/A
    Computer:      BOMVMSSIPS01.KALPATARUGROUP.COM
    Description:
    Event code: 100002
    Event message: SQL error occured
    Event time: 4/2/2014 2:50:15 PM
    Event time (UTC): 4/2/2014 9:20:15 AM
    Event ID: 502b42574bbf4c95b66fea631dbf3428
    Event sequence: 42
    Event occurrence: 41
    Event detail code: 0
    Application information:
        Application domain: /LM/W3SVC/2/ROOT/MBAMComplianceStatusService-1-130409000569502687
        Trust level: Full
        Application Virtual Path: /MBAMComplianceStatusService
        Application Path: C:\inetpub\Microsoft BitLocker Management Solution\Compliance Status Service\
        Machine name: BOMVMSSIPS01
    Process information:
        Process ID: 2580
        Process name: w3wp.exe
        Account name: NT AUTHORITY\NETWORK SERVICE
    Exception information:
        Exception type: SqlException
        Exception message: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured
    to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
    Request information:
        Request URL: 
        Request path: 
        User host address: 
        User: 
        Is authenticated: False
        Authentication Type: 
        Thread account name: NT AUTHORITY\NETWORK SERVICE
    Thread information:
        Thread ID: 15
        Thread account name: NT AUTHORITY\NETWORK SERVICE
        Is impersonating: False
        Stack trace:    at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject,
    Boolean withFailover)
       at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject, Boolean withFailover)
       at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
       at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
       at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
       at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
       at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
       at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)
       at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)
       at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
       at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
       at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
       at System.Data.SqlClient.SqlConnection.Open()
       at Microsoft.MBAM.ReportingService.DataProcessor.ProcessStatusReportInfo(StatusInfoType reportInfo)
    Custom event details:
        Application: MBAMComplianceStatusService
        Sql Server:
        Database: MBAM Compliance Status
        Sql ErrorCode: -1
        Error Message: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured
    to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="ASP.NET 2.0.50727.0" />
        <EventID Qualifiers="32768">1310</EventID>
        <Level>3</Level>
        <Task>3</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2014-04-02T09:20:15.000000000Z" />
        <EventRecordID>9161</EventRecordID>
        <Channel>Application</Channel>
        <Computer>BOMVMSSIPS01.KALPATARUGROUP.COM</Computer>
        <Security />
      </System>
      <EventData>
        <Data>100002</Data>
        <Data>SQL error occured</Data>
        <Data>4/2/2014 2:50:15 PM</Data>
        <Data>4/2/2014 9:20:15 AM</Data>
        <Data>502b42574bbf4c95b66fea631dbf3428</Data>
        <Data>42</Data>
        <Data>41</Data>
        <Data>0</Data>
        <Data>/LM/W3SVC/2/ROOT/MBAMComplianceStatusService-1-130409000569502687</Data>
        <Data>Full</Data>
        <Data>/MBAMComplianceStatusService</Data>
        <Data>C:\inetpub\Microsoft BitLocker Management Solution\Compliance Status Service\</Data>
        <Data>BOMVMSSIPS01</Data>
        <Data>    Application: MBAMComplianceStatusService
        Sql Server:
        Database: MBAM Compliance Status
        Sql ErrorCode: -1
        Error Message: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured
    to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
    </Data>
        <Data>2580</Data>
        <Data>w3wp.exe</Data>
        <Data>NT AUTHORITY\NETWORK SERVICE</Data>
        <Data>SqlException</Data>
        <Data>A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to
    allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)</Data>
        <Data>
        </Data>
        <Data>
        </Data>
        <Data>
        </Data>
        <Data>
        </Data>
        <Data>False</Data>
        <Data>
        </Data>
        <Data>NT AUTHORITY\NETWORK SERVICE</Data>
        <Data>15</Data>
        <Data>NT AUTHORITY\NETWORK SERVICE</Data>
        <Data>False</Data>
        <Data>   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject,
    Boolean withFailover)
       at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject, Boolean withFailover)
       at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
       at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
       at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
       at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
       at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
       at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)
       at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)
       at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
       at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
       at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
       at System.Data.SqlClient.SqlConnection.Open()
       at Microsoft.MBAM.ReportingService.DataProcessor.ProcessStatusReportInfo(StatusInfoType reportInfo)
    </Data>
      </EventData>
    </Event>
    Shailendra Dev

    You are using Java import syntax. You should use @page directive in JSP pages. Refer to: http://java.sun.com/products/jsp/syntax/2.0/syntaxref2010.html
    [The line "org.apache.jasper.JasperException: /result.jsp(1,4) Invalid directive"
    in the stack trace tells you that there is no @import directive]

  • [SOLVED] errors with fdisk and cryptsetup; is my drive going bad?

    I'm having issues with re-formatting an external hard drive using dm-crypt. It was previously formatted with TrueCrypt/NTFS, which I used as a shared backup drive between Windows and Arch. At some point, it stopped being able to mount, which I attributed to allowing Windows to "fix" it after improper dismount (e.g. a hard kill).
    I decided to re-format with ext4 and only use it from Arch, but now I'm wondering if I may have a hardware issue with the drive. I've tried a lot more (like going through the full zero write after mounting the drive as a temporary dm-crypt device), but here's the condensed version to illustrate the problem.
    system info
    This is on a fresh boot. Just adding that as I've had issues with kernel modules after updating if a new kernel comes through. A fresh boot removes that potential issue.
    $ uname -a
    Linux arch_840 4.0.3-1-ARCH #1 SMP PREEMPT Wed May 13 15:38:47 CEST 2015 x86_64 GNU/Linux
    $ lsmod | grep dm_
    dm_crypt 28672 2
    dm_mod 98304 5 dm_crypt
    $ lsmod |grep xts
    xts 16384 2 serpent_sse2_x86_64,twofish_x86_64_3way
    gf128mul 16384 2 lrw,xts
    smartctl status
    Figured I should check the drive. There's a lot of old age and pre-fail warnings, but this post would seem to suggest I'm okay?
    # smartctl -A /dev/sdb
    smartctl 6.3 2014-07-26 r3976 [x86_64-linux-4.0.3-1-ARCH] (local build)
    Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
    === START OF READ SMART DATA SECTION ===
    SMART Attributes Data Structure revision number: 16
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
    1 Raw_Read_Error_Rate 0x002f 100 100 051 Pre-fail Always - 0
    2 Throughput_Performance 0x0026 252 252 000 Old_age Always - 0
    3 Spin_Up_Time 0x0023 090 089 025 Pre-fail Always - 3330
    4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 703
    5 Reallocated_Sector_Ct 0x0033 252 252 010 Pre-fail Always - 0
    7 Seek_Error_Rate 0x002e 252 252 051 Old_age Always - 0
    8 Seek_Time_Performance 0x0024 252 252 015 Old_age Offline - 0
    9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 3707
    10 Spin_Retry_Count 0x0032 252 252 051 Old_age Always - 0
    11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 104
    12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 734
    191 G-Sense_Error_Rate 0x0022 100 100 000 Old_age Always - 17
    192 Power-Off_Retract_Count 0x0022 252 252 000 Old_age Always - 0
    194 Temperature_Celsius 0x0002 064 053 000 Old_age Always - 24 (Min/Max 16/47)
    195 Hardware_ECC_Recovered 0x003a 100 100 000 Old_age Always - 0
    196 Reallocated_Event_Count 0x0032 252 252 000 Old_age Always - 0
    197 Current_Pending_Sector 0x0032 252 252 000 Old_age Always - 0
    198 Offline_Uncorrectable 0x0030 252 252 000 Old_age Offline - 0
    199 UDMA_CRC_Error_Count 0x0036 200 200 000 Old_age Always - 0
    200 Multi_Zone_Error_Rate 0x002a 100 100 000 Old_age Always - 3
    223 Load_Retry_Count 0x0032 100 100 000 Old_age Always - 104
    225 Load_Cycle_Count 0x0032 079 079 000 Old_age Always - 214068
    Disk info, delete existing partition, new MBR, create new partition
    # fdisk /dev/sdb
    Welcome to fdisk (util-linux 2.26.1).
    Changes will remain in memory only, until you decide to write them.
    Be careful before using the write command.
    Command (m for help): p
    Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0x76d37b6d
    Device Boot Start End Sectors Size Id Type
    /dev/sdb1 63 976768064 976768002 465.8G 83 Linux
    Command (m for help): d
    Selected partition 1
    Partition 1 has been deleted.
    Command (m for help): o
    Created a new DOS disklabel with disk identifier 0x2cd60f13.
    Command (m for help): n
    Partition type
    p primary (0 primary, 0 extended, 4 free)
    e extended (container for logical partitions)
    Select (default p): p
    Partition number (1-4, default 1):
    First sector (2048-976773167, default 2048):
    Last sector, +sectors or +size{K,M,G,T,P} (2048-976773167, default 976773167):
    Created a new partition 1 of type 'Linux' and of size 465.8 GiB.
    Command (m for help): w
    The partition table has been altered.
    Calling ioctl() to re-read partition table.
    Syncing disks.
    trying to format with cryptsetup
    I had a bunch of custom options, but other Arch posts suggested just trying the default, which is what I've done here. It fails with the same error as when I try to pass a cipher, key size, etc. ("Command failed with code 5: IO error while encrypting keyslot.").
    # truecrypt -v --debug luksFormat /dev/sdb1
    bash: truecrypt: command not found
    [root@arch_840 jwhendy]# cryptsetup -v --debug luksFormat /dev/sdb1
    # cryptsetup 1.6.6 processing "cryptsetup -v --debug luksFormat /dev/sdb1"
    # Running command luksFormat.
    # Locking memory.
    # Installing SIGINT/SIGTERM handler.
    # Unblocking interruption on signal.
    WARNING!
    ========
    This will overwrite data on /dev/sdb1 irrevocably.
    Are you sure? (Type uppercase yes): YES
    # Allocating crypt device /dev/sdb1 context.
    # Trying to open and read device /dev/sdb1.
    # Initialising device-mapper backend library.
    # Timeout set to 0 miliseconds.
    # Iteration time set to 1000 miliseconds.
    # Interactive passphrase entry requested.
    Enter passphrase:
    Verify passphrase:
    # Formatting device /dev/sdb1 as type LUKS1.
    # Crypto backend (gcrypt 1.6.3) initialized.
    # Detected kernel Linux 4.0.3-1-ARCH x86_64.
    # Topology: IO (512/0), offset = 0; Required alignment is 1048576 bytes.
    # Checking if cipher aes-xts-plain64 is usable.
    # Using userspace crypto wrapper to access keyslot area.
    # Generating LUKS header version 1 using hash sha1, aes, xts-plain64, MK 32 bytes
    # KDF pbkdf2, hash sha1: 996745 iterations per second.
    # Data offset 4096, UUID 181fed4d-42f2-4f0f-8b70-cb7ba459e25f, digest iterations 121625
    # Updating LUKS header of size 1024 on device /dev/sdb1
    # Key length 32, device size 976771120 sectors, header size 2050 sectors.
    # Reading LUKS header of size 1024 from device /dev/sdb1
    # Key length 32, device size 976771120 sectors, header size 2050 sectors.
    # Adding new keyslot -1 using volume key.
    # Calculating data for key slot 0
    # KDF pbkdf2, hash sha1: 1008246 iterations per second.
    # Key slot 0 use 492307 password iterations.
    # Using hash sha1 for AF in key slot 0, 4000 stripes
    # Updating key slot 0 [0x1000] area.
    # Using userspace crypto wrapper to access keyslot area.
    IO error while encrypting keyslot.
    # Releasing crypt device /dev/sdb1 context.
    # Releasing device-mapper backend.
    # Unlocking memory.
    Command failed with code 5: IO error while encrypting keyslot.
    Things also tend to hang with respect to the drive at this point. For example, fdisk -l spits out /dev/sda partitions immediately and then just hangs instead of printing out /dev/sdb info, then eventually quits (without ever writing it).
    Any suggestions on where to look/how to troubleshoot? I found some possibly related posts, but nothing that looks promising:
    - Impossible to crypt the drive using cryptsetup (fixed by rebooting)
    - cryptsetup fails to open Udev cookie 0xd4d94f5 (semid 0) waiting for z (no responses; the hang after seems similar)
    There's a couple odds and ends references to cryptsetup 1.6.6 having issues. I downloaded 1.6.4-1 and 1.6.5-1 and -2 from ARM to try, but wanted to post this in the meantime in case something stuck out.
    Last edited by jwhendy (2015-05-29 16:01:40)

    @qinohe I thought of that and the other day started formatting with mkfs.ext4; unfortunately, it was at work and I had to leave before I could let it finish. It had been chugging along a good few hours, and I was surprised it would take that long. I was able to format it with ext4 using Windows 7 (I dual boot) with the MiniTool Partition Wizard but I didn't use it like that before trying to solve the cryptsetup issue again.
    This last time around, I was getting unresponsive behavior. I think I need to reboot each time I try something with cryptsetup, as any commands related to that drive seem to hang afterwards (fdisk, umount, eject, mkfs, or trying crypsetup again). Perhaps I'll just let it cook overnight with mkfs and see if I can at least have an unencrypted, but functional drive.
    One interesting tidbit is that even though cryptsetup fails, when I've tried to issue mkfs afterward, it asks me to confirm that I want to format the disk since it has a LUKS header... so something appears to have been written. Is it possible the header is causing some issues? I don't know much about the structure of a disk (like what range the MBR resides in, what constitutes a header, etc.) but have been wondering if there's some way to start really, really clean with the disk. Like I'd just bought it -- something appears to be lingering around from previous efforts?
    @frostschutz I'll check tomorrow. That's a good question. Just checked journalctl and here are some of the errors that appear; unfortunately, I wasn't watching so I can't tell you what matches up with what command:
    May 23 09:32:22 arch_840 systemd-udevd[7784]: inotify_add_watch(7, /dev/sdb1, 10) failed: No such file or directory
    May 23 09:32:22 arch_840 kernel: usb 3-4: stat urb: status -108
    ### there's lots like this; like 10 in a row with various sector values listed
    May 23 09:32:19 arch_840 kernel: Buffer I/O error on dev sdb1, logical block 61341696, lost async page write
    May 23 09:32:19 arch_840 kernel: blk_update_request: I/O error, dev sdb, sector 490735616
    ### there's also a bunch like this, from tab #0 -> #29 (not colored red, so not sure they're errors?)
    May 23 09:32:19 arch_840 kernel: sd 2:0:0:0: [sdb] tag#0 CDB: opcode=0x2a 2a 00 1d 07 bc 10 00 04 00 00
    May 23 09:32:18 arch_840 kernel: sd 2:0:0:0: [sdb] tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD OUT
    I paged down quite a ways and those seem like the unique messages when I search the journal for "sdb". Anything stand out? I will say that the same sector numbers appeared in multiple blocks of the third error type listed, so that makes me wonder if something is genuinely wrong with the disk. I'll post the output of the full smartctl scan when I hopefully run it tomorrow.
    Thanks for chiming in!

Maybe you are looking for

  • HPE 180T - Video driver stopped responding - the screen is pixilated and barely legible.

    My HPE 180T core dumped and when it restarted the screen was pixilated and barely legible. I could make out a message "Video driver stopped working and has recovered".  I am not sure how to reinstall the driver (Windows 7 64-bit OS),  since it is ver

  • Wanna make a slide show of my photos and burn to dvd

    I just got my mac.  Novice at best. However, I am a quick study. Tech nerd.  I want to make a slide show of photos and burn to a dvd for my "non-tech" parents to play in their dvd player. What's the easiest way.

  • Performance and Stability Issues

    I added a new user account to my Mac and it seems to have caused a bunch of problems. I can't eject a Tech Tool Pro disc--it doesn't appear in the Finder. When I try to reboot or log out, it times out and I have to use the power button. Installation

  • How do I import photos from my laptop to iPad air?

    How do I import photos from my laptop to my iPad Air ?

  • Deprecated API, pls help

    ARRRRGH! pls Help! import java.applet.*; import java.awt.*; public class Project extends Applet { private int last_x, last_y; public boolean mouseDown(Event e, int x, int y) last_x = x; last_y = y; return true; public boolean mouseDrag(Event e, int x