Problem in creating a Windows Service Scheduler Agent

Hello,
I have different Listener agent created as NT Services which work fine, but for my new scheduling need I have tryed to transform them into Scheduler Agent NT Services but I'm facing error.
In the agentservice.log I obtain the following error code:
STATUS | wrapper | 2008/04/17 16:49:00 | OracleDI Agent Scheduler Agent_Gensapp12 installed.
STATUS | wrapper | 2008/04/17 16:49:19 | --> Wrapper Started as Service
STATUS | wrapper | 2008/04/17 16:49:19 | Launching a JVM...
INFO | jvm 1 | 2008/04/17 16:49:19 | Wrapper (Version 3.1.0) http://wrapper.tanukisoftware.org
INFO | jvm 1 | 2008/04/17 16:49:19 |
INFO | jvm 1 | 2008/04/17 16:49:20 | Starting Oracle Data Integrator Agent...
INFO | jvm 1 | 2008/04/17 16:49:20 | Version : 10.1.3.4.0 - 30/10/2007
INFO | jvm 1 | 2008/04/17 16:49:20 | com.sunopsis.tools.core.exception.SnpsRuntimeException: java.sql.SQLException: [GENSAPP12]Invalid object name 'SNP_CONNECT'.
INFO | jvm 1 | 2008/04/17 16:49:20 | at com.sunopsis.dwg.cmd.n.a(n.java)
INFO | jvm 1 | 2008/04/17 16:49:20 | at com.sunopsis.j.f.run(f.java)
INFO | jvm 1 | 2008/04/17 16:49:20 | at com.sunopsis.dwg.cmd.i.y(i.java)
INFO | jvm 1 | 2008/04/17 16:49:20 | at com.sunopsis.dwg.cmd.i.run(i.java)
INFO | jvm 1 | 2008/04/17 16:49:20 | at java.lang.Thread.run(Unknown Source)
INFO | jvm 1 | 2008/04/17 16:49:20 | Caused by: java.sql.SQLException: [GENSAPP12]Invalid object name 'SNP_CONNECT'.
INFO | jvm 1 | 2008/04/17 16:49:20 | at com.inet.tds.a.a(Unknown Source)
INFO | jvm 1 | 2008/04/17 16:49:20 | at com.inet.tds.g.if(Unknown Source)
INFO | jvm 1 | 2008/04/17 16:49:20 | at com.inet.tds.g.a(Unknown Source)
INFO | jvm 1 | 2008/04/17 16:49:20 | at com.inet.tds.g.for(Unknown Source)
INFO | jvm 1 | 2008/04/17 16:49:20 | at com.inet.tds.c.int(Unknown Source)
INFO | jvm 1 | 2008/04/17 16:49:20 | at com.inet.tds.c.executeQuery(Unknown Source)
INFO | jvm 1 | 2008/04/17 16:49:20 | at com.sunopsis.sql.SnpsQuery.executeQuery(SnpsQuery.java)
INFO | jvm 1 | 2008/04/17 16:49:20 | at com.sunopsis.dwg.DwgObject.refresh(DwgObject.java)
INFO | jvm 1 | 2008/04/17 16:49:20 | at com.sunopsis.dwg.cmd.e.h(e.java)
INFO | jvm 1 | 2008/04/17 16:49:20 | ... 5 more
INFO | jvm 1 | 2008/04/17 16:49:20 | Caused by:
INFO | jvm 1 | 2008/04/17 16:49:20 | java.sql.SQLException: [GENSAPP12]Invalid object name 'SNP_CONNECT'.
INFO | jvm 1 | 2008/04/17 16:49:20 | at com.inet.tds.a.a(Unknown Source)
INFO | jvm 1 | 2008/04/17 16:49:20 | at com.inet.tds.g.if(Unknown Source)
INFO | jvm 1 | 2008/04/17 16:49:20 | at com.inet.tds.g.a(Unknown Source)
INFO | jvm 1 | 2008/04/17 16:49:20 | at com.inet.tds.g.for(Unknown Source)
INFO | jvm 1 | 2008/04/17 16:49:20 | at com.inet.tds.c.int(Unknown Source)
INFO | jvm 1 | 2008/04/17 16:49:20 | at com.inet.tds.c.executeQuery(Unknown Source)
INFO | jvm 1 | 2008/04/17 16:49:20 | at com.sunopsis.sql.SnpsQuery.executeQuery(SnpsQuery.java)
INFO | jvm 1 | 2008/04/17 16:49:20 | at com.sunopsis.dwg.DwgObject.refresh(DwgObject.java)
INFO | jvm 1 | 2008/04/17 16:49:20 | at com.sunopsis.dwg.cmd.e.h(e.java)
INFO | jvm 1 | 2008/04/17 16:49:20 | at com.sunopsis.dwg.cmd.n.a(n.java)
INFO | jvm 1 | 2008/04/17 16:49:20 | at com.sunopsis.j.f.run(f.java)
INFO | jvm 1 | 2008/04/17 16:49:20 | at com.sunopsis.dwg.cmd.i.y(i.java)
INFO | jvm 1 | 2008/04/17 16:49:20 | at com.sunopsis.dwg.cmd.i.run(i.java)
INFO | jvm 1 | 2008/04/17 16:49:20 | at java.lang.Thread.run(Unknown Source)
It seems to be a connexion error but I have regenerate all the repository connexion information for OdiParams.bat and nothing change.
If you have an idea I really need it.
Thanks in advance.
BM

Hi Micropole,
It may have something to do with
SNP_SECU_USER & SNP_SECU_ENCODED_PASS pointing to something other than the Master Repository schema.
Can you please double check?
thanks.

Similar Messages

  • Creating a windows Service for Weblogic 12c Domain hosting Apex 2.2 listener

    Hi Guys,
    Does anyone have experience of Weblogic 12c under windows?
    I have some difficulties to create a windows service for a domain.
    Here is the script to create the service:
    echo off
    SETLOCAL
    set DOMAIN_NAME=PMU
    set USERDOMAIN_HOME=C:\Oracle\Middleware\user_projects\domains\PMU
    set SERVER_NAME=LICORNE2012
    set WL_HOME=C:\Oracle\Middleware\wlserver_12.1
    set PRODUCTION_MODE=true
    set JAVA_OPTIONS=-Dweblogic.Name=LICORNE2012
    set WLS_USER=weblogic
    set WLS_PW=password
    set ADMIN_URL=http://LICORNE2012:7001
    set MEM_ARGS=-Xms256m –Xmx256m
    call "C:\Oracle\Middleware\wlserver_12.1\server\bin\installSvc.cmd"
    ENDLOCAL
    The service is created and when I start the service, it start then stop few second after.
    Here is the error I am getting.
    [Tue Jun 25 23:36:01 2013] [I] [initLog] initializing logger
    [Tue Jun 25 23:36:01 2013] [E] [initLog] No 'ROTATION_TYPE' header found. 'TIME' based rotation will be used by default.
    [Tue Jun 25 23:36:01 2013] [E] [initLog] No 'TIME_START_DATE' header found or value is invalid. Rotation will take place every 24 hours beginning today at 23:59:59
    [Tue Jun 25 23:36:01 2013] [E] [initLog] No 'TIME_INTERVAL_MINS' header found. Using the default value of 24 hours.
    [Tue Jun 25 23:36:01 2013] [I] [initLog] TIME based log rotation is ON
    [Tue Jun 25 23:36:01 2013] [I] [trigger] First rotation due in 1438 secs
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] console allocation successful. THREAD_DUMP redirection enabled
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] About to execute CreateThread()
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszCmdLine = -client -Xms32m -Xmx200m -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+UseSpinning -Dweblogic.Name=LICORNE2012 -Xverify:none -Djava.endorsed.dirs=C:\Oracle\MIDDLE~1\JDK160~1/jre/lib/endorsed;C:\Oracle\MIDDLE~1\WLSERV~1.1/endorsed -classpath "C:\Oracle\MIDDLE~1\patch_wls1211\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_oepe101\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_ocp371\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_12.1.1.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;" -Dweblogic.Name=LICORNE2012 -Dweblogic.management.username=weblogic -Dweblogic.management.server="http://LICORNE2012:7001" -Dweblogic.ProductionModeEnabled= -Djava.security.policy="C:\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\weblogic.policy" weblogic.Server
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszJavaHome = C:\Oracle\MIDDLE~1\JDK160~1
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszExecDir = C:\Oracle\Middleware\user_projects\domains\PMU
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszOldPath = C:\app\oracle\product\11.2.0.3\jko\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszNewPath = C:\Oracle\MIDDLE~1\WLSERV~1.1\server\native\win\32;C:\Oracle\MIDDLE~1\WLSERV~1.1\server\bin;C:\Oracle\MIDDLE~1\JDK160~1\jre\bin;C:\Oracle\MIDDLE~1\JDK160~1\bin;C:\Oracle\MIDDLE~1\WLSERV~1.1\server\native\win\32\oci920_8;C:\app\oracle\product\11.2.0.3\jko\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszDelay = 0
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszStopClass = []
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszLog = [c:\temp\web.log]
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] Thread created successfully
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] Reporting SCM of SERVICE_START_PENDING with delay=0
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszHost = []
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszPort = []
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] Reporting SCM of SERVICE_RUNNING
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] waiting for multiple events
    [Tue Jun 25 23:36:01 2013] [I] [StartJVM] Parsing JVM Arguments
    [Tue Jun 25 23:36:01 2013] [I] [StartJVM] Initializing JVM
    [Tue Jun 25 23:36:01 2013] [I] [RunJavaApp] Loading class - weblogic.Server
    [Tue Jun 25 23:36:01 2013] [I] [RunJavaApp] Locating method "public static void main([]String)" in main class
    [Tue Jun 25 23:36:01 2013] [I] [RunJavaApp] Building arguments for main class
    [Tue Jun 25 23:36:01 2013] [I] [RunJavaApp] Invoking main class
    <25 juin 2013 23 h 36 CEST> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
    <25 juin 2013 23 h 36 CEST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
    <25 juin 2013 23 h 36 CEST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 20.4-b02 from Sun Microsystems Inc..>
    <25 juin 2013 23 h 36 CEST> <Info> <Management> <BEA-141107> <Version: WebLogic Server Temporary Patch for 13340309 Thu Feb 16 18:30:21 IST 2012
    WebLogic Server Temporary Patch for 13019800 Mon Jan 16 16:53:54 IST 2012
    WebLogic Server Temporary Patch for BUG13391585 Thu Feb 02 10:18:36 IST 2012
    WebLogic Server Temporary Patch for 13516712 Mon Jan 30 15:09:33 IST 2012
    WebLogic Server Temporary Patch for BUG13641115 Tue Jan 31 11:19:13 IST 2012
    WebLogic Server Temporary Patch for BUG13603813 Wed Feb 15 19:34:13 IST 2012
    WebLogic Server Temporary Patch for 13424251 Mon Jan 30 14:32:34 IST 2012
    WebLogic Server Temporary Patch for 13361720 Mon Jan 30 15:24:05 IST 2012
    WebLogic Server Temporary Patch for BUG13421471 Wed Feb 01 11:24:18 IST 2012
    WebLogic Server Temporary Patch for BUG13657792 Thu Feb 23 12:57:33 IST 2012
    WebLogic Server 12.1.1.0  Wed Dec 7 08:40:57 PST 2011 1445491 >
    <25 juin 2013 23 h 36 CEST> <Info> <Management> <BEA-141223> <The server name LICORNE2012 specified with -Dweblogic.Name does not exist. The configuration includes the following servers {AdminServer}.>
    <25 juin 2013 23 h 36 CEST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
    There are 1 nested errors:
    weblogic.management.ManagementException: [Management:141223]The server name LICORNE2012 specified with -Dweblogic.Name does not exist. The configuration includes the following servers {AdminServer}.
        at weblogic.management.provider.internal.RuntimeAccessImpl.<init>(RuntimeAccessImpl.java:149)
        at weblogic.management.provider.internal.RuntimeAccessService.start(RuntimeAccessService.java:41)
        at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesManager.java:461)
        at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:166)
        at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:883)
        at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:570)
        at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:469)
        at weblogic.Server.main(Server.java:74)
    >
    <25 juin 2013 23 h 36 CEST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED.>
    <25 juin 2013 23 h 36 CEST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down.>
    <25 juin 2013 23 h 36 CEST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN.>
    [Tue Jun 25 23:36:11 2013] [I] [ExitHandler] Fire (-1)
    [Tue Jun 25 23:36:11 2013] [I] [ServiceStart] done waiting for multiple events. Wait=0
    [Tue Jun 25 23:36:11 2013] [I] [ServiceStart] Informing SCM about SERVICE_STOP
    Thanks for your help
    jko

    - not sure about your script, but obviously it doesn't detect the name of your managed server LICORNE2012 since there seems to be an admin server only in that domain.
    - alternatively you might try the approach posted by the AMIS guys
    Weblogic Admin and Managed servers as a Windows service
    - btw: having your domain under user_projects is not best practice (but not the problem here).
    good luck!

  • Creating the Windows Service for the Database Instance

    Hello, I am using the PeopleTools 8.52 Installation for Oracle documentation and was in Task 6A-2: Creating the Windows Service for the Database Instance.
    After I type in
    oradim -new -sid ORCL -intpwd manager -startmode auto -pfile C:\Oracle\database\initORCL.ora
    I had encountered these errors:
    OPW-00005: File with same name exists - please delete or rename
    DIM-00019: create service error
    O/S-Error: (OS 1073) The specified service already exists.
    Please advise.... Thank you in advance!

    Hi, thank you for your reply!
    After I typed oradim -delete -sid ORCL, it shows this:
    Unable to stop service, OS Error = 1062
    Instance deleted.
    Then, I:
    Set ORACLE_SID=ORCL
    oradim -new -sid ORCL -intpwd manager -startmode auto -pfile C:\Oracle\database\initORCL.ora
    Then, it shows:
    OPW-00005: Files with same name exists - please delete or rename
    Instance created.
    Does it mean no error already and I can proceed?

  • Best way to create a Windows service from a LabVIEW executable​?

    What would be the best way to run a LabVIEW executable as a service? I needed this recently and I think I have set up such a service using srvany.exe from the Windows 2003 Resource Kit, but that seems like a bit of a hack. The Kit is not offically supported in Server 2008, but seems to work. I don't know about Server 2012 or beyond.
    So what would be the "proper" way of going about creating a Windows service from a headless LabVIEW application?

    The proper way is to interface to the according Windows service control API. That is however not a trivial task to do. We used to sell a LabVIEW toolkit which supported a full interface to this, but it's not currently actively marketed.
    srvany.exe is sort of a hack but works reasonably well for most use cases, as long as you do not need any further interaction with the service manager interface in Windows than to start and stop your service.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Problem creating a Windows Service to Start Weblogic Adminserver

    Hi, I'm having some trouble starting the windows service for weblogic.
    The creation happens succesfully but, when I try to start the service, it fails.
    Thanks
    Debugging service ....... beasvc bpm11g_A00ASRV304W08R2
    Command Line: ....... -client -Xms32m -Xmx200m -XX:MaxPermSize=128m -XX:+UseSpinning -Xverify:none -classpath ....
    Current Directory: ....... D:\Oracle\Middleware1036\user_projects\domains\bpm11g
    Path: ....... D:\Oracle\MIDDLE~2\WLSERV~1.3\server\native\win\x64\;D:\Oracle\MIDDLE~2\WLSERV~1.3\server\bin;D:\Java\JDK17~1.0_0\jre\bin;D:\Java\JDK17~1.0_0\n
    Java Home: ....... D:\Java\JDK17~1.0_0
    Delay: ....... 0
    Thread created successfully!
    Unrecognized option: -client
    Error in java application .......
    The following line contains specific error details .......
    Unable to initialize the Java virtual machine!

    Hi,
    Remove the word "-client" from command line options. Try to start weblogic server from window services. If you are getting error please let me know.
    Now:
    Command Line: ....... -client -Xms32m -Xmx200m -XX:MaxPermSize=128m -XX:UseSpinning -Xverify:none -classpath..............+
    Changed to:
    Command Line:....... -Xms32m -Xmx200m -XX:MaxPermSize=128m -XX:+UseSpinning -Xverify:none -classpath.............
    mark if this helps you.
    Regards,
    Kishore

  • Problems with ShutdownHook and Windows Service

    Hi friends,
    I am facing a problem with the ShutdownHook when a Java program is run as a Windows Service. In the program I am having a Daemon Thread which will be run in an infinite while loop accoridng to a boolean variable. I have a shutdown hook also which sets the boolean variable so that the Daemon Thread will be stopped gracefully. When i am using Ctrl-C the shutdown Hook is started and the Thread is stopped gracefully.
    Later i have made my program as a Windows Service using a utility Java Service Wrapper. But when i stop the service though the Services Window the ShutdownHook is not getting called. I was not able to fnd out why it is happening like that.
    Any help will be highly appreciated. Thanks in advance.

    Hi Drmetz
    If you are waiting on a reply it could be some time, as this is the *Mac OS X v10.3 & earlier* forum and few here know about Windows, parallels MacBooks or the Tiger OS.
    Mac's cover a wide field.
    You could try reposting in this forum which would be your best best I think.
    Windows Compatibility forum
    http://discussions.apple.com/forum.jspa?forumID=687
    also
    MacBook forum
    http://discussions.apple.com/category.jspa?categoryID=218
    or even the Tiger Forum
    http://discussions.apple.com/category.jspa?categoryID=160
    Good luck,
    regards roam

  • Problem when creating CAF Entity Service finder Methods

    Guys,
    Can any one please suggest me appropriatly to the below problem.
    I am using NWDS 7.06. I have no problem when creating CAF project, Application Service and Entity Service even.
    But in the Entity Service:
    1. Add a string or longtext attribute.
    2. try to create a custom finder method in operations tab, during that operation i am  not finding the attribute which i have created in step1.
    That means i am not able to create the my own finder methods with parameters.
    I was able to do that in some version long ago but i have forgotten that NWDS version.
    summary of Problem Is: " Cannot create custom methods with custom parameters in Entity Service"
    Can you please suggest me the right version or a solution to this problem on urgent basis please.
    I promise you that i will give you full points to you who ever gives me the right solution.
    Please mail your suggestions to [email protected]

    Guys,
    I have solved the problem successfully. Thanks for your attention.

  • Socket Exception Invalid argument create on Windows service in process mode

    Please help , Iam getting SocketException Error on connecting with mysql using jdbc also when connect to Activemq jms. Strange thing is this is only
    happening on Windows Server(2008) and when i run the application as Windows service with 'jvm' (in-process) option. Program can connect
    when i run as Java exe in the Windows Service.
    Java JDK version - jdk1.6.0_26.
    Thanks in advance, please ask if any more info needed.
    -- mysql connect--
    Database Driver="com.mysql.jdbc.Driver" Host="jdbc:mysql://localhost:3306/mydb?useUnicode=true&amp;characterEncoding=UTF8" User="admin" Password="password"
    Java.net.SocketException
    MESSAGE: Invalid argument: create
    STACKTRACE:
    java.net.SocketException: Invalid argument: create
    at java.net.Socket.createImpl(Socket.java:397)
    at java.net.Socket.<init>(Socket.java:371)
    at java.net.Socket.<init>(Socket.java:189)
    at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:124)
    at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:225)
    at com.mysql.jdbc.Connection.createNewIO(Connection.java:1779)
    at com.mysql.jdbc.Connection.<init>(Connection.java:450)
    at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at myapp.JDBCLoader.JDBCConnect(JDBCLoader.java:129)
    ----on activemq connect ---
    javax.jms.JMSException: Could not connect to broker URL: tcp://localhost:61616?connectionTimeout=0&keepAlive=true&wireFormat.maxInactivityDuration=0. Reason: java.net.SocketException: Invalid argument: create
    at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)
    at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:286)
    at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:230)
    at org.apache.activemq.ActiveMQConnectionFactory.createQueueConnection(ActiveMQConnectionFactory.java:193)
    at sen.connector.queue.ConnectionFactory.createQueueConnection(ConnectionFactory.java:60)
    at sen.connector.queue.ConnectionFactory.createQueueConnection(ConnectionFactory.java:36)
    at sen.connector.queue.HostConnection.connectToHost(HostConnection.java:147)
    at sen.connector.queue.HostConnection.run(HostConnection.java:127)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: java.net.SocketException: Invalid argument: create
    at java.net.Socket.createImpl(Socket.java:397)
    at java.net.Socket.connect(Socket.java:527)
    at org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:484)
    at org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:447)
    at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:53)
    at org.apache.activemq.transport.InactivityMonitor.start(InactivityMonitor.java:127)
    at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
    at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
    at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
    at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
    at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:266)
    Edited by: 891207 on Oct 12, 2011 8:14 PM
    Edited by: 891207 on Oct 12, 2011 8:17 PM

    I'm sure that exception can be caused by the firewall.The exception below is what is caused by a firewall. Anyway the OP said that it worked fine running as a windows service, so that would rule-out a firewall. Also connections to 'localhost' don't go through the firewall.
    Expecting people to know that 'try a different JVM' I already explained that
    my initial diagnosis was incorrectHave a nice day.
    - Mike
    java.sql.SQLException: IO Error: The Network Adapter could not establish the connection
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:512)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
    554)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:232)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:28)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:553)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:154)
    at JDBCTest4.main(JDBCTest4.java:53)
    Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection
    at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:388)
    at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:430)
    at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:871)
    at oracle.net.ns.NSProtocol.connect(NSProtocol.java:264)
    at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1598)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:360)
    ... 7 more
    Caused by: java.net.ConnectException: Connection timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:529)
    at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:146)
    at oracle.net.nt.ConnOption.connect(ConnOption.java:129)
    at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:366)

  • Problem in creating part time work schedules

    Hello All,
    I have to create some part time work schedules rules for part time employees
    Work: Tuesdays to Fridays
    a)Tues-Thurs 6.5 hours per day   i.e. 9.30 to 5
      9:30 u2013 14:30 work
      14:30 u2013 15:30 - 1hr lunch break
       3:30 u2013 17:00
    b) Friday - 7 hours (9:30 to 14:30)
    Total hours per week are= 26.5
    1) I created one fixed break schedule 14:30 u2013 15:30 (unpaid)
    2) I created 2 Daily work schedules
    Tuesday to Thursday u2013 NOR & (created variant A)
    Only Friday u2013 NOR1
    3) I created one Period work schedule u2013
    P/Time u2013 Mon is FREE, Tue to Thursday as NOR , Fridayas NOR1 & Sat, Sun as FREE
    4) When I try to create Work schedule rule I got stuck in between:
    I configured weekly working hours as 26.5
    I configured monthly & annually working hours.
    But  I had problem to put daily working hours???
    because Tue u2013 Thurs are 19.5 hours (6.5 into 3) & Friday (7Hrs) =26.5
    Hence how to I club both the working patterns in one Work schedule rule???
    Please help me out in same
    Regards,
    Nithi

    niti
    actually i dont have SAP Login here
    in the Table V_T508A
    u define the annul working hours , Monthly working hours  right
    Can u tell wht are the other feilds there
    26.5 hrs is the Combination of two Periodic Work Schedule right ..........if yes
    26.5/31  31 is ur working days
    Edited by: Sikindar on Apr 6, 2009 10:10 AM

  • Problem in creating new cloud service

    I have tried almost all possible combination of letters to specify URL  for creating new cloud service and I am getting an error saying "This specified URL is already in use". Any help would be greatly appreciated. Thank you in advance. 
    Regards,
         StarMogu

    Hi,
    What combination of letters did you try? Base on my experience, some word is in blacklist and didn't used in cloud service name. Please see this same threads(
    http://social.msdn.microsoft.com/Forums/en-US/963acdd1-ee05-406b-978e-20528c7722ee/seriously-get-rid-of-the-url-name-blocking ).
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Problem in creating Java Web Service

    hi,
    i am trying to create a simple java webservice through eclipse and tomcat.
    this is my code: -----
    package com.test;
    public class addfunc {
         static StringBuffer sb = null;
         static String n3 = null;
         * @param args
         public void confunc(String n1, String n2, StringBuffer sb) {
              n3 = n1 + "~" + n2;
              sb = new StringBuffer(n3);
              System.out.println("inside confunc:" + sb);
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              String n1 = "test1";
              String n2 = "test2";
              addfunc c = new addfunc();
              c.confunc(n1, n2, sb);
              sb = new StringBuffer(n3);
              System.out.println("before split : " + sb);
    but i am not able to proceed through....while trying to create a web service i am getting the following error:---------------------------
    The service class "com.test.addfunc" does not comply to one or more requirements of the JAX-RPC 1.1 specification, and may not deploy or function correctly.
    The method "confunc" on the service class "com.test.addfunc" uses a data type, "java.lang.StringBuffer", that is not supported by the JAX-RPC specification. Instances of the type may not serialize or deserialize correctly. Loss of data or complete failure of the Web service may result.
    Kindly suggest me the steps......
    thanks!

    hi,
    i am trying to create a simple java webservice through eclipse and tomcat.
    this is my code: -----
    package com.test;
    public class addfunc {
         static StringBuffer sb = null;
         static String n3 = null;
         * @param args
         public void confunc(String n1, String n2, StringBuffer sb) {
              n3 = n1 + "~" + n2;
              sb = new StringBuffer(n3);
              System.out.println("inside confunc:" + sb);
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              String n1 = "test1";
              String n2 = "test2";
              addfunc c = new addfunc();
              c.confunc(n1, n2, sb);
              sb = new StringBuffer(n3);
              System.out.println("before split : " + sb);
    but i am not able to proceed through....while trying to create a web service i am getting the following error:---------------------------
    The service class "com.test.addfunc" does not comply to one or more requirements of the JAX-RPC 1.1 specification, and may not deploy or function correctly.
    The method "confunc" on the service class "com.test.addfunc" uses a data type, "java.lang.StringBuffer", that is not supported by the JAX-RPC specification. Instances of the type may not serialize or deserialize correctly. Loss of data or complete failure of the Web service may result.
    Kindly suggest me the steps......
    thanks!

  • I have a problem in creating a web service

    Hi,
      I have a problem in creating a webservice usind NWDS.i have done a right click on session bean and selected webservice but no wizard is coming.But it is working fine for other session beans in other projects.will u pls help me out.

    Hi
    please try recreating the EJB , just check whether the home and remote interfaces and the business methods in the home and bean classes are defined properly  .Also check whether the ejb editor is showing all the business methods
    hope this helps ,please do ot forget to reward points
    regards
    rajeshkr

  • Problem in creating JMS business service in OSB

    Hi all
    I am creating a JMS business service in osb:request /response is TEXT
    It write to "*QueueSend*"-which is my URI endpoint
    I have a MDB which read from "*QueueSend*" and write to "*QueueReceive*"
    i have given the *"Response Endpoint*" in jms business service to point to "*QueueReceive*"
    When i send the msg, it write to QueueSend and mdb writes it to QueueReceive but JMS business service doesn't read from QueueReceive,it just wait a long .......
    What is the problem??
    Thanks
    Rohan

    Hi Rohan,
    Are you able to see consumers on "QueueReceive"?
    If no, then your BS is not listening on this queue. Check the end-point again. Check server logs to know if any error occured while BS tried to connect with Queue. Restart your server which has this queue and then the OSB, and try again.
    Regards,
    Anuj

  • Which solution is better for schedules task? Console application or windows service?

    I have a "MULTI-LEVEL" XML file that I will be getting on daily basis and I want to accomplish following tasks:
    1) I have to read and parse the "MULTI-LEVEL" XML data
    2) Then I have to set or create some kind of .net service (c#) that read the xml and parse the data once a day (daily)?
    3) Now I have SOAP service from other software where I want to feed this XML data to. The schedules service will compare the XML data with software data and update (or add) based on the comparision.
    For this task, I come to conclusion that there are 2 best ways to do this:
    1) Create a console application and use windows task scheduler to run it everyday
    2) Create a windows service that runs in the background
    Which is a better way (or reliable)  solution to do this task? Please advise

    There are several things to keep in mind when writing an app that is designed to run without a user logged in. One of the most common mistakes is requiring some sort of user input.  Since the task will run without user intervention you don't want
    any sort of calls to Console.ReadLine, MessageBox.Show, etc.  They will cause the task to freeze and eventually need to be terminated.  You also don't want to rely on any sort of desktop apps running since a user may or may not be logged on at the
    time.
    Also be aware that a task can be scheduled to run under any user context.  As such you either need to ensure it runs under an account with sufficient privileges or that your app needs no special privileges.  You mentioned you tried to run it from
    bin\debug but you most likely have your project under your Documents directory.  Only you would have permissions to that folder and therefore will run into issues if the task is run under a different context.  You also mentioned you put it in the
    C:\ but users don't have write privileges to that folder and therefore if you tried to write a file out it would fail. If you need to read/write files then you should pick a common location that all users have access to or at least the one that will run the
    scheduled task. Be aware that, by default, Task Scheduler will not run a task elevated. You need to check the option to run elevated when you configure the user to run the task under.
    One of the key things to ensure you do with a task is verify it is working properly as a normal app.  You should also ensure that you have good logging so that if it does fail you can trace down the failure more easily.  One common thing that people
    tend to do in console apps is put a try-catch around the main function and display a message if an unhandled exception occurs. This is going to cause problems in a task.  Simply log the exception and rethrow it so Task Scheduler will flag the run as a
    failure.
    If you still cannot figure out why your task is failing then please add some logging and then tell us what code is being run at the time and what the failure is.

  • How to Create a windows xp service

    I have several java routines that I currently call from a bat file via the the windows task scheduler. Prob #1: the bat file always causes a dos window to open which if someone closes it, terminates the rest of the routines. Prob #2: solution would be to create a windows service routine which would call all the above, however I don't have a clue as how to do that. Help??

    However you can't run a batch script as a service in Windows. I think you are looking in the wrong place for a solution.

Maybe you are looking for