Syntax error running J2EE server

I am trying to run the J2EE server in windows 98, I have set all of the enviroment variables but recieve 3 syntax errors when I run the J2EE program, it then attempts to run java but it acts as though the program has been run with no arguments passed and just tells me the possible arguments for the java program, could u please help me

Leviking ... what do you mean by a non-server machine?a non server machine is called a workstation, it is usually a machine that other machines on the network do not depend on.
If I have a j2ee server (for example JBoss, Websphere, Resin, etc.) installed and running on my machine (be it >win95), I'm in business, ain't I?sure but if you follow your class well you know that a J2EE server is a distributed server that enables clients(workstations) to access a large object store ( bin) and that centrelizes the informations, that's why a win 98 machine alone is only good for developping and learning at home and will be no good to a business for example.
If you mean that the machine won't be able to handle the load ... well, for testing and learning ... there ain't no load >so that be the purpose! your definetly right here to learn and try stuff it's good but load control is an important part of a well develop j2ee application. and i tough you would of like to know it
keep up the good work

Similar Messages

  • Error Executing J2EE server PLZ help

    Hi All
    Im using Windows 2003 professional J2SDK 1.3.0, J2SDKEE1.2.1
    Please help me in this...can't able to start the server.
    When I gave j2ee -verbose, it gave the following result.
    D:\>j2ee -verbose
    J2EE server Listen Port: = 1049
    org.omg.CORBA.INTERNAL: minor code: 1398079495 completed: No
    at com.sun.corba.ee.internal.iiop.Connection.getLocalHost(Connection.jav
    a:171)
    at com.sun.corba.ee.internal.corba.ORB.checkApplicationPropertyDefaults(
    ORB.java:514)
    at com.sun.corba.ee.internal.corba.ORB.set_parameters(ORB.java:246)
    at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:163)
    at org.omg.CORBA.ORB.init(ORB.java:329)
    at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:149)
    at com.sun.enterprise.util.ORBManager.init(ORBManager.java:62)
    at com.sun.enterprise.server.J2EEServer.createORB(J2EEServer.java:373)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:220)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:866)
    org.omg.CORBA.INTERNAL: minor code: 1398079495 completed: No
    at com.sun.corba.ee.internal.iiop.Connection.getLocalHost(Connection.jav
    a:171)
    at com.sun.corba.ee.internal.corba.ORB.checkApplicationPropertyDefaults(
    ORB.java:514)
    at com.sun.corba.ee.internal.corba.ORB.set_parameters(ORB.java:246)
    at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:163)
    at org.omg.CORBA.ORB.init(ORB.java:329)
    at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:149)
    at com.sun.enterprise.util.ORBManager.init(ORBManager.java:62)
    at com.sun.enterprise.util.ORBManager.getORBInitialPort(ORBManager.java:
    80)
    at com.sun.enterprise.server.J2EEServer.createORB(J2EEServer.java:375)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:220)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:866)
    org.omg.CORBA.INTERNAL: minor code: 1398079495 completed: No
    at com.sun.corba.ee.internal.iiop.Connection.getLocalHost(Connection.jav
    a:171)
    at com.sun.corba.ee.internal.corba.ORB.checkApplicationPropertyDefaults(
    ORB.java:514)
    at com.sun.corba.ee.internal.corba.ORB.set_parameters(ORB.java:246)
    at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:163)
    at org.omg.CORBA.ORB.init(ORB.java:329)
    at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:149)
    at com.sun.enterprise.util.ORBManager.init(ORBManager.java:62)
    at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:74)
    at com.sun.enterprise.server.J2EEServer.createORB(J2EEServer.java:377)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:220)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:866)
    java.lang.NullPointerException
    at com.sun.enterprise.iiop.POAProtocolMgr.<init>(POAProtocolMgr.java:84)
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:237)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:866)
    java.lang.RuntimeException
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:348)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:866)
    Error executing J2EE server ...
    Then if i try to stop the server by j2ee -stop ....the following happens
    D:\>j2ee -stop
    org.omg.CORBA.INTERNAL: minor code: 1398079495 completed: No
    at com.sun.corba.ee.internal.iiop.Connection.getLocalHost(Connection.jav
    a:171)
    at com.sun.corba.ee.internal.corba.ORB.checkApplicationPropertyDefaults(
    ORB.java:514)
    at com.sun.corba.ee.internal.corba.ORB.set_parameters(ORB.java:246)
    at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:163)
    at org.omg.CORBA.ORB.init(ORB.java:329)
    at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:149)
    at com.sun.enterprise.util.ORBManager.init(ORBManager.java:62)
    at com.sun.enterprise.naming.SerialInitContextFactory.<init>(SerialInitC
    ontextFactory.java:36)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:237)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    55)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246
    at javax.naming.InitialContext.init(InitialContext.java:222)
    at javax.naming.InitialContext.<init>(InitialContext.java:178)
    at com.sun.enterprise.util.Utility.lookupObject(Utility.java:117)
    at com.sun.enterprise.server.J2EEServer.shutdown(J2EEServer.java:762)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:830)
    org.omg.CORBA.INTERNAL: minor code: 1398079495 completed: No
    at com.sun.corba.ee.internal.iiop.Connection.getLocalHost(Connection.jav
    a:171)
    at com.sun.corba.ee.internal.corba.ORB.checkApplicationPropertyDefaults(
    ORB.java:514)
    at com.sun.corba.ee.internal.corba.ORB.set_parameters(ORB.java:246)
    at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:163)
    at org.omg.CORBA.ORB.init(ORB.java:329)
    at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:149)
    at com.sun.enterprise.util.ORBManager.init(ORBManager.java:62)
    at com.sun.enterprise.util.ORBManager.getORB(ORBManager.java:74)
    at com.sun.enterprise.naming.SerialInitContextFactory.<init>(SerialInitC
    ontextFactory.java:37)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:237)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    55)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246
    at javax.naming.InitialContext.init(InitialContext.java:222)
    at javax.naming.InitialContext.<init>(InitialContext.java:178)
    at com.sun.enterprise.util.Utility.lookupObject(Utility.java:117)
    at com.sun.enterprise.server.J2EEServer.shutdown(J2EEServer.java:762)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:830)
    Unable to shutdown the J2EE server.
    D:\>
    Please help me in this regard ...
    Thanking you in advance..

    Please help me guys Im really waiting for the solutiion to the problem

  • Error executing J2EE server

    When I try to run the J2EE server, I get an error saying "ERROR executing J2EE server" with the following system.err file: Does anyone know what I need to do ? Thanks.
    Logging for J2EE Server Version: 1.3.1-b17 started at: Sat Nov 01 11:12:21 EST 2003..
    Using the Java HotSpot(TM) Client VM and the version number 1.4.2_01 from Sun Microsystems Inc..
    VM is using the classpath: C:\j2sdkee1.3.1\lib\system\cloudscape.jar;C:\j2sdkee1.3.1\lib\system\tools.jar;C:\j2sdkee1.3.1\lib\cloudscape\RmiJdbc.jar;C:\j2sdkee1.3.1\lib\cloudscape\cloudclient.jar;C:\j2sdkee1.3.1\lib\classes;C:\j2sdkee1.3.1\classes;C:\j2sdkee1.3.1\lib\j2ee.jar;C:\j2sdkee1.3.1\lib\toolclasses;C:\j2sdkee1.3.1\lib\j2eetools.jar;C:\j2sdkee1.3.1\lib\locale;;C:\j2sdk1.4.2_01\lib\tools.jar;C:\j2sdkee1.3.1\lib\jhall.jar .
    J2EE Home Directory has been set to: C:\j2sdkee1.3.1.
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:176)
         at com.sun.corba.ee.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:68)
         at com.sun.corba.ee.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:70)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:641)
         at com.sun.corba.ee.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:583)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve(InitialNamingClient.java:1007)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolveUsingBootstrapProtocol(InitialNamingClient.java:690)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.cachedInitialReferences(InitialNamingClient.java:1088)
         at com.sun.corba.ee.internal.corba.InitialNamingClient.resolve_initial_references(InitialNamingClient.java:981)
         at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.java:2425)
         at com.sun.enterprise.naming.SerialContextProviderImpl.initSerialContextProvider(SerialContextProviderImpl.java:37)
         at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:233)
         at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.rmi.RemoteException
         at com.sun.enterprise.naming.SerialContextProviderImpl.initSerialContextProvider(SerialContextProviderImpl.java:46)
         at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:233)
         at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.rmi.RemoteException
         at com.sun.enterprise.naming.SerialContextProviderImpl.initSerialContextProvider(SerialContextProviderImpl.java:46)
         at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:233)
         at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    java.lang.RuntimeException
         at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:346)
         at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    Error executing J2EE server ...

    I found out that when I disable my anti-virus software that I was able to bringup the J2EE server. I am using J2sdk1.4.2_01 and J2sdkee1.3.1.

  • Java.exe error while running j2ee server in jre1.4.0 env

    Hi,
    i have been running j2ee 1.3.1 server in jdk1.4.0 enviromrnt. When i try to process large data (like retrieving around 100 records from the database, each having 150 attributes) in the form of XML , I get a runtime error generated by the jvm , whiich says "java.exe has generated the error and is closed by WIndows". I increased the heap size to -Xmx256m. Stil i am getting this error. I am not getting the error if i run with jdk1.3.1 version. Is there any instability with jdk1.4.0 env? any help will be highly appreciated

    If you have found a solution to this problem, can you please share it with me.
    Thanks a lot.
    -- Manohar

  • Error starting J2EE server

    I have recently installed the J2EE SDK 1.3.1 and J2SE SDK 1.4.1_02. Upon starting the j2ee server (j2ee -verbose), get the following error message.
    Exception in thread "main" java.lang.ExceptionInInitializerError
    at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:175)
    at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
    Caused by: java.lang.NullPointerException
    at java.net.InetAddress.cacheAddress(InetAddress.java:648)
    at java.net.InetAddress.cacheAddress(InetAddress.java:633)
    at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1016)
    at java.net.InetAddress.getLocalHost(InetAddress.java:1125)
    at com.sun.enterprise.util.Utility.getLocalHost(Utility.java:56)
    at com.sun.enterprise.repository.ConfigurationImpl.<clinit>(ConfigurationImpl.java:18)
    ... 2 more
    I am running Linux 7.2, Apache 1.3.27, Tomcat 4.1.24., and have two (2) NICs.
    Any ideas on what might cause this issue?

    I believe I got the server working. The system may have had an issue recognizing the environmental variables being set in the .bash_profile and the setconfig.sh.
    If anyone could clarify the errors above, I would greatly appreciate the information.
    J2EE server listen port: 1050
    Naming service started:1050
    Binding DataSource, name = jdbc/DB1, url = jdbc:cloudscape:rmi:CloudscapeDB;create=true
    Binding DataSource, name = jdbc/DB2, url = jdbc:cloudscape:rmi:CloudscapeDB;create=true
    Binding DataSource, name = jdbc/InventoryDB, url = jdbc:cloudscape:rmi:CloudscapeDB;create=true
    Binding DataSource, name = jdbc/Cloudscape, url = jdbc:cloudscape:rmi:CloudscapeDB;create=true
    Binding DataSource, name = jdbc/EstoreDB, url = jdbc:cloudscape:rmi:CloudscapeDB;create=true
    Binding DataSource, name = jdbc/XACloudscape, url = jdbc/XACloudscape__xa
    Binding DataSource, name = jdbc/XACloudscape__xa, dataSource = COM.cloudscape.core.RemoteXaDataSource@1c208b0
    Starting JMS service...
    Initialization complete - waiting for client requests
    Binding: < JMS Destination : jms/Queue , javax.jms.Queue >
    Binding: < JMS Destination : jms/Topic , javax.jms.Topic >
    Binding: < JMS Cnx Factory : QueueConnectionFactory , Queue , No properties >
    Binding: < JMS Cnx Factory : jms/QueueConnectionFactory , Queue , No properties
    >
    Binding: < JMS Cnx Factory : jms/TopicConnectionFactory , Topic , No properties
    >
    Binding: < JMS Cnx Factory : TopicConnectionFactory , Topic , No properties >
    Starting web service at port: 8000
    Starting secure web service at port: 7000
    J2EE SDK/1.3.1
    Starting web service at port: 9191
    J2EE SDK/1.3.1
    J2EE server startup complete.

  • MOF Syntax Error Installing SQL Server 2014 Express

    I am trying to install SQL Server 2014 Express With Tools on a fully updated Win 8.1 system having already installed Visual Studio Community 2013 with Update 4. During the installation of SQL Server, I am getting a "MOF Syntax Error".
    I found this http://support.microsoft.com/kb/2387686 on the web but I can't see that that applies to me as I would have thought that any suggested fixes from this article would have been already installed
    or corrected in Win 8.1 or SQL Server 2014. Neither do I know what fix I should install anyway.
    An entry on this forum suggested that running Winmgmt /salvagerepository command fixed the problem. I ran the command in the Command Prompt and a /verifyrepository said it was consistent. However, the error still occurred when I installed SQL Server.
    Can anyone help with this?

    Hi wagham,
    From your description, you encounter the error when installing SQL Server 2014 Express on Windows 8.1. For further analysis, please help to post the summary and detail logs which locate under 
    %ProgramFiles%\Microsoft SQL Server\120\Setup Bootstrap\Log. For more details about viewing SQL Server setup log files, you can refer to this
    article.
    Additionally, based on my research, “MOF Syntax Error” could be caused by various reasons, such as insufficient account permissions, corrupted .NET Framework and so on. There are some proposals for you installing SQL Server 2014 Express as follows.
    1. Make sure that the account you use to install SQL Server has admin rights. If you are using a domain administrator, please ensure that it is added to local administrator group.
    2. Make sure that you right-click the SQL Server setup file (setup.exe) and choose “Run as administrator” to complete the installation.
    3. Check that if the .NET Framework is corrupted on your system. You can verify the installation state of the .NET Framework via the
    .NET Framework Setup Verification Tool. If the .NET Framework is corrupted, please
    repair it using
    .NET Framework Repair Tool, then reinstall SQL Server.
    Here is a similar blog about “MOF Syntax Error” for your reference.
    http://sqlservertimes2.com/?p=641
    Thanks,
    Lydia Zhang

  • OIM: Syntax Error running SampleHttpClient

    Hi,
    I'm trying to execute the SPML java client located in <inst home>\server\xellerate\SPMLWS\SampleHttpClient.
    I get a syntax error, but I'm actually running the program unchanged using the unmodified xml request file in the SampleHttpClient\sampleRequests directory.
    Someone has ever played with this little program? Ever had this problem?
    Below the error.
    Env: OIM 9.1.0
    App serv: JBOSS
    Thank you.
    ---------------- error-----------------
    E:\oracle\product\9.1.0\server\xellerate\SPMLWS\SampleHttpClient>java testspml.SendSPMLRequest addRequest_x_User.xml
    Setting System properties after reading the properties file
    ten.mydomain.com
    8080
    http
    JBOSS
    ./sampleRequests/JBOSS
    ./response
    requestFile = ./sampleRequests/JBOSS\addRequest_x_User.xml
    Exception in thread "main" org.xml.sax.SAXParseException: Expected "</HR>" to terminate element starting on line 1.
    at org.apache.crimson.parser.Parser2.fatal(Unknown Source)
    at org.apache.crimson.parser.Parser2.fatal(Unknown Source)
    at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
    at org.apache.crimson.parser.Parser2.content(Unknown Source)
    at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
    at org.apache.crimson.parser.Parser2.content(Unknown Source)
    at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
    at org.apache.crimson.parser.Parser2.content(Unknown Source)
    at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
    at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
    at org.apache.crimson.parser.Parser2.parse(Unknown Source)
    at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
    at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at testspml.SendSPMLRequest.main(SendSPMLRequest.java:68)

    Hi,
    make sure you have deployed the SPML WS first as per:
    http://download.oracle.com/docs/cd/E10391_01/doc.910/e10366/spml.htm#CHDEGDEC
    The error you are getting is in fact an generic error from the JBOSS saying that the path was not found on the server. And <HR> is just an HTML tag of that error page.
    Look in the provided code and make sure you can reach the link first in the browser.
    BR.
    Octavian

  • Error in J2EE SERVER

    Hi Experts,
    when i starting the j2ee server the error is comming but the visual administrator is working
    1))
    i found the error in
    E:\usr\sap\ECC\DVEBMGS01\j2ee\admin\logviewer-standalone\server
    #1.5#C000AC1F643C0000000001F1005E13AD0004398D9AD41970#1189180257606#com.sapmarkets.bam.jmxadapter.PatternValueDefinition##com.sapmarkets.bam.jmxadapter.PatternValueDefinition#######Thread[main,5,main]##0#0#Warning#1#/System/Server#Plain###Class com.sap.bc.proj.jst.JStartupFramework not found. Plase make sure jStartUp.jar is available.#
    and the SERVER IS NOTABLE TO START JAR FILES :jvmx.jar
    HOME:C:\j2sdk1.4.2_13
    3) THE LOCAL GATEWAY IS NOT CONNECTED
    please guide me the how to resolve this issue
    Thanks&Regards,
    Siva
    Message was edited by:
            siva naidu
    Message was edited by:
            siva naidu
    Message was edited by:
            siva naidu

    Hello Siva,
    When ever you start J2EE server it needs enough memory to start its processes.
    Just see no other processes are occupying memory.
    If you can restart the system once and start J2EE it will work fine.
    When it comes to J2EE processes not running it always boils down to not enough JVM. Kindly look into system so that it doesn't have too many processes starting when system comes up.
    See to it it has enough memory available to start JVM. What happens when you start Java is Jlaunch talks to instance.properties based on this file J2EE looks for several processes and services. Which needs enough memory.
    So I would request you to restart system once and see to kill the processes which are occupying too much of memory.
    Then Restart the Java this will work.
    Thanks & Regards
    Vivek

  • JDBC/MySQL syntax error on MySQL server login

    I am making a simple JSP page and I'm trying to test basic functionality/connectivity with a MySQL database. Included is my index.jsp code and the errors given by Tomcat. Any insights would be very helpful, thanks.
    org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 13 <%@ page import="java.sql.*"%> <% Connection con = null; Statement stmt = null; ResultSet rs = null; %> <html> <body> <% Class.forName("com.mysql.jdbc.Driver").newInstance(); con = DriverManager.getConnection("jdbc:mysql://localhost:3306/database", "correctUserName", "correctPassword");    //<-line 13 stmt = con.createStatement(); rs = stmt.executeQuery("SELECT * FROM table"); while(rs.next()){ out.println(rs.getString("name")+"<br>"); } rs.close(); %> </body </html> Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) root cause javax.servlet.ServletException: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '????????????????' at line 1 org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) org.apache.jsp.index_jsp._jspService(index_jsp.java:86) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

    chrislard wrote:
    That is a good idea for actual implementation, but this is just a test. There isn't any reason that this should not work because it hasn't been broken up into multiple files etc.Evidence would indicate that it is not in fact working though. And the error indicates a syntax error. Because it is JSP there is no assured way to localize the problem, not to mention that since it is running is a container there is no assurance that the posted code is even what is running.
    My suggestion on the other hand completely eliminates all of those possibilities.
    But if it helps you the posted SQL does not have any syntax errors. So if you can solve the problem that you have knowing just that then go for it. Myself I would at least create a test jig.

  • Incorrect syntax errors in sql server function. Please help.

    This is my sql server function:
    create function dbo.CleanTheStringAdv (@theString nvar
    char(500), @CleanMode as int) 
    returns nvarchar(500)  
    begin  
    --define variables
    declare @strAlphaNumeric nvarchar(500)  
    declare @i int
    declare @strChar nvarchar(500)
    declare @CleanedString nvarchar(500)
    --initiate values
    set @CleanedString =''  
    set @theString = @theString + ''
    SET @i = 1
    --Determine if we are looking for numeric values only or numbers and letters
    return case @CleanMode
       WHEN 1
       THEN @strAlphaNumeric = '0123456789'
       WHEN 2
       THEN @strAlphaNumeric = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
       WHEN 3
       THEN @strAlphaNumeric = '|0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
       else 0
     end 
    --Search through chars in the string passed to the function
        while (@i <= Len(@theString))
    begin
    @strChar = substring(@theString, @i, 1)
    If (charindex(@strAlphaNumeric, @strChar) <>0)
    --if the current char being reviewed is valid then add it to the new string
    begin
    @CleanedString = @CleanedString + @strChar
    end
    end
    return @CleanedString
    and below are the syntax errors I see when I press F5:
    Msg 102, Level 15, State 1, Procedure CleanTheStringAdv, Line 24
    Incorrect syntax near '='.
    Msg 102, Level 15, State 1, Procedure CleanTheStringAdv, Line 39
    Incorrect syntax near '@strChar'.
    Msg 102, Level 15, State 1, Procedure CleanTheStringAdv, Line 43
    Incorrect syntax near '@CleanedString'.
    Any help is highly appreciated.....

    Here is the full code for the function:
    create function dbo.CleanTheStringAdv (@theString nvarchar(500), @CleanMode as int)
    returns nvarchar(500)
    as
    begin
    --define variables
    declare @strAlphaNumeric nvarchar(500)
    declare @i int
    declare @strChar nvarchar(500)
    declare @CleanedString nvarchar(500)
    --initiate values
    set @CleanedString =''
    set @theString = @theString + ''
    SET @i = 1
    --Determine if we are looking for numeric values only or numbers and letters
    SET @strAlphaNumeric = case @CleanMode
    WHEN 1
    THEN '0123456789'
    WHEN 2
    THEN '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
    WHEN 3
    THEN '|0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
    else 0
    end
    --Search through chars in the string passed to the function
    while (@i <= Len(@theString))
    begin
    set @strChar = substring(@theString, @i, 1);
    If (charindex(@strAlphaNumeric, @strChar) <>0) --if the current char being reviewed is valid then add it to the new string
    begin
    SET @CleanedString = @CleanedString + @strChar;
    end
    END
    return @CleanedString;
    END

  • Syntax error running photomerge

    Trying to run photomerge on Photoshop CC ( 14.1.2 x64 ) on Mac OSX 10.9, I get :
         Error 8: Syntax error.
         Line: 1
         ->
    Photomerge worked fine day or two ago, but now it fails.
    The most relevant file i can find is /Root/Applications/Adobe Photoshop CC/Scripts/photomerge.jsx, 38KB, last modified July 8, 2013, 4:46 pm, same as most of the other files in that directory.
    I restarted the maching ( the Microsoft solution ), but the problem continues. Worse, Lightroom won't start, generating some OS alert, "Lightroom quit unexpectedly".
    One unusual circumstance, which should hopefullybe totally irrelevant to this problem. I lost my wallet last week, so my credit card was cancelled, and Adobe has been unable to charge my November installment for CC. I've updated the info for the replacement card, but in any case would not expect such a reaction :-)
    Tom

    I saw advice about re-installing Photoshop, but it didn't work for me; the CC app told me Photoshop was uop to date. Even after I deleted Photoshop, it was still up to date :-)
    I contacted the live-chat consultants and talked to Sunil, who suggested I download the clean-up tool. Unfortunately, it didn't work out-of-the-download, as he suggested, but the Readme file advised rebooting the maching. After the reboot, the cleanup tool deleted all the CC manager stuff. I had to reinstall all the apps I wanted : photoshop, Lightroom, and Bridge, but they seem to work fine, and phoromerge works once again.

  • Hom System Copy- Error running J2ee migration tool kit

    Good Day Guys,
    Im performing homogenous system copy.I have encountered below error:
    INFO 2008-10-20 13:05:33
    Output of C:\j2sdk1.4.2_18-x64\bin\java.exe -classpath D:/usr/sap/LE1/SYS/global/sltools/sharedlib/launcher .jar;. com.sap.engine.offline.OfflineToolStart com.sap.sdt.jmt.migrationtool.MigrationToolImport D:/usr/sap/LE1/SYS/global/sltools/jmt;D:/usr/sap/LE1 /SYS/global/sltools/sharedlib import.switch resume downtime mti.properties is written to the logfile C:/Program Files/sapinst_instdir/ERP/LM/COPY/MSS/SYSTEM/CENTRA L/AS/runJmt.log.
    WARNING 2008-10-20 13:05:34
    Execution of the command "C:\j2sdk1.4.2_18-x64\bin\java.exe -classpath D:/usr/sap/LE1/SYS/global/sltools/sharedlib/launcher .jar;. com.sap.engine.offline.OfflineToolStart com.sap.sdt.jmt.migrationtool.MigrationToolImport D:/usr/sap/LE1/SYS/global/sltools/jmt;D:/usr/sap/LE1 /SYS/global/sltools/sharedlib import.switch resume downtime mti.properties" finished with return code 27. Output:
    ERROR 2008-10-20 13:05:34
    CJS-20068 Error when running the J2EE Migration Toolkit.<br>SOLUTION: See output of logfile C:\Program Files/sapinst_instdir/ERP/LM/COPY/MSS/SYSTEM/CENTRA L/AS//runJmt.log: ''.
    ERROR 2008-10-20 13:05:34
    CJS-20068 Error when running the J2EE Migration Toolkit.<br>SOLUTION: See output of logfile C:\Program Files/sapinst_instdir/ERP/LM/COPY/MSS/SYSTEM/CENTRA L/AS//runJmt.log: ''.
    ERROR 2008-10-20 13:05:34
    FCO-00011 The step RunMigrationController with step key |NW_Doublestack_OneHost|ind|ind|ind|ind|0|0|NW_One host_System|ind|ind|ind|ind|1|0|NW_CI_Instance|ind |ind|ind|ind|11|0|NW_CI_Instance_Configure_Java|in d| ind|ind|ind|4|0|NW_RUN_MIGRATION_CONTROLLER|ind|ind |ind|ind|2|0|RunMigrationController was executed with status ERROR .
    INFO 2008-10-20 13:06:29
    An error occured and the user decide to stop.\n Current step "|NW_Doublestack_OneHost|ind|ind|ind|ind|0|0|NW_On ehost_System|ind|ind|ind|ind|1|0|NW_CI_Instance|in d|ind|ind|ind|11|0|NW_CI_Instance_Configure_Java|i nd|ind|ind|ind|4|0|NW_RUN_MIGRATION_CONTROLLER|ind |ind|ind|ind|2|0|RunMigrationController".
    I have checked the runjmt.log its empty.
    I did find a note 966752.but couldnt solve the problem.Another thing do we need to have same version of j2sdk,mine are different on source(ia64) and target(x64).
    Please advice.
    BasisNerd

    CAn you precise also what Migration tool are you using?
    Migration from 5.1 to SAP BPC 7.0 NW?
    In that case when you are speaking about the installation about what part are you speaking?
    I think actually you are speaking about the migration tool from 4.2 to 7.0 Microsoft version .
    In that case you can install the mIgration tool just with SAP BPC sys admin users and you have to input the password for that user. Sys admin user for BPC is usually the user used for installation of SAP BPC server.
    Any way I suggest to follow the Migration tool training document and there you will find all the information necessary.
    Regards
    Sorin Radulescu

  • Error running J2EE App on Web AS 6.40

    Hi all experts,
    I'm triying to implement JSPWiki on Web As 6.40 SP17, I've followed the instructions this blog /people/pankaj.kumar32/blog/2005/09/10/wiki-wiki-world-and-portals
    This is what a did:
    1.- Downlowded the latest version of JSPWiki from http://jspwiki.org
    2.- Extracted the JSPWiki.war
    3.- Used deploytool to create a JSPWiki.ear and deployed on server
    4.- Started the appplication
    5.- Called url http://localhost:50000/JSPWiki/Install.jsp as suggested on jspwiki readme.txt
    6.- The first 2 pages were displayed without problen.
    But when I try to run the app the server drop this message:
    Details: javax.servlet.jsp.JspException: Tag failed, check logs: null
         at com.ecyrd.jspwiki.tags.WikiTagBase.doStartTag(WikiTagBase.java:90)
         at jsp_PageActions1169070742968._jspService(jsp_PageActions1169070742968.java:78)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:537)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:290)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.include(RequestDispatcherImpl.java:440)
         at com.sap.engine.services.servlets_jsp.server.jsp.PageContextImpl.include(PageContextImpl.java:138)
         at com.ecyrd.jspwiki.tags.IncludeTag.doEndTag(IncludeTag.java:83)
         at jsp_Header1169070740546._jspx_method_wiki_Include_1(jsp_Header1169070740546.java:65535)
         at jsp_Header1169070740546._jspService(jsp_Header1169070740546.java:13)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:537)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:290)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.include(RequestDispatcherImpl.java:440)
         at com.sap.engine.services.servlets_jsp.server.jsp.PageContextImpl.include(PageContextImpl.java:138)
         at com.ecyrd.jspwiki.tags.IncludeTag.doEndTag(IncludeTag.java:83)
         at jsp_ViewTemplate1169070738265._jspx_method_wiki_Include_1(jsp_ViewTemplate1169070738265.java:65535)
         at jsp_ViewTemplate1169070738265._jspService(jsp_ViewTemplate1169070738265.java:22)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:537)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:290)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.include(RequestDispatcherImpl.java:440)
         at com.sap.engine.services.servlets_jsp.server.jsp.PageContextImpl.include(PageContextImpl.java:138)
         at com.ecyrd.jspwiki.tags.IncludeTag.doEndTag(IncludeTag.java:83)
         at jsp_LoginForm1169070737203._jspService(jsp_LoginForm1169070737203.java:41)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:537)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:290)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.include(RequestDispatcherImpl.java:440)
         at com.sap.engine.services.servlets_jsp.server.jsp.PageContextImpl.include(PageContextImpl.java:178)
         at jsp_Login1169070735953._jspService(jsp_Login1169070735953.java:130)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:537)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:117)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:62)
         at com.ecyrd.jspwiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:99)
         at com.ecyrd.jspwiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:71)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:58)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:374)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:265)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    The wierd thing is that the two latest versionsof wiki gives me the same error, please if you have any clue that could help me I'll really appreciate it.
    Thanks in advance,
    RR.-

    Hi,
    Make sure that the directory C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_ABAP_ORA_UC\DB exists and that it is accessible under the user you are logged in as.
    Also check the freespace available on the drive c:\
    Regards,
    Siddhesh

  • Error starting J2EE server in debug mode

    I am trying to start the Sun 1.4 application server in a debug mode. I get an error
    err:FATAL ERROR in native method: No transports initialized
    : No such file or directory
    Error [2] in bind() call!
    Socket transport failed to init.
    Transport dt_socket failed to initialize, rc = -1.
    The setting in config.xml file is:-
    debug-enabled="true" debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044
    Any help will be appreciated.
    Thanks,
    Milind

    I changed the port number and it worked. Not sure why port 1044 as specified in the Sun documentation doesnot work.
    Milind

  • Error when running "J2ee SDK" -  j2ee server

    Hi,
    When running: C:\j2sdkee1.3.1\bin>j2eeadmin I get the follwoing error:
    Binding: < JMS Cnx Factory : TopicConnectionFactory ,
    Binding: < JMS Cnx Factory : QueueConnectionFactory ,
    Starting web service at port: 8000
    Starting secure web service at port: 7000
    J2EE SDK/1.3.1
    LifecycleException: null.open: java.net.BindExcepti
    JVM_Bind
    at org.apache.catalina.connector.http.HttpCon
    ctor.java:1116)
    at org.apache.catalina.startup.Embedded.start
    at com.sun.web.server.WebService.start(WebSer
    at com.sun.web.server.WebServer.start(WebServ
    at com.sun.enterprise.server.J2EEServer.start
    796)
    at com.sun.enterprise.server.J2EEServer.run(J
    at com.sun.enterprise.server.J2EEServer.main(
    java.lang.RuntimeException: null.open
    at com.sun.enterprise.server.J2EEServer.run(J
    at com.sun.enterprise.server.J2EEServer.main(
    J2EE server reported the following error: null.open
    Error executing J2EE server ...
    Please advise.
    Thanks,
    Gabi

    405 errors in the HTTP cycle
    Any client goes through the following cycle:
    * Obtain an IP address from the IP name of your site (your site URL without the leading 'http://'). This lookup (conversion of IP name to IP address) is provided by domain name servers (DNSs).
    * Open an IP socket connection to that IP address.
    * Write an HTTP data stream through that socket.
    * Receive an HTTP data stream back from your Web server in response. This data stream contains status codes whose values are determined by the HTTP protocol. Parse this data stream for status codes and other useful information.
    This error occurs in the final step above when the client receives an HTTP status code that it recognises as '405'.
    Resolving 405 errors - general
    405 errors often arise with the POST method. You may be trying to introduce some kind of input form on your Web site, but not all ISPs allow the POST method necessary to process the form.
    All 405 errors can be traced to configuration of the Web server and security governing access to the content of the Web site.

Maybe you are looking for

  • Where are my songs?

    Where on my Windows XP computer's hard drive does itunes hide my music? I want to find it to use with a computer game (on the Sims 2 you can use your own music and place in in a special file, then the game will use your music for the "Sims'" 'radio'.

  • Different methods of production order confirmation

    Hi, Can someone explain with details what is the difference between using CO11/CO11N and CO15 for confirmation of a production order? Thanks. Regards

  • User Feedback/Guestbook

    Hello there, Can anyone help me to create just a simple means for the user to leave feedback concerning the layout, functionality of the site, etc - rather like a guestbook. Regards, Kristopher (UK).

  • Firefox won't allow me to redirect the search for favorites when importing

    I'm using Firefox under OpenSuse 11.3 and trying to import my favorites from MSIE. The files are on a different drive but Firefox doesn't ask any questions and just says there are no files to import. How can I force Firefox to redirect it's search?

  • Enumeration in plsql.

    hi I want to restrict plsql to be assigned from a certain set of values without if clause here is what i am trying to do declare subtype t_char is varchar2(10) in ('valid', 'invalid','obsolete'); l_status t_char begin      l_status :='valid'; END; ho