Toplink app works without oc4j,fails with security excp. in oc4j[SOLVED]

OS: Windows XP
jdk version: 1.5.0.04 (installed normally with windows installer, no tampering)
JDeveloper version: 10.1.3.2.0 (base installation)
I'm new to JDeveloper and I'm working on SRDemo application from online ADF tutorial under JDeveloper. After 6th chapter I tried to run the app with embedded oc4j. After a login to app i got a toplink exception caused by a security exception. I've tried toplink part of the application with a standalone client it works without this strange problem. Also other toplink tutorials that i have work without oc4j.
The exception is this:
Note: some messages were in Turkish, so I (partly) translated them, they may not match original english messages
[TopLink Info]: 2007.07.06 10:52:31.312--ServerSession(29560314)--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--TopLink, sürüm: Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)
[TopLink Config]: 2007.07.06 10:52:31.328--ServerSession(29560314)--Connection(27524709)--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--connected(DatabaseLogin(
     platform=>Oracle10Platform
     user name=> "SRDEMO"
     data source url=> "jdbc:oracle:thin:@localhost:1521:XE"
[TopLink Severe]: 2007.07.06 10:52:31.343--ServerSession(29560314)--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--Local Exception Stack:
Exception[TOPLINK-7107] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.ValidationException
Exception message: Error in decrypting .....
Caused by: java.security.NoSuchAlgorithmException: Algorithm DES not available      at oracle.toplink.exceptions.ValidationException.errorDecryptingPassword(ValidationException.java:587)
     at oracle.toplink.internal.security.JCEEncryptor.decryptPassword(JCEEncryptor.java:94)
     at oracle.toplink.sessions.DatasourceLogin.prepareProperties(DatasourceLogin.java:296)
     at oracle.toplink.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:147)
     at oracle.toplink.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:197)
...(the stack goes on followed by below causes)
Caused by: java.security.NoSuchAlgorithmException: Algorithm DES not available
     at javax.crypto.SunJCE_b.a(DashoA12275)
     at javax.crypto.SecretKeyFactory.getInstance(DashoA12275)
     at oracle.toplink.internal.security.JCEEncryptor$Synergizer.getMultitasker(JCEEncryptor.java:104)
     at oracle.toplink.internal.security.JCEEncryptor.decryptPassword(JCEEncryptor.java:74)
     ... 117 more
Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: DES, provider: SunJCE, class: com.sun.crypto.provider.DESKeyFactory)
     at java.security.Provider$Service.newInstance(Provider.java:1155)
     at sun.security.jca.GetInstance.getInstance(GetInstance.java:220)
     ... 121 more
Caused by: java.lang.SecurityException: class "com.sun.crypto.provider.DESKeyFactory"'s signer information does not match signer information of other classes in the same package
     at java.lang.ClassLoader.checkCerts(ClassLoader.java:775)
     at java.lang.ClassLoader.preDefineClass(ClassLoader.java:487)
     at java.lang.ClassLoader.defineClass(ClassLoader.java:614)
     at oracle.classloader.PolicyClassLoader.defineClass(PolicyClassLoader.java:2241)
     at oracle.classloader.PolicyClassLoader.findLocalClass(PolicyClassLoader.java:1462)
     at oracle.classloader.SearchPolicy$FindLocal.getClass(SearchPolicy.java:167)
     at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
     at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1674)
     at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1635)
     at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1620)
     at java.security.Provider$Service.getImplClass(Provider.java:1172)
     at java.security.Provider$Service.newInstance(Provider.java:1129)
     ... 122 more
This happens when i run toplink project inside oc4j, with a normal java client outside oc4j it works.
The strange thing is the root cause of the problem (the exception complaining about signer) . If the root cause of this problem was really correct system wide, neither security code samples nor the standalone client that i tried would have worked.
Only similiar issue I've found on the net is a problem that occured under eclipse due to a bug in previous versions of jce, but it seems this is no longer an issue.
No one other than me seems to have this problem, so this implies a problem with my system, but the root exception about signer information (which is not correct) says there is something wrong with toplink/oc4j runtime or there is some subtle bug.
I am trying to download another jdk1.5 version to see if this is a subtle bug of java-1.5.0.04 and oc4j, but either sun servers or my isp has a problem because the download is in the order of bytes and fails all the time.
I think there can be a problem with the java2.policy file under oc4j config dir, but i don't know if it is really used and necessary or not.
I don't know much about oc4j config so i need some help to proceed. thanks in advance
Message was edited by:
identityunknown

Sorry, I tried something that I should have tried before posting, that gives another information about my problem.
when i use standalone oc4j using start_oc4j.bat under jdev/bin, I also get the same security exception stack (nothing deployed to server) during server initialization. the default java command in start_oc4j.bat is this:
OC4J_OPTS=
VM_OPTS=-XX:MaxPermSize=256m
JAVA_COMMAND="%JAVA_HOME%\bin\java.exe" %VM_OPTS% -jar oc4j.jar %OC4J_OPTS%
if I change the command to this:
OC4J_OPTS=
VM_OPTS=-XX:MaxPermSize=256m -Xbootclasspath/p:"%JAVA_HOME%\jre\lib\ext\sunjce_provider.jar"
JAVA_COMMAND="%JAVA_HOME%\bin\java.exe" %VM_OPTS% -jar oc4j.jar %OC4J_OPTS%
and put sunjce_provider.jar on boot classpath I don't get that exception and oc4j initializes normally. My new questions are:
1. what is the reason for this behavior
2. how can I specify boot classpath option for embedded oc4j and/or JDeveloper

Similar Messages

  • I live in an area with poor data reception. Will the Maps app work without internet access?

    I live in an area with poor data reception. Will the Maps app work without internet access?

    Google Maps
    Type in 'Ok maps' (no quotes) in the search and press enter
    It will download the map area shown on the screen for offline use

  • Fusion Apps web service call fails with error access denied (oracle.wsm.security.WSFunctionPermission)

    Hello Guru,
    I am trying to call a supplier service from SOA/OSB.
    But while calling the service it is failing with the below error message
    access denied (oracle.wsm.security.WSFunctionPermission http://xmlns.oracle.com/apps/prc/poz/suppliers/supplierService/SupplierService#getSupplierVO invoke)
    As per OER cookbook i have attached the "oracle/wss_username_token_client_policy" to the Fusion  apps web service.
    I am trying to pass security credentials to the service by using all the methods... through composite ..through bpel through wsse header but in all cases i am getting similar error.
    Please let me know if some one has called the fusion apps web service to create a supplier of solution to my problem  as mentioned above.

    Hi Sai,
        Thanks for the quick and correct response. Yes, after doing the research, I'm also came to same conclusion. But what stops me here is that where exactly I need to check for this permission.
    I mean the theory what I built on this Authorization/Permission is that:
       For the resource - WebService (SupplierService), there is an assigned application role for which the Entitlement/Permission is provided.
    Pls. help me in the below items:
    a. What is the application role(in role hierarchy) assigned to this resource(Webservice). Which page I need to check(navigation) this and the required credentials..
    b. What is the Entitlement provided for this application role for this operation (getSupplierVO) invoke.. Which page I need to check(navigation) this and the required credentials..
    Thanks in Advance.
    Thanks & Regards
    Madhu

  • ReportViewer & IReportServerCredentials WORKS within Domain; FAILS with Cross-Domain request:HTTP status 401: Unauthorized

    The IReportServerCredentials approach with the ReportViewer control is working fine within a domain, but I get a 401 not authorized error for a Web IIS server trying to call a SSRS server in another domain. I've see plenty of helpful postings on the use
    of IReportServerCredentials but nothing that provides suggestions for this cross domain issue. Hope someone has some ideas on this one. Thanking you in advance for your response.
    Using VS 2008 VB.NET web app with ReportViewer control Version=8.0.0.0.
    Outside domainA Web Server IIS 8. OS = Windows NT 6.2;
    Inside domainA Windows 7 desktop; Inside domainA Windows Server 2003
    SSRS using windows authentication and on SQL Server 2012. OS = Windows NT 6.2
    The processing described below successfully produces a report when the web server app runs on a machine in the same domain as the SSRS server. For the "same domain" web app, both Win 7 desktop VS 2008 development server and Windows 2003 IIS 6 have
    been tested successfully.
    The report fails with error "The request failed with HTTP status 401: not authorized " when the web app is run from a windows IIS 8 machine (outward or Internet facing web server) that is not in the domain of the SSRS server. The ReportViewer control
    credentials (provided by IReportServerCredentials and taken from the web.config file) match a domain account in the same domain as the SSRS
    server and one that has browser permission on the report folder. The same credentials are used successfully for reports requested from within the SSRS domain.
    One interesting thing is that on the Internet facing web server, I can access the report via a browser request. So it is possible to have a user request coming from the Internet facing machine get through the SSRS windows authentication. Just does not
    work for the ReportViewer.
    Using IReportServerCredentials interface per example provided by Microsoft msdn site. Code listed below.
    IReportServerCredentials would appear to be a viable approach because it can pass credentials of a windows account known to the SSRS server, but not known to the client machine. By the way, database calls to SQL Server in domainA using a SQL Server
    native login account work fine. So the network support communication to a domain that the web server does not belong to.
    <Serializable()> _
    Public NotInheritable Class MyReportServerCredentials
        Implements IReportServerCredentials
        Public ReadOnly Property ImpersonationUser() As System.Security.Principal.WindowsIdentity _
            Implements IReportServerCredentials.ImpersonationUser
            Get
                'Use the default windows user.  Credentials will be
                'provided by the NetworkCredentials property.
                Return Nothing
            End Get
        End Property
        Public ReadOnly Property NetworkCredentials() As ICredentials _
                Implements IReportServerCredentials.NetworkCredentials
            Get
                'Read the user information from the web.config file. 
                'By reading the information on demand instead of storing
                'it, the credentials will not be stored in session,
                'reducing the vulnerable surface area to the web.config
                'file, which can be secured with an ACL.
                'User name
                Dim userName As String = _
                    ConfigurationManager.AppSettings("MyReportViewerUser")
                If (String.IsNullOrEmpty(userName)) Then
                    Throw New Exception("Missing user name from web.config file")
                End If
                'Password
                Dim password As String = _
                    ConfigurationManager.AppSettings("MyReportViewerPassword")
                If (String.IsNullOrEmpty(password)) Then
                    Throw New Exception("Missing password from web.config file")
                End If
                'Domain
                Dim domain As String = _
                    ConfigurationManager.AppSettings("MyReportViewerDomain")
                If (String.IsNullOrEmpty(domain)) Then
                    Throw New Exception("Missing domain from web.config file")
                End If
                Return New NetworkCredential(userName, password, domain)
            End Get
        End Property
        Public Function GetFormsCredentials(ByRef authCookie As Cookie, _
                       ByRef userName As String, _
                       ByRef password As String, _
                       ByRef authority As String) As Boolean _
            Implements IReportServerCredentials.GetFormsCredentials
            authCookie = Nothing
            userName = Nothing
            password = Nothing
            authority = Nothing
            'Not using form credentials
            Return False
        End Function
    End Class
    'Set the ReportViewer values and retrieve the report from the SSRS server into a pdf file on the client machine.
    ProposalRptViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote
    ' Set the ReportViewer ReportServerCredentials from the MyReportServerCredentials Class.
    ' Note the credentials are for a domain account defined in the same domain that the SSRS server belongs to and one that has browser permission on the report folder.
    ProposalRptViewer.ServerReport.ReportServerCredentials = _
         New MyReportServerCredentials()
    ProposalRptViewer.ServerReport.ReportServerUrl = New Uri(System.Configuration.ConfigurationManager.AppSettings(Web.[Global].CfgKeyReportServerURL))
    ProposalRptViewer.ServerReport.ReportPath = System.Configuration.ConfigurationManager.AppSettings(Web.[Global].CfgKeyReportPathProposal)
    ProposalRptViewer.ShowCredentialPrompts = False     ' disable prompting for data source credentials
    Dim paramList As New Generic.List(Of ReportParameter)
    Dim pInfo As ReportParameterInfoCollection
    pInfo = ProposalRptViewer.ServerReport.GetParameters()
    paramList.Add(New ReportParameter("ProposalID", ProposalID, True))paramList.Add(New ReportParameter("Entity", Entity, True))
    paramList.Add(New ReportParameter("intRatesPage", intRatesPage1, True))
    ProposalRptViewer.ServerReport.SetParameters(paramList)
    ' Process and render the report
    ProposalRptViewer.ServerReport.Refresh()
    Dim mimeType As String = Nothing
    Dim encoding As String = Nothing
    Dim streams As String() = Nothing
    Dim extension As String = Nothing
    Dim warnings As Microsoft.Reporting.WebForms.Warning() = Nothing
    Dim returnValue As Byte()
    ' Render the proposal Rate Page 1 report to a Byte Array output in pdf file format.
    returnValue = ProposalRptViewer.ServerReport.Render("PDF", Nothing, mimeType, encoding, extension, streams, warnings)
    An error only occurs for web server not in the domain of SSRS Server:
    The request failed with HTTP status 401: Unauthorized.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack
    trace below.
    Stack Trace:
    [WebException: The request failed with HTTP status 401: Unauthorized.]
       Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.GetSecureMethods() +236
       Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.IsSecureMethod(String methodname) +58
       Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.SetConnectionSSLForMethod(String methodname) +16
       Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String Report, String HistoryID) +226
       Microsoft.Reporting.WebForms.ServerReport.GetExecutionInfo() +192
       Microsoft.Reporting.WebForms.ServerReport.SetParameters(IEnumerable`1 parameters) +136
       DeltaRater.Web.ViewRates.btnCreateProposal_Click(Object sender, EventArgs e) in C:\alex\~~_____Rapid_Rater\SourceDir_VS2008_Jan17_2014\DRR\ViewRates.aspx.vb:911
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +115
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +140
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981
    Version Information: Microsoft .NET Framework Version:2.0.50727.8009; ASP.NET Version:2.0.50727.8010

    I got the answer to my question by following suggestions by Irb on another technical forum.
    From web server (not on same domain), I was passing credentials of a domain account on the SSRS server. Irb suggested I create a local account on the SSRS server and pass those credentials. I tried this but got the same results.
    This approach worked for web server in SSRS domain, but failed with 401 Unauthorized for web server outside the SSRS domain. Per suggestion for local account on SSRS server, I tried passing empty string "" as the domain via IReportServerCredentials.
    Again this works for web server in the same domain as SSRS. But I get the 401 Unauthorized error when the web server is outside the domain. In testing and checking similar posts, I discovered an additional piece was required for the report request to work
    across domains. The default user did not have authority to send the request and/or receive the report. Adding the following in <system.web> section of web.config file was needed.
    <identity impersonate="true" userName="localwindowsuser" password="#########"/>          where "localwindowsuser" is a windows user defined on the web server.
    I never needed this extra piece when the web server ran in the same domain as the SSRS server. I thank Irb for making me go through the details of additional tests because that is how I stumbled across an identity comment and ultimately got things working.

  • Can't reconnect to sync from work - firefox login fails with "Incorrect password" when I know it is correct

    I can happily connect my home computers and phone to sync and I have confirmed they sync between themselves. However, my work computer has recently stopped being able to sync where it has previously been fine for well over a year. I am on the latest version of sync and Firefox 35.0.1 (both at home and work).
    When I try to reconnect to sync I am directed to the "Sign in to continue" page. It has my correct email address/account name. I enter my password (clicking "Show" to make sure it's correct) but then it always fails with "Incorrect password" in a red banner at the top. I have checked the password is correct and logged out and back in from home using the same password so I know that is correct. I have tried this logged in to work via remote desktop so I could do both at the same time to make sure there isn't just a prevailing sync server problem.
    Obviously my work computer is behind a proxy/firewall. I have recently had to add a new certificate as a result of proxy changes to get internet connectivity working. Anecdotally, I think sync stopped working at a similar time - but it's always easy to remember these things differently when you're looking for a solution. So this could be a red herring.
    Your help in getting this fixed would be much appreciated!

    Thanks for your reply.
    i've deleted all cookies, although I don't really understand how that relates. I have also spoken to our sysadmin who says we don't block access to firefox accounts per se, we do block all file-esque uploads. However, I am not sure this would make any difference to the exact problem I am seeing which is that I can't sign in to my firefox sync account. But maybe signing in to this account is different to a "normal" account - maybe there is more of a two way handshake which relies on sending some encrypted data which appears to our proxy like a file being uploaded out of the company.
    I got a slightly different error on my latest clear down and retry, in that the sign in just waited forever (overnight) without success.
    Any further help gratefully received...

  • WiFi - no online apps work in hotspots even with wifi symbol on

    Hi. I can connect and use my home wifi with online apps but at hotspots, even with open networks, I get the wifi on symbol but nothing loads in any online app (incl. safari). Any ideas?
    Thanks.

    1, not all hotspots are really free.
    2, Most require you to accept terms and conditions (thus always try safari first).
    If safari doesn't bring you to a terms and conditions page when you try to go somewhere then good chance the spot really isn't free for all.
    Once you find a spot that does allow you to accept terms (or Safari just works) then apps will work with the WiFi...you just need to always check safari first.

  • CUCM 8.6.1 Refresh upgrade to 10.5 fails with Internal Error (Function: ipmReadNormalizedInputLine) [SOLVED]

    Hi,
    we are upgrading our CUCM 8.6.1 to 10.5.1 on VMWare Enviroment (vSphere 5.5 running on UCS). 
    We are running this upgrade in a sandbox, in order to avoid any problem in the production cluster.
    We followed the refresh upgrade guide ( http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/upgrade/10_0_1/CUCM_BK_U4214F9D_00_upgrade-guide-cucm-100.pdf)
    Pre-configuration steps
    Take a clone of the running publisher and put it in the sandbox
    Remove DNS servers (they are not available in the sandbox)
    Change the NTP Server with a ntp that is recheable from the sandbox
    Check that Gateway and NTP connectivity are OK for the CUCM
    Pre-upgrade:
    Run the cop files to update keys and increase disk space (log partition is 80% full)
    Shutdown the CUCM VM and
    Increase disk space on the VM configuration
    change VM OS from RedHat5 (32bit) to RedHat 6  (64bits)
    change VM nic from flexible to VMNIX3
    Restart the VM
    Upgrade
    1. mount the iso
    2. connect to OS Administration web interface and perform the Software installation from CD/DVD
    3. upgrade process works fine up to the post-installation task
    During post-installation tasks (after completing the DB Load and Transforming Copy) the Upgrade process always fails fails with an internal error
    IPM|Internal Error, File:ipm.c:2011, Function: ipmReadNormalizedInputLine(), "/usr/local/cm/script/cm-dbl-install RU PostInstall 10.5.1.10000-7 8.6.1.21019-1 /usr/local/cm/ /common/component/database /common/log/install/capture.txt " failed (1)|<LVL::Critical>
    IPM|  end-of-session "Installing database component": 1109.369 secs.|<LVL::Info>
    IPM|Close progress meter "Component Install"|<LVL::Info>
    We also tried the intermediate steps:
    - upgrade from 8.6.1 to 9.1 : worked
    - from 9.1 to 10.5: Failed with the same error
    - from 9.1 to 10.1: Failed with the same error
    any help will be greatly appreciated, thanks
    Stefano

    Issue was related to Dial Plans, the logs showed
    16:45:46.204 |   DBUtil::BlockCopyTable ### *ERROR* ###:  (diagnosis):  Bulk Data Migration for table availdialplan failed due to data constraint issue, (-971).
    16:45:46.611 |   DBUtil::BlockCopyTable *
    16:46:16.555 |*ERROR* Error fetching column information: [Informix][Informix ODBC Driver][Informix]Could not position within a table (informix.systables).
    16:46:16.588 |   DataConverter_5to6::CopyTables *ERROR* BlockCopyTable failed to process table (availdialplan)
    16:47:52.395 |   installFull *ERROR* Prior Cancel or Error Processing convert5to6()
    Cisco TAC fixed by updating the primary key in the DB.
    After the fix we were able to perform the RU as expected.

  • Silverlight app in Lync CWE fails with "Client not trusted", despite being added to trusted sites

    We're trying to get a silverlight app up and running in a Lync 2013 CWE. We have a Lync 2010 server on it's own domain, which is not the same domain as the 2013 client machine. Clients on the different domains communicate perfectly.
    The silverlight app is hosted on our own webserver, which is in the same domain as the 2013 client machine. We tried hosting it on the other domain, with the same result.
    YES, we've added the domain to our trusted sites in registry, but still we get the exception.
    The line that fails:
     _conversation = (Conversation)LyncClient.GetHostingConversation();
    How to get the app to work in our client?

    Please check “How to: Install a CWE application in Lync SDK” at
     http://msdn.microsoft.com/en-us/library/office/jj933101.aspx
    As the problem is related with Lync client development, please post your question in the following forum:
    http://social.msdn.microsoft.com/Forums/lync/en-US/home?forum=communicatorsdk
    Lisa Zheng
    TechNet Community Support

  • How do you make a stand-alone app work without seeing a command window...

    I'm new to Java so please forgive the very basic question I'm asking. All the apps I've learned how to make so far cause a command window to appear along with the GUI. How do you keep the command window from showing up?

    java ExampleApp
    I just discovered using the search for this site. I should know better than to make a post without first using the forum's search. It's just that I had been searching the java tutorials already to no avail as well as using a search engine.
    According to the forum here, people have said that you need to create a .jar file. I'll need to look into the specifics. Sounds a bit confusing at first. There was also mention of starting the app like so:
    javaw ExampleApp
    I'll go try that now! Any other suggestions you may have will be appreciated!
    Thanks,
    Darren

  • Directly printing works - but viewer fails with an error

    Hey,
    we are using: Crystal Reports 2011 and runtime for VS2010.
    I open and print my reports via c#. The directly printing works fine. But the viewer don't works. It's really crazy, because directly printing and viewing are using the same methods for database login etc.
    At preview a form with the crystalreportsviewer will be opened and the reportsource is being set. After that the viewer shows the progress box. After a short while the progress box disappears and the following error is shown:
    Crystal Report Windows Forms Viewer
    Die Abfragen zum Abrufen der für diesen Bericht erforderlichen Daten können nicht ermittelt werden.
    Daten konnten nicht aus Datenbank abgerufen werden.
    Fehler in der Datei CS_201001_u {5BF5FF1B-C662-4A1E-80CA-B4BEB0124295}.rpt:
    Daten konnten nicht aus Datenbank abgerufen werden.
    OK  
    Translated in english:
    Crystal Report Windows Forms Viewer
    The queries to retrieve the required data for this report can not be determined.
    Fehler in der Datei CS_201001_u {5BF5FF1B-C662-4A1E-80CA-B4BEB0124295}.rpt:
    Data could not be retrieved from database.
    OK  
    But the database logon methods etc. are all the same as at directly printing. What could it be?
                this.crystalReportViewer.ShowPrintButton = false;
                this.crystalReportViewer.ReportSource = pMainCRWReport;
                this.crystalReportViewer.ShowProgressAnimation(this._DruckOptionen.ShowDruckstatus);
                if (pPreviewOptions.Zoomlevel == 1 || pPreviewOptions.Zoomlevel == 2 ||
                    (pPreviewOptions.Zoomlevel >= 25 && pPreviewOptions.Zoomlevel <= 400))
                    this.crystalReportViewer.Zoom(pPreviewOptions.Zoomlevel);
                                pMainCRWReport.PrintToPrinter(pReport.Druckoptionen.AnzahlKopien,
                                                              pReport.Druckoptionen.KopieSeitenSortiert,
                                                              pReport.Druckoptionen.StartPage,
                                                              pReport.Druckoptionen.EndPage);
    pMainCRWReport is ReportDocument.

    Yes, it looks like that. I don't use postbacks or sessions.
    I have inserted the following code just before the ReportSource of the viewer will be set.
    ReportDocument doc = (ReportDocument)pMainCRWReport;
    foreach (Table table in doc.Database.Tables)
           MessageBox.Show(string.Format("{0}: {1}", table.Name, table.TestConnectivity().ToString()));
    All TestConnectivity returning true!
    CrystalDecisions.CrystalReports.Engine.InternalException: Daten konnten nicht aus Datenbank abgerufen werden.
    Details:  Datenbankanbietercode: -243
    Daten konnten nicht aus Datenbank abgerufen werden.
    Fehler in der Datei CS_201001_u {870C483C-D947-4FEA-A1C6-1AD0DC4A2805}.rpt:
    Daten konnten nicht aus Datenbank abgerufen werden.
    Details:  Datenbankanbietercode: -243 ---> System.Runtime.InteropServices.COMException (0x800002D3): Daten konnten nicht aus Datenbank abgerufen werden.
    Details:  Datenbankanbietercode: -243
    Daten konnten nicht aus Datenbank abgerufen werden.
    Fehler in der Datei CS_201001_u {870C483C-D947-4FEA-A1C6-1AD0DC4A2805}.rpt:
    Daten konnten nicht aus Datenbank abgerufen werden.
    Details:  Datenbankanbietercode: -243
       bei CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.GetPage(PageRequestContext pPageRequestContext)
       bei CrystalDecisions.ReportSource.EromReportSourceBase.GetPage(PageRequestContext pageReqContext)
       --- Ende der internen Ausnahmestapelüberwachung ---
       bei CrystalDecisions.Windows.Forms.ReportDocumentBase.GetPage(Int32 pageN)
       bei CrystalDecisions.Windows.Forms.DocumentControl.ShowNthPage(Int32 PageNumber)
       bei CrystalDecisions.Windows.Forms.DocumentControl.ShowFirstPage()
       bei CrystalDecisions.Windows.Forms.PageView.ShowFirstPageEx()/
    OK  
    The error -243 is an informix error:
    Could not position within a table table-name.
    The database server cannot set the file position to a particular row within the file that represents a table. Check the accompanying ISAM error code for more information. A hardware error might have occurred, or the table or index might have been corrupted (truncated). Unless the ISAM error code or an operating-system message points to another cause, run the oncheck utility (secheck with IBM Informix SE or tbcheck with IBM Informix OnLine) to check and repair table and index.
    It seems to be that the viewer can't read the records with are locked within a transaction. I don't understand why the direct printing works. Is it possible to set the ISOLATION LEVEL for the report database connections?
    I have tried this note but it don't works.

  • Maps app works without connection????

    I'm sure there must be a reasonable explanation for this but I'm stumped. Yesterday my girlfriend got some directions using the Maps app while at home so she could flick through the route on the road. But as we were driving the marker showing our current position kept moving along the route with us. It even followed us when we went off the route. The iPod wasn't connected to any wifi source so how can this be possible? Any ideas?

    see this discussion: http://discussions.apple.com/thread.jspa?messageID=11548895&#11548895.
    JGG

  • Uploading app package keeps on failing with : Connection interrupted, trying to reconnect

    For almost a week now I have suffered this error.
    The package is rather large (12MB) yet, I successfully uploaded larger files to youtube yesterday so, it can't be my internet connection.
    Any solutions ?
    Can we upload packages another way ? through dropbox for example and then import it ?

    Hey Mostafa,
    Thank you for the question. The only was to submit an app for certification is through your developer dashboard, so the dropbox idea is not feasible. I believe this could stem from your internet provider, or your system itself, but I could not guess beyond
    that as it is all system/case specific. 
    If possible, try the steps below and let us know what your results are. 
    Attempt the upload from a different internet connection
    Attempt the upload from a different system.
    Make sure your are using Internet Explorer 9 or higher.(It is not required, but our tools are designed for that browser)
    Clear your system cache, and restart
    I am sorry you are having problems with the upload. No system concerns on our end, so I hope these steps prove fruitful for you. Thanks again for the post!
    - Robert

  • How to install app-package without developer license (With SideLoading product key)

    Hi, we have obtained a sideloading product key. We would like to distribute the app without using Windows
    Store Apps. However when we try to run the app, we are required to join a domain. Is it possible to install and run the app using sideloading but without joining a domain?

    Hi Tonberry89,
    If you are creating the app package in Visual Studio, kindly follow the instructions as mentioned in following link.
    Developer sideloading Windows Store apps
    https://msdn.microsoft.com/en-us/library/windows/apps/dn832613.aspx
    For more advanced information about side loading and developer questions, as Darrell Gorter’s suggestion you might get more help in MSDN forum.
    https://social.msdn.microsoft.com/Forums/en-US/home
    Thanks for your cooperation and understanding.
    Regards
    D. Wu

  • My AppleTV ver 2 recently stopped working and Restore fails with error 9, help!

    I have tried three different cables, two different computers, one Mac and one windows. Mac is primary and I have the latest OS and iTunes.  I have tried downloading the file and option clicking so I can navigate to the downloaded file. Obviously iTunes is seeing the Apple TV. Somewhere it was suggested that to try the Apple TV even though the computer showed and error on the restore and I did but tv only showed the iTunes symbol and a connection cable.
    I was going to make an appointment at the Tucson Applestore but there is no option for Apple TV for scheduling a Genius appointment.

    When it is connected via your microUSB cable to your computer with iTunes running,press the Menu and the Down buttons simultaneously until the light flashes on the ATV - this will put the ATV in DFU mode and will appear in iTunes - then go for a Restore.

  • Client app to consume web service with security

    I need to write a simple client to access a WS.
    Things I can not do
    Modify the server
    Add external jars
    The client will be part of a command line call and will run as a stand alone.
    I've been searching all day and have found hundreds of vague, overly complex examples, mostly based on SOAPHandler (which tells me I need to install server components which I cannot do)
    I grasp the general requirements but am having difficulty figuring out how to add the security elements to the header.
    What do I need to do to add the username and password tokens to the header?
    This is where I am so far.
    package findingLetter;
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.util.ArrayList;
    import java.util.List;
    import javax.xml.namespace.QName;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPBodyElement;
    import javax.xml.soap.SOAPConnection;
    import javax.xml.soap.SOAPConnectionFactory;
    import javax.xml.soap.SOAPElement;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPException;
    import javax.xml.soap.SOAPHeader;
    import javax.xml.soap.SOAPMessage;
    public class getPOC {
        public getPOC() {
            super();
        public List<String> lookup(String lenderid, String url, String user, String pw) throws SOAPException {
            List<String> contactInfo = new ArrayList<String>();
            SOAPMessage message = MessageFactory.newInstance().createMessage();
            SOAPHeader header = message.getSOAPHeader();
            header.detachNode();
            SOAPEnvelope envelope = message.getSOAPPart().getEnvelope();
            envelope.setAttribute("namespace","http://www.siebel.com/xml/FHA%20Lender%20Summary%20Request%20IO");
            SOAPBody body = message.getSOAPBody();
            QName bodyName = new QName("LenderSummaryRequestIo");
            SOAPBodyElement bodyElement = body.addBodyElement(bodyName);
            SOAPElement symbol = bodyElement.addChildElement("Institution");
            symbol.addTextNode(lenderid);
            SOAPConnection connection = SOAPConnectionFactory.newInstance().createConnection();
            SOAPMessage response = connection.call(message, url);
            connection.close();
                    SOAPBody responseBody = response.getSOAPBody();
                    SOAPBodyElement responseElement = (SOAPBodyElement)responseBody.getChildElements().next();
                    SOAPElement returnElement = (SOAPElement)responseElement.getChildElements().next();
                    if(responseBody.getFault()!=null){
                        System.out.println(returnElement.getValue()+" "+responseBody.getFault().getFaultString());
                    } else {
                        System.out.println(returnElement.getValue());
                    try {
                        System.out.println(getXmlFromSOAPMessage(message));
                        System.out.println(getXmlFromSOAPMessage(response));
                    } catch (IOException e) {
                        e.printStackTrace();
            return contactInfo;
        private static String getXmlFromSOAPMessage(SOAPMessage msg) throws SOAPException, IOException {
            ByteArrayOutputStream byteArrayOS = new ByteArrayOutputStream();
            msg.writeTo(byteArrayOS);
            return new String(byteArrayOS.toByteArray());

    Below is the code to add security header.
    public List<String> lookup(String lenderid, String url, String user, String pw) throws SOAPException { 
          SOAPHeader header = message.getSOAPHeader();
               if (header == null) {
                     header = envelope.addHeader();
                SOAPElement headerElement = createSecurityHeader(uName, pWord);
                soapHeader.addChildElement(headerElement);.................
    private static SOAPElement createSecurityHeader(String uName,String pWord) throws SOAPException {
           SOAPElement UsernameToken = null;
           SOAPFactory sFactory = SOAPFactory.newInstance();
           UsernameToken = sFactory.createElement("wsse:UsernameToken", "", WS);
           SOAPElement Username = sFactory.createElement("wsse:Username","", WS);
           Username.setValue(uName);
           UsernameToken.addChildElement(Username);
           SOAPElement Password = sFactory.createElement("wsse:Password","",WS);
           Password.setValue(pWord);
           QName qname = new QName("","Type");
           Password.addAttribute(qname,"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText");
           UsernameToken.addChildElement(Password);
           SOAPElement wsseSecurity = sFactory.createElement("wsse:Security","",WS);
           wsseSecurity.addChildElement(UsernameToken);
          return wsseSecurity;

Maybe you are looking for

  • Switching back to Mail from Outlook (for Mac)

    I've had my Mac for only about 8 months now and was happy with Apple Mail - at first. Then I got a hold of MS Outlook 2011 (for Mac) and switched. Now, with the impending revamping of Mail with Mac OS X Lion, I want to switch back to Mail but there d

  • Simple Flash Navigation Question

    Hi - great to see all these thoughts and comments.  I am making some good headway with AS3 but I'm stuck at the moment trying something really simple:  I want to load the home.swf when the site first loads.   I am using this script for my buttons and

  • Syncing photos on my ipad mini

    Please could someone explain the following? "unable to sync photos because you do not have write access to the folder "Pictures" ? This message came up after trying to sync my new ipad mini, i've never had a problem before & i've been an Apple user f

  • Why are my files exporting so small? (15 mb RAW files exporting to 2 mb JPEG)

    I'm trying to export RAW files into JPEG for a client and haven't experienced this issue before. I shot on large format RAW and original files are around 15 mb. When I export them in lightroom they end up around 2 mb. I know that I can still print la

  • Configuring Listen Address for a machine / node manager

    Hi, If I give the localhost as value for the Listen Address for the machine (and this the Node Manager), I can start/stop any managed server belonging to the domain and related machine. When I change this address to the value of the IP address I get