Register 12 VerifyError exception when compiling jsp with that jsp tag!

          Hi everybody,
          We implemented a tag which is charged with a simple task like just "out.println"s,
          on production with WL5.1 SP11,jdk1.2.
          Then we got java.lang.VerifyError exception which is also denoted at Giuseppe Madonna's
          mail on ( http://newsgroups2.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.jsp&item=6834&utag=
          ) that "java.lang.VerifyError: Register 12 contains wrong type"
          To be able to find the inconsistency in class files denoted at VerifyError exception,
          we delete the tmp dir. of web app resides in a war.
          Also the related java beans used in jsp tag and related jsp, are in a jar on our
          classpath and .tld file resides in the .war file of our web application.
          But also, I must define that it is our first tag implemented after we migrate to
          the .war file after the web application directory structure of same application(that
          old dir. also deleted), I know it is silly but, is it possible that WL can now refer
          to something related our previous directory structure of our app. like that old .tld
          file or classes?
          Or may it be related with the difference between jdk versions on the test and the
          production server?
          Any help will be really appreciated..
          Many thanks,
          Banu
          

          Start up weblogic with -
          java -noverify ....
          Mike
          "banu" <[email protected]> wrote:
          >
          >Hi everybody,
          >We implemented a tag which is charged with a simple task like just "out.println"s,
          >on production with WL5.1 SP11,jdk1.2.
          >
          >Then we got java.lang.VerifyError exception which is also denoted at Giuseppe
          >Madonna's
          >mail on ( http://newsgroups2.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.jsp&item=6834&utag=
          >) that "java.lang.VerifyError: Register 12 contains wrong type"
          >
          >To be able to find the inconsistency in class files denoted at VerifyError
          >exception,
          >we delete the tmp dir. of web app resides in a war.
          >
          >Also the related java beans used in jsp tag and related jsp, are in a jar
          >on our
          >classpath and .tld file resides in the .war file of our web application.
          >
          >But also, I must define that it is our first tag implemented after we migrate
          >to
          >the .war file after the web application directory structure of same application(that
          >old dir. also deleted), I know it is silly but, is it possible that WL can
          >now refer
          >to something related our previous directory structure of our app. like that
          >old .tld
          >file or classes?
          >
          >Or may it be related with the difference between jdk versions on the test
          >and the
          >production server?
          >
          >
          >Any help will be really appreciated..
          >Many thanks,
          >Banu
          >
          

Similar Messages

  • [SOLVED] Error when compiling conky with audacious support

    Edit: See post #8 for solution
    Hello.
    When trying to compile conky with the --enable-audacious option, I get the following error.
    checking for Audacious... configure: error: Package requirements (audacious >= 1.4.0 audclient dbus-glib-1 glib-2.0 gobject-2.0) were not met:
    No package 'audclient' found
    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.
    Alternatively, you may set the environment variables Audacious_CFLAGS
    and Audacious_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.
    ==> ERROR: A failure occurred in build().
    Aborting...
    My PKGBUILD is the one in the repos, with the addition of an --enable-audacious line. See below:
    # $Id: PKGBUILD 205494 2014-02-06 05:24:01Z bisson $
    # Maintainer: Gaetan Bisson <[email protected]>
    # Contributor: Giovanni Scafora <[email protected]>
    # Contributor: James Rayner <[email protected]>
    # Contributor: Partha Chowdhury <[email protected]>
    pkgname=conky
    pkgver=1.9.0
    pkgrel=4
    pkgdesc='Lightweight system monitor for X'
    url='http://conky.sourceforge.net/'
    license=('BSD' 'GPL')
    arch=('i686' 'x86_64')
    makedepends=('docbook2x')
    depends=('glib2' 'curl' 'lua' 'wireless_tools' 'libxml2' 'libxft' 'libxdamage' 'imlib2')
    source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
    sha1sums=('a8d26d002370c9b877ae77ad3a3bbd2566b38e5d')
    backup=('etc/conky/'conky{,_no_x11}.conf)
    options=('!emptydirs')
    build() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    CPPFLAGS="${CXXFLAGS}" LIBS="${LDFLAGS}" ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --enable-ibm \
    --enable-curl \
    --enable-rss \
    --enable-weather-xoap \
    --enable-imlib2 \
    --enable-wlan \
    --enable-audacious \
    make
    package() {
    cd "${srcdir}/${pkgname}-${pkgver}"
    make DESTDIR="${pkgdir}" install
    install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
    install -Dm644 extras/vim/syntax/conkyrc.vim "${pkgdir}"/usr/share/vim/vimfiles/syntax/conkyrc.vim
    install -Dm644 extras/vim/ftdetect/conkyrc.vim "${pkgdir}"/usr/share/vim/vimfiles/ftdetect/conkyrc.vim
    Note: While similar, I don't think this problem is the same as this one.
    Last edited by Sudowoodo (2014-06-29 10:07:02)

    drcouzelis wrote:Remove the "\" from the end of "--enable-audacious". Does it work now?
    No, it's exactly the same.
    drcouzelis wrote:EDIT: Also, there's already a package for conky-audacious in the AUR.
    I tried it, that doesn't compile either, and its orphan & outdated.
    For the record, its PKGBUILD is
    Edit: Remove unnecessary text. See post #8 for solution.
    and the error is the same:
    Edit: Remove unnecessary text. See post #8 for solution.
    Have you been able to reproduce the problem? I'm using an amd64 processor and trying to build with "makepkg -s". Thank you for replying.
    Last edited by Sudowoodo (2014-06-28 12:13:28)

  • Exception when compiling hello world

    Here's my code.
    public class h
         public static void main(String[] args)
              System.out.println("hello");
    }The code compiles correctly with no errors. When I run it im getting the following error:
    Exception in thread "main" java.lang.noClassDefFoundError : h
    Has anyone got any idea why i could be getting this error, thanks.

    The -d option was not recognised.
    I already use netbeans but I didn't bother for such a small program.
    I got it to work anyway. I just had to add the current working dir to the classpath like SET CLASSPATH=%CLASSPATH%;.

  • Can any solve this exception when compiling the source code

    when i compile the source code . i am getting the following exceptions
    1.java.lang.classnotfoundException and javax.jnlp.UnavailableServiceException
    BadFieldException[ The field <jnlp>codebase has an invalid value: $$context/adempiereHome,$$context/adempiereHome]
         at com.sun.javaws.jnl.XMLUtils.getAttributeURL(Unknown Source)
         at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
         at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
         at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
         at com.sun.javaws.Main.launchApp(Unknown Source)
         at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
         at com.sun.javaws.Main$1.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    looks like you're using java web start to run app. am i right? personally i don't have much expertise in this area but i've had to deal with it before, essentially what your problem looks to me is that the codebase in your jnlp file is set up wrong
    under my definition (vague) the codebase points to where java should look at to find your files and run them
    do a search and read more about running apps. through web start if that's your case

  • Urgent,java Error when compiling class file for jsp

    Hi!
    Reference to statement is ambbiguous,both class java.sql.statement in java.sql and class.java.beans.statement in java beans match.
    this is my file . When i comment the java.import.bean headre it does compile but my server is not able to recognize the class file.,Cud someone help me.
    THis is my source file
    package dbmg;
    //import java.beans.*;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class DbBean
    Connection con;
    ResultSet rs;
    String sql;
    boolean queryType;
    int edited;
    public DbBean() throws Exception
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con = DriverManager.getConnection("jdbc:odbc:Forums");
    public void setQueryType(String s)
    queryType=s.equalsIgnoreCase("select");
    public void setSql(String s)
    sql = s;
    synchronized public void processRequest(HttpServletRequest req) throws
    Exception
    if (queryType)
    Statement stmt=con.createStatement();
    rs=stmt.executeQuery(sql);
    else
    PreparedStatement ps=null;
    ps=con.prepareStatement(sql);
    int count=0;
    String sqlParam,paramValue;
    boolean set=true;
    while (set)
    count++;
    sqlParam="param"+String.valueOf(count);
         if (sqlParam==null)
              set=false;
              continue;
    paramValue=req.getParameter(sqlParam);
         if (paramValue==null)
    set=false;
    continue;
              else
                   paramValue=paramValue.trim();
    try
                   ps.setString(count,paramValue);
              catch(Exception ex)
                   set=false;
                   continue;
    try
    edited=ps.executeUpdate();
    catch(SQLException e)
    edited=0;
    public Connection getConnection()
    return con;
    public ResultSet getResultSet()
    return rs;
    public int stored()
    return edited;
    public void closeCon() throws Exception
    con.close();
    rs = null;

    No need of commenting your import statement. Whenever there is ambiguity, you can use full class name (with package).
    Like,
    java.sql.Statement stmt=con.createStatement();
    Now there is no ambiguity.
    Sudha

  • WAR - how to continue compiling even when compile fails for some jsp's

    i am trying to pre-compile all my jsp's and find out all the compilation
              errors in all the jsp's..
              i am defining a war app and i am making the weblogic server to precompile
              the jsp's.. i control this from web.xml
              the problem is
              weblogic starts compiling the jsp's and when it hits the first error it
              bails out.. i doesn't precompile the rest of the jsp's..
              how do i make weblogic server to continue compiling the rest of the jsp's??
              anyone??
              

    You sure can run a Windows Form and while it is visible, run code in the Powershell script, and communicate the information from the 'main' script  to the form.
    To do this you need create a separate Powershell runspace and dependent on situation either use shared memory and timer in the form or delegates to directly call form elements
    Please check my article at codeproject for extensive journey of using all core Windows Forms, WPF, Selenium with Powershell for tasks which often require various option prompts.
    http://www.codeproject.com/Articles/799161/Dealing-with-Powershell-Inputs-via-Basic-Windows-F
    You find there over 40 common Windows form patterns  ( prompts, grids, check/radio boxes, progress bars of many forms, tree views, item lists, passwords, tool tips, system tray widgets, browser controls, examples of using p/invoke, hosting custom controls,
    dealing with selenium webdriver, dealing with selenium-unfriendly file upload dialogs etc. ) all covered there - working code for every example is provided, and the code is hosted on github.
    Routine daily devops tasks of executing Powershell scripts in a complex environment suddenly become a less challenging task. Web scraping becomes more fun

  • Cannot resolve symbol error when compiling a class that calls another class

    I've read all the other messages that include "cannot resolve symbol", but no luck. I've got a small app - 3 classes all in the same package. BlackjackDAO and Player compile OK, but BlackjackServlet throws the "cannot resolve symbol" (please see pertinent code below)...
    I've tried lots: ant and javac compiling, upgrading my version of tomcat, upgrading my version of jdk/jre, making sure my servlet.jar is being seen by the compiler (at least as far as I can see from the -verbose feedback)...any help would be GREAT! Thanks in advance...
    classes: BlackjackServlet, BlackjackDAO, Player
    package: myblackjackpackage
    tomcat version: 4.1.1.8
    jdk version: j2sdk 1.4.0
    ant version: 1.4.1
    I get the same error message from Ant and Javac...
    C:\Tomcat4118\src\webapps\helloblackjack\src\myblackjackpackage>javac *.java -verbose
    C:\Tomcat4118\src\webapps\helloblackjack>ant all -verbose
    compile error:
    BlackjackServlet.java:55: cannot resolve symbol
    symbol: method addPlayer (javax.servlet.http.HttpServletRequest,javax.servlet.http.Http
    ServletResponse)
    location: class myblackjackpackage.BlackjackServlet
              addPlayer(request, response);
    ^
    My code is:
    package myblackjackpackage;
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.lang.*;
    /** controller servlet in a web based blackjack game application @author Ethan Harlow */
    public class BlackjackServlet extends HttpServlet {
         private BlackjackDAO theBlackjackDAO;
         public void init() throws ServletException {
    String driver = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
    String dbUrl = "jdbc:microsoft:sqlserver://localhost:1433";
    String userid = "testlogin";
    String passwrd = "testpass";
         try {
         theBlackjackDAO = new BlackjackDAO(driver, dbUrl, userid, passwrd);
         catch (IOException exc) {
              System.err.println(exc.toString());
         catch (ClassNotFoundException cnf) {
              System.err.println(cnf.toString());
         catch (SQLException seq) {
              System.err.println(seq.toString());
    public void doPost(HttpServletRequest request, HttpServletResponse response)
              throws ServletException, IOException {
    doGet(request, response);
    public void doGet(HttpServletRequest request, HttpServletResponse response)
              throws ServletException, IOException {
         String command = request.getParameter("command");
         if (command == null || (command.equals("stats"))) {
         else if (command.equals("add")) {
              try {
    //the following line is caught by compiler
              addPlayer(request, response);
              response.setContentType("text/html");
              PrintWriter out = response.getWriter();
              out.println("<html>");
              out.println("<body>");
              out.println("<p>Hi, your command was " + request.getParameter("command") + "!!!</p>");
              out.println("</body>");
              out.println("</html>");
              catch (Exception exc) {
                   System.err.println(exc.toString());
         else if (command.equals("play")) {
         else if (command.equals("bet")) {
         else if (command.equals("hit")) {
         else if (command.equals("stand")) {
         else if (command.equals("split")) {
         else if (command.equals("double")) {
         else if (command.equals("dealerdecision")) {
         else if (command.equals("reinvest")) {
         else if (command.equals("changebet")) {
         else if (command.equals("deal")) {
    package myblackjackpackage;
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.lang.*;
    public class BlackjackDAO {
         private Connection myConn;
         public BlackjackDAO(String driver, String dbUrl, String userid, String passwrd)
                   throws IOException, ClassNotFoundException, SQLException {
              System.out.println("Loading driver: " + driver);
              Class.forName(driver);
              System.out.println("Connection to: " + dbUrl);
              myConn = DriverManager.getConnection(dbUrl, userid, passwrd);
              System.out.println("Connection successful!");
         public void addPlayer(HttpServletRequest request, HttpServletResponse response)
                   throws IOException, SQLException {
    //I've commented out all my code while debugging, so I didn't include
    //any here     
    compiler feedback
    C:\Tomcat4118\src\webapps\helloblackjack\src\myblackjackpackage>javac *.java -verbose
    [parsing started BlackjackDAO.java]
    [parsing completed 90ms]
    [parsing started BlackjackServlet.java]
    [parsing completed 10ms]
    [parsing started Player.java]
    [parsing completed 10ms]
    [loading c:\j2sdk14003\jre\lib\rt.jar(java/lang/Object.class)]
    [loading c:\j2sdk14003\jre\lib\rt.jar(java/sql/Connection.class)]
    [loading c:\j2sdk14003\jre\lib\rt.jar(java/lang/String.class)]
    [loading c:\j2sdk14003\jre\lib\rt.jar(java/io/IOException.class)]
    [loading c:\j2sdk14003\jre\lib\rt.jar(java/lang/ClassNotFoundException.class)]
    [loading c:\j2sdk14003\jre\lib\rt.jar(java/sql/SQLException.class)]
    [loading c:\tomcat4118\common\lib\servlet.jar(javax/servlet/http/HttpServletRequ
    est.class)]
    [loading c:\tomcat4118\common\lib\servlet.jar(javax/servlet/http/HttpServletResp
    onse.class)]
    [loading c:\tomcat4118\common\lib\servlet.jar(javax/servlet/http/HttpServlet.cla
    ss)]
    [loading c:\tomcat4118\common\lib\servlet.jar(javax/servlet/GenericServlet.class
    [loading c:\tomcat4118\common\lib\servlet.jar(javax/servlet/Servlet.class)]
    [loading c:\tomcat4118\common\lib\servlet.jar(javax/servlet/ServletConfig.class)
    [loading c:\j2sdk14003\jre\lib\rt.jar(java/io/Serializable.class)]
    [loading c:\tomcat4118\common\lib\servlet.jar(javax/servlet/ServletException.cla
    ss)]
    [checking myblackjackpackage.BlackjackDAO]
    [loading c:\j2sdk14003\jre\lib\rt.jar(java/lang/Throwable.class)]
    [loading c:\j2sdk14003\jre\lib\rt.jar(java/lang/Exception.class)]
    [loading c:\j2sdk14003\jre\lib\rt.jar(java/lang/System.class)]
    [loading c:\j2sdk14003\jre\lib\rt.jar(java/io/PrintStream.class)]
    [loading c:\j2sdk14003\jre\lib\rt.jar(java/io/FilterOutputStream.class)]
    [loading c:\j2sdk14003\jre\lib\rt.jar(java/io/OutputStream.class)]
    [loading c:\j2sdk14003\jre\lib\rt.jar(java/lang/Class.class)]
    [loading c:\j2sdk14003\jre\lib\rt.jar(java/sql/DriverManager.class)]
    [loading c:\j2sdk14003\jre\lib\rt.jar(java/util/Properties.class)]
    [loading c:\j2sdk14003\jre\lib\rt.jar(java/lang/Error.class)]
    [loading c:\j2sdk14003\jre\lib\rt.jar(java/lang/RuntimeException.class)]
    [loading c:\j2sdk14003\jre\lib\rt.jar(java/lang/StringBuffer.class)]
    [wrote BlackjackDAO.class]
    [checking myblackjackpackage.BlackjackServlet]
    [loading c:\tomcat4118\common\lib\servlet.jar(javax/servlet/ServletRequest.class
    BlackjackServlet.java:55: cannot resolve symbol
    symbol : method addPlayer (javax.servlet.http.HttpServletRequest,javax.servlet
    .http.HttpServletResponse)
    location: class myblackjackpackage.BlackjackServlet
    addPlayer(request, response);
    ^
    [loading c:\tomcat4118\common\lib\servlet.jar(javax/servlet/ServletResponse.clas
    s)]
    [loading c:\j2sdk14003\jre\lib\rt.jar(java/io/PrintWriter.class)]
    [loading c:\j2sdk14003\jre\lib\rt.jar(java/io/Writer.class)]
    [checking myblackjackpackage.Player]
    [total 580ms]
    1 error
    C:\Tomcat4118\src\webapps\helloblackjack\src\myblackjackpackage>
    and here's the ant feedback...
    C:\Tomcat4118\src\webapps\helloblackjack>ant all -verbose
    Ant version 1.4.1 compiled on October 11 2001
    Buildfile: build.xml
    Detected Java version: 1.4 in: c:\j2sdk14003\jre
    Detected OS: Windows 2000
    parsing buildfile C:\Tomcat4118\src\webapps\helloblackjack\build.xml with URI =
    file:C:/Tomcat4118/src/webapps/helloblackjack/build.xml
    Project base dir set to: C:\Tomcat4118\src\webapps\helloblackjack
    Build sequence for target `all' is [clean, prepare, compile, all]
    Complete build sequence is [clean, prepare, compile, all, javadoc, deploy, dist]
    clean:
    [delete] Deleting directory C:\Tomcat4118\src\webapps\helloblackjack\build
    [delete] Deleting C:\Tomcat4118\src\webapps\helloblackjack\build\images\a_s.g
    if
    [delete] Deleting C:\Tomcat4118\src\webapps\helloblackjack\build\images\q_s.g
    if
    [delete] Deleting directory C:\Tomcat4118\src\webapps\helloblackjack\build\im
    ages
    [delete] Deleting C:\Tomcat4118\src\webapps\helloblackjack\build\index.html
    [delete] Deleting C:\Tomcat4118\src\webapps\helloblackjack\build\newplayer.ht
    ml
    [delete] Deleting C:\Tomcat4118\src\webapps\helloblackjack\build\WEB-INF\clas
    ses\myblackjackpackage\BlackjackDAO.class
    [delete] Deleting directory C:\Tomcat4118\src\webapps\helloblackjack\build\WE
    B-INF\classes\myblackjackpackage
    [delete] Deleting directory C:\Tomcat4118\src\webapps\helloblackjack\build\WE
    B-INF\classes
    [delete] Deleting C:\Tomcat4118\src\webapps\helloblackjack\build\WEB-INF\web.
    xml
    [delete] Deleting directory C:\Tomcat4118\src\webapps\helloblackjack\build\WE
    B-INF
    [delete] Deleting directory C:\Tomcat4118\src\webapps\helloblackjack\build
    prepare:
    [mkdir] Created dir: C:\Tomcat4118\src\webapps\helloblackjack\build
    [copy] images\a_s.gif added as C:\Tomcat4118\src\webapps\helloblackjack\bui
    ld\images\a_s.gif doesn't exist.
    [copy] images\q_s.gif added as C:\Tomcat4118\src\webapps\helloblackjack\bui
    ld\images\q_s.gif doesn't exist.
    [copy] index.html added as C:\Tomcat4118\src\webapps\helloblackjack\build\i
    ndex.html doesn't exist.
    [copy] newplayer.html added as C:\Tomcat4118\src\webapps\helloblackjack\bui
    ld\newplayer.html doesn't exist.
    [copy] WEB-INF\web.xml added as C:\Tomcat4118\src\webapps\helloblackjack\bu
    ild\WEB-INF\web.xml doesn't exist.
    [copy] omitted as C:\Tomcat4118\src\webapps\helloblackjack\build is up to
    date.
    [copy] images added as C:\Tomcat4118\src\webapps\helloblackjack\build\image
    s doesn't exist.
    [copy] WEB-INF added as C:\Tomcat4118\src\webapps\helloblackjack\build\WEB-
    INF doesn't exist.
    [copy] Copying 5 files to C:\Tomcat4118\src\webapps\helloblackjack\build
    [copy] Copying C:\Tomcat4118\src\webapps\helloblackjack\web\images\q_s.gif
    to C:\Tomcat4118\src\webapps\helloblackjack\build\images\q_s.gif
    [copy] Copying C:\Tomcat4118\src\webapps\helloblackjack\web\images\a_s.gif
    to C:\Tomcat4118\src\webapps\helloblackjack\build\images\a_s.gif
    [copy] Copying C:\Tomcat4118\src\webapps\helloblackjack\web\index.html to C
    :\Tomcat4118\src\webapps\helloblackjack\build\index.html
    [copy] Copying C:\Tomcat4118\src\webapps\helloblackjack\web\newplayer.html
    to C:\Tomcat4118\src\webapps\helloblackjack\build\newplayer.html
    [copy] Copying C:\Tomcat4118\src\webapps\helloblackjack\web\WEB-INF\web.xml
    to C:\Tomcat4118\src\webapps\helloblackjack\build\WEB-INF\web.xml
    compile:
    [mkdir] Created dir: C:\Tomcat4118\src\webapps\helloblackjack\build\WEB-INF\
    classes
    [javac] myblackjackpackage\BlackjackDAO.class skipped - don't know how to ha
    ndle it
    [javac] myblackjackpackage\BlackjackDAO.java added as C:\Tomcat4118\src\weba
    pps\helloblackjack\build\WEB-INF\classes\myblackjackpackage\BlackjackDAO.class d
    oesn't exist.
    [javac] myblackjackpackage\BlackjackServlet.java added as C:\Tomcat4118\src\
    webapps\helloblackjack\build\WEB-INF\classes\myblackjackpackage\BlackjackServlet
    .class doesn't exist.
    [javac] myblackjackpackage\Player.java added as C:\Tomcat4118\src\webapps\he
    lloblackjack\build\WEB-INF\classes\myblackjackpackage\Player.class doesn't exist
    [javac] Compiling 3 source files to C:\Tomcat4118\src\webapps\helloblackjack
    \build\WEB-INF\classes
    [javac] Using modern compiler
    [javac] Compilation args: -d C:\Tomcat4118\src\webapps\helloblackjack\build\
    WEB-INF\classes -classpath
    "C:\Tomcat4118\src\webapps\helloblackjack\build\WEB-I
    NF\classes;
    C:\tomcat4118\common\classes;
    C:\tomcat4118\common\lib\activation.jar;
    C:\tomcat4118\common\lib\ant.jar;
    C:\tomcat4118\common\lib\commons-collections.jar;
    C:\tomcat4118\common\lib\commons-dbcp.jar;
    C:\tomcat4118\common\lib\commons-logging-api.jar;
    C:\tomcat4118\common\lib\commons-pool.jar;
    C:\tomcat4118\common\lib\jasper-compiler.jar;
    C:\tomcat4118\common\lib\jasper-runtime.jar;
    C:\tomcat4118\common\lib\jdbc2_0-stdext.jar;
    C:\tomcat4118\common\lib\jndi.jar;
    C:\tomcat4118\common\lib\jta.jar;
    C:\tomcat4118\common\lib\mail.jar;
    C:\tomcat4118\common\lib\mysql_uncomp.jar;
    C:\tomcat4118\common\lib\naming-common.jar;
    C:\tomcat4118\common\lib\naming-factory.jar;
    C:\tomcat4118\common\lib\naming-resources.jar;
    C:\tomcat4118\common\lib\servlet.jar;
    C:\tomcat4118\common\lib\tools.jar;
    C:\j2sdk14003\lib\tools.jar;
    C:\tomcat4118\ant141\lib\servlet.jar;
    C:\tomcat4118\ant141\lib\jaxp.jar;
    C:\tomcat4118\ant141\lib\crimson.jar;
    C:\tomcat4118\ant141\lib\ant.jar;
    C:\Tomcat4118\src\webapps\helloblackjack;
    C:\mysql\jdbc_dvr\mm.mysql.jdbc-1.2c;
    C:\Program Files\SQLserverjdbcdriver\lib\msbase.jar;
    C:\Program Files\SQLserverjdbcdriver\lib\msutil.jar;
    C:\Program Files\SQLserverjdbcdriver\lib\mssqlserver.jar"
    -sourcepath C:\Tomcat4118\src\webapps\helloblackjack\src -g -O
    [javac] Files to be compiled:
    C:\Tomcat4118\src\webapps\helloblackjack\src\myblackjackpackage\BlackjackDAO
    .java
    C:\Tomcat4118\src\webapps\helloblackjack\src\myblackjackpackage\BlackjackSer
    vlet.java
    C:\Tomcat4118\src\webapps\helloblackjack\src\myblackjackpackage\Player.java
    [javac] C:\Tomcat4118\src\webapps\helloblackjack\src\myblackjackpackage\Blac
    kjackServlet.java:55: cannot resolve symbol
    [javac] symbol : method addPlayer (javax.servlet.http.HttpServletRequest,j
    avax.servlet.http.HttpServletResponse)
    [javac] location: class myblackjackpackage.BlackjackServlet
    [javac] addPlayer(request, response);
    [javac] ^
    [javac] 1 error
    BUILD FAILED
    C:\Tomcat4118\src\webapps\helloblackjack\build.xml:212: Compile failed, messages
    should have been provided.
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:559)
    at org.apache.tools.ant.Task.perform(Task.java:217)
    at org.apache.tools.ant.Target.execute(Target.java:184)
    at org.apache.tools.ant.Target.performTasks(Target.java:202)
    at org.apache.tools.ant.Project.executeTarget(Project.java:601)
    at org.apache.tools.ant.Project.executeTargets(Project.java:560)
    at org.apache.tools.ant.Main.runBuild(Main.java:454)
    at org.apache.tools.ant.Main.start(Main.java:153)
    at org.apache.tools.ant.Main.main(Main.java:176)
    Total time: 1 second
    C:\Tomcat4118\src\webapps\helloblackjack>

    yes!
    early on i tried: BlackjackDAO.addPlayer(request, response);
    instead of: theBlackjackDAO.addPlayer(request, response);
    you rock - thanks a ton

  • "cannot resolve symbol" when compiling a class that calls methods

    I am currently taking a Intro to Java class. This problem has my instructor baffled. If I have two classes saved in separate files, for example:
    one class might contain the constructor with get and set statements,
    the other class contains the main() method and calls the constructor.
    The first file compiles clean. When I compile the second file, I get the "cannot resolve symbol error" referring to the first class.
    If I copy both files to floppy and take them to school. I can compile and run them with no problem.
    If I copy the constructor file to the second file and delete the "public" from the class declaration of the constructor, it will compile and run at home.
    At home, I am running Windows ME. At school, Windows 2000 Professional.
    The textbook that we are using came with a CD from which I downloaded the SDK and Runtime Environment. I have tried uninstalling and reinstalling. I have also tried downloading directly from the Sun website and still the error persists.
    I came across a new twist tonight. I copied class files from the CD to my hard drive. 4 separate files. 3 of which are called by the 4th.
    I can run these with no problem.
    Any ideas, why I would have compile errors????
    Thanks!!

    Oooops ... violated....
    Well first a constructor should have the same name as the class name so in our case what we have actually created is a static method statementOfPhilosophy() in class SetUpSite and not a constructor.
    Now why does second class report unresolved symbol ???
    Look at this line
    Class XYZ=new XYZ();
    sounds familiar, well this is what is missing from your second class, since there is no object how can it call a method ...
    why the precompiled classes run is cuz they contain the right code perhaps so my suggestion to you is,
    1) Review the meaning and implementation of Constructors
    2) Ask your instructor to do the same ( no pun intended ... )
    3) Check out this for understanding PATH & CLASSPATH http://www.geocities.com/gaurav007_2000/java/
    4) Look at the "import" statement, when we have code in different files and we need to incorporate some code in another it is always a good idea to use import statement, that solves quite a few errors.
    5) Finally forgive any goof up on this reply, I have looked at source code after 12 months of hibernation post dot com doom ... so m a bit rusty... shall get better soon though :)
    warm regards and good wishes,
    Gaurav
    CW :-> Mother of all computer languages.
    I HAM ( Radio-Active )
    * OS has no significance in this error
    ** uninstalling and reinstalling ? r u nuttttttts ??? don't ever do that again unless your compiler fails to start, as long as it is giving a valid error it is working man ... all we need to do is to interpret the error and try to fix the code not the machine or compiler.

  • Exception when parsing schema with XJC

    Using the command "xjc -d C:\Temp -p sbxml C:\Temp\sb2.xsd" in attempt to generate java classes for my schema I get the error below. The schema is well-formed and valid according to XMLSpy. The schema in question is found below the error. Thanks.
    Mark
    Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
    at com.sun.msv.verifier.identity.IDConstraintChecker.feedAttribute(IDConstraintChecker.java:218)
    at com.sun.msv.verifier.Verifier.startElement(Verifier.java:204)
    at org.iso_relax.verifier.impl.VerifierFilterImpl.startElement(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:459)
    at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:221)
    at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:874)
    at org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:591)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:747)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScanner
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
    at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
    at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
    at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
    at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
    at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
    at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
    at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:151)
    at com.sun.xml.xsom.impl.parser.XSOMParser.parse(XSOMParser.java:116)
    at com.sun.tools.xjc.Driver.loadXMLSchemaGrammar(Driver.java:511)
    at com.sun.tools.xjc.Driver.loadGrammar(Driver.java:404)
    at com.sun.tools.xjc.Driver.run(Driver.java:268)
    at com.sun.tools.xjc.Driver.main(Driver.java:88)
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- edited with XMLSPY v5 U (http://www.xmlspy.com) by Mark (CMH) -->
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
         <xs:element name="INFO_EX">
              <xs:annotation>
                   <xs:documentation>Collection of data for any number of days</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                   <xs:sequence>
                        <xs:element name="DAILY_INFO" minOccurs="0" maxOccurs="unbounded">
                             <xs:annotation>
                                  <xs:documentation>Collection of data for all areas for a single day</xs:documentation>
                             </xs:annotation>
                             <xs:complexType>
                                  <xs:sequence>
                                       <xs:element name="AREA_INFO" type="AREA_INFO_TYPE" minOccurs="0" maxOccurs="unbounded"/>
                                  </xs:sequence>
                                  <xs:attribute name="DATE_TODAY" type="xs:date" use="required"/>
                             </xs:complexType>
                        </xs:element>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:complexType name="AREA_INFO_TYPE">
              <xs:annotation>
                   <xs:documentation>Collection of data for a single area for a single day</xs:documentation>
              </xs:annotation>
              <xs:sequence>
                   <xs:element name="FIELD_OBS" type="FIELD_OBS_TYPE" minOccurs="0" maxOccurs="unbounded"/>
                   <xs:element name="AVALANCHE" type="AV_TYPE" minOccurs="0" maxOccurs="unbounded"/>
                   <xs:element name="NOTABLE" type="NOTABLE_TYPE" minOccurs="0" maxOccurs="unbounded"/>
              </xs:sequence>
              <xs:attribute name="AREA_ABBREV" type="AREA_ABBREV_TYPE" use="required"/>
         </xs:complexType>
         <xs:complexType name="FIELD_OBS_TYPE">
              <xs:annotation>
                   <xs:documentation>Collection of a day's field observations</xs:documentation>
              </xs:annotation>
              <xs:sequence>
                   <xs:element name="GEO_ID" type="SB_ID_TYPE"/>
                   <xs:element name="SKY_PM" type="SKY_TYPE"/>
                   <xs:element name="SKY_AM" type="SKY_TYPE"/>
                   <xs:element name="SKI_ELEV_MAX" type="xs:unsignedShort"/>
                   <xs:element name="SKI_ELEV_MIN" type="xs:unsignedShort"/>
                   <xs:element name="SKI_METERS" type="xs:unsignedShort"/>
                   <xs:element name="SKI_QUALITY">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:enumeration value="P"/>
                                  <xs:enumeration value="F"/>
                                  <xs:enumeration value="G"/>
                                  <xs:enumeration value="E"/>
                                  <xs:enumeration value=""/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="HI_TEMP" type="xs:decimal"/>
                   <xs:element name="LO_TEMP" type="xs:decimal"/>
                   <xs:element name="XPORT_AM" type="TRANSPORT_TYPE"/>
                   <xs:element name="XPORT_PM" type="TRANSPORT_TYPE"/>
                   <xs:element name="HN24" type="xs:int"/>
                   <xs:element name="FO_DATE" type="xs:date" minOccurs="0"/>
                   <xs:element name="W_SPD_AM" type="WIND_SPEED_TYPE"/>
                   <xs:element name="W_SPD_PM" type="WIND_SPEED_TYPE"/>
                   <xs:element name="DTMOD" type="xs:dateTime"/>
                   <xs:element name="AV_ACTIVITY" type="xs:string"/>
                   <xs:element name="PRECIP_AM" type="PRECIP_TYPE"/>
                   <xs:element name="PRECIP_PM" type="PRECIP_TYPE"/>
                   <xs:element name="FO_REMARK" type="xs:string"/>
                   <xs:element name="NIL_NEW" type="xs:boolean"/>
                   <xs:element name="PERCENT_OBS" type="xs:unsignedShort"/>
                   <xs:element name="HS" type="xs:integer"/>
                   <xs:element name="W_DIR_AM" type="WIND_DIRECTION_TYPE"/>
                   <xs:element name="W_DIR_PM" type="WIND_DIRECTION_TYPE"/>
                   <xs:element name="SFC2" type="SURFACE_TYPE"/>
                   <xs:element name="SFC1" type="SURFACE_TYPE"/>
                   <xs:element name="XPORT_DIR_AM" type="TRANSPORT_DIRECTION_TYPE"/>
                   <xs:element name="XPORT_DIR_PM" type="TRANSPORT_DIRECTION_TYPE"/>
              </xs:sequence>
              <xs:attribute name="FO_ID" type="SB_ID_TYPE" use="required"/>
         </xs:complexType>
         <xs:complexType name="NOTABLE_TYPE">
              <xs:annotation>
                   <xs:documentation>Data concerning a notable event</xs:documentation>
              </xs:annotation>
              <xs:sequence>
                   <xs:element name="AV_ID" type="SB_ID_TYPE" minOccurs="0"/>
                   <xs:element name="PARTY_SIZE" type="xs:unsignedShort"/>
                   <xs:element name="CAUGHT" type="xs:unsignedShort"/>
                   <xs:element name="PARTLY_BURIED" type="xs:unsignedShort"/>
                   <xs:element name="BURIED" type="xs:unsignedShort"/>
                   <xs:element name="INJURED" type="xs:unsignedShort"/>
                   <xs:element name="FATALITIES" type="xs:unsignedShort"/>
                   <xs:element name="REMARK" type="xs:string"/>
                   <xs:element name="DTMOD" type="xs:dateTime"/>
                   <xs:element name="NTBL_IMG" type="xs:hexBinary" minOccurs="0"/>
                   <xs:element name="NTBL_TIME" type="xs:time"/>
                   <xs:element name="NTBL_DATE" type="xs:date"/>
                   <xs:element name="MAIN_IMGLINK_ID" type="SB_ID_TYPE" minOccurs="0"/>
                   <xs:element name="NTBL_GEO_ID" type="SB_ID_TYPE" minOccurs="0"/>
              </xs:sequence>
              <xs:attribute name="NOTABLE_ID" type="SB_ID_TYPE" use="required"/>
         </xs:complexType>
         <xs:complexType name="AV_TYPE">
              <xs:annotation>
                   <xs:documentation>Data concerning a single avalanche</xs:documentation>
              </xs:annotation>
              <xs:sequence>
                   <xs:element name="LENGTH_MIN" type="xs:unsignedInt"/>
                   <xs:element name="LENGTH_MAX" type="xs:unsignedInt"/>
                   <xs:element name="REMARK" type="xs:string"/>
                   <xs:element name="LWC">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:enumeration value="Dry"/>
                                  <xs:enumeration value="Moist"/>
                                  <xs:enumeration value="Wet"/>
                                  <xs:enumeration value=""/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="AV_SIZE">
                        <xs:simpleType>
                             <xs:restriction base="xs:float">
                                  <xs:minInclusive value="1"/>
                                  <xs:maxInclusive value="5"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="SKIABLE">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:enumeration value="Y"/>
                                  <xs:enumeration value="N"/>
                                  <xs:enumeration value="N-Y"/>
                                  <xs:enumeration value=""/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="GEO_ID" type="SB_ID_TYPE" minOccurs="0"/>
                   <xs:element name="THICK_MIN" type="xs:unsignedInt"/>
                   <xs:element name="NUM">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:pattern value="[0-9]*"/>
                                  <xs:pattern value="Sev"/>
                                  <xs:pattern value="Num"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="WIDTH_MIN" type="xs:unsignedInt"/>
                   <xs:element name="WIDTH_MAX" type="xs:unsignedInt"/>
                   <xs:element name="MAIN_IMGLINK_ID" type="SB_ID_TYPE" minOccurs="0"/>
                   <xs:element name="THICK_MAX" type="xs:unsignedInt"/>
                   <xs:element name="THICK_MIN" type="xs:unsignedInt"/>
                   <xs:element name="DTMOD" type="xs:dateTime"/>
                   <xs:element name="TYPE">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:enumeration value="Slab"/>
                                  <xs:enumeration value="Loose"/>
                                  <xs:enumeration value=""/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="AV_DATE" type="xs:date"/>
                   <xs:element name="AV_TIME" type="xs:time"/>
                   <xs:element name="AV_TRIGGER">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:maxLength value="15"/>
                                  <xs:pattern value="N[aci].*|S[acry].*|H[acry].*|X[hcryer].*"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="BEDSFC_FORMANDSIZE">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:enumeration value="RG"/>
                                  <xs:enumeration value="DF"/>
                                  <xs:enumeration value="CR"/>
                                  <xs:enumeration value="IM"/>
                                  <xs:enumeration value="WG"/>
                                  <xs:enumeration value="FC"/>
                                  <xs:enumeration value=""/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="AV_LEVEL">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:enumeration value="Old"/>
                                  <xs:enumeration value="Storm"/>
                                  <xs:enumeration value="Ground"/>
                                  <xs:enumeration value="Glacier"/>
                                  <xs:enumeration value=""/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="ASPECT">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:enumeration value="N"/>
                                  <xs:enumeration value="NE"/>
                                  <xs:enumeration value="E"/>
                                  <xs:enumeration value="SE"/>
                                  <xs:enumeration value="S"/>
                                  <xs:enumeration value="SW"/>
                                  <xs:enumeration value="W"/>
                                  <xs:enumeration value="NW"/>
                                  <xs:enumeration value="All"/>
                                  <xs:enumeration value=""/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="WKLYR_DATE"/>
                   <xs:element name="TIMERANGE" type="xs:unsignedInt"/>
                   <xs:element name="INCLINE">
                        <xs:simpleType>
                             <xs:restriction base="xs:unsignedInt">
                                  <xs:minInclusive value="0"/>
                                  <xs:maxInclusive value="180"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="ELEV_MIN" type="xs:unsignedInt"/>
                   <xs:element name="ELEV_MAX" type="xs:unsignedInt"/>
                   <xs:element name="AV_CUTBLOCK">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:maxLength value="1"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="LOC_DESCRIPTION">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:maxLength value="30"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="WKLYR_FORMANDSIZE">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:enumeration value="PP"/>
                                  <xs:enumeration value="SH"/>
                                  <xs:enumeration value="FC"/>
                                  <xs:enumeration value="DF"/>
                                  <xs:enumeration value="WG"/>
                                  <xs:enumeration value="DH"/>
                                  <xs:enumeration value=""/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:element>
                   <xs:element name="NTBL" type="xs:boolean"/>
              </xs:sequence>
              <xs:attribute name="AV_ID" type="SB_ID_TYPE" use="required"/>
         </xs:complexType>
         <xs:simpleType name="SB_ID_TYPE">
              <xs:annotation>
                   <xs:documentation>Reference type</xs:documentation>
              </xs:annotation>
              <xs:restriction base="xs:string">
                   <xs:maxLength value="10"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="AREA_ABBREV_TYPE">
              <xs:restriction base="xs:string">
                   <xs:enumeration value="AD"/>
                   <xs:enumeration value="BB"/>
                   <xs:enumeration value="BU"/>
                   <xs:enumeration value="BA"/>
                   <xs:enumeration value="CA"/>
                   <xs:enumeration value="GL"/>
                   <xs:enumeration value="GO"/>
                   <xs:enumeration value="MO"/>
                   <xs:enumeration value="MB"/>
                   <xs:enumeration value="RE"/>
                   <xs:enumeration value="KO"/>
                   <xs:enumeration value="VA"/>
                   <xs:enumeration value="ST"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="SKY_TYPE">
              <xs:annotation>
                   <xs:documentation>Restricts choices of sky observations</xs:documentation>
              </xs:annotation>
              <xs:restriction base="xs:string">
                   <xs:enumeration value="CLR"/>
                   <xs:enumeration value="OVC"/>
                   <xs:enumeration value="BKN"/>
                   <xs:enumeration value="SCT"/>
                   <xs:enumeration value="X"/>
                   <xs:enumeration value=""/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="PRECIP_TYPE">
              <xs:annotation>
                   <xs:documentation>Restricts choices of precipation observations</xs:documentation>
              </xs:annotation>
              <xs:restriction base="xs:string">
                   <xs:enumeration value="NIL"/>
                   <xs:enumeration value="S-1"/>
                   <xs:enumeration value="S1"/>
                   <xs:enumeration value="S2"/>
                   <xs:enumeration value="S3"/>
                   <xs:enumeration value="S4"/>
                   <xs:enumeration value="RV"/>
                   <xs:enumeration value="RL"/>
                   <xs:enumeration value="RH"/>
                   <xs:enumeration value="RS"/>
                   <xs:enumeration value="G"/>
                   <xs:enumeration value="ZR"/>
                   <xs:enumeration value=""/>
                   <xs:enumeration value="RM"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="WIND_SPEED_TYPE">
              <xs:annotation>
                   <xs:documentation>Restricts the choices of wind speed observations</xs:documentation>
              </xs:annotation>
              <xs:restriction base="xs:string">
                   <xs:enumeration value="C"/>
                   <xs:enumeration value="L"/>
                   <xs:enumeration value="M"/>
                   <xs:enumeration value="S"/>
                   <xs:enumeration value="X"/>
                   <xs:enumeration value=""/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="TRANSPORT_DIRECTION_TYPE">
              <xs:annotation>
                   <xs:documentation>Enumeration of directions</xs:documentation>
              </xs:annotation>
              <xs:restriction base="xs:string">
                   <xs:enumeration value="N"/>
                   <xs:enumeration value="NE"/>
                   <xs:enumeration value="E"/>
                   <xs:enumeration value="SE"/>
                   <xs:enumeration value="S"/>
                   <xs:enumeration value="SW"/>
                   <xs:enumeration value="W"/>
                   <xs:enumeration value="NW"/>
                   <xs:enumeration value=""/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="TRANSPORT_TYPE">
              <xs:annotation>
                   <xs:documentation>Restricts the choices of transport observations</xs:documentation>
              </xs:annotation>
              <xs:restriction base="xs:string">
                   <xs:enumeration value="Nil"/>
                   <xs:enumeration value="Prv"/>
                   <xs:enumeration value="M"/>
                   <xs:enumeration value="I"/>
                   <xs:enumeration value="U"/>
                   <xs:enumeration value=""/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="SURFACE_TYPE">
              <xs:annotation>
                   <xs:documentation>Restricts the choices of the surface descriptions</xs:documentation>
              </xs:annotation>
              <xs:restriction base="xs:string">
                   <xs:enumeration value="PP"/>
                   <xs:enumeration value="DF"/>
                   <xs:enumeration value="RG"/>
                   <xs:enumeration value="FC"/>
                   <xs:enumeration value="DH"/>
                   <xs:enumeration value="WG"/>
                   <xs:enumeration value="SH"/>
                   <xs:enumeration value="IM"/>
                   <xs:enumeration value="CR"/>
                   <xs:enumeration value=""/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="WIND_DIRECTION_TYPE">
              <xs:annotation>
                   <xs:documentation>Restricts possible observed wind directions</xs:documentation>
              </xs:annotation>
              <xs:restriction base="xs:string">
                   <xs:enumeration value="N"/>
                   <xs:enumeration value="NE"/>
                   <xs:enumeration value="E"/>
                   <xs:enumeration value="SE"/>
                   <xs:enumeration value="S"/>
                   <xs:enumeration value="SW"/>
                   <xs:enumeration value="W"/>
                   <xs:enumeration value="NW"/>
                   <xs:enumeration value="V"/>
                   <xs:enumeration value=""/>
              </xs:restriction>
         </xs:simpleType>
    </xs:schema>

    myhrem, I've just come across exactly the same problem after amemding my schema. Fortunatley I hadn't changed much so it was possible to find out what caused the error. It is the empty enumeration element where value is equal to "" that causes xjc to throw the error.
    I don't know if its right or wrong, in my case I was able to remove the empty element from the xsd.

  • XMLStreamReader exception when using webservice with security access denied

    Hi,
    I'm using CXF webservices generated from a WSDL with SOAP document style. Under normal conditions, the client and server work fine, and can I read info back from the the server (SOAP http messages passed between both)
    However, for some servers, I am using SUNs Policy Agent, which checks for an authentication token in the http header cookie before allowing access to the web service. I set up the cxf service port as follow:
    Service service = Service.create(serviceName);
    service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, address);
    servicePort = (IMyService)service.getPort(portName, IMyService.class);
    I also add the authentication token to the http header cookie in the service's request context.
    If the token is correct, everything works fine. However, if the token is incorrect, and access is denied, the policy agent does not return a SOAP http message. In this case, the web service method throws a low-level XMLStreamReader exception i.e. it can't read the SOAP message response - so I can't get the actual response from the policy agent.
    Would anyone have an idea on this? Should I configure the CXF port differently, or should I try to get the policy agent to return a SOAP message even if access is denied.
    There is already a browser that can access the policy agent - and this needs to be redirected if access is denied. So in effect, we need the redirect functionality for the browser, and the returned SOAP message for the application using the web service.
    Any help would be greatly appreciated!
    Rob

    Thanks for your answer.
    I eventually found a workaround for this problem.
    Actually you don't need to provide an SSO cookie the first time you connect to the webgate server, you just need to provide basic credentials and the webgate will provide you an SSO cookie that you can use for the next call.
    The problem is that this doesn't work out of the box with the .NET/WSDL framework for some reason (with Java + the HTTPClient library I had no problem).
    I had to had manually the following headers to the HTTP request to make it work:
    Authentication: Basic XXXXXXXX
    Cookie: OBBasicAuth=fromDialog
    Where XXXXXXXX is a base64 encoded string containing "login:password"
    Thanks,
    Franck

  • Forms builder 6i close suddenly when compiling form with dblink refenece

    Dear Oracle developer
    We have encountered this problem today. We develop a form module using forms 6i. Within the form module we have a procedure with a cursor which uses database link.When we try to compile the form module the form builder just close immediately.
    e.g. I have create a procedure program unit within my form as ivan and a dblink called test:-
    PROCEDURE IVAN IS
    cursor c_ivan
    IS select ce_code
    from cr_emp_info@test;
    BEGIN
    OPEN c_ivan;
    LOOP
         EXIT WHEN c_ivan%notfound;
         null;
    END LOOP;
    close c_ivan;
    END;
    I have tried the same with all my colleagues machine, the same problem occur.
    I have tried with oracle 10g forms it give the following:-
    ora01041: Internal error. hostdef extension doesn't exist
    many thanks in advance
    Message was edited by:
    ISWC

    We have encountered this problem todayYou didn't have this kind of problem in this form...yesterday...???
    Have you checked the log of Forms6i when it crashes.....???
    This same problem occurs when you select "Program->Compile PL/SQL->Incremental/All"...??? as well...???? or when for example press the <Ctrl>+<T> combination of buttons...????
    Simon

  • CORBA.UNKNOWN Exception when displaying WebDynpro with AIF

    Hi,
    i get the following stacktrace when i try to disply a AIF in a Java WebDynpro:
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Error during call to AdobeDocumentServer: Unhandled exception detected during a "Render" operation. Request start time: Wed Sep 27 15:50:05 CEST 2006 org.omg.CORBA.UNKNOWN: vmcid: 0x0 minor code: 0 completed: No Exception Stack Trace: org.omg.CORBA.UNKNOWN: vmcid: 0x0 minor code: 0 completed: No at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:308) at java.lang.Class.newInstance(Class.java:261) at com.sap.engine.services.iiop.server.portable.Delegate.invoke(Delegate.java:341) at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457) at com.adobe.document.xmlform._FormStub.renderAs(Unknown Source) at com.adobe.EJB_XMLFormAgent.renderAs(Unknown Source) at com.adobe.Render.execute(Unknown Source) at com.adobe.BaseADSRequest.doWork(Unknown Source) at com.adobe.AdobeDocumentServicesWorker.execute(Unknown Source) at com.adobe.AdobeDocumentServicesEJB.processRequest(Unknown Source) at
       at com.sap.tc.webdynpro.clientserver.adobe.AdobeFormHelper.createPDFDocumentForUIElement(AdobeFormHelper.java:486)
        at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:185)
        at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterHandleActionEvent(ClientApplication.java:1154)
        at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:402)
        at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)
        ... 21 more
    We are on NW2004, ADS SPS 14.
    I checked that the ADS is configured properly via its webservice. The version info returned is:
    700.20050511160951.1
    Has anybody else had this problem?
    What am i doing wrong?
    Any comments are appreciated.
    regards
         Dirk

    Yes, i have.
    Removing that logo does not change the outcome however.
    Any other thoughts about this problem?
    regards
        Dirk

  • Missing inline type when compile glsl2agal with flascc

    I'm trying to compile Glsl2Agal [https://github.com/adobe/glsl2agal] using flascc on windows and I get the following  errors(all samples build correctly.).As anyone have an idea where I could start looking? Ths. all !
    chencheng01@PC-05093 /cygdrive/d/FlasCC/samples/glsl2agal-master
    $ make FLASCC="/cygdrive/d/flascc/sdk" FLEX="/cygdrive/d/flascc/AirSdk"
    peflags --cygwin-heap=500 "/cygdrive/d/flascc/sdk/usr/bin/llc.exe"
    /cygdrive/d/flascc/sdk/usr/bin/llc.exe: initial Cygwin heap size: 500 (0x1f4) MB
    cd swc && PATH="/cygdrive/d/flascc/sdk/usr/bin":"/cygdrive/d/FlasCC/samples/glsl2agal-master/instal l/usr/bin":"/usr/local/bin:/usr/bin:/cygdrive/d/Program Files
    /Java/jdk1.7.0_71/bin:/cygdrive/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/cygdrive/c/Program Files (x86)/Intel/iCLS Client:/cygdrive/c/Program File
    s/Intel/iCLS Client:/cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files (x86)/Common Files/Microsoft Shared/Windows L
    ive:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cy gdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program F
    iles (x86)/Windows Live/Shared:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/cygdrive/c/Program Files/Intel/Intel(R) Management Eng
    ine Components/IPT:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Eng
    ine Components/IPT:/cygdrive/c/Program Files (x86)/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c
    /Program Files/Microsoft SQL Server/100/DTS/Binn:/usr/bin:/usr/X11R6/bin" CC=gcc CXX=g++ CFLAGS=-O4 CXXFLAGS=-O4 cmake -D SDK="/cygdrive/d/flascc/sdk" .
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /cygdrive/d/FlasCC/samples/glsl2agal-master/swc
    cd swc && PATH="/cygdrive/d/flascc/sdk/usr/bin":"/cygdrive/d/FlasCC/samples/glsl2agal-master/instal l/usr/bin":"/usr/local/bin:/usr/bin:/cygdrive/d/Program Files
    /Java/jdk1.7.0_71/bin:/cygdrive/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/cygdrive/c/Program Files (x86)/Intel/iCLS Client:/cygdrive/c/Program File
    s/Intel/iCLS Client:/cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files (x86)/Common Files/Microsoft Shared/Windows L
    ive:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cy gdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program F
    iles (x86)/Windows Live/Shared:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/cygdrive/c/Program Files/Intel/Intel(R) Management Eng
    ine Components/IPT:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Eng
    ine Components/IPT:/cygdrive/c/Program Files (x86)/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c
    /Program Files/Microsoft SQL Server/100/DTS/Binn:/usr/bin:/usr/X11R6/bin" CC=gcc CXX=g++ CFLAGS=-O4 CXXFLAGS=-O4 make -j6
    make[1]: Entering directory `/cygdrive/d/FlasCC/samples/glsl2agal-master/swc'
    make[2]: Entering directory `/cygdrive/d/FlasCC/samples/glsl2agal-master/swc'
    make[3]: Entering directory `/cygdrive/d/FlasCC/samples/glsl2agal-master/swc'
    make[3]: Leaving directory `/cygdrive/d/FlasCC/samples/glsl2agal-master/swc'
    make[3]: Entering directory `/cygdrive/d/FlasCC/samples/glsl2agal-master/swc'
    make[3]: Entering directory `/cygdrive/d/FlasCC/samples/glsl2agal-master/swc'
    make[3]: Leaving directory `/cygdrive/d/FlasCC/samples/glsl2agal-master/swc'
    [100%] Built target glsl2agal
    错误: 缺少内置类型 Object                              //That's mean missing inline type Object
    1 error found
    make[3]: *** [CMakeFiles/agal_optimizer] Error 1
    make[3]: Leaving directory `/cygdrive/d/FlasCC/samples/glsl2agal-master/swc'
    make[2]: *** [CMakeFiles/agal_optimizer.dir/all] Error 2
    make[2]: Leaving directory `/cygdrive/d/FlasCC/samples/glsl2agal-master/swc'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/cygdrive/d/FlasCC/samples/glsl2agal-master/swc'
    Makefile:11: recipe for target `swc' failed
    make: *** [swc] Error 2

    I'm trying to compile Glsl2Agal [https://github.com/adobe/glsl2agal] using flascc on windows and I get the following  errors(all samples build correctly.).As anyone have an idea where I could start looking? Ths. all !
    chencheng01@PC-05093 /cygdrive/d/FlasCC/samples/glsl2agal-master
    $ make FLASCC="/cygdrive/d/flascc/sdk" FLEX="/cygdrive/d/flascc/AirSdk"
    peflags --cygwin-heap=500 "/cygdrive/d/flascc/sdk/usr/bin/llc.exe"
    /cygdrive/d/flascc/sdk/usr/bin/llc.exe: initial Cygwin heap size: 500 (0x1f4) MB
    cd swc && PATH="/cygdrive/d/flascc/sdk/usr/bin":"/cygdrive/d/FlasCC/samples/glsl2agal-master/instal l/usr/bin":"/usr/local/bin:/usr/bin:/cygdrive/d/Program Files
    /Java/jdk1.7.0_71/bin:/cygdrive/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/cygdrive/c/Program Files (x86)/Intel/iCLS Client:/cygdrive/c/Program File
    s/Intel/iCLS Client:/cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files (x86)/Common Files/Microsoft Shared/Windows L
    ive:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cy gdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program F
    iles (x86)/Windows Live/Shared:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/cygdrive/c/Program Files/Intel/Intel(R) Management Eng
    ine Components/IPT:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Eng
    ine Components/IPT:/cygdrive/c/Program Files (x86)/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c
    /Program Files/Microsoft SQL Server/100/DTS/Binn:/usr/bin:/usr/X11R6/bin" CC=gcc CXX=g++ CFLAGS=-O4 CXXFLAGS=-O4 cmake -D SDK="/cygdrive/d/flascc/sdk" .
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /cygdrive/d/FlasCC/samples/glsl2agal-master/swc
    cd swc && PATH="/cygdrive/d/flascc/sdk/usr/bin":"/cygdrive/d/FlasCC/samples/glsl2agal-master/instal l/usr/bin":"/usr/local/bin:/usr/bin:/cygdrive/d/Program Files
    /Java/jdk1.7.0_71/bin:/cygdrive/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/cygdrive/c/Program Files (x86)/Intel/iCLS Client:/cygdrive/c/Program File
    s/Intel/iCLS Client:/cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files (x86)/Common Files/Microsoft Shared/Windows L
    ive:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cy gdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program F
    iles (x86)/Windows Live/Shared:/cygdrive/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/cygdrive/c/Program Files/Intel/Intel(R) Management Eng
    ine Components/IPT:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/cygdrive/c/Program Files (x86)/Intel/Intel(R) Management Eng
    ine Components/IPT:/cygdrive/c/Program Files (x86)/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c
    /Program Files/Microsoft SQL Server/100/DTS/Binn:/usr/bin:/usr/X11R6/bin" CC=gcc CXX=g++ CFLAGS=-O4 CXXFLAGS=-O4 make -j6
    make[1]: Entering directory `/cygdrive/d/FlasCC/samples/glsl2agal-master/swc'
    make[2]: Entering directory `/cygdrive/d/FlasCC/samples/glsl2agal-master/swc'
    make[3]: Entering directory `/cygdrive/d/FlasCC/samples/glsl2agal-master/swc'
    make[3]: Leaving directory `/cygdrive/d/FlasCC/samples/glsl2agal-master/swc'
    make[3]: Entering directory `/cygdrive/d/FlasCC/samples/glsl2agal-master/swc'
    make[3]: Entering directory `/cygdrive/d/FlasCC/samples/glsl2agal-master/swc'
    make[3]: Leaving directory `/cygdrive/d/FlasCC/samples/glsl2agal-master/swc'
    [100%] Built target glsl2agal
    错误: 缺少内置类型 Object                              //That's mean missing inline type Object
    1 error found
    make[3]: *** [CMakeFiles/agal_optimizer] Error 1
    make[3]: Leaving directory `/cygdrive/d/FlasCC/samples/glsl2agal-master/swc'
    make[2]: *** [CMakeFiles/agal_optimizer.dir/all] Error 2
    make[2]: Leaving directory `/cygdrive/d/FlasCC/samples/glsl2agal-master/swc'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/cygdrive/d/FlasCC/samples/glsl2agal-master/swc'
    Makefile:11: recipe for target `swc' failed
    make: *** [swc] Error 2

  • Compilation error when compile something with XFT lib

    /usr/include/X11/Xft/Xft.h:62: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_XftFTlibrary'
    When I use arch32, no problem.
    The line 62 on Xft.h is:
    extern FT_Library       _XftFTlibrary;
    And this error
    /usr/include/X11/Xft/Xft.h:96: error: expected specifier-qualifier-list before 'FT_UInt'
    to:
        FT_UInt         glyph;
    How to fix this?

    This looks like exactly the same question you asked in the thread
    [http://forums.sun.com/thread.jspa?threadID=5335510]
    Please do not ask the same question in more than one thread.

  • I just bought the iPhone 4 and i'm trying to register it, but when i sync with my computer, it recognize but don't appear nothing

    Well, i bought the iphone 4 today at covent garden apple store, and i'm having some problems in registering my iphone...

    Hey RavenDawn1002,
    If you have a Windows computer, you'll want to run through the steps in this article:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    If you have a Mac, then use this article instead:
    iOS: Device not recognized in iTunes for Mac OS X
    http://support.apple.com/kb/TS1591
    Have a good one,
    Delgadoh

Maybe you are looking for

  • Exchange 2007 on mac mail on  MacOSX 10.6.2 crashes

    Hi Please help me to resolve this issue as many time the application crashes. Unable to figure out the real cause. Please help Process: Mail [178] Path: /Applications/Mail.app/Contents/MacOS/Mail Identifier: com.apple.mail Version: 4.2 (1077) Build I

  • Tolerance limits in Invoice Verification

    Hello experts! I need some advice on below case. I have a Purchase Order for Services 16 H x 40 EUR = 640 EUR net. GR for this has been done as 18 H x 40 EUR = 720 EUR net. IR for this has been posted with value 520,76 EUR. Can anyone explain me why

  • Error: You do not have sufficient privileges to perform this operation.

    I dun know is it appropraite to bounce this question in this forum or not,nevertheless i am asking cuz i dun know where to ask dis silly question. I wana view this link it asks me OTN member user and password ,after putting the username and password

  • H55M-E21 LAN off (LED off) in S3 state, can't use wake on LAN (WOL)

    I'm using H55M-E21 and Win7. I can put PC to sleep mode (S3) and can wake it up by PS2 keyboard. Now I want to try remote desktop to wake up and connect to the slept PC. I can't connect to it. The LAN link is down, the link LED from the back of PC is

  • Photo- Edit in option to edit in a third party app. is not working

    In the Develop module, when I go to the Menu Option Photo -> Edit in, normally LR2 created a TIFF file and uploaded it in the third party application for further editing. However, since yesterday, I am getting an error window with the following text.