StAX implementation 'bugs'

Hi,
I'm trying out both the BEA reference implementation, and the weblogic implementation.
The reference implementation works well, except for a bug in parsing. I've noticed
that when an element contains only an entity reference as character data, it is
not detected. e.g.
<foo>
<bar>&</bar>
</foo>
Will result in START_ELEMENT, START_ELEMENT, END_ELEMENT, END_ELEMENT events and
does not produce an expected CHARACTERS event in the middle. I have not tested
this with the weblogic implementation yet.
As for the weblogic implementation, I'm having trouble using it in my streaming
XML application. I need to parse incoming XML as it is sent to me. Unfortunately
the weblogic implementation is evidently trying to fill a buffer on the initial
xmlInputFactory.createXMLStreamReader(). The call doesn't return until the buffer
is filled which will never occur in my case (the client sending XML to the server
waits for a response before sending more XML than the opening tag, and the server
needs to parse the opening tag sent by the client before it can generate that
response). Is there a way to tell the weblogic implementation to change it's buffer
size or, even better, to have it work like the reference implementation and parse
what it reads before trying to read more? Buffering will be handled externally
to the parser in my case so this forced buffering by the weblogic implementation
ends up being a major problem.
Thanks
-iain

Many thanks for the feedback!
Bruce
Iain Shigeoka wrote:
>
Bruce Stephens <[email protected]> wrote:
The StAX guru says:
It's not clear we can provide the requested behavior. The underlying
processor reads the stream to setup the state. The parser needs to read
ahead and no guaruntees are provided that say the underyling parser
won't
attempt to read ahead in the char stream.
If you could provide a simple reproducer for this issue it would be
appreciated.Hi,
The particular use-case here is to support IETF XMPP streaming XML:
http://www.ietf.org/html.charters/xmpp-charter.html
In particular a tcp/ip connection is made between a client and server. The client
sends an opening <stream> tag. The server must read that tag in, obtain information
from the tag's attributes, then reply with it's own opening stream tag <stream>.
The tag is not large in size but must be processed before more data is sent.
Conceptually the socket holds two streaming XML documents (one c-s and one s-c)
that are sent in a coordinate fashion (client sends some of it's xml, server reads
that bit then sends some of it's xml, etc). The reference implementation loads
it's buffer with the first read, then attempts to parse it before loading more
data. This works great for XMPP since participants send complete XML 'parts' (e.g.
the complete start tag, data to the next end tag, etc).
The BEA implementation keeps trying to load more data to fill it's buffer before
inspecting the data it has already read in. Thus it doesn't pull events as it's
read unless it can fill it's buffer first.
To replicate this, simply run the first simple xml printer example program from
http://www.xml.com/pub/a/2003/09/17/stax.html?page=1, substituting the reading
of a URL to the following:
create a server socket on port 5222
block on accept, when you get a connection
Read the xml from the connection
Now start that program, and run any XMPP/Jabber client against it. If you're on
Windows, I'd suggest Exodus http://exodus.jabberstudio.org/ because you can use
F12 to display a debug window showing the XML being sent and received. Alternatively,
just telnet to port 5222 on localhost to connect to your new server, and type
<stream>
If you use the reference implementation, you'll see the program spit out 'stream'
because it has seen it, and pulled the event. With the BEA implementation you'll
never see the opening tag because it will stay blocked trying to read and fill
it's buffer.
If the 'required to fill buffer before parsing' behavior of the BEA implementation
cannot be changed, can we have a way to set the buffer/read-ahead size? My streams
can be buffered externally so I'd then set the stax buffer to '1' and should get
the behavior I want.
I understand that this behavior is not required by the Stax spec so if you decide
not to support it in the BEA implementation I'd love to know so I can look for
an implementation that does.
Thanks
-iain

Similar Messages

  • Chunked Transfer Encoding - Doesn't work due to implementation bug?

    Hello All,
    I'm tackling the infamous "transfer-encoding: chunked" issue on trying to send POST data from the J2ME emulators and devices greater than 2048 bytes (or whatever the internal buffer size of a specific device might be). The nginx server on the other end always sends back a *411 - No content length specified* because it doesn't seem to recognize chunked transfer encoding. (despite the fact nginx is HTTP 1.1 compliant meaning it should be able to recognize it without rejection)
    One thing I've noticed is that compared to a correctly chunked HTTP body which looks something like this:
    *2*
    ab
    *4*
    abcd
    A
    *0123456789*
    *3*
    foo
    *0*
    the HTTP bodies coming out of the MIDlet though Network Monitor in the emulator just look like this:
    ababcd0123456789foo
    It seems the chunked HTTP body does not have the chunk size indices that should be there for proper formatting.
    I did my debugging on the Sun Java Network Monitor and maybe that tool "hides" the actual chunking indices
    or the chunking takes place at a point beyond the emulator's snapshot of the data. Does anyone know if the Sun Java Network Monitor indeed shows the entire body of an HTTP POST in it's true state? The size of one packet I'm looking at is 2016 which is 32 bytes off 2048 - the supposed limit where data starts getting chunked. Could this "missing" 32 bytes from the log be the chunking indexes I am looking for? If the Network Monitor indeed shows the packet body in it's entirety then it seems like people are having issues sending chunked transfers because the format is wrong.
    Anyway assuming J2ME's chunked transfer encoding is working correctly then how come nginx and many other supposedly HTTP 1.1 servers cannot understand the incoming format? Is Java's implementation of chunked transfer encoding somehow deviant from the set standard? I read a post at the following address
    http://forum.java.sun.com/thread.jspa?forumID=76&threadID=454773
    in which a user could not get chunked posts recognized by Apache until he changed the format of his HTTP body (read the last post on that thread for details on this).
    In case no one can assist on the above how would I go about trying to intercept the HTTP data stream right after it leaves the emulator or a real device. Is this something that can only be done server side? If so how can I guarantee that the data I am receiving on the server side was not modified by another entity along the way?
    Any help on this would be much appreciated. Thanks.
    -Bob

    We're still tackling the same issue but we've made a few discoveries:
    * Nginx does not support chunked transfer encoding despite it's HTTP 1.1 status.
    * The chunked transfer encoding format coming out of J2ME is correct. During some server side logging sessions we found that J2ME puts in the chunking indices and the finalizing 0 and carriage return to signify the end of the stream.
    * The missing 32 bytes not shown in the Sun Java Network Monitor are the chunking indices - they are just hidden from you at that level of display. Since the J2ME emulator sends it's packets in 2048 bytes chunks when viewing the monitor you will just see the contents itself (2016 byte chunks). The other 32 bytes are the headers i.e.
    7e0[carriage return]
    which is a 32 bytes sequence (4 8 byte characters) with the last character being the carriage return. 7e0 in decimal is 2016 - the size of the displayed packet in the network monitor.
    Anyone have any suggestions for a reliable server end receiver for chunked transfer encoding content? (preferably one which works well with Ruby on Rails)

  • Character encoding problems with weblogic stax implementation?

    Hello all,
    While using Stax to parse some XML, we encounter the following exception when the processor reaches the UTF-8 character C3 B1, ('ñ'):
    Caused by: Error at Line:1, token:[CLOSETAGBEGIN]Unbalanced ELEMENT got:StudentRegistration expected:LastName
    at weblogic.xml.babel.baseparser.BaseParser.parseSome(BaseParser.java:374)
    at weblogic.xml.stax.XMLStreamReaderBase.advance(XMLStreamReaderBase.java:199)
    We suspect that the processor's encoding might somehow be set to ANSI instead of UTF-8. I have read, in other posts, of a startup property related to web services:
    -Dweblogic.webservice.i18n.charset=utf-8
    However, this XML is not a web service request, but rather a file being read from disk after an MDB's onMessage() method is called.
    Could this setting be affecting stax parsing outside of webservices? Any other ideas?
    Thanks!

    As far as I know, we don't support changing outbound message encoding charset in 9.x. Both 8.x and 10.x support it. Check [url http://docs-stage/wls/docs100/webserv/client.html#wp230016]here

  • WTK http stack implementation bug: malformed URL

    Hi
    the WTK emulators dont parse URLs correctly. The following code throws an "java.lang.IllegalArgumentException: malformed URL" exception. It works on most phones and the SonyEricsson J2ME SDK tho.
    c = (HttpConnection) Connector.open("http://www.4950.net");
    The stack trace is
    java.lang.IllegalArgumentException: malformed URL
         at com.sun.midp.io.HttpUrl.isIPv4Address(+88)
         at com.sun.midp.io.HttpUrl.parseAfterScheme(+568)
         at com.sun.midp.io.HttpUrl.<init>(+36)
         at com.sun.midp.io.j2me.http.Protocol.connect(+18)
         at com.sun.midp.io.ConnectionBaseAdapter.openPrim(+52)
         at javax.microedition.io.Connector.openPrim(+299)
         at javax.microedition.io.Connector.open(+15)
         at javax.microedition.io.Connector.open(+6)
         at javax.microedition.io.Connector.open(+5)
    I interpret the error as the http stacks recognizing this url as a numbered notation (e.g. http://123.234.34.24) instead of a text notation (e.g. http://www.google.com).
    I tried to look into the midp sources but the ones that are online do not contain the method com.sun.midp.io.HttpUrl.isIPv4Address from reading the source available it seems that the midp2.0fcs sources dont contain this error.
    Can anyone in sun fix this?

    an URL cannot start with a number after the www !

  • What the actual bug is in the iPhone 2.0 ActiveSync implementation

    There is a serious bug in the ActiveSync client implementation in the iPhone 2.0 software. I'm pretty aware of this as I'm a Sr. Engineering type for another major cellular handset OEM and went through the same issues debugging/QAing development of another client on another handset. Note that I haven't gotten around to picking up a 3G iPhone yet, but updated my existing EDGE 1.0 handset in a 6 hour to the minute iPocalyptic ordeal.
    First of all there are some pre-existing conditions in your MS-Exchange server set up that might negate your ability to access Exchange mail with any client, first, OWA services have to be "turned on". If you cannot access Outlook Web Access from the browser on your desktop/laptop, you're SOL, it'll never work. If your Exchange server is behind a corporate firewall, i.e., you have to be on your home network or VPN in to access OWA services, you would be again SOL on using the iPhone.
    The implementation bugs would indicate that whomever was in charge of testing it did not have a clue about what they are doing, and/or did not test the client on a wide enough variety of MS-Exchange installations.
    A very common setup, like my corporate Exchange servers, involve multiple servers with unmatched security certs, i.e., OWA address is https:/webmail.corpname.com, but actual server name is https://mail.corpname.com, requiring response to a security cert Accept/Deny/View certificate type message that will popup when accessing via a web browser or a PROPERLY implemented ActiveSync client. When you attempt to access a setup like this, which is not uncommon, the response back to the proffered credentials is unexpected, and in the case of iPhone 2.0 you just get an immediate "Exchange acct. verification failed" error message in very fine print at the top of the display (which apparently from the verbiage in a number of posts some people aren't noticing) instead of the security cert popup. This issue should be easily fixable, but will require a software update to the existing 2.0 software ActiveSync client. There are potentially other issues with forms based authentication, but due to the cert issue I can't tell at this point if they exist as well.
    The above is referenced specifically to an MS Exchange 2003 server, can apply to some older Exchange versions as well. I don't want to even get into MS-Exchange Server 2007; I can't connect to that either, but there can be a lot of issues further then the multiple server or security cert issue; since there hasn't been an SP2 release for it, it is still technically beta software IMHO. There ARE additional issues, especially if "CAPTCHA" validation is invoked, don't want to even go there...
    The general implementation of the MS-Exchange looks distinctly "last gen" and flawed. The first attempt to attempt to garner setup/authentication using only reply address and domain/username input will probably not work on most MS-Exchange installations, and has to fail before you get prompted to input the server URL address. Another potential issue is that there is NO SSL On/Off control even on the extended setup page; and you do not see that the setting is defaulted to SSL "On" until after the entire setup fails and you go back through Settings - Mail - Acct details; SSL "On' is the default setting from Microsoft when setting ActiveSync on WinMobile devices, but as often as not should be set to "Off" for many MS-Exchange server installations/setups.
    So hopefully 2.0.1 will be released shortly and we will all be able to get ActiveSync connectivity back to our MS-Exchange servers.... I'm not going to bother to pick up an iPhone 3G until this is rectified, what would be the point?
    Note to Steve Jobs: If you didn't have an aneurysm/heart attack in the WarRoom today I would be available to ensure embarrassing f*ckups like this don't happen on future launches, and if you move me to the Bay Area will work for short money despite the fact I have 22 years experience in computers/telecommunications 8 1/2 of which bring successful cellular handsets to market, I just need to be two steps above a cardboard box on the corner of 9th and Howard, have your people all/email mine...

    After almost 1 week of sheer frustrations, I have been unable to connect my Iphone 3G to my exchange server at work.
    I have tried probably every method discussed here, including restoring my iphone 3G several times. My issue has been elevated all the way up to apple engineering, and still no solution.
    It appears that the issue is that I cannot connect because my company is using Exchange server 2003 with SP1.
    I can connect any Windows Smartphone or Pocket PC and it will sync in what seems seconds….very fast. I have used windows phones connected to our server for more than 4 years, never an issue.
    My company has the attitude of we “We don’t want you to connect, you are lucky to be able to use active sync on windows phones!!” So their change is not probable.
    Has anyone found a way to connect Iphone 3G to an Exchange Server 2003, SP1?

  • WL6.1 Stub bug ?

    Hello, can someone help me ?
    Thanks in advance
    I have this exception :
    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ must initialize before
    invoke ] at weblogic.utils.Debug.assert(Debug.java:84) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:218)
    at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35) at $Proxy107.go(Unknown
    Source)
    I work on a single WL6.1 sp2 instance, WinNT, development mode.
    I have 2 ears: EAR1 (1 ejb-module) and EAR2(1-ejb-module). EAR1 contains a client
    jar that acts as a business delegate for EAR2 (lookup + home creation + remote
    creation + service invocation). I have a client jar (external app) that calls
    the ejb in EAR1; The ejb in EAR1 calls the ejb in EAR2 by the business delegate.
    After the first invocation of the business delegate, the home is cached (static
    variable in a service locator accessed by the business delegate). At the second
    invocation, the business delegate is instantiated again, the home is in the cache
    (no more lookups), the remote is created again. And everything is ok.
    If I redeploy (auto-deploy in the application directory) EAR2, without changing
    anything in it, but only "touching" the ear file in the file system (>touch ear2.ear),
    if I call EAR1, it fails to call EAR2. Always. I have to "touch" EAR1 too.
    I need to change sometimes the implementation of the ejb in EAR2, so I need to
    redeploy it. I wouldn't like to redeploy also the "client" ears (I'll have more
    than one, in production).
    My question is :
    1) Is this a WL (stub / dyn proxy implementation) bug ?
    2) If not, cannot I implement home caching in my business delegate ? Do I have
    to look up "every time" my home ? (on the same instance the lookup is optimized,
    but not if I deploy EAR2 on another instance).
    More info :
    6.1 sp3 ----> same problem
    7.0 ----> it works (different WL stub implementation)
    Can someone tell me something ?
    Thanks in advance
    Mark Cordobal

    Hello, can someone help me ?
    Thanks in advance
    I have this exception :
    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ must initialize before
    invoke ] at weblogic.utils.Debug.assert(Debug.java:84) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:218)
    at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35) at $Proxy107.go(Unknown
    Source)
    I work on a single WL6.1 sp2 instance, WinNT, development mode.
    I have 2 ears: EAR1 (1 ejb-module) and EAR2(1-ejb-module). EAR1 contains a client
    jar that acts as a business delegate for EAR2 (lookup + home creation + remote
    creation + service invocation). I have a client jar (external app) that calls
    the ejb in EAR1; The ejb in EAR1 calls the ejb in EAR2 by the business delegate.
    After the first invocation of the business delegate, the home is cached (static
    variable in a service locator accessed by the business delegate). At the second
    invocation, the business delegate is instantiated again, the home is in the cache
    (no more lookups), the remote is created again. And everything is ok.
    If I redeploy (auto-deploy in the application directory) EAR2, without changing
    anything in it, but only "touching" the ear file in the file system (>touch ear2.ear),
    if I call EAR1, it fails to call EAR2. Always. I have to "touch" EAR1 too.
    I need to change sometimes the implementation of the ejb in EAR2, so I need to
    redeploy it. I wouldn't like to redeploy also the "client" ears (I'll have more
    than one, in production).
    My question is :
    1) Is this a WL (stub / dyn proxy implementation) bug ?
    2) If not, cannot I implement home caching in my business delegate ? Do I have
    to look up "every time" my home ? (on the same instance the lookup is optimized,
    but not if I deploy EAR2 on another instance).
    More info :
    6.1 sp3 ----> same problem
    7.0 ----> it works (different WL stub implementation)
    Can someone tell me something ?
    Thanks in advance
    Mark Cordobal

  • StAX parser does not handle UTF-8 byte order mark

    Hello,
    i am playing around with the reference implementaion of the StAX API using the XMLStreamReader.
    When i parse UTF-8 encoded xml files with the UTF-8 byte order mark i get the following exception when the method next() is called on the reader instance:
    javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,7]
    Message: processing instruction can not have PITarget with reserveld xml name
         at com.bea.xml.stream.MXParser.parsePI(MXParser.java:2734)
         at com.bea.xml.stream.MXParser.parseProlog(MXParser.java:1775)
         at com.bea.xml.stream.MXParser.nextImpl(MXParser.java:1717)
         at com.bea.xml.stream.MXParser.next(MXParser.java:1180)
    The XMLStreamReader is created on a FileInputStream.
    When parsing xml's without a byte order mark, parsing works without any problems.
    Any idea how to solve this problem, or is this an internal problem of the StAX implementation.
    Thanks for help.
    Jörg Eichhorn

    Issue related to handling the BOM were fixed as part of the 10g project which added NLS Support to the protocols. I just verified that an UTF8 file containing BOM is correctly processed via FTP in 10.1.0.2.0

  • StAX and large XMLs

    Hi everyone,
    I want to use StAX for parsing an XML file that is about 20 MB large. Within this XML, a binary file is embedded which is located under a specific XML element.
    I thought that it would be a good idea to use StAX in that situation, because I want to make use of streaming technology. One goal was to avoid that I have the entire content of the embedded file in memory, but only single characters, which I can put into another stream.
    I am now facing the problem, that the StAX implementations (I tested the BEA implementation and the reference implementation) do not support the "getTextCharacters" method, which would be the most essential method for retrieving characters from a stream during a "CHARACTER" event.
    Currently, the only possibility to read out characters is calling the "getText" method, but in that case, I have the entire file in memory (really bad!).
    Does anyone has experience using StAX and especially streaming large XML elements to a file?
    I see no benefit of a StAX implementation which does not allow calling this method:
    getTextCharacters(int sourceStart,char[] target,int targetStart, int length)
    In my opinion, that would be the actual heart of a real streaming API.
    Does anyone know a good StAX implementation that supports that operation?
    Best regards,
    Martin

    In general, controlling this isn't easy, you may try using writeEmptyElement() but I don't believe it makes any guarantees about how closing tags are serialized.
    If large data sets is a big problem in your application, and readability isn't a primary concern, you may try using Fast Infoset,
    https://fi.dev.java.net
    which is now part of the platform in JDK 6. Using this format you can improve your application's performance and reduce bandwidth requirements by half, without having to re-write your application. For example JAX-WS, the WS API, already supports this format. Morever, it includes an HTTP-based content negotiation algorithm to make the use of the format completely transparent.

  • Problem with parsing large XML files chunked over HTTP

    I'm trying to isolate a bug that was introduced when upgrading the JRE in use from Java 7u51 to 7u71 without changing any code. The problem appears to be very similar to: Bug ID: JDK-8027359 XML parser returns incorrect parsing results.
    Further investigation showed that it was also introduced in the same versions (7u71) where that fix was applied. Unlike that bug though, my XML is marked as version 1.0. It also appears to be with only large XML files, on the order of 10MB or so.
    The closest I've been able to narrow it down to is the code is using JAXB to unmarshall a stream that the debugger tells me is a org.apache.http.com.EofSensorInputStream / org.apache.http.impl.io.ChunkedInputStream. The exception I get is not consistent, but typically appears to be from chunks being overwritten or shuffled, resulting in letters appearing in attributes that are actually numbers, or like the following where an attribute "testAttribute" gets partially overwritten by the end of a timestamp that was in a different section of the XML.
    javax.xml.bind.UnmarshalException
    - with linked exception:
    [javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,98748]
    Message: Attribute name "testAttribu00Z" associated with an element type "testElement" must be followed by the ' = ' character.]
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:421)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:357)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:334)
    Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,98748]
    Message: Attribute name "testAttribu00Z" associated with an element type "testElement" must be followed by the ' = ' character.
      at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:598)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:181)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:355)
      ... 6 more
    Here's some code that seems to reproduce it if you can connect to an XML server that returns a large chunked XML file:
      SchemeRegistry registry = new SchemeRegistry();
      registry.register(
                    new Scheme("http", 80, PlainSocketFactory.getSocketFactory()));
      HttpClient client = new DefaultHttpClient(new BasicClientConnectionManager(registry));
      String url = "http://someUrlReturningAlargeChunkedXML";
      HttpGet method = new HttpGet(url);
      HttpResponse response = client.execute(method);
      InputStream inputStream = response.getEntity().getContent();
      XMLStreamReader responseReader = factory.createXMLStreamReader(inputStream);
      JAXBElement<JaxBObjectOfResponse> wot = unmarshaller.unmarshal(responseReader, JaxBObjectOfResponse.class);
    If you connect using URL.openStream() to the same service there is no error. If I read bytes directly and write to a file, there is no error. The error only happens when I try to unmarshal it, and it's large, and I'm using Java 7u71 (or later). It can be consistently repeated with the jsp webapp that I'm using, but didn't show the error when I used the same code with a Wikipedia dump XML file.
    How can I unmarshal in a different way to avoid this problem? Or, how can I better isolate the bug so it can be posted to the appropriate bug system?

    Apparently, adding the Woodstox XML libraries avoids the bug. Is there anyone who can reproduce this on another system? Was there any changes to the Stax implementation between u67 and u71 that may have introduced a bug like this?
    Edit: When setting the logging level to DEBUG, I once saw the overwritten buffer being logged as if that was what was received (as in the testAttribu00Z example above). I can't repeat that anymore though, and very rarely it does parses with no exception (though it may have still been corrupted). Now the error seems to be consistently on one of the buffer boundaries, as in:
    17:08:09,705 DEBUG wire:63 - << "2000[\r][\n]"
    17:08:09,705 DEBUG wire:77 - << "trend>....OTHER XML...<trend hours=""
    17:08:09,705 DEBUG wire:77 - << "634.0972777777778" datetime="2013-05-21T00:43:48.350Z" t"
    17:08:09,705 DEBUG wire:63 - << "[\r][\n]"
    17:08:09,705 DEBUG wire:63 - << "2000[\r][\n]"
    17:08:09,705 DEBUG wire:77 - << "rend-mode="0">
    Exception in thread "main" java.lang.NumberFormatException: t34.0972777777778
      at com.sun.xml.internal.bind.DatatypeConverterImpl._parseDouble(DatatypeConverterImpl.java:213)
      at mypackage.Trend_JaxbXducedAccessor_hours.parse(TransducedAccessor_field_Double.java:48)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StructureLoader.startElement(StructureLoader.java:194)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:486)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:465)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:60)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStartElement(StAXStreamConnector.java:231)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:165)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:355)
      at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:334)
    Or:
    17:19:12,563 DEBUG wire:63 - << "2000[\r][\n]"
    17:19:12,563 DEBUG wire:77 - << ...OTHER XML...<trend index="5"
    17:19:12,563 DEBUG wire:77 - << "" label="N"
    17:19:12,563 DEBUG wire:63 - << "[\r][\n]"
    Exception in thread "main" java.lang.NumberFormatException: Not a number: N
      at com.sun.xml.internal.bind.DatatypeConverterImpl._parseInt(DatatypeConverterImpl.java:106)
      at com.sun.xml.internal.bind.DatatypeConverterImpl._parseShort(DatatypeConverterImpl.java:118)

  • Efibootmgr & gummiboot replaced UEFI entry for Windows Boot Manager

    TLDR
    I am now in Windows 7 and dual boot with Arch is working fine.
    But before I update Arch, I would like to understand what happened, as in why adding an efibootmgr entry for Arch replaced/deleted the Windows Boot Manager entry although I followed the BG.
    The status of my UEFI boot menu was, before the installation of Arch:
    Windows Boot Manager
    AHCI HDJ... (hard drive 1)
    AHCI ST... (hard drive 2)
    While working through the BG, I decided to use gummiboot=> https://wiki.archlinux.org/index.php/Be … #Gummiboot. So:
    pacman -S gummiboot
    gummiboot install
    pacman -S efibootmgr
    gummiboot install
    [some error ocurred, as mentioned in red box]
    efibootmgr -c -L "Gummiboot" -l /EFI/gummiboot/gummibootx64.efi
    nano /boot/loader/entries/arch.conf
    title Arch Linux
    linux /vmlinuz-linux
    initrd /initramfs-linux.img
    options root=/dev/sdb3 ro
    [CTRL + X, Y, Enter]
    exit
    umount /mnt/{boot,home,}
    reboot
    I then saw a new list of the UEFI boot order:
    Gummiboot
    AHCI HDJ... (hard drive 1)
    AHCI ST... (hard drive 2)
    Chose Gummiboot and it brought up a gummiboot menu with entries
    Arch Linux
    Windows Boot Manager
    EFI Shell something
    Selected Arch Linux and it went to a message something along "boot device ' ' not found" and I was in a shell which was, I think, rootfs.
    I rebooted via the button on my desktop and out the Arch Linux USB drive back. After mounting the partitions:
    gummiboot remove
    efibootmgr
    [0000: Windows Boot Manager
    [0001: Arch Linux
    [0002: AHCI HDJ...
    [0003: AHCI ST...
    exit
    umount /mnt/{boot,home,}
    reboot
    Now I booted into a black screen with white text which said something "Reboot and select proper Boot device"
    => Inserted Win 7 64-bit DVD, repaired the boot sector. Rebooted, saw I had these entries again:
    Windows Boot Manager
    AHCI HDJ... (hard drive 1)
    AHCI ST... (hard drive 2)
    The boot into Windows worked fine. Rebooted, chrooted into my install again and:
    efibootmgr
    [0000: Arch Linux
    [0001: Windows Boot Manager
    [0003: AHCI HDJ...
    [0003: AHCI ST...
    efibootmogr -b 0 -B
    Then I used the EFISTUB method:
    efibootmgr -c -L "Arch Linux" -l /vmlinuz-linux -u "root=/dev/sdb3 ro initrd=/initramfs-linux.img"
    efibootmgr
    [0000: Windows Boot Manager
    [0001: Arch Linux
    [0002: AHCI HDJ...
    [0003: AHCI ST...
    exit
    umount /mnt/{boot,home,}
    reboot
    On reboot, 'Windows Boot Manager' was again replaced by 'Arch Linux'.
    => Inserted Win 7 64-bit DVD, repaired the boot sector.
    Rebooted, I have now Windows Boot Manager + Arch Linux and dual boot works now.
    My questions:
    What is going on with efibootmgr replacing/deleting the Windows entry? Is there something wrong with my UEFI menu?
    In connection with 1., I would like to sync the EFISTUB Kernel (wiki entry) before I run pacman -Syu. Can I do that now?
    Can I uninstall gummiboot now?
    Last edited by jones (2013-07-11 12:30:55)

    henrik wrote:So in light of your post, I decided to ditch EFISTUB + gummiboot and try out GRUB. Thanks for clearing it up a bit. Which is what confuses me a great deal more, as GRUB/gummiboot obviously do not meddle with Microsoft's EFI files. Right?
    EFI relies on two things to boot:
    Boot loader program files on the ESP (or occasionally elsewhere).
    NVRAM entries pointing to the boot loader files.
    Your own problems seem to be with the NVRAM entries, not with the boot loader files themselves. Unfortunately, managing those NVRAM entries has proven to be problematic because of bugs in specific EFI implementations, bugs in efibootmgr and other tools that manipulate the NVRAM entries, poor documentation, and other factors.
    To answer your question, though, no boot loader should mess with another's files. Such things can happen, though. The number of bugs that cause Microsoft's boot loader (EFI/Microsoft/Boot/bootmgfw.efi) to be treated deferentially have provoked some tools to use it as a target location for other boot loaders. (Ubuntu's Boot Repair tool does this in a rather overzealous way. So does my own rEFInd installer script, but only under certain narrow circumstances.) Also, the EFI/BOOT/bootx64.efi file is a special case; it's the fallback bootloader that's used when NVRAM entries are missing or don't work, and various boot loader installation procedures place copies in that location, so it can be overwritten and could contain just about anything.
    However, the whole thing happened again with GRUB. So I did the whole "repairing Boot problems" with the Windows DVD rescue thingy again and deleted all non-Microsoft files from the EFI partition, /dev/sda1.
    Then I formatted / (root) and installed arch again and followed the Beginners' Guide which suggest mounting /dev/sda1/ to /mnt/boot (in contrast to the GRUB entry where the ESP should be mounted to /mnt/boot/efi).
    I strongly advise against doing a complete re-installation just to overcome a boot loader problem. Instead, figure out what the problem is and fix it. Doing a complete re-installation is not likely to fix anything, and depending on precisely how you do it, you could end up with a more complex problem. The reason is that the re-installation is not likely to erase the NVRAM entries from the old installation, so you could find that you've got additional stray NVRAM entries. If you do happen to fix the problem by re-installing (say, because you selected a different installation option), you're not likely to know what changed to fix the problem, so you could end up in the same boat should you need to re-install again in the future.
    But it did not show this line
    Found Windows 7 (loader) on /dev/sda1
    ... how come??
    I've given up trying to understand GRUB's configuration scripts. You could try creating an entry manually by editing /etc/grub.d/40_custom; or you could forget about using the GRUB scripts and create a hand-crafted grub.cfg; or you could forget about using GRUB at all. I'm not a fan of GRUB, so my personal choice is the final one.
    So for all the headache and time ... should I delete the EFI partition and recreate it maybe? I think it's possible using the Windows 7 DVD.
    But somehow using efibootmgr on my UEFI list somehow invalidated the Windows entry.
    Reviewing your posts, it seems that you want to use the EFI stub loader directly, but you're having problems with that because when you add it to the NVRAM entries, Windows drops off your boot manager's boot options. The obvious solution to this problem is to forget about adding the EFI stub loader directly to the NVRAM entries, and instead add a boot manager that can handle either a Linux kernel or the Windows boot loader. (IMHO, this is the superior solution anyhow; I disagree with the Arch wiki's emphasis on using the EFI stub loader "raw.") It seems you were trying to do this with GRUB but had problems booting Windows. Earlier you tried gummiboot but had problems booting Linux. My suggestion is to either go back to gummiboot and fix its problem or try rEFInd. The "device not found" error you reported with gummiboot is usually caused by either a missing (or incorrectly-specified) initrd file or by an incorrectly-specified "root=" option passed to the kernel. Check those possitilities, and if you need help, report what happens in more detail. If necessary, take a digital photo of the screen and post it here. (Make sure it's legible, though!)
    You can try rEFInd with minimal disk by using a CD-R or USB flash drive image. Boot with that and your NVRAM and ESP won't be affected at all. If you can get rEFInd working from the flash drive, you can then install it to your hard disk and it should continue working. Note that you probably won't be able to boot Linux directly from rEFInd with your current configuration without adding a "root=" specification to the kernel command line. You can do this by hitting F2 or Insert twice rather than launching Linux by pressing Enter. Alternatively, you can create a refind_linux.conf file in the directory that holds your kernel. That file's contents are described in the rEFInd documentation.

  • What is happening in InputStream.Skip method?

    Hi,
    I need to read inputstream on Nokia 9500 under special circumstances, but the read method crashes because of a nokia implementation bug*. Interrestingly the skip method works correctly. According to MIDP2 API:
    The skip method of InputStream creates a byte array and then repeatedly reads into it until n bytes have been read or the end of the stream has been reached. Subclasses are encouraged to provide a more efficient implementation of this method.
    If this is true the skip method manages to read the stream that I don't manage to. My question is: is it possible to check somehow what is happening exactly when the skip method is called? Is it a usual java code? Is it public?
    If yes I could copy the code from the skip method and avoid the error above.
    I would greatly appreciate any pointers in this!
    Thanks!
    �rs
    *For details please see:
    http://discussion.forum.nokia.com/fo...d.php?t=102222

    The section, which you are reffering to, describes the behaviour of the skip method from InputStream, but it's quite rare case, where the pure InputStream class is used. More likely implementation overides this method in one of the subclasses because, it's obvious, that more effective techinics can be used fir skip(). So the behavior of the read() & skip() methods is quite different.
    In any case there is no way to touch internals of skip() realization.

  • Getting .ServiceException while invoking a web service from a client

    I created a web service and then created a web service client from wsdl in eclipse. I am getting the following error when trying to call the web service from client.
    javax.xml.rpc.ServiceException: There is no stub implementation for the interface: examples.ejb.ejb20.basic.statelessSession.TraderBeanService
    Please find the files here -
    wsdl - http://www.sourcepod.com/uneksu63-9627
    Trade.java - http://www.sourcepod.com/mltizr21-9628
    TradeResult.java - http://www.sourcepod.com/npledh19-9629
    TradeResultService - http://www.sourcepod.com/hbjevm45-9630
    TradeResultServiceLocator.java - http://www.sourcepod.com/mrpagh85-9631
    TradeResultSoapBindingStub.java - http://www.sourcepod.com/zjrkjv91-9632
    package examples.ejb.ejb20.basic.statelessSession;
    import javax.xml.ws.WebServiceRef;
    import javax.xml.namespace.QName;
    public class HelloClient {
        @WebServiceRef(wsdlLocation="http://localhost:7001/webservice/services/TraderBean?wsdl")
        String url = "http://localhost:7001/webservice/services/TraderBean?wsdl";
             QName qname = new QName("http://statelessSession.basic.ejb20.ejb.examples", "TraderBeanService");
        public static void main(String[] args) {
            try {
                HelloClient client = new HelloClient();
                client.doTest(args);
            } catch(Exception e) {
                e.printStackTrace();
        public void doTest(String[] args) {
            try {
                 TraderBeanServiceLocator service = new TraderBeanServiceLocator(url,qname);
                TraderBean port = (TraderBean) service.getPort(TraderBeanService.class);
                System.out.println("Invoking the sayHello operation on the port.");
                TradeResult response = port.buy("INR", 100);
                System.out.println(response.getNumberTraded());
            } catch(Exception e) {
                e.printStackTrace();
    }How to solve the stub implementation error?
    Edited by: 901007 on 12 Aug, 2012 10:57 AM

    That did not work either. There was getPorts() and not getPort() and I used getPorts(). And I am getting the below error,
    java.lang.ClassCastException: java.util.HashMap$KeyIterator
    But when I try like the below,
        @WebServiceRef(wsdlLocation="http://localhost:7001/webservice/services/TraderBean?wsdl")
        String url = "http://localhost:7001/webservice/services/TraderBean?wsdl";
        QName qname = new QName("http://statelessSession.basic.ejb20.ejb.examples", "TraderBeanService");
                TraderBeanServiceLocator service = new TraderBeanServiceLocator();
                TraderBean port = (TraderBean) service.getPort(TraderBean.class);
                System.out.println("Invoking the sayHello operation on the port.");
                TradeResult response = port.buy("INR", 200);
                System.out.println(response.getNumberTraded());I am getting the below error,
    Invoking the sayHello operation on the port.
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.lang.InstantiationException: examples.ejb.ejb20.basic.statelessSession.TraderBean
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}hostname:Gopi_Desktop
    java.lang.InstantiationException: examples.ejb.ejb20.basic.statelessSession.TraderBean
    As you can see the statement"Invoking the sayHello operation on the port." is getting printed but after that error is thrown.
    I tried changing it to, TraderBean port = (TraderBean) service.getPort(qname, TraderBeanServiceLocator.class);
    But even this is throwing the same error, java.lang.InstantiationException: examples.ejb.ejb20.basic.statelessSession.TraderBean
    I changed my webservice using Axis2 web service runtime and this time when I try to invoke using client, I am getting the following,
    [WARN] Weblogic's StAX implementation is unsupported and some Axiom features will not work as expected! Please use Woodstox instead.
    Exception in thread "Main Thread" org.apache.axis2.AxisFault: javax.xml.stream.XMLStreamException: Error at line:1 col:217 ':' Already got a ':' in name
         at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531)
         at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:375)
         at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
         at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
         at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
         at examples.ejb.ejb20.basic.statelessSession.TraderBeanStub.addTwoNumbers(TraderBeanStub.java:185)
         at examples.ejb.ejb20.basic.statelessSession.TestClient.main(TestClient.java:15)
    If you need more details, I can post the steps I did to build it...
    Any help is greately appreciated.
    Edited by: 901007 on 15 Aug, 2012 10:27 PM
    Edited by: 901007 on 15 Aug, 2012 10:49 PM

  • Connection Reset on Oracle SOA-Suite 10.1.3.5.0 Apache-Webserver with SSLv3

    Hi,
    I'm trying to use SSL with my SOA-Suite 10.1.3.5.0 Webserver. This Problem occurs on both a windows and a linux machine. I'm referring to the windows-machine, as this has the latest patch-level. My problems are about the Apache-Webserver only. I didn't do any special configuration, and SSL is working fine in the Browser (FF3.5 and IE 8). But for Paypal IPN Notification i'm having serious troubles. I was able to track down the problem to a SSLv3 problem. I installed the latest openssl version and issued the following command:
    openssl s_client -connect localhost:443
    This gives me the following output:
    C:\OpenSSL\bin>openssl s_client -connect localhost:443
    Loading 'screen' into random state - done
    CONNECTED(000002E8)
    depth=0 /C=US/ST=OR/L=PORTLAND/O=ORACLE/OU=PDC/CN=WARNING: FOR TEST PURPOSES ONLY! DO NOT USE COMMERCIALLY!
    verify error:num=18:self signed certificate
    verify return:1
    depth=0 /C=US/ST=OR/L=PORTLAND/O=ORACLE/OU=PDC/CN=WARNING: FOR TEST PURPOSES ONLY! DO NOT USE COMMERCIALLY!
    verify error:num=10:certificate has expired
    notAfter=Dec 8 16:18:11 2006 GMT
    verify return:1
    depth=0 /C=US/ST=OR/L=PORTLAND/O=ORACLE/OU=PDC/CN=WARNING: FOR TEST PURPOSES ONLY! DO NOT USE COMMERCIALLY!
    notAfter=Dec 8 16:18:11 2006 GMT
    verify return:1
    Certificate chain
    0 s:/C=US/ST=OR/L=PORTLAND/O=ORACLE/OU=PDC/CN=WARNING: FOR TEST PURPOSES ONLY! DO NOT USE COMMERCIALLY!
    i:/C=US/ST=OR/L=PORTLAND/O=ORACLE/OU=PDC/CN=WARNING: FOR TEST PURPOSES ONLY! DO NOT USE COMMERCIALLY!
    Server certificate
    -----BEGIN CERTIFICATE-----
    Here is the certificate...
    -----END CERTIFICATE-----
    subject=/C=US/ST=OR/L=PORTLAND/O=ORACLE/OU=PDC/CN=WARNING: FOR TEST PURPOSES ONLY! DO NOT USE COMMERCIALLY!
    issuer=/C=US/ST=OR/L=PORTLAND/O=ORACLE/OU=PDC/CN=WARNING: FOR TEST PURPOSES ONLY! DO NOT USE COMMERCIALLY!
    No client certificate CA names sent
    SSL handshake has read 807 bytes and written 325 bytes
    New, TLSv1/SSLv3, Cipher is AES256-SHA
    Server public key is 1024 bit
    Secure Renegotiation IS NOT supported
    Compression: NONE
    Expansion: NONE
    SSL-Session:
    Protocol : TLSv1
    Cipher : AES256-SHA
    Session-ID: A66F9DD036604C6B2DDF05591FC3614D
    Session-ID-ctx:
    Master-Key: DC0E5BB6EEFE0E6B60AA4A2A65974B793500803930A8EFABB141F9DED25819A98FA00C365B9D61D579745C69CAA60C56
    Key-Arg : None
    Start Time: 1272964747
    Timeout : 300 (sec)
    Verify return code: 10 (certificate has expired)
    ---This looks fine so far. But when I'm issuing an HTTP-Command, e.g. GET / HTTP/1.0, the connection gets closed immediately (openssl just says 'closed' and I'm back to the commandline again). When adding the -msg to the openssl commandline, I'm getting the following output:
    GET / HTTP/1.0
    TLS 1.0 Alert [length 0002], warning close_notify
    01 00
    closed
    TLS 1.0 Alert [length 0002], warning close_notify
    01 00The ssl_engine_log contains the following (set to LogLevel debug):
    [04/Mai/2010 11:23:19 00976] [info] Connection to child 2 established (server soa1.karlsbad2.promatis.de:443, client 127.0.0.1)
    [04/Mai/2010 11:23:20 00976] [trace] inside shmcb_store_session
    [04/Mai/2010 11:23:20 00976] [trace] session_id[0]=89, masked index=25
    [04/Mai/2010 11:23:20 00976] [trace] entering shmcb_insert_encoded_session, *queue->pos_count = 0
    [04/Mai/2010 11:23:20 00976] [trace] entering shmcb_expire_division
    [04/Mai/2010 11:23:20 00976] [trace] we have 14385 bytes and 133 indexes free - enough
    [04/Mai/2010 11:23:20 00976] [trace] storing in index 0, at offset 0
    [04/Mai/2010 11:23:20 00976] [trace] session_id[0]=89, idx->s_id2=51
    [04/Mai/2010 11:23:20 00976] [trace] leaving now with 124 bytes in the cache and 1 indexes
    [04/Mai/2010 11:23:20 00976] [trace] leaving shmcb_insert_encoded_session
    [04/Mai/2010 11:23:20 00976] [trace] leaving shmcb_store successfully
    [04/Mai/2010 11:23:20 00976] [trace] shmcb_store successful
    [04/Mai/2010 11:23:20 00976] [trace] Inter-Process Session Cache: request=SET status=OK id=593330BC94651266418548085D63F57C timeout=300s (session caching)
    [04/Mai/2010 11:23:25 00976] [info] Connection to child 2 closed with standard shutdown (server soa1.karlsbad2.promatis.de:443, client 127.0.0.1)This seems fine for me.
    When adding the -bugs to the openssl commandline (saying "Switch on all SSL implementation bug workarounds") everything is working fine (with the same output for openssl, using sslv3 and the following additional line in the ssl-log: [info] Initial (No.1) HTTPS request received for child 34 (server soa1.karlsbad2.promatis.de:443) (at the end just before connection close).
    When setting the client to use ssl2 (-ssl2) everything is fine too. When doing -ssl3 it is the same as without any parameter.
    The certificate has expired message and the test-certificate seem not to be related with my problems, since the same problems arise on our production server having a "real and valid" SSL certificate certified by a renowned SSL-CA.
    When setting SSLProtocol +SSLv2 in the ssl.conf openssl is working fine too. But this is not an option as sslv2 is no longer supported by Firefox (giving me an error-message when accessing the page).
    I played around with SSLCipherSuite in the ssl.conf without success. I fear mod_ossl has a bug when working with the specified ssl-parameters. Is there any way out of this?
    Any help would be highyl appreciated,
    Best regards
    Johannes Michler
    PS: This is the ssl_engline_log during startup:
    [04/Mai/2010 11:22:32 00880] [info] Server: Oracle-HTTP-Server/1.3.34, Interface: mod_ossl/10.1.3.0.0, Library:
    [04/Mai/2010 11:22:32 00880] [info] Init: 1st startup round (still not detached)
    [04/Mai/2010 11:22:32 00880] [trace] Shared-memory segment has 512000 available
    [04/Mai/2010 11:22:32 00880] [trace] shmcb_malloc attempt for 512000 bytes failed
    [04/Mai/2010 11:22:32 00880] [trace] shmcb_malloc attempt for 511998 bytes failed
    [04/Mai/2010 11:22:32 00880] [trace] shmcb_malloc attempt for 511996 bytes failed
    [04/Mai/2010 11:22:32 00880] [trace] shmcb_malloc attempt for 511994 bytes failed
    [04/Mai/2010 11:22:32 00880] [trace] shmcb_init allocated 511992 bytes of shared memory
    [04/Mai/2010 11:22:32 00880] [trace] entered shmcb_init_memory()
    [04/Mai/2010 11:22:32 00880] [trace] for 511992 bytes, recommending 4266 indexes
    [04/Mai/2010 11:22:32 00880] [trace] shmcb_init_memory choices follow
    [04/Mai/2010 11:22:32 00880] [trace] division_mask = 0x1F
    [04/Mai/2010 11:22:32 00880] [trace] division_offset = 64
    [04/Mai/2010 11:22:32 00880] [trace] division_size = 15997
    [04/Mai/2010 11:22:32 00880] [trace] queue_size = 1604
    [04/Mai/2010 11:22:32 00880] [trace] index_num = 133
    [04/Mai/2010 11:22:32 00880] [trace] index_offset = 8
    [04/Mai/2010 11:22:32 00880] [trace] index_size = 12
    [04/Mai/2010 11:22:32 00880] [trace] cache_data_offset = 8
    [04/Mai/2010 11:22:32 00880] [trace] cache_data_size = 14385
    [04/Mai/2010 11:22:32 00880] [trace] leaving shmcb_init_memory()
    [04/Mai/2010 11:22:32 00880] [info] Shared memory session cache initialised
    [04/Mai/2010 11:22:32 00880] [info] Init: Initializing (virtual) servers for SSL
    [04/Mai/2010 11:22:32 00880] [info] Init: Configuring server soa1.karlsbad2.promatis.de:443 for SSL protocol
    [04/Mai/2010 11:22:32 00880] [trace] Init: (soa1.karlsbad2.promatis.de:443) Configuring permitted SSL ciphers [ALL:!ADH:!EXPORT56:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP]
    [04/Mai/2010 11:22:32 00880] [trace] Init: (soa1.karlsbad2.promatis.de:80) Configuring permitted proxy SSL ciphers [DEFAULT]
    [04/Mai/2010 11:22:32 00880] [trace] Init: (soa1.karlsbad2.promatis.de:443) Configuring permitted proxy SSL ciphers [DEFAULT]
    [04/Mai/2010 11:22:32 00880] [trace] Init: (127.0.0.1:7200) Configuring permitted proxy SSL ciphers [DEFAULT]
    [04/Mai/2010 11:22:33 00880] [info] Init: 2nd startup round (already detached)
    [04/Mai/2010 11:22:33 00880] [trace] Shared-memory segment has 512000 available
    [04/Mai/2010 11:22:33 00880] [trace] shmcb_malloc attempt for 512000 bytes failed
    [04/Mai/2010 11:22:33 00880] [trace] shmcb_malloc attempt for 511998 bytes failed
    [04/Mai/2010 11:22:33 00880] [trace] shmcb_malloc attempt for 511996 bytes failed
    [04/Mai/2010 11:22:33 00880] [trace] shmcb_malloc attempt for 511994 bytes failed
    [04/Mai/2010 11:22:33 00880] [trace] shmcb_init allocated 511992 bytes of shared memory
    [04/Mai/2010 11:22:33 00880] [trace] entered shmcb_init_memory()
    [04/Mai/2010 11:22:33 00880] [trace] for 511992 bytes, recommending 4266 indexes
    [04/Mai/2010 11:22:33 00880] [trace] shmcb_init_memory choices follow
    [04/Mai/2010 11:22:33 00880] [trace] division_mask = 0x1F
    [04/Mai/2010 11:22:33 00880] [trace] division_offset = 64
    [04/Mai/2010 11:22:33 00880] [trace] division_size = 15997
    [04/Mai/2010 11:22:33 00880] [trace] queue_size = 1604
    [04/Mai/2010 11:22:33 00880] [trace] index_num = 133
    [04/Mai/2010 11:22:33 00880] [trace] index_offset = 8
    [04/Mai/2010 11:22:33 00880] [trace] index_size = 12
    [04/Mai/2010 11:22:33 00880] [trace] cache_data_offset = 8
    [04/Mai/2010 11:22:33 00880] [trace] cache_data_size = 14385
    [04/Mai/2010 11:22:33 00880] [trace] leaving shmcb_init_memory()
    [04/Mai/2010 11:22:33 00880] [info] Shared memory session cache initialised
    [04/Mai/2010 11:22:33 00880] [info] Init: Initializing (virtual) servers for SSL
    [04/Mai/2010 11:22:33 00880] [info] Init: Configuring server soa1.karlsbad2.promatis.de:443 for SSL protocol
    [04/Mai/2010 11:22:33 00880] [trace] Init: (soa1.karlsbad2.promatis.de:443) Configuring permitted SSL ciphers [ALL:!ADH:!EXPORT56:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP]
    [04/Mai/2010 11:22:33 00880] [trace] Init: (soa1.karlsbad2.promatis.de:80) Configuring permitted proxy SSL ciphers [DEFAULT]
    [04/Mai/2010 11:22:33 00880] [trace] Init: (soa1.karlsbad2.promatis.de:443) Configuring permitted proxy SSL ciphers [DEFAULT]
    [04/Mai/2010 11:22:33 00880] [trace] Init: (127.0.0.1:7200) Configuring permitted proxy SSL ciphers [DEFAULT]
    [04/Mai/2010 11:22:33 00976] [info] Server: Oracle-HTTP-Server/1.3.34, Interface: mod_ossl/10.1.3.0.0, Library:
    [04/Mai/2010 11:22:33 00976] [info] Init: 1st startup round (still not detached)
    [04/Mai/2010 11:22:33 00976] [trace] Shared-memory segment has 512000 available
    [04/Mai/2010 11:22:33 00976] [trace] shmcb_malloc attempt for 512000 bytes failed
    [04/Mai/2010 11:22:33 00976] [trace] shmcb_malloc attempt for 511998 bytes failed
    [04/Mai/2010 11:22:33 00976] [trace] shmcb_malloc attempt for 511996 bytes failed
    [04/Mai/2010 11:22:33 00976] [trace] shmcb_malloc attempt for 511994 bytes failed
    [04/Mai/2010 11:22:33 00976] [trace] shmcb_init allocated 511992 bytes of shared memory
    [04/Mai/2010 11:22:33 00976] [trace] entered shmcb_init_memory()
    [04/Mai/2010 11:22:33 00976] [trace] for 511992 bytes, recommending 4266 indexes
    [04/Mai/2010 11:22:33 00976] [trace] shmcb_init_memory choices follow
    [04/Mai/2010 11:22:33 00976] [trace] division_mask = 0x1F
    [04/Mai/2010 11:22:33 00976] [trace] division_offset = 64
    [04/Mai/2010 11:22:33 00976] [trace] division_size = 15997
    [04/Mai/2010 11:22:33 00976] [trace] queue_size = 1604
    [04/Mai/2010 11:22:33 00976] [trace] index_num = 133
    [04/Mai/2010 11:22:33 00976] [trace] index_offset = 8
    [04/Mai/2010 11:22:33 00976] [trace] index_size = 12
    [04/Mai/2010 11:22:33 00976] [trace] cache_data_offset = 8
    [04/Mai/2010 11:22:33 00976] [trace] cache_data_size = 14385
    [04/Mai/2010 11:22:33 00976] [trace] leaving shmcb_init_memory()
    [04/Mai/2010 11:22:33 00976] [info] Shared memory session cache initialised
    [04/Mai/2010 11:22:33 00976] [info] Init: Initializing (virtual) servers for SSL
    [04/Mai/2010 11:22:33 00976] [info] Init: Configuring server soa1.karlsbad2.promatis.de:443 for SSL protocol
    [04/Mai/2010 11:22:33 00976] [trace] Init: (soa1.karlsbad2.promatis.de:443) Configuring permitted SSL ciphers [ALL:!ADH:!EXPORT56:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP]
    [04/Mai/2010 11:22:33 00976] [trace] Init: (soa1.karlsbad2.promatis.de:80) Configuring permitted proxy SSL ciphers [DEFAULT]
    [04/Mai/2010 11:22:33 00976] [trace] Init: (soa1.karlsbad2.promatis.de:443) Configuring permitted proxy SSL ciphers [DEFAULT]
    [04/Mai/2010 11:22:33 00976] [trace] Init: (127.0.0.1:7200) Configuring permitted proxy SSL ciphers [DEFAULT]

    Did you find a solution to this issue? We are having a similar issue trying to deploy a Paypal IPN on OAS 10.1.2.3. The IPN messages coming from Paypal appear to be attempting an SSLv2 handshake. In our case SSLv2 is disabled due to our security requirements so the connection is killed by our App Server. We have found that manually sending the IPN messages works correctly.

  • How to deal with all of this?

    I am struggling with a very simple task called:
    "Editable Spark DataGrid"
    All I want is to be able to show data and change it.
    It would be nice to have everything in there without writing even a single line of a code, I thought that was the "editable" property for. Since you are saying it is in fact an editable you would think that underlying data is changed every time something is changed on the screen. Not that fast. we have propagate entered data back to the dataProvider and that when it all starts. Because of that we need a custom renderer/editor. I dont know what's a problem: my implementation, bugs, overall complicity of the product, but here are the results of my experiments of choosing the correct item editor.
    1. TextInput
         Problems: Clicking on a cell initiates an editing session, but the whole text is getting highlighted, additional click will not remove it, but rather cancel the      editing session. selectRange(0, 0); does not help.
         Enter key works fine.
    2. TextArea. Same with text highlighting, but selectRange(0, 0); will remove it.
         Enter key does not work.
    3. RichEditableText. No problem with text highlighting when a cell is clicked, but instead of cell's  I see its another copy right above a text shown before the      click.
         Enter works fine.
    So, what should I do? How much time should it take to create an editable datagrid? Any complete sample out there?
    Thanks

    I finally have it figured out. I looked at your sample with default editing. Looking at the sample I realized what the default editing behavior is: first click to select the cell and highlight the whole text, second click to activate editing session. I also looked into Functional and Design Specification again and noticed what I was missing while working a custom solution. Here is my final code:
    <s:itemEditor>
         <fx:Component>
              <local:testEditor/>
            </fx:Component>
    </s:itemEditor>
    package
         import spark.components.DataGrid;
         import spark.components.TextInput;
         import spark.components.gridClasses.GridItemEditor;
         import spark.components.gridClasses.IGridItemEditor;
         public class testEditor extends GridItemEditor implements IGridItemEditor
              private var valueDisplay:TextInput;
              public function testEditor()
                   //TODO: implement function
                   super();
                   valueDisplay = new TextInput();
                   valueDisplay.setStyle("borderVisible", false);               
                   addElement(valueDisplay);
                   valueDisplay.x += 4;
                   valueDisplay.y += 3;
              override public function prepare():void
                   super.prepare();
                   valueDisplay.width = column.width - 6;
                   valueDisplay.selectRange(0, valueDisplay.text.length - 1);
              override public function save():Boolean
                   data[column.dataField] = value;
                   DataGrid(owner).validateNow();
                   return true;
              override public function get value():Object
                   return valueDisplay.text;           
              override public function set value(newValue:Object):void
                   valueDisplay.text = newValue.toString();
    The only thing that does not work is when I click on a cell its text is not highlighted which is a bit of confusion because it's not clear whether the cell gets a focus. I have some code to select the text but it's not doing it. Am I missing something obvious with text highlighting?
    Thanks

  • Error while starting SAP NetWeaver Developer Studio

    Hi,
    I have installed Java SDK (v1.4.2_09) and Netwearver development
    studio (2.0.13) on my laptop.When i try to lanch the development studio
    i get an error, (!MESSAGE Exception launching the Eclipse Platform:).
    Please see the error log for the details.
    Please help!
    Regards
    Fatima
    !SESSION Aug 15, 2005 14:44:56.32 -
    java.version=1.4.2_09
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86 -feature com.sap.java.ide -consolelog -debug C:\j2sdk1.4.2_09\bin\java.exe
    -Xmx512m
    -Xms128m
    -XX:PermSize=32m
    -XX:MaxPermSize=128m
    -DallUserDir='C:\Documents and Settings\All Users\Application Data'
    -cp C:\Program Files\SAP\JDT\eclipse\SapStartup.jar com.sap.ide.eclipse.startup.Main
    -os win32
    -ws win32
    -arch x86
    -feature com.sap.java.ide
    -showsplash C:\Program Files\SAP\JDT\eclipse\SapIde.exe -showsplash 600
    -consolelog
    -debug  -data C:\Documents and Settings\shahpurf\Documents\SAP\workspace -install file:C:/Program Files/SAP/JDT/eclipse/
    !ENTRY Startup 1 0 Aug 15, 2005 14:44:56.32
    !MESSAGE Sap NetWeaver Developer Studio - Build: 200507190119
    !SESSION -
    !ENTRY org.eclipse.core.launcher 4 0 Aug 15, 2005 14:44:56.262
    !MESSAGE Exception launching the Eclipse Platform:
    !STACK
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:286)
         at com.sap.ide.eclipse.startup.Main.run(Main.java:795)
         at com.sap.ide.eclipse.startup.Main.main(Main.java:602)
    Caused by: java.lang.reflect.InvocationTargetException
         at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:861)
         at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
         ... 7 more
    Caused by: java.lang.NumberFormatException: For input string: ""
         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
         at java.lang.Integer.parseInt(Integer.java:489)
         at java.lang.Integer.parseInt(Integer.java:518)
         at com.tssap.config.ProxySettings.parse(ProxySettings.java:184)
         at com.tssap.config.ProxySettings.loadFromPreferences(ProxySettings.java:114)
         at com.tssap.config.Startup.runBeforeWBStartup(Startup.java:39)
         at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:65)
         at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
         ... 8 more

    Hi,
    I got this solution from SAP and it worked.
    This is a known problem that appers due to an implementation bug,
    while trying to read the proxy information. The studio expects non-
    empty value for key com.tssap.config/proxy, located in
    [YourDevStudioInstallationPath]\eclipse\plugins\com.sap.java.ide\pl
    ugin_customization.ini file. During the installation no value is
    assigned to this key (as you mentioned - no proxy in your case). The
    problem will be fixed for SP14, however there is a workaround:
    1. Change the value for key com.tssap.config/proxy in
    plugin_customization.ini to something like this - proxy:80.
    2. After this change the DevStudio should start and you'll be able to
    configure your proxy settings from Menu Window->Preferences-
    >Workbench->Proxy Settings. (In your case - disable the proxy
    server)

Maybe you are looking for

  • Can't Install iTunes ANYMORE!!!!

    Okay, I had iTunes 7.1.1.5 installed on my computer and it was working fine, but I decided to update and I can't get iTunes 7.2 to install. I've NEVER had this problem with any version. I keep getting this message: "THE SYSTEM CANNOT OPEN THE DEVICE

  • Error : -9672

    All of a sudden my HP 3-in-1 printer cannot be added to my print list and instead I get "An error occurred while trying to add the selected printer. error:-9672

  • Printing Multiple P.Os in Smartforms

    Hi, I was just wondering if we can print Multiple P.O.s using Smartforms? There is requirment wherein our guys want to printout mulitple P.O.s.I am having botth internal table which holds header Info's and Item Info's. regards vara

  • AP 1131ag not able to join with WLC 4402

    In some of my spare time, I've been trying to get this AP to join with this WLC. It's been about two weeks now. I'm not sure what the problem is. I think that there are a few possible issues, but I'm asking the more experienced & knowledgeable suppor

  • Warnings while compiling and something for the wish list

    Just now and then when I try to compile one of my packages I get the following warning: Warning(95,29): PLW-07203: Message 7203 not found; No message file for product=plsql, facility=PLW. Of course, 95 and 29 are the line and column numbers for me to