Transactional WebService, non-XA problem

I have build a transactional web service and it is working fine on if the client and service are on same domain. If they are not am getting the following error:
Exception thrown from bean; nested exception is: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.1 (Build b60e-fcs (12/23/2008))): oracle.toplink.essentials.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: java.lang.IllegalStateException: cannot add non-XA Resource to global JTS transaction. Error Code: 0.
This is my service
@WebService()
@Stateless()
@TransactionManagement(TransactionManagementType.CONTAINER)
public class EJBService {
@PersistenceContext(unitName="EJBServicePU")
private EntityManager em;
@WebMethod(action="AddDiscount")
@TransactionAttribute(REQUIRED)
public void addDiscount(@WebParam(name = "discountCode") String discountCode,@WebParam(name = "rate") double rate)
DiscountCode code = new DiscountCode(discountCode.charAt(0));
code.setRate(BigDecimal.valueOf(rate));
em.persist(code);
@WebMethod(action="UpdateDiscount")
@TransactionAttribute(REQUIRED)
public void UpdateDiscount(@WebParam(name = "discountCode") String discountCode,@WebParam(name = "rate") double rate)
DiscountCode code = (DiscountCode) em.find(DiscountCode.class, discountCode.charAt(0));
code.setRate(BigDecimal.valueOf(rate));
em.merge(code);
}And this is my client code
EJBService port = service.getEJBServicePort();
try
//out.println("Initial number: " +port.getBalance());+
+transac.begin();+
+port.addDiscount("B", 10);+
+port.addDiscount("S", 44);+
+transac.commit();+
+}catch(Exception e)+
+{+
+out.println("An error occured, transaction abortedd.<br/>"+ e.getMessage());
} I am connecting to derby database and using the sample database. I have checked the sample code for WSIT many times and I didnt know what is the problem here.
Please Help.
Thank you.

xxxxx wrote:
we create 2 pools, both the pools are created but the problem occurs when you start
some transaction.
Here there is an EJB transaction and this throws a known exception of weblogic
that
"java.sql.SQLException: Connection has already been created in this tx context
for pool named <first pool's name>. Illegal attempt to create connection from
another pool: <second pool's name>"
we want to use more then one non xa drivers and use weblogic connection pools
at the same time.. any help is appreciated.Hi. this is an EJB/transactional integrity issue. If you get non-XA connections,
then the transaction coordinator will collude with the JTS driver to ensure that
any given transaction can only really use one JDBC connection, so we can guarantee
the commit or rollback will be atomic. Without 2PC, we would otherwise have to commit
on both connections. If the first succeeded, and the second commit failed, we
could not recover.
If you really need to talk to multiple DBMSes, or even just one DBMS but as
different users, then there is a way, with some risks you will have to accept.
You can connect to any DBMS at any time if you use a non-TX datasource.
This will give you a 'raw' pooled connection, whith the transaction coordinator
knows nothing about. You can use this as you wish, but be very sure to close this
connection in a finally block, else it will never get back into the pool. ALso note
that any work you do on this connection is in your hands. If the EJB tx rolls back
we won't do anything with this connection, so if there's any update you did, it's
totally up to you to undo them, or respond in whatever way you need to in error
conditions.
Joe

Similar Messages

  • How can we run MDBT transaction for non-valuated items only

    HI,
    We want to run the MDBT transaction for non-valuated items only...but through this transaction we can run for all items..
    How can we run only for non-valuated items???
    Regards,

    Dear Anil,
    MD02 - Material level planning ( Multilevel )
    MD01 - Plant level planning ( Multilevel )
    MDBT - Back ground MRP ( Multilevel )
    coming to ur query if all 20 materials belongs to one storage location or one MRP controller
    Then you perform MRP for that 20 materials with the above given user exit
    Also Plz refer my reply from this thread
    [Re: MD01 Replanification.]
    Regards
    Madhu

  • BAPI for calling Z transaction From NON-SAP system

    hi all, am new to BAPI i want to know that can we call any standard or Z transaction from NON-SAP system using BAPI if yes then plz let me know how.???
    thanx...

    BAPI's are not used for calling transactions. They have the same result though, a business partner for example kan be created, and maintained via the GUI, but it can also be done via a BAPI. These BAPI's are created for calling them from (non-) SAP systems since they are remote enabled. However, this means that the calling application / party will have to 'build' some sort of application themselves in order to call these BAPI's from 'outside' of the SAP system.
    The calling application will have to have access to the system, which can be maintained in the remote destination transaction SM59.
    But enough of this, there are lots and lots of posts on SDN about BAPI's, remote destination etc.

  • Please contact itunes support to complete this transaction what is the problem?????????, please contact itunes support to complete this transaction what is the problem?????????

    please contact itunes support to complete this transaction what is the problem?????????, please contact itunes support to complete this transaction what is the problem?????????

    I have the same problem and I contacted iTunes support but there is no direct contact for iTunes support.  Technical support emailed the iTunes dept and they didn't know what the problem is because there were no outstanding charges or flags on my acct so they said to call my card holder. I called my card holder who said there was no charges from iTunes and no problems with Apple charges so they didn't know what was wrong. I reset my device and the problem is still happening. I'm going to make an appointment at the genius bar to see if they can help me.

  • Transaction AIAB (Auc Settlement) -  Problem with BDC

    Dear Friends,
              Problem: I am trying to distribute the amount of a asset (Auc) to other assets on line item basis by using BDC for transaction AIAB. I am facing problems when using amount based through BDC.
           Can you please suggest ASAP if any FM or BAPI's available to achive this for transaction AIAB?
    Thanks,
    Ram.

    Hi Ravi,
    Thanks for your valuable reply..
    Everything is fine if i run the transaction in ALLSCREEN mode, but iam facing the problem with the same after running it in NOSCREEN mode 'N'..
    Pls help..

  • When will the Non-Admin problem be fixed?????

    When will the problem of non-admin accounts not able to see all flash content on
    web pages be addressed???

    in addition to poor open GL performance, i've also had problems with any program utilizing antialiasing support. i recently sat down and called apple and had a discussion with their support line. while i didn't mention the poor open GL performance, i did mention the graphical errors i was experiencing with my MBP. i was told these issues are not normal, and have a replacment on the way. while these issues are some what numerous, i've not been able to find much more than a few articles or discussions on the topic. i'm hoping this means it is contained to a few MBPs and not all. we'll see when the replacment comes. if not, however, i'd consider a class action suit. the machine i bought was sold as a portable gaming machine, (apple.com/games/hardware) and thats not what i've gotten. i am very disappointed that apple has not even acknowledged the issue to let us know some fix is in the works. if enough of us make a big enough noise about it, perhaps we can get some sort of reply. i'd recommend you sending a note to apple as mentioned, then take some time to sit and give apple a call. they are very interested in listening to you, don't feel silly about calling about game perfromance, they are advertising these machines as such.
    cheers

  • Transactional iView - Pop Up Problem

    Hi Experts,
           I am facing a problem in one of the transactional iView in Portal. The iView runs a workflow. When i click on one of the line items (from the list of lineitems), and execute the workflow, it shows me the details of that line item and a new window pops up which contains a pdf.
    The problem is when i close the workflow or go back to the list of line items, this popup window should get closed automatically, which is not happening.
    If i execute this from R/3, it works fine.
    Any ideas, what can be a solution to this..

    Dear Abhishek,
    mind you that although ITS might show you any SAP transaction - it is not 100% guaranteed that it will show you the exact same features you have on the SAP Logon.
    Is this a standard SAP transaction or a Custom one ?
    What transaction (if standard) are you referring to ?
    Please check this ITS FAQ nevertheless
    [http://wiki.sdn.sap.com/wiki/display/HOME/ITS+FAQs#ITSFAQs-WhatisSAPInternetTransactionServer%3F]
    Kindest Regards
    /Ricardo Quintas

  • Transaction CJI3 in portal Problem

    Dear Friends,
    We are working with CJI3 Transaction in Portal that is linked to a BW Report , the flow is BW report should flow to CJI3 by taking the Projects as Input and gives the Output along with Summarization of Cost Centers, The Problem now is we are unable to find the drill down possibility for the report in the Portal or WEB . It gives us the first view of data, but as in Transaction CJI3 , we can find the Drill down details across cost elements along with Document Numbers ..Kindly let me know how do we achieve the Drill Down of the Report ( CJI3 Transaciton ) any notes that needs to be applied to find the ICON Symbol( that denotes that the data is summarized ) ...
    Thanks,
    Krishna

    Hi Krishna,
    Looks like this transaction is not supported by ITS or WebGUI. You may look at the details of this transaction where you can find a checkbox which says whether it's supported by ITS or not.
    There is nothing we can do if it's not supported.
    Regards,
    Sunil

  • WebService SOAP response problems

    hey,
    I'm developing a WebService, using EJB's. I have a session bean, which has several methods. One of them returns, say, a class like follows:
    class TeamDTO implements Serializable {
    private String name;
    private Integer teamId;
    //getters and setters ..
    I have several such methods returning various, very similar, classes. Now the problem is, when I try to test my application in the Web Services Navigator the response NEVER contains all the fields I wish. Why is that? Example of a response:
    <SOAP-ENV:Envelope ...>
    <SOAP-ENV:Body>
      <rpl:getAllTeamsResponse  ... >
       <rpl:Response ...>
        <pns:TeamDTO>
         <pns:name>team0</pns:name>
        </pns:TeamDTO>
       </rpl:Response>
      </rpl:getAllTeamsResponse>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    But the TeamDTO class has apart from a name field an teamId field as well. What happened?! The same happens to other classes, but there's no rule about the missing column (first I thought it's the PK, like in the above example, but that's not the case).
    What am I doing wrong? Ah, the fields are definetely not null, since in the above case it's a PK.
    regards,
    Kornel

    Hey,
    thanks for your hint, but that's not the problem here - for the example I've posted above java.lang.Integer won't appear, and for another case java.lang.String (whereas in my example String appeared). I'm sure the problem is somewhere else.. What happens if the field is null, will the appropriate tag appear in the soap response?
    regards,
    Kornel

  • Workflow Aproval - Non standard (Problem in the Worklist - bbpbwsp)

    Helo,
    I have build one approval workflow to the process bid invatation. In this workflow i have one task (non-standard) where the user can approve de process.
    The client use de ITS SRM, the worklist used is the BBPBWSP.
    When the Workflow start, the approval task appears in the worklist, but when i execute this task, it is open initial menu SAP. Not using our service Z.... instead /scripts/BBPAPPROVAL/...
    Can anyone help me?

    Hi
    <u>I know the ITS Debugging makes quite a life easy for some of the cases, like this.</u>
    <i>By the way, which SRM version are you using ?</i>
    <u>Anyways, will give you details, how to enable the ITS debugger in your system. Ask your BASIS person to help you out in this case.</u>
    <b>Note 451292 - How to use ITS debugger
    Note 304371 - RFC debugging set in service file BBPUSERMAINT
    Note 392570  - EBP: Required data on the problem processing
    Note 893425 - MIME type with attachments
    Note 954135  - Instructions for debugging workflow activities
    Note 903200 - Workflow tracing for problem detection
    Note 995328 - Extended System Status Information for SAP SRM</b>
    Hope this will help.
    Please reward suitable points, incase it suits your requirement.
    Regards
    - Atul

  • Re: ADF Mobile webservice datacontrol parameter problem

    When i am trying to create Data Control from wsdl, the data control is generated but it doesnot contain any method or operation..Can someone help, i am getting the below message:
    oracle.adf.model.adapter.AdapterException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is DCA-40002. Error message parameters are {0=null}
    at oracle.adfinternal.model.adapter.webservice.WSModel.createModelFromWSDL(WSModel.java:656)
    at oracle.adfinternal.model.adapter.webservice.WSModel.<init>(WSModel.java:197)
    at oracle.adfinternal.model.adapter.webservice.WSDefinition.loadDCOperations(WSDefinition.java:1707)
    at oracle.adfinternal.model.adapter.webservice.WSDefinition.loadFromMetadata(WSDefinition.java:769)
    at oracle.adfdt.model.datacontrols.JUDTAdapterDataControl.loadDefinitionFromElement(JUDTAdapterDataControl.java:335)
    at oracle.adfdt.model.datacontrols.JUDTAdapterDataControl.getDef(JUDTAdapterDataControl.java:771)
    at oracle.adfdt.model.datacontrols.JUDTAdapterDataControl.setConfigurationParent(JUDTAdapterDataControl.java:365)
    at oracle.adfdt.model.objects.Configuration$6.run(Configuration.java:204)
    at oracle.adfdt.jdev.transaction.JDevTransactionManager.fetchUnderReadLock(JDevTransactionManager.java:363)
    at oracle.adfdt.model.objects.Configuration.findDataControl(Configuration.java:215)
    at oracle.adfdtinternal.model.ide.factories.adapter.DCFactoryAdapter.createDataControl(DCFactoryAdapter.java:388)
    at oracle.adfdtinternal.model.ide.addins.AdapterContextHandler.createMetaDC(AdapterContextHandler.java:34)
    at oracle.adf.model.adapter.MetaDef.createDataControl(MetaDef.java:118)
    at oracle.adfdtinternal.model.adapter.webservice.JdxPKWSAddin.invokeDCWizard(JdxPKWSAddin.java:157)
    at oracle.adfdtinternal.model.adapter.webservice.JdxPKWSAddin.invoke(JdxPKWSAddin.java:91)
    at oracle.ide.wizard.WizardManager.invokeWizard(WizardManager.java:446)
    at oracle.ide.wizard.WizardManager$1.run(WizardManager.java:530)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642)
    at java.awt.EventQueue.access$000(EventQueue.java:85)
    at java.awt.EventQueue$1.run(EventQueue.java:603)
    at java.awt.EventQueue$1.run(EventQueue.java:601)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:612)
    at oracle.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
    at oracle.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    Did you test the WSDL by
    1)opening it in a browser and
    2)also by running it using the HTTP Analyzer ... I'm guessing the WSDL might have issues
    Also is your request and response included in the WSDL or they are referred to as separate files ?

  • WebService response charset problems

    Some time ago I posted a problem regarding unicode characters in WebService
    responses from WL7.0. I received a patch that helped partially - after the
    patch was applied, WL no longer threw any exception when an utf character
    was included in the response. So far so good.
    However, a problem arises when I call the WebService from a .NET client;
    .NET doesn't understand that the response is utf-8 encoded, so when the
    response is deserialized on the client side the encoded characters (such as
    å, ä, ö) come out as question marks. It seems that the Content-Type header
    doesn't specify the correct charset (I would expect something like
    'Content-Type:text/xml; charset=utf-8', but the charset=... part seems to be
    missing)
    By fiddling about a bit with the .NET generated proxy class I managed to
    force .NET to think that the Content-Type mime header does in fact contain
    the correct value (quite messy - I can supply the code if anyone should be
    interested). However, this should not be necessary - the solution I came up
    with is awkward and the only thing needed is that the correct Content-Type
    header be included in the WebService response. Is there a way to specify a
    default value for this?
    I tried creating a handler to intercept the response and set this specific
    mime header, but no luck - the value I set seems to be ignored (i tried
    ctx.getMessage().getMimeHeaders().setHeader("Content-Type", "text/xml;
    charset=utf-8");, as well as ...addHeader()). Besides, even if this did work
    it would seem unnecessarity complicated to create a handler and set it to
    handle all the methods in my WebService (there are quite a few).
    Any ideas?
    /Mattias Arthursson
    Compost Marketing

    This problem should be fixed in SP1. If the system property
    user.lang is not english, then SP1 will use utf-8 as charset
    (I think this will be your case).
    In SP1 you can also set a system property to change charset :
    weblogic.webservice.i18n.charset="my-char-set"
    regards,
    -manoj
    "Mattias Arthursson" <[email protected]> wrote in message
    news:[email protected]...
    Some time ago I posted a problem regarding unicode characters inWebService
    responses from WL7.0. I received a patch that helped partially - after the
    patch was applied, WL no longer threw any exception when an utf character
    was included in the response. So far so good.
    However, a problem arises when I call the WebService from a .NET client;
    .NET doesn't understand that the response is utf-8 encoded, so when the
    response is deserialized on the client side the encoded characters (suchas
    å, ä, ö) come out as question marks. It seems that the Content-Type header
    doesn't specify the correct charset (I would expect something like
    'Content-Type:text/xml; charset=utf-8', but the charset=... part seems tobe
    missing)
    By fiddling about a bit with the .NET generated proxy class I managed to
    force .NET to think that the Content-Type mime header does in fact contain
    the correct value (quite messy - I can supply the code if anyone should be
    interested). However, this should not be necessary - the solution I cameup
    with is awkward and the only thing needed is that the correct Content-Type
    header be included in the WebService response. Is there a way to specify a
    default value for this?
    I tried creating a handler to intercept the response and set this specific
    mime header, but no luck - the value I set seems to be ignored (i tried
    ctx.getMessage().getMimeHeaders().setHeader("Content-Type", "text/xml;
    charset=utf-8");, as well as ...addHeader()). Besides, even if this didwork
    it would seem unnecessarity complicated to create a handler and set it to
    handle all the methods in my WebService (there are quite a few).
    Any ideas?
    /Mattias Arthursson
    Compost Marketing

  • Webservice Client deserialization problem with Vectors!

    Hello!
    I'm generating a Java Proxy Client with Eclipse WTP.
    The Client works fine with normal datatypes and own Beans. But whe the return type is a Collection with own beans an exception is thrown:
    exception: org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
    So whats wrong?
    In teh Webservice Explorer everything seems to be fine, my vector is serialized in item-tags:
    - <getAktionenResponse xmlns="http://commonservice">
    - <getAktionenReturn>
    - <item xmlns="">
    <aktn_nr>a12345</aktn_nr>
    <claim>222</claim>
    <geschaeftsjahr>2005</geschaeftsjahr>
    <son>333</son>
    <special_operation_code>soc12345</special_operation_code>
    <status>ready</status>
    <vin>t123</vin>
    </item>
    - <item xmlns="">
    <aktn_nr>a6789</aktn_nr>
    <claim>567</claim>
    <geschaeftsjahr>2006</geschaeftsjahr>
    <son>555</son>
    <special_operation_code>soc6789</special_operation_code>
    <status>false</status>
    <vin>t123</vin>
    </item>
    </getAktionenReturn>
    </getAktionenResponse>
    how can i solve this problem?
    the background is that I return a vector with Java Objects. I thought apache axis deserielizes automatically the vector and the bean inside??
    I'm pretty new to webservices...
    Pleas help!
    Thanks!

    As per the below link, I assumed its better to avoid collections and go with plain array of objects.
    Please let us know if I am wrong.
    http://www-128.ibm.com/developerworks/webservices/library/ws-tip-coding.html
    Regards,
    Venkat S

  • [BUGGED] xmonad tri-screen non-xinerama problems

    Hello All!
    New Archer here.  I'm really enjoying playing with Arch.  Ran it about a week on a VM, and then promptly backed up/tore up/re-created my 3 TB RAID array as a shrine in deciation to its glory.  I haven't posted much along the process, because I've generally been able to put things together to my liking other than a few minor setbacks that I mostly managed to handle myself.  I have even gave Arch the coveted position of my "Laptop Linux."  I have a slightly odd setup and it seems to be tied in with an issue that I am having, so I thought I might post here, especially since some of you seem to be xmonad users.
    The Paragraph
    Most wm's seem to handle non-Xinerama multi-display fine (I've been trying out as many as I could find since switching over to Arch.  I figured new Linux/new Look).  It seems that xmonad handles Xinerama better but has a less friendly non-Xinerama out of the box experience, and it is terribly hard to find the information I am after since when I go looking for multi-monitor resources, I find alot about Xinerama and praise for its Xinerama way of doing things.  Apparently, you still can't enable Composite and Xinerama at the same time, and in general, I prefer funny fade effects and what not to being able to move windows from screen to screen so have opted for a standard non-Xinerama multi-card, multi-display setup of xorg.
    Bullet Points
    1 - Minor Problem:  xmonad only runs on one screen if I don't enable Xinerama
    2 - Entertwined Problem:  Composite extension becomes disabled if I enable Xinerama
    3 - Other Entertwined Problem:  Most wm's I try if they don't support dual screen natively, I can simply put calls in my .xinitrc to load on the various display (ie. 'DISPLAY=:0.2 wmii &; DISPLAY=:0.1 wmii&; exec wmii'), and it's no big.  If I try that with xmonad, the session on DISPLAY :0.0 won't give up control of the keyboard to the displays on the other monitors.  That's pretty weird, since it gives up control to my unmanaged windows just fine, or gives up control to another WM (as I type this, I have openbox managing my second monitor so I have an easy way to resize windows and such, but that is a somewhat imperfect solution in my opinion).  If I leave the screens unmanaged , I can launch apps on them easily enough by 'DISPLAY=:0.1 thunderbird' (like I do with openbox managing them if I don't want to use the menu) through command-line or scripts, but there is no way to move the apps or resize them or anything without some WM (like openbox) attached to the DISPLAY.
    4 - Minor Entertwined Problem That Makes This Whole Mess Harder To Ignore:
    When you go off the screen to an unmanaged window or a window managed by another window manager, apparently xmonad continues to think you are focused on the app that you hovered over last on your way to the other screen (ie. if I go over to Thunderbird now, xmonad will leave the active border around Firefox since I have it on the left side of my primary monitor and the other screen is to the left).  This is no big, although I would prefer it to gray out or whatever.  At the same time, xmobar displays that I am still over my Firefox window.  I am fine with it not knowing that I am over messing around in another WM or on an unmanaged screen.  The big problem is that when I bring the mouse back, it seems to get confused about whether I left or not, and doesn't pass focus back to the app in question.  It still thinks the app has focus (according to its border and xmobar), but keystrokes still go to the other screen and the window on the first screen will no longer even directly respond to mouse clicks.  It is easy to fix, I can simply move to any other window on the same screen, and then back to my firefox and things work fine.  I know that's a weird wall of text, so a quick explanation:
    If I take my mouse off the screen to the left, passing over Firefox, I end up on my Screen 1 that is currently displaying Thunderbird and managed by Openbox.  I can then click message, type things, all no problem.  If I move my mouse back to the Firefox screen, it looks like it is active, but I cannot click on anything (no links work, the buttons that control formatting of this message darken when I hover over them but do nothing on click, the check boxes at the bottom of this compose message window darken but do not respond to clicks, etc).  If I do nothing else other than but my mouse over one of my terminal windows (which will receive the focus border and receive input fine), and then move it back to Firefox - everything in Firefox will at that point work great.
    That last note is the primary reason I can't just let another WM loose on my secondary display and go about my day (I mean, I tend to just leave e-mail up on the thing, and I suppose a valid argument can be made for having a floating manager on your second screen anyway).  It's most annoying when I just barely go off the edge of the main monitor by mistake, say on my way to a tab or something, and can't click my tabs anymore without dragging the mouse back to a terminal and back over to Firefox.  Of course, I would be fine with messing with xmonad on all my screens really if I didn't have to turn off my Composite extension to do it.
    One easy solution is to just use Awesome.  It looks nice and seems to offer some of the same features, but I kind of like xmonad's way of configuring things and the idea that my configs seemingly shouldn't break on minor version numbers.  Awesome has already bit me in my playing around by making widget obselete two days after I put the widgets in my config file, and it seems they have a history of this type of action. 
    I can happily provide any configuration files on request.  My xorg.conf is probably of the most interest, I would think, but if I knew how to fix this, I wouldn't be on here asking for help.  It doesn't appear to be related to xmonad.hs, since I can use the default or a heavily customized one and get the same behavior.  There might be a way to fix the problem somehow in xmonad.hs; I don't know.
    Oh well, sorry my first post was such a wall of text, but I wanted to provide a solid idea of what was going on here.  Any help would be greatly appreciated.
    Lewis
    Last edited by llcawthorne (2009-11-18 02:26:08)

    vogt wrote:
    I have had composite enabled with xinerama.
    Some graphics drivers restrict the size of all screens to fit within 2048x2048 pixels if you still want compositing, but if you have 3 monitors, it is unlikely that that you can find an arrangement that satisfies that driver/hardware limitation.
    Yeah, 2048x2048 woudln't work for me.  My main monitor runs 1920x1200, secondary is 1680x1050, and the tv is at 1920x1080.
    Apparently since the xorg upgrade the other day, I can't even turn on Xinerama anymore.  I know it worked when I tested just to see if things worked in Xinerama mode the other day (but it automatically disabled Composite).  Now I can turn on Xinerama but I get a strange cursor flicker and segfault when trying to go to the other screen.  Apparently some other people have that problem with the latest x-server and xinerama with Nvidia, but I haven't looked into fixing it, since I don't tend to use Xinerama anyway.  It makes testing some solutions a bit harder though not being able to temporarily turn it on.
    I have done some more testing though.  With my current multi-screen Xinerama off X-layout, things definitely work as expected in other Window managers.  I have played around in GNOME, compiz, fluxbox, openbox, awesome and ratpoison with this separate screen X-layout without problems. 
    The problem seems to be more with xmonad accepting the cursor than letting it go.  When I run :0.1 unmanaged or with another window manager, I can switch over to the other display with 100% reliability, but only have the problem when coming back to my xmonad display.  However, if I spawn xmonad to :0.1 in addition to having xmonad on :0.0, I almost always have problems switching over to :0.1, but once I get switched over to :0.1, I have trouble coming back to :0.0.
    Also, strangely enough, I can reliably switch to any other display with two windows on it.  I have taken to running a clock on display :0.1, since 90% of the time when I switch over to my e-mail client I will not get proper focus.  I can fix this 100% of the time by mousing over the clock, then back over the e-mail client.  To come back to my main screen, I will not get focus on my browser 90% of the time, but can reliably get focus to it 100% of the time there is a problem by mousing over one of the terminals to the right of my browser and then coming back to the browser.  Since the problem is predictable, I can work around it, but either way it is annoying.
    The problem is easy to duplicate with both a default xmonad.hs, another xmonad.hs pulled off the site (tried it with andrea's and arossato's, and with my personal customized and overly large xmonad.hs that I have been trying out various features with.
    Curiously enough, since it was a focus problem, I though "maybe if it updated focus more often?" and I tried 'import XMonad.Actions.UpdateFocus" with the proper startupHook's and handleEventHooks to make it attempt to update focus whenever you move the mouse within a window.  This did nothing to alleviate the problem, although it obviously took ince I noticed the change in focus handling when I didn't leave a monitor.
    Oh, and as another test to see if it might relate back to my drivers somehow, I removed nvidia's proprietary drivers and installed Nouveau.  While the Nouveau drivers are pretty neat (the fast frame buffer switching is fun!), I found them annoying since I don't know how to make my console come up on the right monitor with them, but that is unrelated.  I changed around my config and brought up X and was able to duplicate the problem exactly with the alternate drivers (but same configuration otherwise). 
    And lastly, I booted to my Gentoo install (that does use the same hardware are xorg.conf).  I can't get the 0.9 xmonad from the overlay to compile on it for whatever reason, so it conveniently has 0.8 installed.  I see the same behavior with a default config and a sample config swiped from the website (I cannot test with my custom config, since it has multiple 0.9 imports in it, but I have no reason to believe it would react differently).
    I welcome any ideas.
    Lewis Cawthorne

  • Axis 1.3 webservices exception gives problem

    I am creating webservices using AXIS 1.3. While throw the exception, we are using the "org.w3c.dom.Element" to set the error message into the exception.
    But when the control reaches the following line of code I am getting NullpointerException.
    detailErr[0].setAttribute("error", rexception.toString()); Element[] detailErr = new Element[1]; (I have instanciated the element object like this)
    Please guide me.
    Try{
    }catch(Exception exception){
    Element[] detailErr = new Element[1]; 
    detailErr[0].setAttribute("error", exception.toString());  // Nullpointerexception
    throw new MyuserDefineException(�1232�,�exception�,�myservice�, detailer)
    }

    Apparently you don't understand arrays. You've created the array with a space for one reference. You never assign anything into that array element.
    String[] s = new String[1];
    s[0].size(); // The reference is NULL!The above is guaranteed to be a null pointer exception - how could the array element have a String in it? We never create a String (only the array) and what text would it have even if it somehow magically worked?
    Instead you would have to do this:
    String[] s = new String[1];
    s[0] = "Hello";
    s[0].size(); // The reference is NOT nullThe above is exactly analogous to your problem.

Maybe you are looking for

  • GRC NF-e 2.0 - Status de Serviço com Erro

    Boa noite Srs, Estamos recebendo um erro no cenário SRVSC_WebAS_Outbound_ServiceStatusCheck. No NF-e Monitor o Status de Erro é 70 (Error from the authorities). Verifiquei a MONI e encontrei a seguinte mensagem: /CPACache/refres... CPA cache refresh

  • How do you open multiple web pages on same screen macbook air

    I wish to refer to multiple pages to check info on each page and copy how do you do this in safari

  • Default JSTL URI can't be resolved

    I have the following as the first line of my JSP: <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> When I access the page I get the following error message from Tomcat (version 5.5): The absolute uri: http://java.sun.com/jstl/core cannot

  • Calling Stored Procedure without JDBC-Adapter

    Hallo, as it is not possible calling Stored Procedures with the parameter Typ Record in Oracle my question: It is possible connecting to DB using native java-code for example in Mapping? Thanks in advance, Frank

  • TRANSACTION LAUNCHER--CALLING CRM Z TRANSACTION THROUGH WEB UI

    As per the requirement, we are trying to call CRM  Z transaction through web UI. We have used the Object TSTC and created a replica of the object ZTSTC and used the method execute. Made the necessary config for navigation bar and Business role. We co