Missing nvarchar fields in hsodbc connection

I need read access from an Oracle 10.2.0.4 database (Win 2003 Server) to a MS SQL Server 2005 database using collation: SQL_Latin1_General_CP1_CI_AS. The tables have nvarchar and ntext columns.
The oracle database has the following nsl_database_parameters set:
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_CHARACTERSET AL32UTF8
NLS_NCHAR_CONV_EXCP FALSE
I've installed the mssql SQL Native Client and set up a System DSN in the ODBC Data Source Administrator.
Since I only need read access, I tried using Oracle heterogeneous services (hsodbc) to connect to mssql. I created an init<odbcname>.ora file with the following HS init parameters:
HS_FDS_CONNECT_INFO = ovsqlserver
HS_FDS_TRACE_LEVEL = OFF
HS_NLS_NCHAR = UTF8
I added the info needed to listener.ora and tnsnames.ora and established a successful connection to the mssql data. Finally, created the needed database link in the Oracle database.
I can query tables on mssql BUT any column defined as nvarchar or ntext do not show up. Oracle clearly states that if there are datatypes it can't translate, it won't include the column.
Now I find that HSODBC has been desupported as of 15Mar09 and that one should use DG4ODBC included with the 11g release. Arrgggg!!!
I installed only the 11.1.0.7 Gateway for ODBC to get the DB4ODBC. Other forum searches state that DB4ODBC only works with an 11.1 listener but I don't have a full install of 11.1 with the requisite libraries.
So. Is there a way to see the nvarchar columns in my admittedly desupported HSODBC configuration? Is it a char set mismatch issue? Are there other tweaks that have to made to get the ODBC driver or HSODBC to recognize the nvarchar and ntext columns?
I've been working on various configurations for a week and still no joy. Surely this has been done many times before. Your help would be deeply appreciated.

Installing DG4ODBC is the correct approach as HSODBC was desupported 15th of March 2008.
As you have already a 10g installation on this machine, please make sure you install the 11g DG4ODBC into its own Oracle_Home. Installing DG4ODBC will automatically install the SQL*Net Server component containing an 11g listener.
So just configure the 11g SQL*Net coming with DG4ODBC and you have everything you need and you can then use DG4ODBC with the 11g listener.
Instructions how to configure DG4ODBC can be found in Metalink note:
Note.466225.1 How to Setup DG4ODBC (Oracle Database Gateway for ODBC) on Windows 32bit

Similar Messages

  • Missing Mandatory field in IDOC

    Hi All,
            There is one outbound idoc which gives out an error status 40 "Application document not created in target system".
    The error is Missing mandatory field : 1CS210,, not sure how tor find this missing field since the name does not match with the field names in the segments.
    Can anyone help me?
    Regards,
    Anand

    hi shiva,
    pls try the below links you may get solution.
    http://sap.ittoolbox.com/groups/technical-functional/sap-log-sd/mandatory-condition-mwst-is-missing-388959
    Missing fields in Customer Master Data - 41k -
    Re: Web Service - Error in Connection and Data fields missing - 44k -
    http://blogs.ittoolbox.com/sap/ehadzipetros/archives/no-mystery-to-troubleshooting-gis-and-sap-always-begin-at-the-beginning-22646
    www.helpsap.com/account1.html - 14k
    thanks
    karthik
    reawrd me if helpfull

  • Nvarchar fields using Transparent Gateway for MS SQL

    We are using TG to make a number of tables/views available in an Oracle database. The tables in question contain a number of nvarchar fields which are expected to contain Unicode data. These fields cause a number of problems when accessed in Oracle. Firstly, queries returning any nvarchar(x) (for some x) fields hang when they are run in Oracle and it is necessary to reset the connection before running another query! Fields with type nvarchar(max) do come through, however they come through as type LONG, which is very difficult to do anything useful with in Oracle and cannot be searched on.
    We are working around the problem by creating views in MS SQL on top of our original tables/views which cast nvarchar(x) to varchar(x). We are then able to query these new views in Oracle, search on text fields etc. However, MS SQL does not properly support UTF-8 in varchar fields and the conversion results in downgrading our data to the latin-1 character set. Note casting nvarchar(x) to nvarchar(max) in MS SQL does not work, the queries still hang. We also have a problem where the length of the nvarchar field in MS SQL is longer than the max supported varchar2 length in Oracle. In this case TG will again provide a LONG converted field.
    We would like to know how to get full Unicode data to come across Transparent Gateway. We would be happy to get our data in the Oracle nvarchar2 type, or varchar2 with utf8 would also be fine, ideally with clob/nclob for over-length fields. Alternatively any solution which allows us to access full Unicode data would probably be acceptable. We only need to query the data from inside one ETL package, which will store the transformed data in Oracle, so a solution which involves a cast at this stage would also be acceptable, although obviously having the data show up correctly directly through TG would be better.

    Heya,
    Here is an example table in SQL Server:
    CREATE TABLE [dbo].[tblPnLCostNames](
         [ID] [int] IDENTITY(1,1) NOT NULL,
         [Name] [nvarchar](2048) NOT NULL,
         [Group] [nvarchar](50) NULL,
          [nvarchar](50) NULL,
         [Description] [nvarchar](1024) NULL,
    CONSTRAINT [PK_tblPnLCostNames] PRIMARY KEY CLUSTERED
         [ID] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    And in Oracle I did this:
      CREATE TABLE "FOR_DW_DEV01"."UNICODE_COST_TEST"
       (     "ID_" NUMBER,
         "NAME_" LONG,
         "GROUP_" VARCHAR2(50 CHAR),
         "CODE_" VARCHAR2(50 CHAR),
         "DESCRIPTION_" VARCHAR2(1024 CHAR)
    Now I want to be able to say:
    insert into unicode_cost_test ( id_, name_, group_, code_, description )
    select "ID", to_lob( "Name" ), "Group", "Code", "Description" from tblPnlCostNames@my_link;
    The other fields are shorter and will go straight in to varchar2 fields as UTF-8 with no problems following some tweaks to the gateway ini file. Anything over 2000 characters comes across as a LONG, but trying to use the to_lob function results in "ORA-00997: illegal use of LONG datatype". Doing the same thing using a local table with a LONG field as the source works fine. Is to_lob supposed to work on LONG fields that come across the gateway?
    I found this in the 11.2.0.2.2 bugfix list:
    10157402 - lob segment has null data after long to lob conversion in parallel mode
    (ftp://ftp.hj.se/Oracle/Patchar/11.2.0.2/psu_april_2011/download.htm#BABDIEDD)
    Could this be related?
    The only way I have found to read the LONG fields so far that works is to use select into, and read each value individually!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Use of nvarchar field in a Unicode database

    Hi,
    I'm using an application (SPI) where, in the manual of this application, is clearly stated under the chapter to create the Oracle database:
    i. Under Database Character Set, select Use Unicode (AL32UTF8).
    ii. Under National Character Set, select AL16UTF16 (the default).
    Then, in the latest version of SPI all varchar fields where changed to nvarchar fields.
    Now I'm wondering what the advantage could be of this setup.
    In a Unicode database, I can already store any international character set in a varchar field, so why would they use nvarchar?
    I do see the disadvantage, because in various SQL's against this database I get ORA-12704 (Character set mismatch errors) when using
    select
    tag from ..
    union
    select '-' from ... instead I have to add a cast
    select
    tag from ..
    union
    select cast('-' as nvarchar2(1)) from ...

    Now I'm wondering what the advantage could be of this setup.Hard to say but plenty of disadvantages.
    See [url https://forums.oracle.com/forums/thread.jspa?threadID=2302983#9955254]Dear Gurus: Can u pls explain the difference between VARCHAR2 & NVARCHAR2??

  • Missing some fields using TRANSFER write to file

    Hi, Friends:
    I have a structure which has been populated with data, saying its name is "h_fkkcolfile", and it has 30 fields.
    The following statement is used to write its contents to one line of the output file, the file is in application server.
    TRANSFER h_fkkcolfile TO i_file_name.
    After the statement, we check AL11 for the contents of the file, we found only 19 fields has been written to the file, missing other fields.
    Thanks in advance.
    Liang

    Hi,
    In AL11 you can see only 512 char length, but when it download to local pc we can see all the fileds
    try to download the file using transactio code
    CG3Y and see the data.
    Regards
    Krishna

  • Missing version field in response...( Tomcat, JBuilder )

    Hello,
    (Sorry for a long message, but I saw several times messages with the only
    response like "write more details...")
    I'm trying to execute a simple Web Start application using version-based download.
    I'm constantly receiving the following error:
    Missing version field in response from server when accessing resource:
    (http://localhost:8083/checkboxcontrol/CheckBoxControl.jar, 1.1)
    Is it possible that there is a bug somewhere within Web Start ?
    The download is working in a basic version - the problem starts to occur when
    I'm changing JNLP to:
    <jar href="CheckBoxControl.jar" version="1.1"/>
    Is there anybody that can help me ?
    (I've read all past messages about "Missing version field in response...")
    Below is all information about the case.
    URL:
    ===================
    http://localhost:8083/checkboxcontrol/CheckBoxControlLauncher.jnlp
    Software configuration:
    ======================================
    JBuilder 9 Enterprise Trial
    Java Web Start 1.4.2
    Tomcat 4.1 (included for debugging inside the JBuilder)
    Windows NT 4.0 SP6a
    Mozilla Firebird 0.6.1
    Please note that I've tried also with IBM Websphere 4 - the same result.
    JNLP file:
    ===================
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="http://localhost:8083/checkboxcontrol">
    <information>
    <title>CheckBox Example</title>
    <vendor>Borland</vendor>
    <homepage href="CheckBoxControlLauncher.html" />
    <description>Web Start Example for CheckBoxControl</description>
    </information>
    <resources>
    <j2se version="1.3+" />
    <jar href="CheckBoxControl.jar" version="1.1"/>
    </resources>
    <application-desc main-class="com.borland.samples.swing.checkboxcontrol.Application1" />
    </jnlp>
    File directory contents:
    ========================
    .\Lib (empty)
    .\WEB-INF
    ->\classes
    ->->\checkboxcontrol
    ->->->\WEB-INF
    ->->->->\Lib
    ->->->->->\jardiff.jar
    ->->->->->\jnlp-servlet.jar
    ->->->->->\jnlp.jar
    ->->\classes\com\borland\samples\swing\checkboxcontrol\
    ->->->\Application1.class
    ->->->\Frame1$1.class
    ->->->\Frame1$2.class
    ->->->\Frame1$3.class
    ->->->\Frame1$4.class
    ->->->\Frame1$5.class
    ->->->\Frame1.class
    ->\lib
    ->->\jardiff.jar
    ->->\jnlp-servlet.jar
    ->->\jnlp.jar
    ->\web.xml
    CheckBoxControl.jar
    CheckBoxControlLauncher.html
    CheckBoxControlLauncher.jnlp
    CheckBoxControl__V1.1.jar
    version.xml
    web.xml contents:
    ===================
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <servlet>
    <servlet-name>JnlpDownloadServlet</servlet-name>
    <servlet-class>com.sun.javaws.servlet.JnlpDownloadServlet</servlet-class>
    </servlet>
    [... cut ....]
    <servlet-mapping>
    <servlet-name>JnlpDownloadServlet</servlet-name>
    <url-pattern>*.jnlp</url-pattern>
    </servlet-mapping>
    <mime-mapping>
    <extension>jar</extension>
    <mime-type>application/x-java-archive</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>jnlp</extension>
    <mime-type>application/x-java-jnlp-file</mime-type>
    </mime-mapping>
    </web-app>
    version.xml contents:
    ======================================
    <jnlp-versions>
    <resource>
    <pattern>
    <name>CheckBoxControl.jar</name>
    <version-id>1.1</version-id>
    </pattern>
    <file>CheckBoxControl.jar</file>
    </resource>
    </jnlp-versions>
    Stack trace:
    ===================
    JNLPException[category: Download Error : Exception: null : LaunchDesc: null ]
         at com.sun.javaws.cache.DownloadProtocol.doDownload(DownloadProtocol.java:566)
         at com.sun.javaws.cache.DownloadProtocol.getDownloadSize(DownloadProtocol.java:850)
         at com.sun.javaws.LaunchDownload.downloadJarFiles(LaunchDownload.java:580)
         at com.sun.javaws.LaunchDownload.downloadEagerorAll(LaunchDownload.java:544)
         at com.sun.javaws.Launcher.downloadResources(Launcher.java:735)
         at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:291)
         at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:199)
         at com.sun.javaws.Launcher.run(Launcher.java:167)
         at java.lang.Thread.run(Thread.java:534)

    I took a scan through what you posted and it looked OK - it has to be something simple. Sometimes it helps to compare against a working system - try looking at ScheduleWorld's jnlp.

  • Missing version field in response from server when accessing resource

    HY
    I have a problem to use the version option of the webstart. All files are included into a war file (created with jar cvf xx.war *). This file is in the webapps folder of the Tomcat 5. The jar files from the dev. kit (jnlp-servlet.jar, jaxp.jar, parser.jar are in the WEB-INF/lib folder).
    Every time I get the same message:
    Category: Download Error
    Missing version field in response from server when accessing resource: (http://localhost:8080/version/ademo.jar, 1.1)
    Do I need a aditional file or must Iwrite a servlet???
    Whats wrong
    my JNLP file
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File fuer HJP3 WebStart Demo-Applikation -->
    <jnlp codebase="http://localhost:8080/version/" href="wstest.jnlp">
    <information>
    <title>HJP3 WebStart Demo Application</title>
    <vendor>Guido Krueger</vendor>
    <homepage href="http://www.javabuch.de"/>
    <description>HJP3 WebStart Demo Application</description>
    <icon href="wstest.gif"/>
    <offline-allowed/>
    </information>
    <information locale="de">
    <description>HJP3 WebStart Demo-Applikation</description>
    <offline-allowed/>
    </information>
    <security>
    <!-- <all-permissions/> //-->
    </security>
    <resources>
    <j2se version="1.4+"/>
    <jar href="ademo.jar" version="1.1"/>
    </resources>
    <application-desc main-class="Listing3813"/>
    </jnlp>
    my version.xml file
    <jnlp-versions>
    <resource>
    <pattern>
    <name>ademo.jar</name>
    <version-id>1.1</version-id>
    </pattern>
    <file>application.jar</file>
    </resource>
    </jnlp-versions>
    my web.xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
         <servlet>
              <servlet-name>JnlpDownloadServlet</servlet-name>
              <servlet-class>com.sun.javaws.servlet.JnlpDownloadServlet</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>JnlpDownloadServlet</servlet-name>
              <url-pattern>*.jnlp</url-pattern>
         </servlet-mapping>
    </web-app>

    The log file (jnlpdownloadservlet.log) would show the calls for the jar files if the servlet is called for the jar files (did you correct the url mapping ?). Here are a few lines from a log file
    JnlpDownloadServlet(4): Initializing
    JnlpDownloadServlet(3): Request: /maportal/wfe/wfeguiv.jnlp
    JnlpDownloadServlet(3): User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8
    JnlpDownloadServlet(4): DownloadRequest[path=/wfe/wfeguiv.jnlp isPlatformRequest=false]
    JnlpDownloadServlet(4): Basic Protocol lookup
    JnlpDownloadServlet(4): JnlpResource: JnlpResource[WAR Path: /wfe/wfeguiv.jnlp lastModified=Tue Mar 23 17:06:56 CET 2004]]
    JnlpDownloadServlet(3): Resource returned: /wfe/wfeguiv.jnlp
    JnlpDownloadServlet(4): lastModified: 1080058016000 Tue Mar 23 17:06:56 CET 2004
    JnlpDownloadServlet(3): Request: /maportal/wfe/wfegui.gif
    JnlpDownloadServlet(3): User-Agent: JNLP/1.0.1 javaws/1.4.2_03 (b02) J2SE/1.4.2_03
    JnlpDownloadServlet(4): DownloadRequest[path=/wfe/wfegui.gif isPlatformRequest=false]
    JnlpDownloadServlet(3): Request: /maportal/wfe/wfegui.jar
    JnlpDownloadServlet(3): User-Agent: JNLP/1.0.1 javaws/1.4.2_03 (b02) J2SE/1.4.2_03
    JnlpDownloadServlet(4): DownloadRequest[path=/wfe/wfegui.jar isPlatformRequest=false]
    JnlpDownloadServlet(4): Basic Protocol lookup
    JnlpDownloadServlet(4): JnlpResource: JnlpResource[WAR Path: /wfe/wfegui.jar lastModified=Tue Mar 23 17:06:30 CET 2004]]
    JnlpDownloadServlet(3): Resource returned: /wfe/wfegui.jarYou should see all the resources (including jar files) being requested, and whether a specific version was requested or not (in above sample, not).
    I put my problems down to my application server (Orion) as other people seem to have this working. The deployment in Orion keeps the original timestamps of the jars, so I explicitly set the timestamps in my build so that the unchanged jars do not have to be downloaded all the time. This is not really a good solution, so maybe someone else can give further advice.
    Brendan

  • Why do I keep seeing Missing required field: Publication when I try to publish a file in iBooks format?

    I have produced a book in iBooks format and filled in everything asked for including but I can't slide the file into the window area and I get a message, Missing required field: Publication. I don't understand what I need to do to complete the transaction. I hope someone can understand and tell me what to do. Thank you.

    Thank you. You're dealing with an old woman doing her best here.   Sorry, I was somewhat distracted when I posed the question having been wrestling with it all afternoon. Yes, I am using iTunes Producer and have filled in all the information requested including cover art. The file is saved in iBooks format.
    I click on Files at top left, which I assume to be the thing to do, and get a a new page showing red circle with a number 1 in it. Clicking on that produces this :
    "Drag and drop the full book that will be used on the iBooks store. Books can be in the EPUB or iBooks format. Submitting a new book version will replace the existing version on the iBooks store.
    Missing required field: Publication. "
    I have tried to drag and drop the file into the box on the left but it won't allow me to. Clearly something is missing but I don't know what. I am just baffled as to what is wanted.

  • To save to the server, correct the invalid or missing required fields.

    We have a SharePoint 2010 document library that has a required field that is from an external data source.  When we open existing Excel documents, a ribbon appears stating "To save to the server, correct the invalid or missing required fields.". 
    If you go File>Info>Document Information Panel you will see this external data source field with a Red Asterisk and it says "Show Details".  If you click "Show Details" it will show you the "Document Properties - Server"
    toolbar and you will see this field populated.  It is however read only, and I believe that it is because its an external data source.  It will not let us save any excel documents as it seems that Excel feels this field is empty or incorrect.
    The same happens with Microsoft Word documents, in that if you open an existing document and go to the document control panel you will see the external data field with a Red Asterisk and it says "Show Details".  If you click "Show Details"
    it will show you the "Document Properties - Server" toolbar and you will see this field populated but read only; the difference is with the Word documents we can save and close the documents.  If we upload a new excel document, it behaves
    just like word documents, so it seems its only applicable to existing excel documents.
    Over the past 2 weeks we have upgraded from SharePoint RTM to SharePoint SP2.  This is has never been reported prior to the upgrades so I am assuming, but cannot confirm, if it was caused by the upgrades.
    I see there are workarounds online for Word, but nothing for excel. 
    Any help for further troubleshooting would be greatly appreciated. 
    Thanks
    Ken
    Kenneth Clebak

    Hi Ken,
    According to your description, the error will occur when saving the documents in the library which has an external data column from client application.
    The document which cannot be saved may contain invalid XML information or invalid XML properties.
    I recommend to remove the invalid XML information before you save the documents:
    Open the document in corresponding client application.
    Click File, click Info, click  Check for issues, and then click Inspect Document.
    In the Document Inspector dialog box, accept the default options, and then click Inspect.
    In the Document Inspector dialog box, click Remove All, and then click Close.
    Best regards.
    Thanks

  • Itunes producer delivery erroe Missing required Field Vender Identifier

    I'm submitting a new book and sample both made in iAuthor the delivery error meesage is: Missing required field: Vendor Identifier
    When I click on the error message it takes me back to the ISBN number. I have checked and I am entering the correct 13 digit number without any spaces or hyphens and can't see anything else to corrrect.

    Thanks Fabini -
    That worked - "Your package has validated correctly."
    Many Thanks for the help.
    Darren
    (haha! Sod's Law: "The iTunes Store is temporarily not accepting deliveries due to planned maintenance....." - but looks like it will work tomorrow!)

  • Missing USNAME field in FBL3N

    Hi,
    We just upgraded to ECC 500.
    We are missing the field 'USNAM' for FBL3N. Can anybody help me fix this.
    Thank you.

    Hi Shelina,
    Please check this SAP Note <b>370940</b>.
    Perhaps it will help.
    Regards,
    Ferry Lianto

  • Missing User Field in Disable Individual Accounts section

    We are running on Vibe 3.4.0 build 2835. We have a couple of issues here that has to do with managing users in Vibe. We use LDAP to populate our user accounts in Vibe. Being in a university, our users come and go a lot. They get disabled and re-enabled in eDirectory. When a user gets disabled in eDirectory, they get disabled in Vibe too. When the user comes back and is re-enabled in eDirectory, their account in Vibe does not automatically get re-enabled. I have to go into "User Accounts" in the "Administration Console", select the "Disable/Delete Accounts" tab, locate the disabled user and check the box beside the disabled user, scroll all the way down the list and hit the "Enable Selected Accounts" button. We ask the enabled user to try and login to Vibe and they get a "login failed" error message, even when I do a search of the user in Vibe and their account shows up. This is problem 1. So, next thing I do is to delete the user so I can re-synchronize the user back into Vibe through LDAP sync. The Vibe 3.4 Administration Guide (page 177, Deleting Individual Accounts, item 6) indicates that there is supposed to be a User Field where I can type in the name of the user and I would be able to select the user from the drop-down list that is supposed to appear. I do not see this "User Field" where I can type in the user's name. This is problem 2. So, I end up having to go to the "Select From All Accounts" section, go from page to page until I find the user to delete. Deleting a user in Vibe takes such a long time for us because we have thousands of users and it takes very long to go from one page to the next to get to a user who's first name is towards the end of the alphabet. If the "User Field" existed as the guide indicated, then it would not be such a big deal to delete a user. Even better, if the account were re-enabled in Vibe and the user is able to use it. Or even much better if the user's account in eDirectory were enabled and the account in Vibe were automatically enabled when an LDAP sync is executed. Would appreciate any information in getting this process of re-enabling users in Vibe working better for us, and help in getting the missing User Field to show up. By the way, I've tried this on Chrome, IE, and FireFox and everything I've described here works the same way on the different browsers, including the missing field.
    Thanks,
    Ronnie

    sarnor,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://www.novell.com/support and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Forums Team
    http://forums.novell.com

  • Version Based Downloading w/JBoss Missing Version Field....

    Here we go again, version based downloading difficulties.
    I cannot get version based downloading to work using the version.xml file or using file based versioning.
    My environment is
    JBoss 4.0.3 SP1 (whatever version of tomcat container this contains)
    JRE 1.5.0_06
    I have a .ear file which contains a .war file which contains the appropriate folder format and loose application jars, html, jnlp, etc., as described in the "Packaging JNLP Applications in a Web Archive" document.
    My web.xml file looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
        version="2.4">
      <display-name>TotalZilla</display-name>
      <description> TotalVU application </description>
       <servlet>
          <servlet-name>JnlpDownloadServlet</servlet-name>
          <servlet-class>jnlp.sample.servlet.JnlpDownloadServlet</servlet-class>
               <init-param>
                  <param-name>logLevel</param-name>
                  <param-value>DEBUG</param-value>
               </init-param>
               <init-param>
                  <param-name>logPath</param-name>
                  <param-value>jnlpdownloadservlet.log</param-value>
               </init-param>     
       </servlet>
          <servlet-mapping>
         <servlet-name>JnlpDownloadServlet</servlet-name>
         <url-pattern>*.jnlp</url-pattern>
       </servlet-mapping>
      </web-app>
    ]NOTE: changing the <url-pattern> value to anything but *.jnlp causes JBoss to throw an exception during application deployment[i]
    My version.xml file looks like this:
    I believe this to be the culprit but I am at a loss as to why.
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp-versions>
          <resource>
             <pattern>
               <name>utilities.jar</name>
                <version-id>1.0</version-id>
             </pattern>
             <file>utilities.jar</file>
          </resource>
          <resource>
             <pattern>
               <name>totalvu.jar</name>
                <version-id>2.0</version-id>
             </pattern>
             <file>totalvu.jar</file>
          </resource>     
          <resource>
             <pattern>
               <name>images.jar</name>
                <version-id>1.0</version-id>
             </pattern>
             <file>images.jar</file>
          </resource>      
          <resource>
             <pattern>
               <name>common.jar</name>
                <version-id>1.0</version-id>
             </pattern>
             <file>common.jar</file>
          </resource>     
       </jnlp-versions>
    My jnlp file looks like this:
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp
      spec="1.0+"
      codebase="$$codebase"
      href="$$name" context="$$context">
      <information>
        <title>Total VU Application</title>
        <vendor>Perimeter Aquisition Corp.</vendor>
        <homepage href="docs/totalvu.html"/>
        <description>TotalVU application from Perimeter</description>
        <description kind="short">The perfect application.</description>
        <offline-allowed/>
         <shortcut online="false">
          <desktop/>
          <menu submenu="Perimeter - TotalVU"/>
        </shortcut>
      </information>
       <security>
          <all-permissions/>
      </security>
      <resources>
         <j2se version="1.5.0+"/>
        <jar href="totalvu.jar" version="1.0+"/>
        <jar href="utilities.jar" version="1.0"/>
        <jar href="common.jar" version="1.0"/>
        <jar href="images.jar" version="1.0"/>
        <jar href="jlfgr-1_0.jar"/>
        <jar href="jboss-j2ee.jar"/>  
        <jar href="jnpserver.jar"/>
        <jar href="jboss-common-client.jar"/>
        <jar href="jbossmq.jar"/>
        <jar href="concurrent.jar"/>
        <jar href="swing-worker.jar"/>
        <jar href="log4j.jar"/>   
        <extension name="Sun Signed Jars" href="sunsignedjars.jnlp"/>
      </resources>
      <application-desc main-class="com.perimeter.totalvu.framework.TotalVU"/>
    </jnlp>
    The other jnlp file (temporary) which contains a version of activation.jar signed by sun looks like this:
    <?xml version="1.0" encoding="utf-8"?>
        <jnlp spec="1.0+"
          codebase="$$codebase"
          href="$$name"
          context="$$context">
        <information>
            <title>SunSignedJars</title>
            <vendor>Sun Microsystems, Inc.</vendor>
            <description>Jars signed by Sun Microsystems</description>
        </information>
        <security>
          <all-permissions/>
        </security>
        <resources>
            <jar href="activation.jar"/>
        </resources>
       <component-desc>
       </component-desc>
    </jnlp>
    My war file (which is in an ear file) has this format:
    META-INF\MANIFEST.MF
    WEB-INF\lib\jnlp-servlet.jar
    WEB-INF\lib\jardiff.jar
    WEB-INF\lib\jnlp.jar
    version.xml
    *.jar
    *.jnlp
    *.html
    This configuration spits out the famous "Missing version field from server....." that I have seen many times in this forum. The download servlet is getting executed because I am getting a log file generated every time. Debug is the only value that will put out a log. The log output looks like this:
    JnlpDownloadServlet(3): Request: /totalvu/totalvu.jnlp
    JnlpDownloadServlet(3): User-Agent: JNLP/1.5 javaws/1.5.0_06 (b05) J2SE/1.5.0_06
    JnlpDownloadServlet(4): DownloadRequest[path=/totalvu.jnlp isPlatformRequest=false]
    JnlpDownloadServlet(4): Basic Protocol lookup
    JnlpDownloadServlet(4): JnlpResource: JnlpResource[WAR Path: /totalvu.jnlp lastModified=Mon Dec 05 11:17:46 EST 2005]]
    JnlpDownloadServlet(3): Resource returned: /totalvu.jnlp
    JnlpDownloadServlet(4): SupportQuery in Href: true
    JnlpDownloadServlet(4): lastModified: 1133799466000 Mon Dec 05 11:17:46 EST 2005
    JnlpDownloadServlet(3): Request: /totalvu/sunsignedjars.jnlp
    JnlpDownloadServlet(3): User-Agent: JNLP/1.5 javaws/1.5.0_06 (b05) J2SE/1.5.0_06
    JnlpDownloadServlet(4): DownloadRequest[path=/sunsignedjars.jnlp isPlatformRequest=false]
    JnlpDownloadServlet(4): Basic Protocol lookup
    JnlpDownloadServlet(4): JnlpResource: JnlpResource[WAR Path: /sunsignedjars.jnlp lastModified=Mon Dec 05 10:00:20 EST 2005]]
    JnlpDownloadServlet(3): Resource returned: /sunsignedjars.jnlp
    JnlpDownloadServlet(4): SupportQuery in Href: true
    JnlpDownloadServlet(4): lastModified: 1133794820000 Mon Dec 05 10:00:20 EST 2005If I remove the version= tag from the main jnlp file, everything loads fine, but there is no versioning. I have also tried to remove the version.xml file from the package and change my jar files to use file based versioning, but that didn't work either. I rebuilt my jar files with the __V1.0 extension and the complaint was that it couldn't load the resource totalvu.jar. Well, ya, it is now named totalvu__V1.0.jar! Again, versioning is being ignored. The double underscore and V was not recognized as anything special.
    The servlet is running long enough to spit out a log file, no errors. It looks like it succesfully processed the jnlp files, but there is no indication of any versioning.
    Doe the jnlp.jar and jardiff.jar files need to be included in the lib folder in the .war file? I am only including the jnlp-servlet.jar. They were not referenced in the example war file in the documentation, but I have seen them referenced in older doc for other app servers. I did try including them, but it made no difference of course. Guess this question is just a housekeeping question.
    Does anyone have any insight on this problem?
    I am at the point where I think I would like to get the source and debug through it to see what is going on, but that should be unecessary.

    Thanks. I had the same problem.
    As danrak suggests, just add this to your web.xml file to parse .jar and/or .zip file extensions:
    <servlet-mapping>
    <servlet-name>JnlpDownloadServlet</servlet-name>
    <url-pattern>*.zip</url-pattern>
    </servlet-mapping>          
    <servlet-mapping>
    <servlet-name>JnlpDownloadServlet</servlet-name>
    <url-pattern>*.jar</url-pattern>
    </servlet-mapping>

  • JWS1.2 & Missing version field in response

    I must say that the guys with JWS1.2 have done well in getting around the proxy issues with the previous versions. However, its disappointing to see this error still occuring when you perform a version based download which is one of the most useful pieces of functionality in JWS (see quote below) . So when a cleint has proxy issues its goodbye 'Bad MIME type error' and hello 'Missing version field in response from server when accessing resource'. Is this really progress? Surely most people use version based downloads?
    Will this be fixed for 1.4.1 final and / or does anybody know of a workaround? I've included a previous quote, our jnlp, errors and stack dump below.
    Many thanks
    Ian
    Quote from dietz Jul9, 2002
    "The problem is probably that your proxy server is not passing on the correct mime type. Some proxy servers (I'm sorry I don't remember which ones) will only pass on mime types that they are aware of, and will substitute text/html, for others. This should be no problem when using Java Web Start 1.2, since it itself does not require that jnlp files download come with the proper mime type. You may still have a problem using these proxy servers if you are running a servlet implementing the jardiff (incremental update) protocol, since Java Web Start may use the mime type to differenciate between jar files (application/x-java-archive) and jardiff files (application/x-java-archive-diff) "
    An error occurred while launching/running the application.
    Title: OS MasterMap Viewer
    Vendor: Snowflake Software
    Category: Download Error
    Missing version field in response from server when accessing resource: (http://www.snowflakesoft.co.uk/app/viewer.jar, 1.1)
    Stack dump:
    JNLPException[category: Download Error : Exception: null : LaunchDesc: null ]      at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)      at com.sun.javaws.cache.DownloadProtocol.getDownloadSize(Unknown Source)      at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)      at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)      at com.sun.javaws.Launcher.downloadResources(Unknown Source)      at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)      at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)      at com.sun.javaws.Launcher.run(Unknown Source)      at java.lang.Thread.run(Unknown Source)
    JNLP:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="http://www.snowflakesoft.co.uk/app/" href="viewer.jnlp">
    <information>
    <title>OS MasterMap Viewer</title>
         <vendor>Snowflake Software</vendor>
         <description kind="one-line">A Java based map viewer for OS MasterMap</description>
         <description kind="short">A Java based viewer for OS MasterMap capable of reading both Topology and Independent Polygons in either GZip, WinZip or uncompressed GML</description>
         <description kind="tooltip">OS MasterMap Viewer</description>
         <homepage href="http://www.snowflakesoft.co.uk"/>
         <icon width="64" height="64" href="images/SnowflakeLogo64.gif"/>
         <icon width="32" height="32" href="images/SnowflakeLogo32.gif"/>
         <icon kind="splash" href="images/SnowflakeSplash.gif"/>
         <offline-allowed/>
    </information>
         <security>
              <all-permissions/>
         </security>
    <resources>
         <j2se version="1.3*" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="8m" max-heap-size="1024m"/>
         <j2se version="1.4*" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="8m" max-heap-size="1024m"/>
         <jar href="viewer.jar" version="1.1"/>
    </resources>
    <application-desc main class="uk.co.snowflakesoft.jme.application.Viewer"/>
    </jnlp>

    Version based download protocol is not available with vanila web server.
    You need to either run some form of script, jsp, or a servlet such as the JNLPDownloadServlet included in the developers pack, to return the requested version, and with the version information.
    If you are currently running the servlet you may still be having problem with your proxy having security settings that prohibit sending the additional version information on to the client, although I have never heard of this before.
    /Dietz

  • Missing version field

    Hello everyone.
    I have problem with version-download protocol. Every time I start up the application using JWS an error ocurred:Missing version field in response from server when accessing resource: (http://localhost:8080/PzP_Test/front01.jar, 1.0)
    This is my web.xml code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
    <web-app>
      <display-name>PzP_Test</display-name>
      <servlet>
        <servlet-name>JnlpDownloadServlet</servlet-name>
        <display-name>JnlpDownloadServlet</display-name>
        <servlet-class>com.sun.javaws.servlet.JnlpDownloadServlet</servlet-class>
        <init-param>
          <param-name>logLevel</param-name>
          <param-value>DEBUG</param-value>
        </init-param>
        <init-param>
          <param-name>logPath</param-name>
          <param-value>/jnlpdownloadservlet.log</param-value>
        </init-param>
      </servlet>
      <servlet-mapping>
        <servlet-name>JnlpDownloadServlet</servlet-name>
        <url-pattern>/PzP_Test/*</url-pattern>
      </servlet-mapping>
      <session-config>
        <session-timeout>30</session-timeout>
      </session-config>
      <mime-mapping>
        <extension>jar</extension>
        <mime-type>application/x-java-archive</mime-type>
      </mime-mapping>
      <mime-mapping>
        <extension>jnlp</extension>
        <mime-type>application/x-java-jnlp-file</mime-type>
      </mime-mapping>
      <welcome-file-list>
        <welcome-file>pzpj.jnlp</welcome-file>
      </welcome-file-list>
    </web-app>This is my jnlp file (the jnlp is creting dynamicly) :
    jnlp.jsp
    <%
    response.setContentType("application/x-java-jnlp-file");
    %>
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="http://localhost:8080/PzP_Test/" href="jnlp.jsp">
      <information>
        <title>aaaa</title>
        <vendor>dddd/vendor>
        <homepage href="Login.jsp"/>
        <description>some text</description>
      </information>
      <security>
          <all-permissions/>
      </security>
      <resources>
        <j2se version="1.4+"/>
        <jar href="front01.jar" main="true" download="eager" version="1.0"/>
        <jar href="front02.jar" main="false" download="eager" version="1.0"/>
        <jar href="front03.jar" main="false" download="eager" version="1.0"/>
        <jar href="front04.jar" main="false" download="eager" version="1.0"/>
      </resources>
      <application-desc main-class="pl.dd.aa.DDD"/>
    </jnlp>This is my version.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp-versions>
          <resource>
             <pattern>
               <name>front01.jar</name>
                <version-id>1.0</version-id>
             </pattern>
             <file>front01.jar</file>
          </resource>
          <resource>
             <pattern>
               <name>front02.jar</name>
                <version-id>1.0</version-id>
             </pattern>
             <file>front02.jar</file>
          </resource>
          <resource>
             <pattern>
               <name>front03.jar</name>
                <version-id>1.0</version-id>
             </pattern>
             <file>front03.jar</file>
          </resource>
          <resource>
             <pattern>
               <name>front04.jar</name>
                <version-id>1.0</version-id>
             </pattern>
             <file>front04.jar</file>
          </resource>
       </jnlp-versions>And the PzP_Test.war file looks like this:
    /PzP_Test/front01.jar
    /PzP_Test/front02.jar
    /PzP_Test/front03.jar
    /PzP_Test/front04.jar
    /PzP_Test/jnlp.jsp
    /PzP_Test/version.xml
    /PzP_Test/WEB-INF/web.xml
    /PzP_Test/WEB-INF/lib/jnlp-servlet.jar
    Any ideas!?

    Ok I resolved it by myself. I have problems with mapping in web.xml file.
    But now I have another problem. My jnlp file is created dynamicly. Jsp page create it. When I lunch my app using test.jnlp everything is working fine but when I want to start app with test.jsp then webstart doesn't start and the message occures "Save file as"
    Has someon got any idea on this?

Maybe you are looking for

  • "Json is undefined" error message when running web query in excel

    Hello,             Im trying to run a web query to import flight price data from ryanair into excel. I get a "Json is undefined" error message whenever i  run the web query. I also get a message from Ryanair saying my browser is out of date even thou

  • Very simple - how to put 'space' in unix

    hi, i have been told to do the following command to make all files in a directory read write: /bin/chmod -R a+rw /Users/.... now, the folder i want to apply this to is called "The Strategics Group" when i have the space, in Terminal i get an error, s

  • Application manager won't allow sign in

    After my computer reboots I am not able to sign into Adobe Creative Clound manager. I input my email and password and it spins and then signs me out. Any suggestions?

  • How do I transfer my Adobe from a purchased Mac to my new Mac?

    How do I transfer my Adobe from a purchased Mac to my new Mac?

  • Initialization problem

    Hi all, I have a java class that tries to initialize some fileds in its constructor body. The information needed are stored in properties file. Here is the code : public static final MyClass instance = new MyClass(); Properties props = new Properties