[Solution] DocumentBuilderFactory, Serialization, and WL 8.1 SP 2

<pre>
Hello All!
I finally have gotten my web services to work properly. All of my serialization
woes were caused by my using the javax.xml.parsers.DocumentBuilderFactory and
NOT setting the following options:
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setValidating(false);
factory.setNamespaceAware(true);
Yup. That's it. I saw this being done in one of the tech support people's examples:
private Document getDocumentWithWL(String resourceName)
throws Exception
weblogic.apache.xerces.parsers.DOMParser parser = new weblogic.apache.xerces.parsers.DOMParser();
parser.setFeature(
"http://apache.org/xml/features/dom/defer-node-expansion",
false );
parser.setFeature( "http://xml.org/sax/features/validation",
false);
parser.setFeature( "http://xml.org/sax/features/namespaces",
true);
parser.setFeature( "http://apache.org/xml/features/validation/schema",
true);
parser.parse(new org.xml.sax.InputSource(this.getClass().getClassLoader().getResourceAsStream(resourceName)));
return(parser.getDocument());
and decided to write the analog to this using the DocumentBuilderFactory:
private Document getDocumentWithDB(String resourceName)
throws Exception
DocumentBuilder db = null;
DocumentBuilderFactory fac = DocumentBuilderFactory.newInstance();
// Set params
fac.setValidating(false);
fac.setNamespaceAware(true);
db = fac.newDocumentBuilder();
Document doc = db.parse(this.getClass().getClassLoader().getResourceAsStream(resourceName));
return(doc);
Now my doc/lit web services are able to marshall data between the service and
client. I have to still use the DII dynamic proxy client method for invoking
the web service (SOAPElement!! grr).
Thanks to all who helped diagnose this problem. You know that you have this problem
when you see errors about "Local name of attribute can not be null ...." coming
out of weblogic's XML serialization code.
Hope this helps someone else out there
-- jake
</pre>

Well basically that means there was a partial message that came in over a socket, and the server waited 60 seconds for the rest of the message, but it never arrived.
Was the server, or a client under heavy load? Did you notice any response time problems?
-- Rob
WLS Blog http://dev2dev.bea.com/blog/rwoollen/

Similar Messages

  • Serializable and L&F

    I wrote an swing application (j2se1.4.2_05) and implements serialization all classes involved. 10/13 classes build different swing panels\components that are deployed in the class that extends JFrame, lets call it "MainFrame.java".
    So of course, trying to find a quick and dirty solution to serialization of this application, upon closing of my JFrame I write an object file, but only writing the MainFrame object to file, again because 10/13 classes are used to build different components/panels within the JFrame class. Low and behold it worked, well kind-of... I have few interesting problems, one being:
    1.) During the first initialization of the classes, first time running, I check to see if the object file exist.
    -If no, I run a standard type of startup, else I readin the object file, cast it to MainFrame object and show.
    -In the constructor of MainFrame.java I set the L&F to Windows Look and Feel. The first startup, without a object file present, it loads with the Window L&F, but when the Frame is created from the object file, it has a metal L&F. Anyone know why this happens, and maybe a solution?

    Is the constructor that sets the look and feel in MainFrame empty (has no parameters)? When you deserialize from a file it should theoretically create an object with the empty constructor and then use the set methods to assign values to the corresponding properties.
    One way to get around this is to set the look and feel somewhere in the execution of the code before it reaches the point where it tries to read from the file; I usually set the look and feel near the beginning of my application's main method.

  • I wonder to know what is the enterprise solution for windows and application event log management and analyzer

    Hi
    I wonder to know what is the enterprise solution for windows and application event log management and analyzer.
    I have recently research and find two application that seems to be profession ,1-manageengine eventlog analyzer, 2- Solarwinds LEM(Solarwind Log & Event Manager).
    I Want to know the point of view of Microsoft expert and give me their experience and solutions.
    thanks in advance.

    Consider MS System Center 2012.
    Rgds

  • MTS with batch management, serialization and Handling unit

    Hello All,
    I am testing a scenario for MTS with batch management, serialization and Handling unit for discrete manufacturing.
    Everything worked fine till I created the Handling unit for the finished product.
    The production order has a quantity of 3 EA.
    It has three serial numbers 1, 2 and 3. (serial numbers can be displayed from order->Header->serial numbers)
    I created one Handling unit for production order quantity of 3 EA.
    I tried to do a goods receipt for the production order using transaction COWBHUWE.
    I get the following error when I try to post the GR:
    Only 0 serial numbers entered instead of 3
    Message no. IO304
    Diagnosis
    There is a serial number obligation, so the number of serial numbers must equal the number of serial numbers in the material document.
    You can post the operation only if you entered the correct number of serial numbers previously.
    System Response
    Depending on the context in which the error arises, the system continues processing, or the required function cannot be performed.
    Procedure
    You have the following options, for example:
    Check that the serial numbers are entered fully.
    If necessary, display an error log.
    If necessary, contact your system administrator.
    What did I miss?
    How to fix this problem?
    Please help.
    Thanks in advance
    George

    I added the serialization procedure HUSL to the serial number profile and it fixed the problem.

  • [svn:bz-trunk] 22429: Adding the default fallback of serializer and deserializer classes to amf deserializer and amf serializer

    Revision: 22429
    Revision: 22429
    Author:   [email protected]
    Date:     2011-09-07 08:04:46 -0700 (Wed, 07 Sep 2011)
    Log Message:
    Adding the default fallback of serializer and deserializer classes to amf deserializer and amf serializer
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/io/SerializationContext.java

  • After getting the latest update I recieve an error about MSVCR80.dll missing has anyone found the solution as uninstalling and re installing doesnt work

    after getting the latest update I recieve an error about MSVCR80.dll Missing, has anyone found the solution as uninstalling and then installing doesnt seem to work

    Doublechecking. Have you tried the following user tip?
    Troubleshooting issues with iTunes for Windows updates

  • Ask the Expert: Cisco's 802.11ac Solutions - Deployment, Design, and Interop

    Ask your Questions on Cisco’s 802.11ac Solutions - Deployment, Design, and Interop with Cisco Experts: Richard Hamby and Shankar Ramanathan.
    Monday, March 30th, 2015 to Friday, April 10th, 2015
     Richard Hamby is a senior technical support engineer and Team Lead of the Cisco Technical Assistance Center in Richardson, Texas.  He is an expert in Indoor and Outdoor wireless for the full line of Cisco Unified and Converged Access Wireless products, as well as TAC Engineering Engagement Engineer liaison to project engineering teams for new Cisco wireless products.  Prior to his current role, Richard was a customer support engineer with the AAA Security TAC team supporting Cisco identity management solutions and been with Cisco since 2009.
    Shankar Ramanathan is a Customer Support Engineer at the Cisco Technical Center. He is a Technical Content Engineer and Subject Matter Expert for Cisco Enterprise Unified and Converged Access wireless mobility solution including Wireless LAN Controller  2500/5500/WISM2/7500/8500, Converged access 5760/3650/3850 switches,  Access Points Lightweight and Autonomous, VoWLAN (792x/9971) , Cisco Prime Infrastructure SNMP management, Cisco Mobility Services Engine(MSE/ CMX). Prior to joining Cisco in  November 2011, he worked as a wireless network engineer at Elan Technologies, responsible for RF wireless network planning, simulation, propagation path analysis, and optimization of Wi-Fi 802.11 mesh and WiMax (802.16 d/e) networks for various system  integration and automation projects. Shankar holds a master of science degree in electrical engineering specializing in communications and signal process from the State University of New York, Buffalo. Shankar has a CCIE in Wireless(#40548) and CCNA  certified (number 410004168640IMZF) and has over six years of industry experience.
    Find other  https://supportforums.cisco.com/expert-corner/events.
    **Ratings Encourage Participation! **
    Please be sure to rate the Answers to Questions

    A common question we are asked is 'why is my device not achieving 11ac data rates?'
    One of the most common answers relates to client compatibility/capability. To get the highest possible data rates of 11ac (assuming proper distance and RF health), the AP and the client device must both be capable supporting the requirements - 5GHZ, 80MHz Channel, short guard interval, 3 spatial streams. Each spatial stream has a max of 433.3Mb/s (at 80MHz, short GI).
    The majority of 11ac-capable wireless cards on the market do not support 3 spatial streams. Most adapters in wireless-capable devices are 1SS or 2SS.  For example, the Intel 7260 11ac adapter used in many devices is a 2SS adapter - therefore it's max possible data rate is 866.7.  Another common adapter in use is the 11ac Broadcom 3SS that Apple uses in the newer Macbooks.  These devices can achieve the 1.3GBs PHY data rate.
    This guidance is the same for 11n adapters as well.  To achieve max rate, your 11n AP and adapter must both support 40MHz channels, 3SS, short GI.
    Note: The 11n and 11ac standards both define support for 4SS.  4SS-capable devices are rare, so 3SS is essentially our reality.
    One of the most useful references for questions related to this topic is the AP Data Sheet for each AP.  Here's the AP3700 for example:
    http://www.cisco.com/c/en/us/products/collateral/wireless/3700-series-access-point/data_sheet_c78-729421.html
    Table 1 lists the expected data rate per MCS Index value by #SS at each channel width and GI. Indexes 0-7 are the same for 11n and 11ac (11n limited to 40MHz channels of course).  And MCS 8 & 9 are 11ac-only 256-QAM modulations. 

  • Diff between Serialization and Synchronization

    Hi I am new to java.
    Pl. give me the difference between Serialization and Synchronization.
    Thankq
    Sridhar

    Don't you look at the timestamps of posts? They could
    have been typing at the same time.
    /KajPlease stop! I'll die laughing. LOL
    Re: Diff between Serialization and Synchronization
    Author: Annie.   Apr 11, 2005 10:30 AM (reply 1 of 4)  
    Re: Diff between Serialization and Synchronization
    Author: glrao   Apr 12, 2005 8:31 AM (reply 2 of 4) I really like your sense of humor.
    xH4x0r

  • Diff between Serialization and Synchonization

    Hi I am new to java.
    Pl. give me the difference between Serialization and Synchonization.
    Thankq
    Sridhar

    Pl. give me the difference between Serialization and
    Synchonization.Object serialization is the process of saving an object's state to a sequence of bytes, as well as the process of rebuilding those bytes into a live object at some future time. The Java Serialization API provides a standard mechanism for developers to handle object serialization.
    Synchronization is intended to make the code thread safe by setting locks on objects.
    They are totally different concepts. I fail to understand how you intend to compare them.

  • Solution manager, PI and ERP incl FICA (IS-U) test systems on same HANA DB server Appliance

    Hello
    I wander is it possible to have Solution manager, PI and ERP incl FICA (IS-U). All for test/system purposes:
    I am sure we need separate application servers for Solution manager, PI and ERP incl FICA (IS-U),
    I would have question regarding Appliance i.e Hana DB server. can Solution manager, PI and ERP incl FICA (IS-U) products reside on same Appliance i.e Hana DB server in MCOS or MCOD? (I am sure that for production use this is no-go option)
    What is the case when renting cloud solution?
    Thank you a lot in advance
    Jan

    Check the java part, most of the Solman Web Based thing use the java, check the management console to ensure message server and dispatcher proper work, normally is: http://hostname:50113.
    If central note give you problems deimplement all the not complete implemented notes and use SUM
    and MOPZ to update your system with the last SP, then apply the central note acording to your SP level.
    We found that have the system in the last level prevents a lot of problems because of not complete implemented notes.

  • Singleton serialization and weblogic - help!

    hi everyone,
    I'm trying to serialize a singleton cache object we're using for our (intranet)
    website running on weblogic 6.1. I've made sure the singleton class
    implements serializable, and i've also put the following method in the
    singleton class (ChartCache.java):
    private Object readResolve()
    return theInstance; //which is of type ChartCache
    By the way I'm using jdk 1.3. I've trawled the web and can't find anything to help me yet...
    Basically I've written a jsp to get the current instance of the cache
    and serialize it to a file. When I invoke another jsp i want it to
    reinflate the object and place it back into the weblogic jvm so it can
    once again be accessed as a singleton by all classes in the webapp. At
    the moment its just not working - the cache object will eventually
    take over half an hour to create (huge database processing going on)
    so I want the option, if weblogic falls over, to reinstantiate the
    cache without having to rebuild it from scratch. The cache will only
    be refreshed once a day.
    I'll c&p my jsp code below...
    ======================= restoreCache.jsp
    <%@ page import = "java.util.*" %>
    <%@ page import = "java.io.*" %>
    <%@ page import = "com.drkw.agencylending.website.chartcache.*" %>
    <%@ page import = "com.drkw.agencylending.log.Logger" %>
    <%
    ChartCache theCache = null;
    try
    String filename = "chartCache.dat";
    FileInputStream fis = new FileInputStream(filename);
    ObjectInputStream in = new ObjectInputStream(fis);
    theCache = (ChartCache)in.readObject();
    in.close();
    catch(Exception e)
    Logger.log(e);
    %>
    Resurrected chart cache from file.
    ======================= saveCache.jsp
    <%@ page import = "java.util.*" %>
    <%@ page import = "java.io.*" %>
    <%@ page import = "com.drkw.agencylending.website.chartcache.*" %>
    <%@ page import = "com.drkw.agencylending.log.Logger" %>
    <%
    ChartCache theCache = ChartCache.getInstance();
    String fileName = "chartCache.dat";
    try
    FileOutputStream fos = new FileOutputStream(fileName);
    ObjectOutputStream oos = new ObjectOutputStream(fos);
    oos.writeObject(theCache);
    oos.flush();
    oos.close();
    catch(Exception e)
    Logger.log(e);
    %>
    Wrote cache object to file.
    ============================
    At the moment, a file is getting written but it seems suspiciously
    small (73 bytes!) for what is a very large object. When I try to load
    it up again, I get no errors but when I call ChartCache.getInstance()
    (my singleton) it recreates the cache rather than using the one I've
    reinflated. BTW I don't need to worry about server clustering/JNDI to
    ensure I have a truly singleton instance - there will only ever be one
    JVM to worry about.
    Any help greatly appreciated!

    solved the problem using another technique. Rather
    than serialize the entire singleton object, I just
    serialized the hashmap (the only bit I really care
    about). Then in the private constructor, the class
    checks a database flag to see whether the singleton
    was created today - if not, I refresh the cache,
    otherwise load in the serialized hashmap and set that
    as my class member. No complicated jndi/ejb registry
    needed to get around it..!singleton serialization is not recommended in ejb enviroment, it will cause problems. in what you are doing, it is far better to persist the data values in a database.
    just for the sake of writing a serializable sington: in addition to what you do in a regular object, you would first check to see if this obj has been serialized, if it is, deserialize it and return this one. you would have to write your own method to do serialization, making sure you have only one place to serialize it, and let the object know where the file is.

  • Relationship between Solution Manager Diagnostic and CCMS

    We are just now looking at Solution Manager Diagnostics and central monitoring in Solution Manager.  One thing we are not clear on, and haven't seen anything definitive on, is the relationship between these  and CCMS.
    Any insight or link to documentation would be greatly appreciated.
    Thanks!
    Jeff Henke

    Solution Manager Diagnostics is a diagnostic tool, not a real-time monitoring and alerting tool.  CCMS is for real-time monitoring and alerting, and SMD does in fact get data from your CCMS agents, as well as from saposcol and Wily Introscope.
    Hope that helps,
    David.

  • Pre-configured Solution for Small And Medium Downstream Co's for Oil & Gas

    Hello Experts,
    Pl advise if we have Pre-configured Solution for Small And Medium Downstream Co's for Oil & Gas.?
    Any link or material for reading, please let me know.
    Background - We are working on the scope to finalise processes for Small And Medium Co's for Downstream business in ECC 6.0.
    Also advise how many and what kind of processes are involved related to P2P, Order to Cash and Finance.
    Regards
    Vinod Chincholkar

    Hi Vinod,
    i hope you can find the details in this link,
    you can download the sloution overview brochure...
    http://www.sap.com/industries/oil-gas/small/index.epx.
    Best Regards
    Satish

  • For Macbook Pro Mid2010: Why not build a WiFi based AirDrop solution between iOS8 and Yosemite? Really sad it does not work.

    For Macbook Pro Mid2010: Why not build a WiFi based AirDrop solution between iOS8 and Yosemite? Really sad it does not work.

    Your Mac is too old
    To Airdrop between a Mac an iOS device
    System Requirements
    To see if your Mac works with AirDrop, make sure you’re in the Finder by clicking the desktop (the background area of your screen), or by clicking the Finder icon in the Dock. Then, check to see if AirDrop is listed as an option in the Go menu. If you don't see AirDrop listed, your Mac doesn't support this feature.
    In order to transfer files between a Mac and and an iPhone, iPad or iPod touch
    your iOS device needs to include a lightning connector
    your iOS device needs iOS 7 or later installed
    your Mac needs to be a 2012 or later model with OS X Yosemite installed
    Your Mac and iOS device both need bluetooth and Wi-Fi turned on. You do not have to be connected to a specific Wi-Fi network.
    To transfer files between two Mac computers, you need the Mac models listed below with Wi-Fi turned on and OS X Lion or later installed.
    From:
    Mac Basics: AirDrop lets you send files from your Mac to nearby Macs and iOS devices - Apple Support

  • The inbox for Mac Mail lists every incoming message twice. When I delete a message it deleted both entries. I have tried the solution in "help" and it doesn't work. Any suggestions?

    The inbox for Mac Mail lists every incoming message twice. When I delete a message it deleted both entries. I have tried the solution in "help" and it doesn't work. Any suggestions?

    I am wondering if anyone is seeing my question? This is my first time and I am not sure if I am communicating correctly. If you are seeing the question above regading deleted messages reappearing please reply so I will at least know I am getting the message out.
    Thank you.

Maybe you are looking for

  • Java.lang.NoSuchMethodError while running the Application on MI client

    Hi Experts During development I run my application through NWDS and worked perfect. But when I  run my application only through MI client. It through error on my programmed methods: java.lang.NoSuchMethodError: Any advice is highly appreciated! Micha

  • How to adjust brightness in FCE

    I'm not sure if this is the right forum but I still have FCE 1 and shot some footage that's a little bit over exposed. I would like to know if there's a brightness setting like photoshop that I can use to adjust it to make it darker?

  • Problems printing an InDesign document

    Hello I am trying to print an Indesign document with two layers - colour and text. Both layers are visible, but the colour layer won't print. Does anyone have and suggestions as to why this might be?

  • IE 8.0 Error Message After New AFP Install

    Hi, Was already running AFP, so when the new release came out, I got notified automatically, and allowed it to update.  Now, when I run IE, I get a popup saying "Adobe Flash Player Installer/Uninstaller 10.1 r82 has stopped working.  The problem deta

  • Mass Add of Alternate Unit of Measure

    I'm looking for a transaction that will let me massively add to materials the same alternate unit of measure. ANYONE?