XMLNode.selectNodes() threadsafe?

Running a multi-threaded application that hits the XMLNode.selectNodes()
right at the same time doing a node.selectNodes("*") throws null pointer exceptions.
This does not happen in a single threaded mode. (See exception below). Also,
the same program produces inconsistent results running in a threaded mode using
the selectNodes extensively. It seems that the code is not threadsafe. I know that
the inputs to the call are not null, something in the xml parser code is having a problem.
java.lang.NullPointerException
at oracle.xml.parser.v2.XPathStep.getSelectedNodes(XPathStep.java:383)
at oracle.xml.parser.v2.PathExpr.getSelectedNodes(XSLNodeSetExpr.java:549)
at oracle.xml.parser.v2.XMLNode.selectNodes(XMLNode.java:694)
at oracle.xml.parser.v2.XMLNode.selectNodes(XMLNode.java:665)
at oracle.xml.parser.v2.XMLNode.selectNodes(XMLNode.java:723)
at org.oclc.util.xml.oracle.XPathUtil.selectNodes(XPathUtil.java:49)
at org.oclc.util.xml.XSLUtil.selectNodes(XSLUtil.java(Compiled Code))
at org.oclc.xwc.data.recordloader.AbstractOracleRecordLoader.generateTerms(AbstractOracleRecordLoader.java(Compiled Code))
at org.oclc.xwc.data.recordloader.LoadMDATA.loadRe[i]Long postings are being truncated to ~1 kB at this time.

Do you have any thread updating the DOM at the same time?

Similar Messages

  • ANN: Oracle XML Parser for Java v2.0.0.1

    A new maintenance release of the Oracle Parser for Java is
    available for download. It has the following fixes and changes:
    Bug fixes for #920536, i.e. Cannot access element attributes via
    XSLT; #898423. i.e. ElementDecl's in DTDs; #774774, i.e. DOM
    extensions using XSL pattern matching; #863890 i.e. SAX
    IOException not thrown.
    New APIs in the following new interface:
    1. oracle.xml.parser.v2.NSResolver
    - resolveNamespacePrefix( find the namespace definition in scope
    for a given namespace prefix )
    New APIs in the following classes:
    1. oracle.xml.parser.v2.XMLNode
    - selectNodes( Selects nodes from the tree which match the given
    pattern; client can provide an NSResolver implementation to
    resolve namespace prefixes in the pattern ).
    2. oracle.xml.parser.v2.ElementDecl
    - getParseTree( Returns the root Node of Content Model parse
    tree, which could then be traversed node by node using
    getFirstChild() and getLastChild(). The Node types are: PLUS,
    COMMA, ASTERISK, ELEMENT, QMARK ).
    This is the first beta patch release for v2.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

    unzip -l appsborg2.zip | grep 9.0.4
    0 04-18-03 20:10 .xdkjava_version_9.0.4.0.0_production
    do i still need to do that step?No, you do not have to since "XML Parser for Java v9.0.4" is already installed as part of appsborg2.zip

  • Change the value of a attribute through xpath in orchestration with untype message

    This is my orchestration:
    In Message Assignment Shape of Construct_BookMessage ,I wrote the following code:
    BookMessage=InputMessage;
    AuthorName=xpath(BookMessage,"string(/*[local-name()='BookMessage' and namespace-uri()='http://UntypeMessage.Book']/@*[local-name()='Author' and namespace-uri()=''])");
    System.Diagnostics.EventLog.WriteEntry("Old AuthorName",AuthorName);
    AuthorName="Prakash";
    xpath(BookMessage,"string(/*[local-name()='BookMessage' and namespace-uri()='http://UntypeMessage.Book']/@*[local-name()='Author' and namespace-uri()=''])")=AuthorName;
    AuthorName=xpath(BookMessage,"string(/*[local-name()='BookMessage' and namespace-uri()='http://UntypeMessage.Book']/@*[local-name()='Author' and namespace-uri()=''])");
    System.Diagnostics.EventLog.WriteEntry("New Author Name",AuthorName);
    OutputMessage=BookMessage;
    InputMessage and OutputMessage are of System.Xml.XmlDocument type and BookMessage is of Book schema type.
    But I am getting the following error in admin console:
    xlang/s engine event log entry: Uncaught exception (see the 'inner exception' below) has suspended an instance of service 'UntypeMessage.UntypeOrchestration(275c2c0e-1d69-1d6a-8add-afc5051106ec)'.
    The service instance will remain suspended until administratively resumed or terminated. 
    If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.
    InstanceId: da2fc832-9c6a-4fd2-82b2-324707b8bea7
    Shape name: Construct_BookMessage
    ShapeId: f8b3fa0c-7c13-4357-b7a8-cfa05e20fe16
    Exception thrown from: segment 1, progress 9
    Inner exception: Expression must evaluate to a node-set.
    Exception type: XPathException
    Source: System.Xml
    Target Site: System.Xml.XPath.XPathNodeIterator Select(System.Xml.XPath.XPathExpression)
    The following is a stack trace that identifies the location where the exception occured
       at System.Xml.XPath.XPathNavigator.Select(XPathExpression expr)
       at System.Xml.XPath.XPathNavigator.Select(String xpath)
       at System.Xml.XmlNode.SelectNodes(String xpath)
       at Microsoft.XLANGs.Core.Part.XPathStore(Object rValue, String xpath)
       at UntypeMessage.UntypeOrchestration.segment1(StopConditions stopOn)
       at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)
    Can anyone help me why it is occuring ?
    Prakash

    In your assignment statement you should remove the "string(....)" XPATH method. So if you use
    xpath(BookMessage,"/*[local-name()='BookMessage' and namespace-uri()='http://UntypeMessage.Book']/@*[local-name()='Author' and namespace-uri()='']")=AuthorName;
    it will work. Now the Left-Hand-Side of the expression does evaluate to a node set (in this case it would evaluate to an XmlAttribute).
    Regards.

  • XML parser exception: No documentation !

    Hi,
    I'm getting an exception when looking for
    an <xsl:apply-templates> tag in an XSL file
    thats loaded via the DOMParser.
    Do I need to do anything special to declare
    the XSL Namespace?
    Also, the Parser API docs don't seem to have
    this Exception listed!!!
    Does anyone know more regarding this?
    TIA,
    Vijay
    oracle.xml.parser.v2.XPathException: Namespace prefix 'xsl' used but not declared.
    at oracle.xml.parser.v2.XSLParseString.nextToken(XSLParseString.java:406)
    at oracle.xml.parser.v2.PathExpr.<init>(XSLNodeSetExpr.java:313)
    at oracle.xml.parser.v2.XSLNodeSetExpr.parse(XSLNodeSetExpr.java:147)
    at oracle.xml.parser.v2.XSLNodeSetExpr.parse(XSLNodeSetExpr.java:131)
    at oracle.xml.parser.v2.XSLNodeSetExpr.parse(XSLNodeSetExpr.java:124)
    at oracle.xml.parser.v2.UnaryExpr.parse(XSLExpr.java:357)
    at oracle.xml.parser.v2.MultiplicativeExpr.parse(XSLExpr.java:295)
    at oracle.xml.parser.v2.AdditiveExpr.parse(XSLExpr.java:243)
    at oracle.xml.parser.v2.RelExpr.parse(XSLExpr.java:210)
    at oracle.xml.parser.v2.EqualExpr.parse(XSLExpr.java:160)
    at oracle.xml.parser.v2.AndExpr.parse(XSLExpr.java:110)
    at oracle.xml.parser.v2.XSLExpr.parse(XSLExpr.java:59)
    at oracle.xml.parser.v2.FilterExpr.getPrimaryExpr(XSLNodeSetExpr.java:1444)
    at oracle.xml.parser.v2.FilterExpr.<init>(XSLNodeSetExpr.java:1128)
    at oracle.xml.parser.v2.PathExpr.<init>(XSLNodeSetExpr.java:275)
    at oracle.xml.parser.v2.XSLNodeSetExpr.parse(XSLNodeSetExpr.java:147)
    at oracle.xml.parser.v2.XSLNodeSetExpr.parse(XSLNodeSetExpr.java:131)
    at oracle.xml.parser.v2.XSLExprBase.createNodeSetExpr(XSLExprBase.java:123)
    at oracle.xml.parser.v2.XMLNode.selectNodes(XMLNode.java:763)
    at oracle.xml.parser.v2.XMLNode.selectSingleNode(XMLNode.java:861)
    at com.citicorp.gra.portlets.fxrates.FxRatesPortletContentProvider.createStylesheet(FxRatesPortletContentProvider.java:302)
    at com.citicorp.gra.portlets.fxrates.FxRatesPortletContentProvider.getStylesheet(FxRatesPortletContentProvider.java:341)
    at com.citicorp.gra.portlets.fxrates.FxRatesPortletContentProvider.getContent(FxRatesPortletContentProvider.java:125)
    at portlet.BasePortlet.doPost(BasePortlet.java:100)
    at portlet.BasePortlet.doGet(BasePortlet.java:137)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
    at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
    at allaire.jrun.servlet.JRunNamedDispatcher.include(JRunNamedDispatcher.java:42)
    at allaire.taglib.ServletTag.doEndTag(ServletTag.java:84)
    at jrun__html__fxrates__tagtest2ejsp19._jspService(jrun__html__fxrates__tagtest2ejsp19.java:53)
    at allaire.jrun.jsp.HttpJSPServlet.service(HttpJSPServlet.java:40)
    at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
    at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
    at allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:34)
    at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:175)
    at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
    at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
    at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)
    at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
    at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
    at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:367)
    at allaire.jrun.ThreadPool.run(ThreadPool.java:272)
    at allaire.jrun.WorkerThread.run(WorkerThread.java:75)
    null

    Hi
    below is the statement which is looking
    for the "xsl:app-templates" element under
    node1, it need an instance of NSResolver.
    XMLElement node1Child2 = (XMLElement) node1.selectSingleNode ("//xsl:apply-templates", resolver );
    // Name Space Resolver
    private class MyNSResolver implements NSResolver {
    * returns the Namespace definition int scope for a given namespace prefix
    public String resolveNamespacePrefix( String prefix ) {
    if ( prefix.equals("xsl")) {
    return "http://www.w3.org/1999/XSL/Transform";
    } else return null;
    } // private class MyNSResolver
    null

  • "in-memory" XML lookup - NullPointerException

    I am using several static "in-memory" XML documents to store "lookup tables" and other resources (XSLs, SQLs, etc). I access resource within the XML lookups using XMLDocument.valueOf(xpathSearchString);. I am also building some XMLNode hashtables from which I clone nodes when a key is found.
    In both cases, I am getting an ephemeral NullPointerException:
    Cloning:
    ava.lang.NullPointerException
    java.lang.String java.lang.String.intern()
    void oracle.xml.parser.v2.XMLAttr.<init>(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
    oracle.xml.parser.v2.XMLAttr oracle.xml.parser.v2.NodeFactory.createAttribute(java.lang.String, java.lang.String)
    org.w3c.dom.Node oracle.xml.parser.v2.XMLNode.cloneNode(boolean)
    Selecting Node from Lookup:
    java.lang.NullPointerException
    java.lang.String java.lang.String.intern()
    java.lang.String oracle.xml.parser.v2.XSLParseString.getQname()
    int oracle.xml.parser.v2.XSLParseString.nextToken()
    void oracle.xml.parser.v2.PathExpr.<init>(oracle.xml.parser.v2.XSLParseString, boolean)
    oracle.xml.parser.v2.XSLExprBase oracle.xml.parser.v2.XSLNodeSetExpr.parse(oracle.xml.parser.v2.XSLParseString, boolean, boolean)
    oracle.xml.parser.v2.XSLExprBase oracle.xml.parser.v2.XSLNodeSetExpr.parse(oracle.xml.parser.v2.XSLParseString, boolean)
    oracle.xml.parser.v2.XSLNodeSetInt oracle.xml.parser.v2.XSLExprBase.createNodeSetExpr(java.lang.String, oracle.xml.parser.v2.NSResolver, oracle.xml.parser.v2.XSLStylesheet)
    org.w3c.dom.NodeList oracle.xml.parser.v2.XMLNode.selectNodes(java.lang.String, oracle.xml.parser.v2.NSResolver)
    I am stumped at this points. All the errors are coming from quite deep down in the Oracle API. I can not think of what I am doing that would affect things at that level.
    First gut response: I kind of think that it might have to do with the documents being static due to the String.intern() in the stack trace?
    Help!
    null

    Could you email the smallest possible testcase that reproduces the problem and include a URL to this discussion thread for reference?

  • How-to build a NodeList of ALL nodes in an XMLDocument

    Hello List,
    I am trying to write a method which takes in an XMLDocument and iterates over each element in the XMLDocument, extracting the value of an attribute, key, and using key to access a HashMap and add an important bit of data to the element.
    I am trying to use NodeList as the collection of elements but am having trouble getting either XMLNode.selectNodes(String pattern) or XMLNode.getChildNodes(String pattern) to return a NodeList containing ALL the nodes in the XMLDocument.
    Instead it is returning sibling nodes in its list, but not finding the children which these sibling nodes contain.
    Am I misuing the API? Is there another way to accomplish this?
    Any tips, suggestions, reponses, answers welcome.
    TIA,
    Alex Reuter

    Ok, here is how I am doing it.
    I am settling for a nodelist of all nodes which have attributes named key.
    XMLNode nodey = othernode;
    NodeList list = nodey.selectNodes("descendant::*/@key");
    just for posterity..
    alex

  • SelectNodes method in XMLNode class...

    Can anyone provide me a small code that shows how to use the
    selectNodes method in the XMLNode class? I don't know how to
    define the NSResolver that should be pass as an argument to this
    method.
    Thanks,
    Renilton
    null

    The selectNodes function is used in XMLElement and XMLDocument
    nodes. This function is used to extract contents from the
    tree/subtree based on the select patterns allowed by XSL.
    The second parameter of selectNodes, is used to resolve namespace
    prefixes (give the expanded namespace URL given a prefix).
    XMLElement implements NSResolver, so it can be sent as the
    second parameter. XMLElement resolves the prefixes based on the
    input document. You can implement the NSReolver interface, if
    you need to overide the namespace definitions.
    The sample code to use selectNodes
    public class SelectNodesTest {
    public static void main(String[] args) throws Exception {
    String pattern = "/family/member/text()";
    String file = args[0];
    if (args.length == 2)
    pattern = args[1];
    DOMParser dp = new DOMParser();
    dp.parse(createURL(file)); // Include createURL from
    DOMSample
    XMLDocument xd = dp.getDocument();
    XMLElement e = (XMLElement) xd.getDocumentElement();
    NodeList nl = e.selectNodes(pattern, e);
    for (int i = 0; i < nl.getLength(); i++) {
    System.out.println(nl.item(i).getNodeValue());
    java SelectNodesTest family.xmlSarah
    Bob
    Joanne
    Jim
    java SelectNodesTest family.xml //member/@memberidm1
    m2
    m3
    m4
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    Renilton Oliveira (guest) wrote:
    : Can anyone provide me a small code that shows how to use the
    : selectNodes method in the XMLNode class? I don't know how to
    : define the NSResolver that should be pass as an argument to
    this
    : method.
    : Thanks,
    : Renilton
    null

  • How to make the server threadsafe (Please Help)

    Hi to all,
    I have urgent question, and any
    reply will be welcome.
    How i make my server that use rmi threadsafe,
    i want that each request from clients,the
    server will make a separate thread.
    the ejb use jndi to do this, how can i do this in rmi
    i want that a client will get a reference to a factory
    object in the server, the factory object will create a
    thread and will return the reference to the client.
    Thanks,
    dan

    Hi Bill,
    Thanks for your reply.
    at the rmi specification it said that :
    3.2 Thread Usage in Remote Method Invocations
    A method dispatched by the RMI runtime to a remote object implementation may or may not execute in a separate thread. The RMI runtime makes no guarantees with respect to mapping remote object invocations to threads. Since remote method invocation on the same remote object may execute concurrently, a remote object implementation needs to make sure its implementation is thread-safe.
    this is all what sun has to say about using
    threads with rmi.
    do you have any example for using rmi server
    that handle concurrent access?
    again,
    lots of thanks for your help.
    dan

  • Urgent: need threadsafe replacement for malloc

    Hi,
    I have a native library that is using GetDirectBufferAddress to create large chunks
    within the java memory model that I can use to subdivide and alloc from
    in the native code instead of using malloc. However, there are multiple threads
    using these chunks so I need a locking mechanism.
    The problem is that MonitorEntry/MonitorExit takes 250 nanoseconds, which is
    a huge price to pay for allocation and free, total = 500. My question is can I
    do whatever malloc does in the GNU library to make itself immune to jvm
    thread context switches, especially on multiple cpu machines. Spin locks,
    openmp mutexes? Does anyone know how malloc is made threadsafe to
    be ok to use within a JNI library? And how I can get my hands on the
    necessary code.
    Thanks,
    Andy

    Greetings Folks,
    Like the original poster I am trying to back up my HD info. Got the exact same error message and code:
    "The operation cannot be completed because one or
    more required items cannot be found.
    (Error code -43).
    Could not open the data fork of "<unable to get file path>" (-43)."
    I was able to trace the error code down on Apple's Support site under the heading: Mac OS X, Mac OS X Server: "Error -43" When Using Windows File Sharing (SMB). Yay...except I have never used Windows file sharing and can't figure how this pertains to my problem.
    I did type
    in the "<unable to get file path>" into spotlight and
    got several hits:
    Documents:
    core.html.html
    windows.html.html
    ssl_faq.html
    PDF Documents:
    About Xcode Tools.pdf
    I deleted the "Documents" files (same ones as OP) that came up when I searched <unable to get file path> Was this an oops?
    Anyway, the disc was only 50% complete. I got a
    "closing session 1" window and that stayed active on
    the desktop for a few minutes and then the dvd just
    spit out. I put the dvd back in to see what was on it
    and didn't even open for a minute or two, just heard
    some clicking sounds from the drive and never got a
    disc icon on the desktop to even look at what was on
    the dvd. I gave it another try but sam thing
    happened.
    Same thing happened here. I would really like to back up my files. I have already trashed several DVDs in my unsuccessful attempts.
    I don't see any replies to the OP--is there anyone with a few cogent thoughts on all this out there? The same thing has now happened to at least 2 Mac users, which makes it seem a lot less like it's all in my head.
    Thank you many times over.
    iMac G5 2GHz PPC   Mac OS X (10.4.7)   still miss my Indigo G3

  • Web Service Task - that accepts XmlNode Input

    I'm creating an SSIS package that uses a web service method called "GetReportResults" ). The input parameters are:
    username (string)
    password (string)
    reportid (int)
    templateValues (xmlnode)
    When I run the package, how do I input the values for the xmlnode? The web service documentation shows an example that says I need to pass in the templateValues (filters) like this for the xmlnode:
    <FilterItems>
    <FilterItem FilterItemId="62898" FieldTitle="Date Modified" Operator="GreaterThan" Value="" IsTemplate="true" />
    <FilterItem FilterItemId="62899" FieldTitle="Date Modified" Operator="LessThan" Value="" IsTemplate="true" />
    <FilterItem FilterItemId="62900" FieldTitle="Date Modified" Operator="GreaterThanOrEqualTo" Value="8/13/2013 12:00 AM" IsTemplate="false" />
    <FilterItem FilterItemId="62901" FieldTitle="Status" Operator="DoesNotContain" Value="" IsTemplate="true" />
    </FilterItems>
    How do I go about setting this up so that when the package runs the templateValues are automatically input? Is there some sort of XML task that will accomplish this? If so, how would I implement this.

    I did find find this in the web service documentation: 
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0.0">
    <xs:element name="FilterItems">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="FilterItem" minOccurs="1" maxOccurs="unbounded">
    <xs:complexType>
    <!-- Set the inner text to the appropriate value -->
    <xs:simpleContent id="Value">
    <xs:extension base="xs:string">
    <!--
    You must use either the FilterItemId or the FieldTitle
    -->
    <xs:attribute name="FilterItemId" type="xs:integer" use="optional"/>
    <xs:attribute name="FieldTitle" type="xs:string" use="optional"/>
    </xs:extension>
    </xs:simpleContent>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>

  • DOMException after XMLNode.appendChild() with xdk 9.2.0.5.0

    Hi,
    the XMLNode.appendChild(XMLNode)- method returns a DOMException (Message: Node doesn't belong to the current document. Code: 4) while using the Oracle XDK Java 9.2.0.5.0 Production. Tested on Oracle8 and 9i.
    Changing to the older Version Oracle XML Parser 2.0.2.9.0 Production everything works fine!
    Code:
    import oracle.xml.parser.v2.XMLNode;
    XMLNode subRoot = (XMLNode)((XMLNode)(subDoc.getDocumentElement())).cloneNode(true);
    XMLNode targetNode = (XMLNode)doc.selectSingleNode(data.nodePath);
    targetNode.appendChild(subRoot); => EXCEPTION
    (Oracle JDeveloper9i Vers.9.0.3.1035)
    Any suggestions?
    Thanks,
    Stefan

    Found solution in Oracle Metalink (DOC 228834.1):
    Use functions to detach the node from its owner document before using xmldom.appendChild:
    xmldom.importNode - to make a copy of the node
    xmldom.adoptNode - to move the node
    See API for more details!

  • PowerBuilder Classdefinition not threadsafe?

    Hi,
    I have an object that uses the Classdefinition variable to access the variablelist.
    This functionality runs fine in single task environment (if I simple CREATE the object). But if I run it in a separate task (as SharedObject) the results are sometimes unexpected. For instance I sometimes get empty variable names or the function call or the whole application hangs.
    May it be, that the access of Classdefinition is not threadsafe?
    I have tested it with a simple test application (no PFC or others).

    Additional information:
    To avoid the problem I now use a mutex to serialize the access. It works almost good!
    But now Powerbuilder crashes only sometimes at access of variablelist property:
    Microsoft Visual C++ Runtime Library
    Runtime Error!
    Program: C:\Program Files (x86)\Sybase\PowerBuilder 12.0\PB120.EXE
    R6025
    - pure virtual function call
    Any ideas what's the reason?

  • SelectNodes with namespaces

    Hi,
    I'm parsing the XML document of a forms module that looks something like
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <Module version="101020002" xmlns="http://xmlns.oracle.com/Forms">
    <FormModule Name="HAN101" ParentType="29" DirtyInfo="true" MenuModule="menuena"...>
    etcetc
    and then try to do a
    documentElement.selectNodes("//FormModule", documentElement)
    but I don't get any hits. Shouldn't this work for the default NS? I even tried creating a NSResolver implmentation and passing that as a parameter for selectNodes but my breakpoint in it was never hit.
    Suggestions appreciated.
    -Nik

    Yep, thanks. Just noticed that there is no default namespace in XPath. I was just thrown off by the fact that for some strange reason my breakpoint wasn't hit when I first tried it (was probably due to the fact that I didn't use any namespaces in the query)...

  • CheckThread static analysis tool, @ThreadSafe, @ThreadConfined

    Hello,
    I'm looking for feedback on CheckThread, a free and open source static analysis tool I created.
    By using a @ThreadConfined and @ThreadSafe annotation on methods and classes, this tool can catch certain types of threading bugs at compile time.
    To see examples, check out:
    http://www.checkthread.org/examples.html
    For example, when developing a Java Swing app, a Java developer must ensure that the Swing component is accessed only on the Event-Dispatch Thread after the component is realized. With large applications that are thousands of lines of code, simple thread confinement for Swing can be difficult to enforce and may result in wacky sporadic runtime behavior. CheckThread solves this problem using annotations and a static analysis Ant task - thread confinement problems are caught at compile time. An added benefit is that the threading model of Java code is well documented inline with the code.
    All feedback welcome!
    Thanks,
    Joe

    I recommend you to ask developers of FindBugs to add your feature to their project. FindBugs says that it already supports concurrency bugs finding (see jcip package), but that support is very poor (actually, it's not working). I'll try your program.

  • HELP Error trying to load XMLNode.class

    I am trying to load the Beta XDK for PL/SQL into the database. At first when I ran the command:
    loadjava -user ..... xmlparserv2.jar
    I got a whole lot of errors saying that it could not read the compressed format. So I decompressed the .jar file and tried to load each .class individually. This seemed to work fine until I tried the XMLNode.class file. I get this error when I try to load it:
    Error while opening or reading XMLNode.class
    Exception oracle.aurora.server.tools.ToolsException: file format error
    loadjava: 1 errors
    Anyone know why I am getting this or have any fixes? Thank you.

    Hi,
    whether u ve checked "texts language dependent" option in the masterdata/texts context screen of the infoobject? If so, then u ve to specify the language (for english, EN)in ur flat file too
    Hope it helps..Let me know
    Regards,
    R.Ravi

Maybe you are looking for

  • # months old AND LOTS OF ISSUES

    I got my Blackberry a few moths ago and it is giving me major problems  it all started a week since i got it , the trackpad ... we dont live in a City  so i couldnt get it fixed .... then when im chattin or something it gives me a white screen and it

  • Daisy Chain TB Display

    I have tried to daisy chain a second TB display to my 13" MacBookPro. One display works but not the second. Is there a software issue or is there something I am not doing correctly.

  • CBO not picking the right execution plan

    Database: Oracle 9.2.0.6 EE OS:Solaris 9 I am trying to tune a query that is generated via Siebel Analytics. I am seeing a behaviour which is puzzling me but hopefully would be 'elementary' for someone like JPL. The query is based on a total of 7 tab

  • Closing Error When Import!!!

    When I press "import", the program is closing. Export operations are running with no problems.

  • Many apps are just flashing (not all third-party ones, though)

    Hello, I know this is the umpteenth post about this issue, but I have tried all tricks I've read before going for a full restore and I'm wondering if some other trick might be known to the community. First, the well-known issue is the following: some