XML JAXB Binding issue

Hi All
Im using Webservices in which i need to Bind my XML to Java objects and reverse. Im trying to use JAXB (1.0) Ref Imp from SUN as binding framework. The problem which im facing is that for elements like:
<xs:element name="inputRequests">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="inputData" type="data" />
</xs:sequence>
</xs:complexType>
</xs:element>
JAXB genetrates:
1. InputRequest - Interface
2. InputRequestImpl - Class
3. InputRequestType - Interface
4. InputRequestTypeImpl - Class
in InputRequestType it has generated a getter method
public java.util.List getInputData();
but no setter method for 'inputData'.
Can any one help on that how we can set a sequence element in JAXB classes. I even used JAXB 2.0, but faced same issue...
No Setter for a LIST :-(((

That method, getInputData() is returning a reference to a List Object that is already instantiated. Once you retrieve the reference, you can invoke all the methods in the List interface, but if there is a way to reassign the reference to refer to a different list, I'm not aware of one.
I believe that limitation is necessary my the nature of JAXB. A JAXB Object, in your case a List, is guaranteed to be marshaled and unmarshaled to XML, if you redefine the reference to some arbitrary List, how could JAXB guarantee its functionality?
I may be way off base here, I'm no JAXB expert by any means.
Rather than redefining the reference to a different List, you have to manipulate the List
...getInputData().clear();
...getInputData().addAll(myRequestList);Right?

Similar Messages

  • Can't create a JAXB binding for ejb-jar.xml using xjc

    Hi all,
    I have been trying to build a JAXB binding for EJB deployment descriptors, mainly because I have to update a hand-cranked ejb-jar.xml file on the fly with some additions that have come from a code generator.
    I have tried to use
    xjc ejb-jar_2_1.xsd j2ee_1_4.xsd ejb-jar_2_1.xsd
    xjc on the schema definitions I found at http://java.sun.com/xml/ns/j2ee/ but I can't get it to work. It produces reams of errors, see below for a short extract.
    Of course, someone could put me out of my misery and tell me where to find a binding that someone else has done. I can't be the first chimp on the planet that has wanted to do this!
    Any help much appreciated.
    errors:
    [WARNING] warning: "blockDefault" attribute of <schema> is not supported
    line 3 of xml.xsd
    [WARNING] warning: "finalDefault" attribute of <schema> is not supported
    line 3 of xml.xsd
    [WARNING] warning: <key> identity constraint will be ignored by JAXB validation
    line 117 of j2ee_web_services_client_1_1.xsd
    [WARNING] warning: <key> identity constraint will be ignored by JAXB validation
    line 115 of ejb-jar_2_1.xsd
    [WARNING] warning: <keyref> identity constraint will be ignored by JAXB validation
    line 129 of ejb-jar_2_1.xsd
    [WARNING] warning: <key> identity constraint will be ignored by JAXB validation
    line 145 of ejb-jar_2_1.xsd
    [WARNING] warning: <keyref> identity constraint will be ignored by JAXB validation
    line 159 of ejb-jar_2_1.xsd

    Exception initializing 'oracle.dbtools.raptor.MonitorJDBCAddin' in extension 'Oracle SQL Developer': oracle.classloader.
    util.AnnotatedNoClassDefFoundError:
    Missing class: oracle.jdbc.OracleDriverThe Oracle driver is not on the classpath.

  • Weblogic.xml.schema.binding.DeserializationException

    Hi all.
    I am using WLS 8 and in my web application I have implemented a web service client. The client uses an API that I created with the clientgen executable providing a valid WSDL. That WSDL defines custom data types that are used during the communication to the web service server. Whenever I use one of those custom data types in my web service request everything works fine. But when I call a web service that responds with one of those custom data types I am getting the following exception:
    Error occured while calling webservice! Error : web service invoke failed; nested exception is:
         javax.xml.soap.SOAPException: failed to deserialize xml:weblogic.xml.schema.binding.DeserializationException: mapping lookup failure.
    The weird thing is that weblogic somehow tries to refer to that custom data type with an IP address (e.g. 123.123.123.123) but in the WSDL all the URLs are defined with names (e.g. my.web-service.de) .
    Has anyone experienced a similar problem and/or can help me with this issue?

    Hi all.
    I am using WLS 8 and in my web application I have implemented a web service client. The client uses an API that I created with the clientgen executable providing a valid WSDL. That WSDL defines custom data types that are used during the communication to the web service server. Whenever I use one of those custom data types in my web service request everything works fine. But when I call a web service that responds with one of those custom data types I am getting the following exception:
    Error occured while calling webservice! Error : web service invoke failed; nested exception is:
         javax.xml.soap.SOAPException: failed to deserialize xml:weblogic.xml.schema.binding.DeserializationException: mapping lookup failure.
    The weird thing is that weblogic somehow tries to refer to that custom data type with an IP address (e.g. 123.123.123.123) but in the WSDL all the URLs are defined with names (e.g. my.web-service.de) .
    Has anyone experienced a similar problem and/or can help me with this issue?

  • Jaxb -binding specific elements of schema to class

    Is there a way to bind only specific elements from a schema to a class instead of binding everything in the schema. If yes, how do you specify this.

    The <class> binding declaration customizes the binding of a schema element.
    http://java.sun.com/xml/jaxb/users-guide/jaxb-custom.html#customdesc_class

  • JAXB binding schema problem

    hi friends,
    i didn't get implementation classes for xsd during the binding schema.i insatlled Jwsdp2.0and j2sdk1.5.Is any give me me an idea

    Hi
    Go through the sun website for doing so. This would give you a clue as to how to.
    http://java.sun.com/xml/jaxb/jaxb-docs.pdf
    It teaches you a step by step procedure to go ahead.

  • Attachment binding issue in workflow

    Hi All,
    I have used FM 'SAP_WAPI_ATTACHMENT_ADD ' in method of my workflow. Here after executing this FM i m getting id of the attachment for this workitem. But now i need to assign this to  '_Attach_Objects' of workflow container. so please help me for this binding issue. which i need to bind from method to> task to> workflow. so from next step onwards in workflow i will get that attachment.
    Smit Shah

    Hi,
    1) In the T.code SWO1, you have to create a custom method for the BO, there execute that method and check whether it working fine
    2) Then goto  T.code PFTC and Create a Task (Task no. will generate automatically), then call this method and generate the binding
    3) Goto  T.code SWDD and call that Task by assigning that Task no. and assign the binding
    Then test your workflow.
    For the Binding see this [link|http://help.sap.com/saphelp_nw04/helpdata/en/c8/bfc39b0fc57a49a0291378f8be0cd6/frameset.htm].
    Regards,
    Surjith

  • XML Document parsing issue

    Hello I am doing some SOAP XML stuff and I am having an issue that hopefully I can get some help with.
    Is XML like this valid to do in a SOAP message?
    <prompt>1 &_lt_; 0? <prompt>It's suppose to represent "1 < 0?"
    * the forum formatter seems to eat up my encoded text and transofrms it into acutal "<" so I am placing underscores "_" everywhere to keep the text. so above is actually without underscores
    From what I've read I think it is. I have text like this transported as part of the overall SOAP message to my client from the server.
    In my code I do:
    // Create an instance of the DocumentBuilderFactory
    DocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance();
    // Get the DocumentBuilder from the factory
    DocumentBuilder builder = documentFactory.newDocumentBuilder();
    Document doc = builder.parse(inputStream);
    ...inputStream is an InputStream (specifically ByteArrayInputStream) containing the XML.
    The issue I am having is that wherever I have an '&' (such as "&_lt_;" or "&_gt_;" or "&" etc...) the parsing seems to get cut off and the rest of the string doesn't seem to get parsed. So the above string "1 &_lt_; 0?" ends up being "1 ".
    Also is there an easy way to get back or rebuild the XML into a string from a Document object? I would really like to do that right after I do the parse method and see if the XML data that the Document object has is the same as what's in the inputStream (which is "1 &_lt_; 0?").
    Any input you can provide is much appreciated. Thanks,
    Latem

    Hello I am doing some SOAP XML stuff and I am having an issue that hopefully I can get some help with.
    Is XML like this valid to do in a SOAP message?
    <prompt>1 &_lt_; 0? <prompt>It's suppose to represent "1 < 0?"
    * the forum formatter seems to eat up my encoded text and transofrms it into acutal "<" so I am placing underscores "_" everywhere to keep the text. so above is actually without underscores
    From what I've read I think it is. I have text like this transported as part of the overall SOAP message to my client from the server.
    In my code I do:
    // Create an instance of the DocumentBuilderFactory
    DocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance();
    // Get the DocumentBuilder from the factory
    DocumentBuilder builder = documentFactory.newDocumentBuilder();
    Document doc = builder.parse(inputStream);
    ...inputStream is an InputStream (specifically ByteArrayInputStream) containing the XML.
    The issue I am having is that wherever I have an '&' (such as "&_lt_;" or "&_gt_;" or "&" etc...) the parsing seems to get cut off and the rest of the string doesn't seem to get parsed. So the above string "1 &_lt_; 0?" ends up being "1 ".
    Also is there an easy way to get back or rebuild the XML into a string from a Document object? I would really like to do that right after I do the parse method and see if the XML data that the Document object has is the same as what's in the inputStream (which is "1 &_lt_; 0?").
    Any input you can provide is much appreciated. Thanks,
    Latem

  • Webserviceclient.jar does not have weblogic/xml/schema/binding/SequenceCodecBase

    Hello,
    I am building JSP client for webservice. The client is deployed on tomcat 4.x.
    This time fortunatelly clientgen swallowed WSDL and I got client code generated.
    I added webserviceclient.jar to WEB-INF/lib. However I am getting java.lang.NoClassDefFoundError:
    weblogic/xml/schema/binding/SequenceCodecBase Exception.
    Indeed webserviceclient.jar has no weblogic/xml/schema/binding/SequenceCodecBase
    class defined. Do I have bad webserviceclient.jar or am I doing something wrong?
    Also I've found weblogic/xml/schema/binding/SequenceCodecBase in weblogic.jar
    so I added it to my application. Now I am getting
    java.lang.ClassCastException: com.sun.xml.messaging.soap.dom4j.BodyImpl
    at weblogic.webservice.core.DefaultPart.toXML(DefaultPart.java:218)
    at weblogic.webservice.core.DefaultMessage.toXML(DefaultMessage.java:268)
    at weblogic.webservice.core.DefaultOperation.invokeMultiOutput(DefaultOperation.java:328)
    at weblogic.webservice.core.DefaultOperation.invokeMultiOutput(DefaultOperation.java:304)
    at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:141)
    at client.WeatherServicesSoap.GetWeather(WeatherServicesSoap.java:69)
    at client.WeatherServicesSoap.GetWeather(WeatherServicesSoap.java:89)
    What am I doing wrong?
    Thanks,
    Aleksey

    It looks like you have the JAXM suns RI registered. We do not
    work with other JAXM impls. To set your MessageFactory to
    use WLS jaxm impl do the following:
    System.setProperty( "javax.xml.soap.MessageFactory",
    "weblogic.webservice.core.soap.MessageFactoryImpl" );
    before you invoke the web service method.
    regards,
    -manoj
    "Aleksey" <[email protected]> wrote in message
    news:3c9a43f7$[email protected]..
    >
    Hello,
    I am building JSP client for webservice. The client is deployed on tomcat4.x.
    This time fortunatelly clientgen swallowed WSDL and I got client codegenerated.
    I added webserviceclient.jar to WEB-INF/lib. However I am gettingjava.lang.NoClassDefFoundError:
    weblogic/xml/schema/binding/SequenceCodecBase Exception.
    Indeed webserviceclient.jar has noweblogic/xml/schema/binding/SequenceCodecBase
    class defined. Do I have bad webserviceclient.jar or am I doing somethingwrong?
    >
    Also I've found weblogic/xml/schema/binding/SequenceCodecBase inweblogic.jar
    so I added it to my application. Now I am getting
    java.lang.ClassCastException: com.sun.xml.messaging.soap.dom4j.BodyImpl
    atweblogic.webservice.core.DefaultPart.toXML(DefaultPart.java:218)
    atweblogic.webservice.core.DefaultMessage.toXML(DefaultMessage.java:268)
    atweblogic.webservice.core.DefaultOperation.invokeMultiOutput(DefaultOperation
    .java:328)
    atweblogic.webservice.core.DefaultOperation.invokeMultiOutput(DefaultOperation
    .java:304)
    atweblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:141)
    atclient.WeatherServicesSoap.GetWeather(WeatherServicesSoap.java:69)
    atclient.WeatherServicesSoap.GetWeather(WeatherServicesSoap.java:89)
    >
    What am I doing wrong?
    Thanks,
    Aleksey

  • ClassNotFoundException at weblogic.xml.schema.binding.util.ClassUtil!!

    Hi,
    We are getting below exception everytime we are starting the weblogic 10 server. This is coming in clustered as well as non-clustered environment. Full stack trace is as below:-
    <03-Oct-2009 12:24:19 o'clock BST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    Failed to load servlet Class: FileOutputServletIgnoring: unable to load class:java.lang.ClassNotFoundException: FileOutputServlet at: weblogic.xml.schema.binding.util.ClassUtil.loadClass(ClassUtil.java:76)Failed to load servlet Class: FileOutputServletIgnoring: unable to load class:java.lang.ClassNotFoundException: FileOutputServlet at: weblogic.xml.schema.binding.util.ClassUtil.loadClass(ClassUtil.java:76)
    Any pointers will be helpful.....
    Thanks & Regards,
    Sanjeev

    How are you starting your weblogic server? From the console or command prompt? Try both ways and see still the error occurs. Both uses different script to start the server. See that makes any difference.

  • Oracle.xml.jaxb.JaxbNode.setJaxbAttr errors with NullPointerException

    Hi all,
    I have generated JAXB implementation classes and while instantating them with their setter functions I get the following error:
    Caused by: java.lang.NullPointerException
         at oracle.xml.jaxb.JaxbNode.setJaxbAttr(JaxbNode.java:1067)
    Does anybofy have any clue of what is wrong ?

    Indicates a method on a null node is invoked.

  • A data-binding issue with a combo box.

    Hi,
    Iu2019m having a data-binding issue with a combo box.  The field it is bound to is an integer.  The valid values in the combo box are 1, 2, and 3.  If I add a record when it is set to 1 or 2, the value gets stored correctly.  If I add a record when it is set to 3, it is stored as 1.  However, I can bring up the record just added on the form, change it to 3, and click u201CUpdateu201D and it is saved correctly as 3.  If I change it so that the valid values are 4, 5, and 6, it saves a 1 regardless of what is selected in the combo box.  It looks like the combo box is correctly bound for updates but not for adds.  The table is a master type UDO.  Any ideas?  Iu2019m somewhat committed to the field being an integer.  I'm using 2007A PL47.
    Thanks,
    Mike
    Edited by: Mike Angelastro on Jul 1, 2009 2:43 PM

    I tried a few things on my own.  The result is that I decided that it was not a good idea to use a combo box bound to an integer (numeric) field.  I donu2019t think the SDK can handle it.  The reason it was an integer field in the first place is that before I changed it to a combo box it was a group of two option buttons.  Option buttons use an integer (numeric) field.  This worked just fine until I added a third option; the SDK didnu2019t handle the third option correctly when adding records.  I thought that using a combo box instead would fix that.  I was wrong; the problem remained.  So I decided to use a character (alphanumeric) field instead.  This works just fine.
    So here is my advice:  Never use option buttons if they need to be bound to the database; a combo box will actually work better when bound to the database.  But use a character (alphanumeric) field.
    Edited by: Mike Angelastro on Jul 5, 2009 9:15 PM

  • [svn:cairngorm3:] 17187: Fixed binding issue on the source property of the contact's picture

    Revision: 17187
    Revision: 17187
    Author:   [email protected]
    Date:     2010-08-04 13:44:35 -0700 (Wed, 04 Aug 2010)
    Log Message:
    Fixed binding issue on the source property of the contact's picture
    Modified Paths:
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/src/insync/contacts/prese ntation/ContactForm.mxml

    Revision: 17187
    Revision: 17187
    Author:   [email protected]
    Date:     2010-08-04 13:44:35 -0700 (Wed, 04 Aug 2010)
    Log Message:
    Fixed binding issue on the source property of the contact's picture
    Modified Paths:
        cairngorm3/trunk/samples/insync/insync-modularExtended-contacts/src/insync/contacts/prese ntation/ContactForm.mxml

  • [svn:cairngorm3:] 17186: Fixed binding issue on the source property of the contact's picture

    Revision: 17186
    Revision: 17186
    Author:   [email protected]
    Date:     2010-08-04 13:43:41 -0700 (Wed, 04 Aug 2010)
    Log Message:
    Fixed binding issue on the source property of the contact's picture
    Modified Paths:
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/presentation/ContactForm.mxml

    Revision: 17186
    Revision: 17186
    Author:   [email protected]
    Date:     2010-08-04 13:43:41 -0700 (Wed, 04 Aug 2010)
    Log Message:
    Fixed binding issue on the source property of the contact's picture
    Modified Paths:
        cairngorm3/trunk/samples/insync/insync-basic/src/insync/presentation/ContactForm.mxml

  • Error in Jaxb binding for wsdl document

    Hello
    below is my wsdl and binding.xjb that I am using. I want to rename the " <element name="getRelatedAssets">" name from 'getRelatedAssets' to 'getRelatedAssetsX'.
    But when I run it i got the following error
    [ERROR] compiler was unable to honor this property customization. It is attached to a wrong place, or its inconsistent with other bindings.
    [ERROR] (the above customization is attached to the following location in the schema)
    line 16 of file:/C:/Users/syedf/Documents/Checkers/4842/sample.wsdl
    Here is my wsdl:
    <wsdl:definitions targetNamespace="http://services.external.dmh.ibm.com"
    xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap"
    xmlns:impl="http://services.external.dmh.ibm.com" xmlns:intf="http://services.external.dmh.ibm.com"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:types>
    <schema elementFormDefault="qualified" targetNamespace="http://services.external.dmh.ibm.com"
    xmlns="http://www.w3.org/2001/XMLSchema" xmlns:apachesoap="http://xml.apache.org/xml-soap"
    xmlns:impl="http://services.external.dmh.ibm.com" xmlns:intf="http://services.external.dmh.ibm.com"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
    <complexType name="WsaaAuthToken">
    <sequence>
    <element name="authToken" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    <element name="getRelatedAssets">
    <complexType>
    <sequence>
    <element name="token" nillable="true" type="impl:WsaaAuthToken"/>
    <element name="anchorAsset" nillable="true" type="impl:WsaaAssetKey"/>
    <element name="relationshipName" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    </element>
    </wsdl:definitions>
    and here is my binding file:
    <jaxws:bindings
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
    xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.1"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    wsdlLocation="C:\Users\syedf\Documents\Checkers\4842\sample.wsdl">
         <jaxws:bindings node="wsdl:definitions/wsdl:types/xsd:schema">
              <jaxb:bindings node="//xsd:element[@name='getRelatedAssets']">
    <jaxb:property name="getRelatedAssetsX"/>
    </jaxb:bindings>               
    </jaxws:bindings>
    </jaxws:bindings>
    Can anyone help me out in finding what wrong I am doing.
    I appreciate.

    Well, As I mentioned There is an element named 'getRelatedAssets' and I want to rename it to some other name like 'getRelatedAssetsXXXXX' which would not be in Schema using jax binding.
    Note. When I manually change the name to 'getRelatedAssetsXXXXX' in WSDL, it works. but I want to make it using jaxbinding.
    Anyways,Thanks for the reply.

  • XML Schema binding - dynamic form

    I am new to Designer and XML. I have been given a basic interactive form and have persevered for a couple of (often frustrating) weeks to extend its functionality to link to an xml schema and provide for dynamic record creation. Unfortunately I am still having problems when adding new instances of subforms.<br /><br />I have a main form for reporting issues. Underneath it there are major components on a subform (can be multiple major components for each issue) and under major components are sub-components (can be multiple sub-components for each major component) on a child subform of major. I can add and delete instances of the subforms for both levels of records.<br /><br />I have created an xml schema based on the form since it already existed, and so the form fields have not inherited properties from the schema. However, I have bound the fields in the form to the xml fields through a data connection. The schema basically looks as follows (bot not literally the same as you will see from the tags):<br /><br /><element complextype issue><br />   <element issueId string/><br />   ...<br />   ...<br />   <element complextype majorcomponent unbounded><br />   <element majcomponentname string/><br />   ...<br />   <element complextype subcomponent unbounded><br />      <element subcomponent string/><br />      <element quantity string/><br />      ...<br />      ...<br />      </element><br />   </element><br /></element><br /><br />My problem is as follows: <br /><br />When I add an instance of a sub-component or major component subform, the first new instance appears to work correctly. However, every subsequent one inherits the values of the previous record and when it is changed, it changes the values of existing fields of the same name but of a different node. When I change each element in the xml schema to "unbounded", the forms appear to work properly but the values are then not nested correctly in the outputted xml data file (many records will appear under one sub-component, for example, when a new sub-component should be added for each).<br /><br />I suspected my problem might be that the "unbounded" property in the schema of the major component and sub-component elements are not linked to the Designer form because the major component and sub-component subforms are not bound to the xml schema. The reason they are not bound is because if I bind the subform, the first element, major/sub component name as applicable, loses its binding.<br /><br />I am sorry if this doesn't make any sense but I am hoping that someone might recognise the problem I am talking about as it is really creating much bother.<br /><br />Thanks.

    Thanks Justin for the reply. Unfortunately I can't explain exactly what was happening because I didn't keep sufficient notes and now the form is behaving differently. You are right in that when I bind the subform to the xml schema element, child fields do change their bindings from a full to a relative path. I had seen this before on all except the first field on a subform, which had losts any binding reference at all.
    I finally gave up on the schema and bound the forms to sample xml data. This fixed my problem. Now (several days later), I have revisited the problem and deleted my data connection to the xml file to connect to the schema once again. I am quite sure I have not changed the schema at all, nor the form, but for some reason it now appears to work correctly.
    I will continue to work with it, once again but thanks very much for your interest.

Maybe you are looking for

  • ITunes is freezing and crashing my iBook

    Hi I need help Got an iPod video for xmas and have just started to use iTunes- it has been on my system since I bought it. Transferred a lot of music into iTunes to load it onto the iPod. System froze (OS 10.3), tried to restart, it could not find th

  • Import PDF into a PDF?

    We have a unique requirement. Once the PDf is generated thru Web Dynpro, the users want to be able to import one or more PDF documents at the end of the generated PDf document. Then they want to save it as one big PDF document. Is this doable? Has an

  • ITunes 10.5 crashing after update

    I just updated iTunes in my MacBook Air and cannot open it. As soon as I start the app, while connecting to iTunes Store it quits. Here is the problem details, please help: UPDATE: Got it to work by turning off internet connection opening iTunes, the

  • Want to Take Backup Of Programs Done in ECC6 IDES Server

    Hi Experts, Want to Take Backup Of Programs Done in ECC6 IDES Server like, Fico related Company Code,Configuration.... Abap Realted Programs....I Did my Practice in client 800 in IDES ECC6. My Moto, Here is to Format the old server and Install new se

  • ThinkPad T510 Ethernet Card Driver on Debian Lenny

    Hello, I just bought my first Lenovo laptop, a Lenovo ThinkPad T510, and received it just yesterday. I partitioned the HDD and installed Debian Lenny on it. During the installation, Debian was unable to detect a network connection and throws up sayin