Graphics Component runs ok in NT but fails in Linux

          Hello,
          I am using Graphics Component thats runs ok in weblogic NT environment but fails
          in weblogic Linux environment. Following is the error:
          java.lang.InternalError: Can't connect to X11 window server using ':1' as the
          value of the DISPLAY variable.
               at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
               at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:59)
               at java.lang.Class.forName0(Native Method)
               at java.lang.Class.forName(Class.java:120)
               at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
               at java.awt.Window.<init>(Window.java:186)
               at java.awt.Frame.<init>(Frame.java:315)
               at java.awt.Frame.<init>(Frame.java:262)
               at javaside.Rbl.jspImage.init(jspImage.java:33)
               at jsp_servlet._graphs._jspService(_graphs.java:246)
               at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
               at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:213)
               at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:246)
               at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1265)
               at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1631)
               at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
               at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
          Please Help!
          Thanks,
          Shishir.
          

First, you'll need to make sure you're running an X server. I don't know
          the exact name of the X server, but it's likely running if you have one of
          the desktop managers.
          Next, try changing the DISPLAY environment variable. Try different
          variations:
          DISPLAY=localhost:0.0
          DISPLAY=localhost:0
          DISPLAY=my.ip.add.rr:0.0
          DISPLAY=my.ip.add.rr:0
          This env variable needs to be set when starting up WebLogic - usually in
          your startWebLogic.sh script.
          Hope this helps - feel free to email if you have questions.
          Thanks
          Rob
          "Shishir Kumar" <> wrote in message news:[email protected]...
          >
          > Hello,
          >
          > I am using Graphics Component thats runs ok in weblogic NT environment but
          fails
          > in weblogic Linux environment. Following is the error:
          >
          > java.lang.InternalError: Can't connect to X11 window server using ':1' as
          the
          > value of the DISPLAY variable.
          > at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
          > at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:59)
          > at java.lang.Class.forName0(Native Method)
          > at java.lang.Class.forName(Class.java:120)
          > at
          java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment
          .java:58)
          > at java.awt.Window.<init>(Window.java:186)
          > at java.awt.Frame.<init>(Frame.java:315)
          > at java.awt.Frame.<init>(Frame.java:262)
          > at javaside.Rbl.jspImage.init(jspImage.java:33)
          > at jsp_servlet._graphs._jspService(_graphs.java:246)
          > at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
          > at
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
          :213)
          > at
          weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
          :246)
          > at
          weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
          ntext.java:1265)
          > at
          weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
          :1631)
          > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
          > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
          >
          >
          > Please Help!
          >
          > Thanks,
          >
          > Shishir.
          >
          

Similar Messages

  • Test cases runs correctly on IDE but fails on the test runner

    Hi Guys,
    I have a test case here that works fine on my Mars IDE with RCPTT but fails when I run it via the Maven plugin on the same machine.
    The summary of the test case here is that it auto-generates some java files based on changes done to a DSL type language. You will see that there is a Generator project there that does this. Any changes to the type file will trigger the java file to be regenerated with whatever was defined in the Generator project. On the IDE it all works but when it's run via the test runner, it always fails for some reason.
    One interesting thing to note there is if that test case is run first, it does not fail. I initially suspected that the previous test case might have done something to the AUT workspace/environment but it's difficult to prove. The test case in question does have contexts to clear the workspace and to add projects as well as a context for setting the preferences. I did try removing all the contexts except for the workspace context that contains the project that it needs but the execution result is still the same. If I manually ran the same AUT (extracted somewhere else) with the generated test-runner aut workspace right after and made some changes to the type file, the java files are generated correctly.
    So the problem now is, we're not sure what the test runner is doing differently with the RCPTT IDE in this case. It would seem like the test runner is preventing the AUT from generating the files or there might be an error that prevents the generation from happening.
    I've attached the results folder from the test runner execution and the log file from the from the runner-workspace folder.
    cheers!
    Joseph

    Hi Folks,
    We've found out the cause of the problem and have found out that this is not entirely RCPTT related. Apologies for the disturbance. Marking this as a non-issue.
    cheers!
    Joseph

  • Stored procedure runs OK from SSMS but fails from job scheduler

    I have a stored procedure that queries the sysmanagement_shared_registered_servers_internal table in MSDB and performs various other queries from the servers listed in that table via linked servers.  I have created a login called SQLInfo_user. When
    I run the stored procedure from SSMS with the connection as SQLInfo_user, everything works as designed. However, when I run the job from the job scheduler with SQLInfo_user as the "run as user" parameter, it fails with "Executed as user: SQLInfo_user.
    The SELECT permission was denied on the object 'sysmanagement_shared_registered_servers_internal', database 'msdb', schema 'dbo'. [SQLSTATE 42000] (Error 229).  The step failed."  The login SQLInfo_user has full read and select permissions to
    that table in the MSDB database.  Any suggestions?  Thanks

    Try instead of  "run as user", make that user owner of job. Also, make sure your that user is in linked server for servers that you are connecting has equivalent user on the the destination servers. 
    Best Wishes, Arbi; Please vote if you find this posting was helpful or Mark it as answered.

  • Stored procedure runs fine from SSMS but fails when called from the C# app

    I'm using SS Express 2012 so I doubt I have all possible debugging capabilities at my disposal, although I'm still trying to figure this out myself.
    The compiled C# application has logging to insure that the the SP is being invoked, the appropriate line of code is  definitely being reached. The logging always reports 'success' suggesting that the SP was successfully executed (and no exception is thrown
    to the C# app), but the indexes aren't getting rebuilt (I have a fragmentation query proving they are not rebuilt). Yet it runs successfully if I
        (1) set a breakpoint in the C# app and step through the code line by line OR
        (2) run the SP from the SSMS GUI.
    The fragmentation query confirms sucess for both 1 and 2.
    -I can't rely on the GUI because I want to run this overnight immediately after the C# app is finished inserting new records.
    - The SP loops through all the tables, and all the indexes in each table, checking for fragmentation and rebuilding any indexes over 7% fragmented.
    ALTER Procedure [dbo].[usp_RebuildIndexes]
    AS
    Declare @fetch_TableName NVARCHAR(256)
    DECLARE Cursor_Tables CURSOR FOR
    SELECT Name FROM sysobjects WHERE xtype ='U'
    OPEN Cursor_Tables
    While 1 = 1 -- Begin to Loop through all tables
    BEGIN
    FETCH NEXT FROM Cursor_Tables INTO @fetch_TableName -- fetches the next table
    if @@FETCH_STATUS <> 0 break
    print '---------' + @fetch_TableName
    Declare @fetch_indexName NVARCHAR(256) -- loops through al indexes of the current table
    DECLARE Cursor_Indexes CURSOR FOR -- Looking for indexes fragmented more than 7 percent.
    SELECT name as indexName
    FROM sys.dm_db_index_physical_stats (DB_ID(DB_Name()), OBJECT_ID(@fetch_TableName), NULL, NULL, NULL) AS a
    JOIN sys.indexes AS b ON a.object_id = b.object_id AND a.index_id = b.index_id
    Where Name is not null and avg_fragmentation_in_percent > 7
    OPEN Cursor_Indexes
    WHILE 1= 1 -- Begin to Loop through all Indexes
    BEGIN
    FETCH NEXT FROM [Cursor_Indexes] INTO @fetch_indexName
    if @@FETCH_STATUS <> 0 break
    Declare @SqL nvarchar(2000) = N'ALTER INDEX ' + @fetch_indexName + ' ON ' + DB_Name() + '.dbo.' + @fetch_TableName + ' Rebuild'
    print @Sql
    Begin TRy
    Execute sp_executeSQL @sql
    End Try
    Begin Catch
    Declare @err nvarchar(2000) = ERROR_MESSAGE();
    throw 51000, @err, 1
    End Catch
    End -- Ends looping through all indexes
    CLOSE [Cursor_Indexes]
    DEALLOCATE [Cursor_Indexes]
    End -- Ends looping through all tables
    CLOSE Cursor_Tables
    DEALLOCATE Cursor_Tables
    foreach (objDB DB in oUserPrefs.DBs) {
    report += DB.Real_Name;
    if (DB.cn == null) DB.cn = sqlCn(DB.Real_Name, SystemInformation.ComputerName);
    try {
    if (DB.cn.State != ConnectionState.Open) DB.cn.Open();
    } catch (Exception ex) {
    report += " - Failed because can't open a connection.\r\n";
    continue;
    DB.OpenedAConnection = true;
    DataTable dt = null;
    try {
    dt = oParam.fillDt("dbo.usp_RebuildIndexes", DB.cn, null);
    } catch (Exception ex) {
    report += " -failed because " + ex.Message + "\r\n\r\n";
    continue;
    report += " - success.\r\n";
    DB.LastTimeRebuiltIndexes = DateTime.Now;

    Your proc is a bit of a mess and hard to read. This should get you what you need though. I added a little logic in the middle that determines if the index should be reorged, or rebuilt.
    You were right that my script was too messy and I used your code/logic to rewrite mine. Thanks! I tried it this morning and it worked fine, but I will have to see how it runs overnight to be sure.
    Here's the weird thing. My original code should have worked. In fact I'm actually using it in 3 c-sharp apps each of which has 3 to 7  Express 2012 databases (about 10 million records per database). For about a month it's been working fine on two of the
    apps. Furthermore this morning I used a commercial file-comparison tool to verify that the 3rd app has been running an identical version of the SP. So I'm at a total loss as to what went wrong in the 3rd app.
    Here's my rewrite.
    Alter Procedure [dbo].[usp_RebuildIndexes]
    As
    Declare @Messages Table(Msg nvarchar(2000))
    Declare @IndexName nvarchar(256), @TableName NVARCHAR(256)
    DECLARE Cursor_Indexes CURSOR FAST_FORWARD FOR -- GEt a list of all indexes for all tables.
    select idxs.name as indexName, o.Name as TableName
    from sys.indexes idxs
    inner join sysobjects o on idxs.object_id = o.id
    inner join sys.dm_db_index_physical_stats (DB_ID(), NULL, NULL,NULL,NULL) as stats
    on stats.object_id = idxs.object_id and stats.index_id = idxs.index_id
    where xtype = 'u' and idxs.name is not null And avg_fragmentation_in_percent > 7
    OPEN Cursor_Indexes
    While 1 = 1
    BEGIN
    FETCH NEXT FROM Cursor_Indexes INTO @IndexName, @TableName
    if @@FETCH_STATUS <> 0 break
    Declare @SqL nvarchar(2000) = N'ALTER INDEX ' + @IndexName + ' ON ' + DB_Name() + '.dbo.' + @TableName + ' Rebuild'
    insert @Messages(Msg)VALUES(@sql)
    Execute sp_executeSQL @sql
    End
    CLOSE [Cursor_Indexes]
    DEALLOCATE [Cursor_Indexes]
    Select * From @Messages

  • Package Function Runs OK in Database but fails inside a Mapping

    Dear Forum,
    I am stuck with an Odd Problem. I have a package.function that calculates a value using another function PNV and uses this value to update a table named F_CONTAGENS. When I run the function in the database (using SQLDeveloper) the function calculates the value and updates the column NUM_PNV_2_ANOS in table F_CONTAGENS.
    No errors . But when I run the function inside an OWB Mapping, the function returns 'NULL' and do not update the table. What could be the problem?! The mapping that uses this function is very simple: Function is connected to an Auxiliar Table (with INSERT option) that receives the value returned by the function (in this case 1). Both function's package and the mapping were already deployed without errors to the database
    Here is the function I am using (COD_MES := 200702) :
    CURSOR C_CONT IS
    SELECT C.COD_USF,
    C.COD_MES
    FROM F_CONTAGENS C
    , STG_DATA_CARREGAMENTO STC
    WHERE C.COD_MES = STC.COD_MES
    AND ((C.COD_USF = STC.COD_CARREGAMENTO_USF AND STC.COD_CARREGAMENTO_USF IS NOT NULL) OR STC.COD_CARREGAMENTO_USF IS NULL);
    BEGIN
    FOR R_CONT IN C_CONT LOOP
    UPDATE F_CONTAGENS
    SET NUM_PNV_2_ANOS =
    (SELECT SUM(PNV)
    FROM (SELECT DECODE(F_PNV(COD_UTENTE,R_CONT.COD_USF,R_CONT.COD_MES,SUBSTR(R_CONT.COD_MES,1,4)), 'N', 0, 1) AS PNV
    FROM (SELECT DISTINCT COD_UTENTE
    FROM D_UTENTE
    WHERE DATA_NASC >= ADD_MONTHS(R_CONT.COD_MES||'01', -24)
    AND DATA_NASC <= ADD_MONTHS(last_day(R_CONT.COD_MES||'01'), -24)
    AND MES_UTENTE = R_CONT.COD_MES
    AND COD_USF = R_CONT.COD_USF))
    WHERE COD_USF = R_CONT.COD_USF
    AND COD_MES = R_CONT.COD_MES;
    COMMIT;
    END LOOP;
    RETURN 1;
    EXCEPTION
    WHEN OTHERS THEN
    NULL; -- enter any exception code here
    RETURN NULL;
    END;
    Is the OWB not synchronized with the DB? Does any of you alredy experienced this situation?
    Thank you very much for your attention,
    Pedro.

    HI Pedro,
    if your function returns null then some exception has occured.
    Do not catch the exception in your function, then you will see it when you run the mapping.
    Maybe you run the mapping using a different db user than when running it directly? In that case some grants will help.
    The exception will tell you the reason.
    Regards,
    Carsten.

  • App runs fine in simulator but fails on iPad

    My app has been running fine in the simulator environment but tried running for the first time on an iPad.  It loads the first screen (which is a table view) but if I try to do anything, including just scrolling the table, it crashes.  The Xcode organiser shows the following:
    >
    Aug 11 17:24:29 unknown UserEventAgent[12] <Notice>: jetsam: kernel termination snapshot being created
    Aug 11 17:24:29 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.apple.mobilephone[0xd6d9]) Exited: Killed: 9
    Aug 11 17:24:29 unknown SpringBoard[15] <Warning>: Application 'FaceTime' exited abnormally with signal 9: Killed: 9
    Aug 11 17:24:29 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.andion.TKD[0x6992]) Exited: Killed: 9
    Aug 11 17:24:29 unknown ReportCrash[1286] <Notice>: Saved crashreport to /Library/Logs/CrashReporter/LowMemory-2012-08-11-172429.plist using uid: 0 gid: 0, synthetic_euid: 0 egid: 0
    Aug 11 17:24:29 unknown SpringBoard[15] <Warning>: Application 'TKD' exited abnormally with signal 9: Killed: 9
    > >
    If I look in the crash logs in organiser all I can see is one from Safari dated weeks ago.  How do I find the log referred to in the message above?
    The app (TKD) is 16MB and the iPad reports 26GB available, so although there appears to be a reference to LowMemory, surely that isn't actually the problem?   Am I doing something which is impacting FaceTime and why is there a message about com.apple.mobilephone on an iPad?  Am I doing something horribly wrong?
    Any help much appreciated!

    'killed' typically means the app was unresponsive just long enough for the OS to take action.
    You should be able to see something in Xcode's console during debugging on the device.
    Ken

  • Simple Custom Identity Service running on windows OK, but not on linux, y?

    In <Oracle® BPEL Process Manager Developer's Guide 10g Release 2 (10.1.2)
    B14448-03>,
    Part III, 16<Oracle BPEL Process Manager Workflow
    Services, Identity Service, Creating a Custom Identity Service Plug-in>
    My pc, OS:windows 2003+BPEL PM Server10.1.2
    Server, OS:linux+ias+OC4J_BPEL, i can't make sure the version, may be:10.1.2
    In the Developer's Guide say:
    Identity Service has 3 provider:
    1, JAZN Provider
    2,Third-party LDAP Directories
    3,CUSTOM Repository LDAP-Based Plug-ins
    so i like the third one.
    1, i compile the project in Oracle_Home\integration\orabpel\samples\hw\isplugin\db.
    Then it create a jar file(IS-DBPlugin.jar) in Oracle_Home\integration\orabpel\system\services\lib
    2,Modify the provider config file: is_config.xml
    modify the config file: application.xml
    restart the Oracle BPEL server
    3,run the sql files it provider int the polsql.cmd
    OK, now the Identity Service work on Oracle lite database, it's my needs.
    add a user into the tables
    use the url:http://localhost:9700/integration/worklistapp/Login
    i can login the worklist service use my custom user and password.
    when the Identity Service use the JAZN Provider(XML), it's default choice.i add a user into the xml files, i mast restart my server if i want use the user login.
    use the database plugin,when i insert a user name into the tables,i can login the service use the username immediately.
    So i think it's easy to move it to my server(linux os). but when i copy the jar file to the folder,modify the config files,run ths sql files in the oracle database.
    but when i open the url :http://server_ip:port/integration/worklistapp/Login
    it can not work with a simple error message:Worklist service Identity Service error.
    in the log files i find some message like this :
    SOAP-ENV:Server.Exception
    BPEL-10551 can not load the Custom Identity Service Class:
    "IdentityServiceCustomPlugin.CustomIdentityService"
    it has wasted me one week time. and i can't find the reason now.
    who can help me ?
    thanks
    cnboy

    clemens,thanks.
    i'm sorry that my English is poor.so i can't understand you mean completely.
    you say it might be a linux jvm reason, can the metter be resolved?
    and you say extract the jar file .which files i would extract,can you say particular?
    thx!

  • Firefox "loads" but fails to display.

    After updating Firefox, the browser loads (it shows up as running in Task Manager) but fails to display on screen. In other words, it is completely unusable. I've uninstalled & reinstalled the program, without favorable results.

    It is possible that your security software (firewall, anti-virus) blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full, unrestricted, access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    *https://support.mozilla.org/kb/fix-problems-connecting-websites-after-updating

  • Im having trouble getting my macbook pro to boot up after a fail safe boot, im getting as far as the grey screen with the apple loggo. so im trying to run a disk repair but is saying the disk is locked, how do i unlock disk??

    Im having trouble getting my macbook pro to boot up after a fail safe boot, im getting as far as the grey screen with the apple loggo. so im trying to run a disk repair but is saying the disk is locked, how do i unlock disk??

    Some clarification may help.
    You say you cannot boot normally.  It shows a gray screen with the Apple logo.
    Did you say it will boot successfully in Safe Mode (boot, then hold down the Shift key)?
    How did you boot the machine to run Disk Utility?  (Which keyboard combinations)?

  • Unit test runs perfectly fine with NUnit but fails when run from TestExplorer

    Hello all,
    I have a TestProject, Harmony.Tests. In there, I have a method AddApplicationEvent()
    which calls another method Send(InvokeRequestMessage requestMessage) which calls a webservice (OperationHandlerBrokerWebService). 
    The code snippet looks like this. This is not the complete code but a part where we are calling the web service. It fails on the underlined Italic line of code.
    OperationHandlerBrokerWebService brokerService = new OperationHandlerBrokerWebService();
    brokerService.UseDefaultCredentials = true;
    brokerService.Url = address;
    brokerService.Timeout = timeoutInMilliseconds;
    byte[] serializedResponseMessage = brokerService.InvokeOperationHandler(serializedRequestMessage);
    The same test works and passed fine when I ran it with NUnit, but failed with following exception when I tried to run it from TestExplorer. 
    Test Name: AddApplicationEvent
    Test FullName: N4S.Harmony.Tests.CaseManagement.HarmonyFacadeTests.AddApplicationEvent
    Test Source: d:\TFS\TMW\Dev\TMWOnline\Harmony\N4S.Harmony.Tests\CaseManagement\HarmonyFacadeTests.cs : line 665
    Test Outcome: Failed
    Test Duration: 0:00:00.296
    Result Message:
    SetUp : Message returned System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Invalid token for impersonation - it cannot be duplicated.
    at System.Security.Principal.WindowsIdentity.CreateFromToken(IntPtr userToken)
    at System.Security.Principal.WindowsIdentity..ctor(SerializationInfo info)
    at System.Security.Principal.WindowsIdentity..ctor(SerializationInfo info, StreamingContext context)
    --- End of inner exception stack trace ---
    at System.RuntimeMethodHandle._SerializationInvoke(Object target, SignatureStruct& declaringTypeSig, SerializationInfo info, StreamingContext context)
    at System.Reflection.RuntimeConstructorInfo.SerializationInvoke(Object target, SerializationInfo info, StreamingContext context)
    at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context)
    at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder)
    at System.Runtime.Serialization.ObjectManager.DoFixups()
    at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
    at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
    at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream)
    at N4S.Forms.OperationHandlerBroker.AMessage.DeserializeMessage(Byte[] serializedMessage)
    at N4S.Forms.OperationHandlerBroker.WebServiceServer.BrokerService.InvokeOperationHandler(Byte[] serializedInvokeRequestMessage)
    --- End of inner exception stack trace ---
    expected: <0>
    but was: <1>
    Result StackTrace:
    at N4S.Harmony.Tests.TestHelper.InvokeOperation(OperationHandler handler, OperationHandlerInput input, Boolean expectedToWork) in d:\TFS\TMW\Dev\TMWOnline\Harmony\N4S.Harmony.Tests\TestHelper.cs:line 136
    at N4S.Harmony.Tests.TestHelper.LoginAsUser(String username, String password) in d:\TFS\TMW\Dev\TMWOnline\Harmony\N4S.Harmony.Tests\TestHelper.cs:line 394
    at N4S.Harmony.Tests.TestHelper.Login(TestUserName requestedUser) in d:\TFS\TMW\Dev\TMWOnline\Harmony\N4S.Harmony.Tests\TestHelper.cs:line 377
    at N4S.Harmony.Tests.TestHelper.LoginAsAdvisor() in d:\TFS\TMW\Dev\TMWOnline\Harmony\N4S.Harmony.Tests\TestHelper.cs:line 230
    at N4S.Harmony.Tests.CaseManagement.HarmonyFacadeTests.Login() in d:\TFS\TMW\Dev\TMWOnline\Harmony\N4S.Harmony.Tests\CaseManagement\HarmonyFacadeTests.cs:line 76
    at N4S.Harmony.Tests.CaseManagement.HarmonyFacadeTests.SetupTest() in d:\TFS\TMW\Dev\TMWOnline\Harmony\N4S.Harmony.Tests\CaseManagement\HarmonyFacadeTests.cs:line 67
    I am not sure what causing the issue. I checked the Credentials, Windows Identity during both the test run and there is no difference. Please advise !!
    Thanks,
    Deepak

    Hi Tina,
    Thanks for your reply. 
    I do have NUnit adapter installed. I even noticed that the test runs fine with NUnit GUI and also if I run it through Resharper Test Explorer window. 
    As you can see in the image above the same test is passed when I ran it from Resharper Unit Test Explorer window but fails when I ran it from Test Explorer window. I also captured the information on fiddler. 
    There was a significant difference in the Header Content length. Also under the User-Agent property the protocol versions are different. 
    Not sure why VSTest ExecutionEngine is picking a different version.
    The UnitTest in question is calling a webservice method which in turn calls a method from another referenced project. 
    Web Service class
    using System;
    using System.Web.Services;
    using N4S.Forms.OperationHandlerBroker.Server;
    using NLog;
    namespace N4S.Forms.OperationHandlerBroker.WebServiceServer
    /// <summary>
    /// The operaton-handler broker service.
    /// </summary>
    [WebService(Description = "The N4S Forms Operation-Handler Broker Web-Service.", Name = "OperationHandlerBrokerWebService",
    Namespace = "N4S.Forms.OperationHandlerBroker.WebServiceServer")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    public class BrokerService : WebService
    { /// <summary>
    /// Calls <see cref="HandleRequest"/>. Updates performance-counters.
    /// </summary>
    /// <param name="serializedInvokeRequestMessage">the binary-serialized <see cref="InvokeRequestMessage"/></param>
    /// <returns>the binary-serialized response message</returns>
    [WebMethod(BufferResponse = true, CacheDuration = 0, Description = "Invokes the requested operation-handler and returns a binary-serialized response-message.", EnableSession = false)]
    public byte[] InvokeOperationHandler(byte[] serializedInvokeRequestMessage)
    logger.Trace(Strings.TraceMethodEntered);
    PerformanceMonitor.RecordRequestStarted();
    InvokeRequestMessage requestMessage = (InvokeRequestMessage) AMessage.DeserializeMessage(serializedInvokeRequestMessage);
    InvokeResponseMessage responseMessage;
    try
    responseMessage = HandleRequest(requestMessage);
    PerformanceMonitor.RecordSuccessfulRequest();
    catch (Exception)
    PerformanceMonitor.RecordFailedRequest();
    throw;
    finally
    PerformanceMonitor.RecordRequestEnded();
    logger.Trace(Strings.TraceMethodExiting);
    return AMessage.SerializeMessage(responseMessage);
    UnitTest snippet
    OperationHandlerBrokerWebService brokerService = new OperationHandlerBrokerWebService();
    brokerService.UseDefaultCredentials = true;
    byte[] serializedResponseMessage = brokerService.InvokeOperationHandler(serializedRequestMessage);
    Please advise.
    Thanks,
    Deepak

  • Import.py runs fine locally, but fails on the remote server

    I have the following import.py file (from The Definitive Guide to SOA Oracle Service Bus), which I am calling from an ANT script. It runs fine when I include the parameters for the server running on my machine, but when I change the params to our test server, it connects to the server, but can't create a session. I will include the output of both runs as well. The test server runs on a cluster. Does that make a difference?
    LOCAL OUTPUT:
    Buildfile: C:\Dev\bea\ALSB\crash_alsb\build.xml
    local.import:
    [echo] importscript: import.py
    [java] Initializing WebLogic Scripting Tool (WLST) ...
    [java] Welcome to WebLogic Server Administration Scripting Shell
    [java] Type help() for help on available commands
    [java] Loading Deployment config from : local.import.properties
    [java] Connecting to t3://localhost:7001 with userid weblogic ...
    [java] Successfully connected to Admin Server 'AdminServer' that belongs to domain 'alsb_domain'.
    [java] Warning: An insecure protocol was used to connect to the
    [java] server. To ensure on-the-wire security, the SSL port or
    [java] Admin port should be used instead.
    [java] Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.
    [java] For more help, use help(domainRuntime)
    [java] Attempting to import : crash-alsb-20090205.jar on ALSB Admin Server listening on : t3://localhost:7001
    [java] Read file crash-alsb-20090205.jar
    [java] Created session name SessionScript1236884174250
    [java] finding service...
    [java] creating session...
    [java] return SessionMBean...
    [java] SessionMBean started session
    [java] ALSBConfiguration MBean found [MBeanServerInvocationHandler]com.bea:Name=ALSBConfiguration.SessionScript1236884174250,Type=com.bea.wli.sb.management.configuration.ALSBConfigurationMBean
    [java] Jar Uploaded
    [java] ALSB project crash_alsb will get overlaid
    [java] Default importPlan
    [java] Update Archive crash_alsb/crash-alsb-20090205
    [java] Update Archive crash_alsb/crash-config
    [java] Update WSDL crash_alsb/resources/wsdls/crash-jxdm-20070731
    [java] Update BusinessService crash_alsb/business/crash-20090305
    [java] Update ProxyService crash_alsb/proxy/crash-jxdm-20090305
    [java] Update Archive crash_alsb/export
    [java] got a ref TypeId of &lt;method com.bea.wli.config.Ref.getTypeId of com.bea.wli.config.Ref instance at 22900920&gt;
    [java] got a ref TypeId of &lt;method com.bea.wli.config.Ref.getTypeId of com.bea.wli.config.Ref instance at 23950494&gt;
    [java] got a ref TypeId of &lt;method com.bea.wli.config.Ref.getTypeId of com.bea.wli.config.Ref instance at 16994189&gt;
    [java] got a ref TypeId of &lt;method com.bea.wli.config.Ref.getTypeId of com.bea.wli.config.Ref instance at 6011310&gt;
    [java] got a ref TypeId of &lt;method com.bea.wli.config.Ref.getTypeId of com.bea.wli.config.Ref instance at 33251361&gt;
    [java] got a ref TypeId of &lt;method com.bea.wli.config.Ref.getTypeId of com.bea.wli.config.Ref instance at 6566192&gt;
    [java] Modified importPlan
    [java] Update Archive crash_alsb/crash-alsb-20090205
    [java] Update Archive crash_alsb/crash-config
    [java] Update WSDL crash_alsb/resources/wsdls/crash-jxdm-20070731
    [java] Update BusinessService crash_alsb/business/crash-20090305
    [java] Update ProxyService crash_alsb/proxy/crash-jxdm-20090305
    [java] Update Archive crash_alsb/export
    [java] Deployment of : crash-alsb-20090205.jar successful
    BUILD SUCCESSFUL
    Total time: 8 seconds
    TEST SERVER OUTPUT:
    Buildfile: C:\Dev\bea\ALSB\crash_alsb\build.xml
    remote.import:
    [echo] importscript: import.py
    [java] Initializing WebLogic Scripting Tool (WLST) ...
    [java] Welcome to WebLogic Server Administration Scripting Shell
    [java] Type help() for help on available commands
    [java] Loading Deployment config from : remote.import.properties
    [java] Connecting to http://&lt;IP removed&gt;:7001 with userid &lt;userid removed&gt; ...
    [java] Successfully connected to Admin Server 'AdminServer' that belongs to domain 'WL-DEV'.
    [java] Warning: An insecure protocol was used to connect to the
    [java] server. To ensure on-the-wire security, the SSL port or
    [java] Admin port should be used instead.
    [java] Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.
    [java] For more help, use help(domainRuntime)
    [java] Attempting to import : crash-alsb-20090205.jar on ALSB Admin Server listening on : http://&lt;IP removed&gt;:7001
    [java] Read file crash-alsb-20090205.jar
    [java] Created session name SessionScript1236884107843
    [java] finding service...
    [java] null returned from findService method.
    [java] creating session...
    [java] Unexpected error: exceptions.AttributeError
    [java] Unexpected error: exceptions.AttributeError
    [java] No stack trace available.
    [java] Problem invoking WLST - Traceback (innermost last):
    [java] File "C:\Dev\bea\ALSB\crash_alsb\import.py", line 212, in ?
    [java] File "C:\Dev\bea\ALSB\crash_alsb\import.py", line 130, in importToALSBDomain
    [java] File "C:\Dev\bea\ALSB\crash_alsb\import.py", line 197, in getSessionMBean
    [java] AttributeError: 'None' object has no attribute 'createSession'
    [java] Java Result: 1
    BUILD SUCCESSFUL
    Total time: 14 seconds
    import.py
    from java.util import HashMap
    from java.util import HashSet
    from java.util import ArrayList
    from java.io import FileInputStream
    #from com.bea.wli.config import TypeIds
    from com.bea.wli.sb.util import Refs
    from com.bea.wli.config.customization import Customization
    from com.bea.wli.sb.management.importexport import ALSBImportOperation
    from com.bea.wli.sb.management.configuration import SessionManagementMBean
    from com.bea.wli.sb.management.configuration import ALSBConfigurationMBean
    import sys
    #=======================================================================================
    # Entry function to deploy project configuration and resources
    # into a ALSB domain
    #=======================================================================================
    def importToALSBDomain(importConfigFile):
    try:
    SessionMBean = None
    print 'Loading Deployment config from :', importConfigFile
    exportConfigProp = loadProps(importConfigFile)
    adminUrl = exportConfigProp.get("adminUrl")
    importUser = exportConfigProp.get("importUser")
    importPassword = exportConfigProp.get("importPassword")
    importJar = exportConfigProp.get("importJar")
    customFile = exportConfigProp.get("customizationFile")
    passphrase = exportConfigProp.get("passphrase")
    project = exportConfigProp.get("project")
    connectToServer(importUser, importPassword, adminUrl)
    print 'Attempting to import :', importJar, "on ALSB Admin Server listening on :", adminUrl
    theBytes = readBinaryFile(importJar)
    print 'Read file', importJar
    sessionName = createSessionName()
    print 'Created session name ', sessionName
    SessionMBean = getSessionMBean(sessionName)
    print 'SessionMBean started session'
    ALSBConfigurationMBean = findService(String("ALSBConfiguration.").concat(sessionName), "com.bea.wli.sb.management.configuration.ALSBConfigurationMBean")
    print "ALSBConfiguration MBean found", ALSBConfigurationMBean
    ALSBConfigurationMBean.uploadJarFile(theBytes)
    print 'Jar Uploaded'
    if project == None:
    print 'No project specified, additive deployment performed'
    importResult = ALSBConfigurationMBean.importUploaded(None, false, true, passphrase)
    SessionMBean.commitSession(sessionName)
    else:
    print 'ALSB project', project, 'will get overlaid'
    alsbJarInfo = ALSBConfigurationMBean.getImportJarInfo()
    alsbImportPlan = alsbJarInfo.getDefaultImportPlan()
    alsbImportPlan.setPassphrase(passphrase)
    operationMap=HashMap()
    operationMap = alsbImportPlan.getOperations()
    print
    print 'Default importPlan'
    printOpMap(operationMap)
    set = operationMap.entrySet()
    alsbImportPlan.setPreserveExistingEnvValues(true)
    #boolean
    abort = false
    #list of created ref
    createdRef = ArrayList()
    for entry in set:
    ref = entry.getKey()
    op = entry.getValue()
    #set different logic based on the resource type
    type = ref.getTypeId
    print 'got a ref TypeId of ', type
    if type == Refs.SERVICE_ACCOUNT_TYPE or type == Refs.SERVICE_PROVIDER_TYPE:
    if op.getOperation() == ALSBImportOperation.Operation.Create:
    print 'Unable to import a service account or a service provider on a target system', ref
    abort = true
    elif op.getOperation() == ALSBImportOperation.Operation.Create:
    #keep the list of created resources
    createdRef.add(ref)
    if abort == true :
    print 'This jar must be imported manually to resolve the service account and service provider dependencies'
    SessionMBean.discardSession(sessionName)
    raise
    print
    print 'Modified importPlan'
    printOpMap(operationMap)
    importResult = ALSBConfigurationMBean.importUploaded(alsbImportPlan)
    printDiagMap(importResult.getImportDiagnostics())
    if importResult.getFailed().isEmpty() == false:
    print 'One or more resources could not be imported properly'
    raise
    #customize if a customization file is specified
    #affects only the created resources
    if customFile != None :
    print 'Loading customization File', customFile
    print 'Customization applied to the created resources only', createdRef
    iStream = FileInputStream(customFile)
    customizationList = Customization.fromXML(iStream)
    filteredCustomizationList = ArrayList()
    setRef = HashSet(createdRef)
    # apply a filter to all the customizations to narrow the target to the created resources
    for customization in customizationList:
    print customization
    newcustomization = customization.clone(setRef)
    filteredCustomizationList.add(newcustomization)
    ALSBConfigurationMBean.customize(filteredCustomizationList)
    #SessionMBean.commitSession(sessionName)
    SessionMBean.activateSession(sessionName,"active session from import.py")
    print "Deployment of : " + importJar + " successful"
    except:
    print "Unexpected error:", sys.exc_info()[0]
    if SessionMBean != None:
    SessionMBean.discardSession(sessionName)
    raise
    #=======================================================================================
    # Utility function to print the list of operations
    #=======================================================================================
    def printOpMap(map):
    set = map.entrySet()
    for entry in set:
    op = entry.getValue()
    print op.getOperation(),
    ref = entry.getKey()
    print ref
    print
    #=======================================================================================
    # Utility function to print the diagnostics
    #=======================================================================================
    def printDiagMap(map):
    set = map.entrySet()
    for entry in set:
    diag = entry.getValue().toString()
    print diag
    print
    #=======================================================================================
    # Utility function to load properties from a config file
    #=======================================================================================
    def loadProps(configPropFile):
    propInputStream = FileInputStream(configPropFile)
    configProps = Properties()
    configProps.load(propInputStream)
    return configProps
    #=======================================================================================
    # Connect to the Admin Server
    #=======================================================================================
    def connectToServer(username, password, url):
    connect(username, password, url)
    domainRuntime()
    #=======================================================================================
    # Utility function to read a binary file
    #=======================================================================================
    def readBinaryFile(fileName):
    file = open(fileName, 'rb')
    bytes = file.read()
    return bytes
    #=======================================================================================
    # Utility function to create an arbitrary session name
    #=======================================================================================
    def createSessionName():
    sessionName = String("SessionScript"+Long(System.currentTimeMillis()).toString())
    return sessionName
    #=======================================================================================
    # Utility function to load a session MBeans
    #=======================================================================================
    def getSessionMBean(sessionName):
    #SessionMBean = findService("Session","com.bea.wli.config.mbeans.SessionMBean")
    print "finding service..."
    SessionMBean = findService(SessionManagementMBean.NAME,SessionManagementMBean.TYPE)
    if SessionMBean == None:
    print "null returned from findService method."
    print "creating session..."
    SessionMBean.createSession(sessionName)
    print "return SessionMBean..."
    return SessionMBean
    # IMPORT script init
    try:
    # import the service bus configuration
    # argv[1] is the export config properties file
    importToALSBDomain(sys.argv[1])
    except:
    print "Unexpected error: ", sys.exc_info()[0]
    dumpStack()
    raise

    Your Template code is messed up.
    Use the code validation tools below and fix reported errors.
    Code Validation Tools
    CSS - http://jigsaw.w3.org/css-validator/
    HTML - http://validator.w3.org/
    Then post your Revised Template.dwt code.  Once the editable regions are positioned properly,  your child pages should perform better.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • SQL runs fine on DB11.2.0.1.0 but fails on DB9.2.0.8.0 with errors.

    The below SQL runs fine on DB11.2.0.1.0 but fails on DB9.2.0.8.0 with error:
    WITH users_with_dba_privs AS
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-00904: "from$_subquery$_005"."PARENT": invalid identifier
    SQL
    WITH users_with_dba_privs AS
    (select distinct child user_name
    from (select null parent, 'DBA' child from dual
    union all
    select granted_role parent, grantee child
    from dba_role_privs)
    where child in (select username from dba_users)
    start with parent is null connect by parent = prior child )
    select 'select_any_table',
    substr(SYS_CONNECT_BY_PATH(c, '->'),3,512) path, c
    from (select null p, name c
    from system_privilege_map
    where name = 'SELECT ANY TABLE'
    union all
    select -- users/roles and roles granted
    granted_role p,
    grantee c
    from dba_role_privs
    where granted_role != 'DBA'
    union all
    select -- users/roles with select any table
    privilege p, grantee c
    from dba_sys_privs
    where privilege = 'SELECT ANY TABLE')
    where (c = 'PUBLIC' OR c in (select username from dba_users))
    AND c NOT IN('MDSYS','DMSYS','CTXSYS','WMSYS','ORDSYS','OLAPSYS','DBSNMP')
    and c NOT IN (select user_name from users_with_dba_privs)
    start with p is null connect by p = prior c
    union all
    select 'select_privilege',
    substr(SYS_CONNECT_BY_PATH(c, '->'),3,512) path, c
    from (select null p, view_name c
    from dba_views
    where view_name like 'DBA_%'
    union all
    select -- users/roles and roles granted
    granted_role p,
    grantee c
    from dba_role_privs
    where granted_role != 'DBA'
    union all
    select -- users/roles with select on DBA views
    table_name p, grantee c
    from dba_tab_privs
    where privilege = 'SELECT'
    and table_name like 'DBA_%')
    where (c = 'PUBLIC' OR c in (select username from dba_users))
    AND c NOT IN('MDSYS','DMSYS','CTXSYS','WMSYS','ORDSYS','OLAPSYS','DBSNMP')
    and c NOT IN (select user_name from users_with_dba_privs)
    start with p is null connect by p = prior c
    Thanks in advance.
    ~Hozy

    hoek,
    Why do you think this WITH clause is special?
    I've taken the liberty of formatting the code, and can't see what's wrong. (Maybe I'm just too tired)
    I believe 9i did have subquery factoring.
    with users_with_dba_privs
           as (    select distinct child user_name
                     from (    select null parent, 'DBA' child from dual
                           union all
                           select granted_role parent, grantee child
                             from dba_role_privs)
                    where child in (    select username from dba_users)
               start with parent is null
               connect by parent = prior child)
        select 'select_any_table', substr(sys_connect_by_path(c, '->'), 3, 512) path, c
          from (select null p, name c
                  from system_privilege_map
                 where name = 'SELECT ANY TABLE'
                union all
                select -- users/roles and roles granted
                      granted_role p, grantee c
                  from dba_role_privs
                 where granted_role != 'DBA'
                union all
                select -- users/roles with select any table
                      privilege p, grantee c
                  from dba_sys_privs
                 where privilege = 'SELECT ANY TABLE')
         where (c = 'PUBLIC'
             or c in (    select username from dba_users))
           and c not in
                     ('MDSYS'
                     ,'DMSYS'
                     ,'CTXSYS'
                     ,'WMSYS'
                     ,'ORDSYS'
                     ,'OLAPSYS'
                     ,'DBSNMP')
           and c not in (    select user_name from users_with_dba_privs)
    start with p is null
    connect by p = prior c
    union all
        select 'select_privilege', substr(sys_connect_by_path(c, '->'), 3, 512) path, c
          from (select null p, view_name c
                  from dba_views
                 where view_name like 'DBA_%'
                union all
                select -- users/roles and roles granted
                      granted_role p, grantee c
                  from dba_role_privs
                 where granted_role != 'DBA'
                union all
                select -- users/roles with select on DBA views
                      table_name p, grantee c
                  from dba_tab_privs
                 where privilege = 'SELECT'
                   and table_name like 'DBA_%')
         where (c = 'PUBLIC'
             or c in (    select username from dba_users))
           and c not in
                     ('MDSYS'
                     ,'DMSYS'
                     ,'CTXSYS'
                     ,'WMSYS'
                     ,'ORDSYS'
                     ,'OLAPSYS'
                     ,'DBSNMP')
           and c not in (    select user_name from users_with_dba_privs)
    start with p is null
    connect by p = prior cRegards
    Peter

  • LSMW Fails when run in B/G but works fine in Front end..why?

    Hi All,
    i am trying to run a batch process by LSMW, my files are accurate, no problem with them, everything works fine but it fails when run in BG..works absolutely fine in front end. whats the diff with running in B/G?
    same thing happens when i am trying to execute an RFC thru SAP JCO, it works when debugger is on (i guess switching on debugger is similar to running in B/G) but it doesnt work when debugger is off. but when i execute that RFC directly in se37 from SAP gui it works fine..fails when connected to JCO..
    i am not having this issue with r/3 4.6c or mySAP ECC.6.0  i have this issue only in r/3 4.7.
    has anyone faced the similar situtaion? pls help.
    thanks.
    p.s if this may help. the RFC and LSMW error both are pertaining to change in address of US employees.( infotype 0006)

    Applying  SAP note 928273 Solved this issue.

  • LSMW fails when run in B/G but works in Frontend..why?

    Hi All,
    i am trying to runa batch process by LSMW, my files are accurate, no problem with them, everything works fine but it fails when run in BG..works absolutely fine in front end. whats the diff with running in B/G?
    same thing happens when i am trying to execute an RFC thru SAP JCO, it works when debugger is on 9i guess switching on debugger is similar to running in B/G) but it doesnt work when debugger is off. but when i execute that RFC directly in se37 from SAP gui it works fine..fails when connected to JCO..
    i am not having this issue with r/3 4.6c or mySAP ECC.6.0  i have this issue only in r/3 4.7.
    has anyone faced the similar situtaion? pls help.
    thanks.
    p.s if this may help. the RFC and LSMW error both are pertaining to change in address of US employees.( infotype 0006)

    Applying SAP note 928273 Solved this issue.
    thank you.

  • When I try to upgrade and install to iOS 5.1, error message prompt "operation stop running". I have tried several time but failed. Also, would like to know why always need to have wifi access in order to upgrade the version of iPad iOS, why not 3G ?

    When I try to upgrade and install to iOS 5.1, error message prompt "operation stop running". I have tried several time but failed. Also, would like to know why always need to have wifi access in order to upgrade the version of iPad iOS, what is the purpose of 3G then? This is really nonsense using wifi + 3G iPad. need help ! Thanks.

    The file is too large to download via 3G. There is a 20MB limit with 3G. The purpose of having 3G is that you have internet access everywhere and do not need to be near a WiFi hotspot or network.
    Not every single thing that you do every single minute of the day on the iPad involves downloading files larger than 20MB. You can surf the internet all day long sitting out in a park somewhere with 3G - but not with a WiFi only iPad - unless you use a hotspot with it.
    Try turning off your firewall and anti virus software while you try to download the iOS update.

Maybe you are looking for

  • Trying to download workout to itunes

    I am trying to download workouts to itunes so i can put it on my ipod. The instructions on the website say, click and open with itunes, or save to desktop and drag into itunes. neither works for me. what am i doing wrong?

  • SAP MDM == PI== SAP ECC, IDOC posting

    Hi, We are integrating SAP ECC 6.0 with SAp MDM 7.1 SP04 using PI 7.1 as a interface. Scenario is SAP MDM ==>PI==> SAp ECC. I would be creating record in ECC and will be posted in SAp ECC through PI. We will be creating Basic Data (MARA), Plant level

  • Redis' default config and systemd

    Hello, redis' default config includes settings exclusively targeted towards logrotate: It includes a redis.logrotate for managing logs It explicitely defines a log file (/var/log/redis.log) It daemonizes the server, making sure that nothing is output

  • Need some help deleting TM backups

    I have read through many posts but still cannot remove a TM backup of a hard drive I do not wish to backup. I have: Selected TM from the Menu bar while holding down the option key - it only shows one backup - Jim Mols Computer - that's my computer, b

  • Why won't my ibook (g3 800mhz, 640mb ram, OS X 10.4.11) recognize any external hard drives?

    My ibook will power it but it will not recognize my hard drive in any way.