NoInitialContextException when re-submitting a message using command line

Hello,
I am trying to re-submit an application message, following discussion in section 18 of the user guide. The command and the exception are shown below., Basically, I am getting a jndi exception. What am I missing / not doing right?
C:\Oracle\Middleware\jdev_home\jdeveloper\ant\bin\ant -f "C:\Oracle\Middleware\11g_home\Oracle_SOA1\bin\ant-b2b-util.xml" b2bresubmit -Ddirection=outbound -Dmsgsource=appMsg -Dmsgid=2d383837363839393330363531393933 -DpayloadPath="BusMsg_Payload_2d383837363839393330363531393933.txt"
Buildfile: C:\Oracle\Middleware\11g_home\Oracle_SOA1\bin\ant-b2b-util.xml
b2bresubmit:
weblogic_dependencies:
[echo]
[echo] Weblogic server location: C:\Oracle\MIDDLE~1\11g_home\WLSERV~1.3
[echo] JNDI properties folder location: C:\Oracle\Middleware\11g_home\Oracle_SOA1\bin
[echo]
utility:
[echo]
[echo] java.naming.provider.url=${java.naming.provider.url}
[echo] java.naming.factory.initial=${java.naming.factory.initial}
[echo] java.naming.security.principal=${java.naming.security.principal}
[echo] java.naming.security.credentials=*****
[echo]
[echo]
[echo] args=resubmit ${propfile}
[echo]
[java] Commandline arguments 2: [resubmit, ${propfile}]
[java] Exception in thread "main" javax.naming.NoInitialContextException: Need to specify class name in environment or system p
roperty, or as an applet parameter, or in an application resource file: java.naming.factory.initial
[java] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
[java] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
[java] at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:325)
[java] at javax.naming.InitialContext.lookup(InitialContext.java:392)
[java] at oracle.tip.b2b.utility.B2BCommandLineUtility.getB2BUtility(B2BCommandLineUtility.java:197)
[java] at oracle.tip.b2b.utility.B2BCommandLineUtility.resubmitMessage(B2BCommandLineUtility.java:1249)
[java] at oracle.tip.b2b.utility.B2BCommandLineUtility.main(B2BCommandLineUtility.java:786)
[java] Java Result: 1
BUILD SUCCESSFUL
Total time: 6 seconds
C:\Oracle\Middleware\11g_home\user_projects\domains\single_server_domain>

Thanks, Anuj.
Indeed I did not read 18.1. Now I have.
18.1 uses Unix syntax, the Windows syntax (where I am working) would look like that shown below, where JDK location will naturally vary and the middleware home may be different:
set ORACLE_HOME=C:\Oracle\Middleware\11g_home\Oracle_SOA1
set ANT_HOME=%ORACLE_HOME%\..\modules\org.apache.ant_1.7.1
set JAVA_HOME=C:\jdk1.6.0_20
The one-off jndi properties generation will be as shown in teh manual however it would see that teh port number of the weblogic server may need to be changed as well as the weblogic password - for me it was generated as 8001 whwere my weblogic server actually runs on 7001
@REM create once off jndi proprties
cd %ORACLE_HOME%\bin
ant -f ant-b2b-util.xml b2bcreate-prop
@rem Edit the jndi.properties file to include the weblogic password and fix weblogic port number
To submit a "repaired" applicaiton message one would do:
@rem run the utility - must have absolute path to message file!
set ORACLE_HOME=C:\Oracle\Middleware\11g_home\Oracle_SOA1
set ANT_HOME=%ORACLE_HOME%\..\modules\org.apache.ant_1.7.1
set JAVA_HOME=C:\jdk1.6.0_20
%ANT_HOME%\bin\ant -f %ORACLE_HOME%\bin\ant-b2b-util.xml b2bresubmit ^
-Dmsgid=2d373838303530333432393931303931 ^
-Dmsgsource=APPMSG ^
-Ddirection=OUTBOUND ^
-Dpayloadpath=C:\hl7\repair\AppMsg_Payload_2d373838303530333432393931303931.txt
It is critical to make sure the absolute path to the repaired message file is provided otherwise null pointer exceptions will be had even if the command is executed from the directory in which the messge file is located.
Another thing that will trip the beginner is the Message ID. The Message ID that is needed is that shown all over the place as MSG_ID or as b2b.messageId, which are the same. In the B2B Web Console this message ID will be shown in "application Message" tab of teh "reporting" facility, when one clicks the "details" "button" and looks at b2b.messageId property value. It is also shown as "Message Id" in teh details of teh business message. It would be nice if one could see this applicaitn message id in teh applicaiton messages report but I guess one can't have everything.
One also gets to know what the applicatin message Id is when one "downloads" the payload of the application message. The file name, which will be provided as default, will have the message id embedded - nice and easy :-) AppMsg_Payload_2d373838303530333432393931303931.txt
Thanks again
Michael

Similar Messages

  • When I send a message using iMessage to a contact's email, the message (whether independent or to a group) is being delivered in their email inbox instead of their iMessage application.

    When I send a message using iMessage to a contact's email, the message (whether independent or to a group) is being delivered in their email inbox instead of their iMessage application.
    Is there any resolution to this issue?

    Yes, they are registered for iMessage and IOS 5.0.1 update. A few days ago (10-12 days) the group messaging was working fine, but now the messages are being delivered to the email inox instead of iMessage app.

  • I am using iplanet messaging 5.2. I want to send mail using command line. Anyone knows exact command line syntax.

    I am using iplanet messaging 5.2. I want to send mail using command line. Anyone knows exact command line syntax.
    Thanks
    -Vasu

    #telnet 0 25
    mail from: user1 #email source
    rcpt to: [email protected] #email destination
    data #begin email content
    Subject: Hi, This is a test mail #optional subject
    Hi, Please don't pay attention to this email, just a test
    . #end email content
    quit #Quit SMTP
    #

  • Send email using command line

    Hi all,
    I was looking for a command to send emails but couldn't find proper setup to do so. What I'm trying to achieve is to be able to send emails from a workstation using command line. I do not run any mail server so i will have to use my ISP email servers.
    Can somebody provide some help on how to do this?

    when i try this:
    mail -s test_terminal myemailaddress
    i get the email but mail.log shows following entries
    Feb 4 17:50:21 iMacG5 postfix/master[1203]: daemon started -- version 2.1.5
    Feb 4 17:50:22 iMacG5 postfix/pickup[1204]: C528054663D: uid=501 from=<local_username>
    Feb 4 17:50:22 iMacG5 postfix/cleanup[1205]: C528054663D: message-id=<[email protected]>
    Feb 4 17:50:23 iMacG5 postfix/qmgr[1207]: 32F30546609: from=<[email protected]>, size=336, nrcpt=1 (queue active)
    Feb 4 17:50:23 iMacG5 postfix/qmgr[1207]: 32F30546609: removed
    Feb 4 17:50:23 iMacG5 postfix/qmgr[1207]: 48552546502: from=<[email protected]>, size=315, nrcpt=1 (queue active)
    Feb 4 17:50:23 iMacG5 postfix/qmgr[1207]: C528054663D: from=<[email protected]>, size=336, nrcpt=1 (queue active)
    Feb 4 17:50:53 iMacG5 postfix/smtp[1209]: connect to mx1.myISP.com[IP.add.res.s]: Operation timed out (port 25)
    Feb 4 17:50:53 iMacG5 postfix/smtp[1208]: connect to mx1.myISP.com[IP.add.res.s]: Operation timed out (port 25)
    Feb 4 17:51:21 iMacG5 postfix/master[1203]: master exit time has arrived
    Feb 4 17:51:23 iMacG5 postfix/smtp[1209]: connect to mx1.myISP.com[IP.add.res.s]: Operation timed out (port 25)
    Feb 4 17:51:23 iMacG5 postfix/smtp[1208]: connect to mx1.myISP.com[IP.add.res.s]: Operation timed out (port 25)
    Feb 4 17:51:23 iMacG5 postfix/smtp[1208]: warning: 48552546502: trace service failure
    Feb 4 17:51:23 iMacG5 postfix/smtp[1208]: warning: 48552546502: defer service failure
    Feb 4 17:51:23 iMacG5 postfix/smtp[1208]: 48552546502: to=<myemailaddress>, relay=mx2.myISP.com[IP.add.res.s2], delay=1213, status=deferred (48552546502: trace service failed)
    Feb 4 17:51:23 iMacG5 postfix/smtp[1208]: warning: 48552546502: trace service failure
    Feb 4 17:51:23 iMacG5 postfix/smtp[1208]: warning: 48552546502: trace service failure
    Feb 4 17:51:53 iMacG5 postfix/smtp[1209]: connect to mx2.myISP.com[IP.add.res.s2]: Operation timed out (port 25)
    Feb 4 17:51:53 iMacG5 postfix/smtp[1209]: C528054663D: to=<myemailaddress>, relay=mx2.myISP.com[IP.add.res.s], delay=92, status=sent (250 ok dirdel)
    I was really surprised to get the email since my ISP requires authentication to send emails and it's using port 587.

  • Error while creating pool using command line

    I am trying to create connection pool using command line as :
    %JAVA_HOME%\bin\java weblogic.Admin -url %serUrl% -username %serUser% -password %serPwd% CREATE_POOL "XXXXXXXX" url=%DB2Url%,driver=com.ibm.db2.jcc.DB2Driver,testConnsOnReserve=true,testTableName=SYSTABLES,initialCapacity=2,maxCapacity=50,capacityIncrement=2,allowShrinking=true,props=user=%DB2Usr%;password=%DB2Pwd%
    This was working fine in 8.1 ,but when i am using same in 9.2 it gives following error in console:
    ======================================================
    <Feb 2, 2007 9:58:11 AM IST> <Error> <Deployer> <BEA-149265> <Failure occured in
    the execution of deployment request with ID '1170390490712' for task 'weblogic.
    deploy.configChangeTask.0'. Error is: 'weblogic.application.ModuleException: '
    weblogic.application.ModuleException:
    at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:268)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(Modu
    leListenerInvoker.java:93)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(Depl
    oymentCallbackFlow.java:360)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
    river.java:26)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(Dep
    loymentCallbackFlow.java:56)
    Truncated. see log file for complete stacktrace
    weblogic.common.resourcepool.ResourceSystemException: Cannot load driver class:
    com.ibm.db2.jcc.DB2Driver
    at weblogic.jdbc.common.internal.JDBCUtil.parseException(JDBCUtil.java:2
    92)
    at weblogic.jdbc.common.internal.ConnectionEnvFactory.loadDriver(Connect
    ionEnvFactory.java:77)
    =====================================================
    when i am again trying to start server , its unable to start.
    Anybody have idea why this exception is coming.

    Hi ,
    Please check the FSV (field status variant) for your company code in OBY6 .
    then go to transaction code OB14 --> enter the FSV --> Check if field status group G006(Material account) is maintained there or not.
    if not please maintain it.
    Thanks & Regards
    Anshu

  • Create .txt empty file After Message Processing Command Line Linux command

    Hi All,
    An empty .txt file has to be created in FTP location(FTP loc c:\xyz\Customer20082910.txt) only after the .dat file has been created(FTP loc c:\xyz\Customer20082910.dat)
    Note:.dat has the actual data and .txt is an empty file and is created only after .dat is created
    I know that .txt empty file can be created using the After Message Processing Command Line...
    But confused which command to be given such that it will be created in the FTP location(c:\xyz\Customer20082910.txt)
    Can any one please give the Linux command for it...
    Regards,
    Sridhar

    Hi Aamir,
    Thanks for the suggestion, I will ask my client to create a shell script at FTP server...
    And one more question,
    This is reverse side , now the .dat file is to be picked only if .txt exists at the FTP server (scenario File > XI>SAP) (earlier was SAP>XI>File)..
    So please can you suggest for this also...
    How can i check for the .txt and pick corresponding .dat file...
    i had posted question long back
    Need to pick .TXT file only if .CTL file is available
    Regards,
    Sridhar

  • How can I create a NetBoot image using command line tools?

    Is it possible to create a NetBoot image entirely using command line tools?
    (That is, without using the SystemImageUtility)
    If so, are there reasonable instructions posted somewhere?
    I don't believe I can use SystemImageUtility with my current setup,
    but I would be happy to hear how I could:
    I have a set of Xserve clusternodes but without optical drives or video cards.
    One node acts as the head, running DHCP, DNS, OpenDirectory, Xgrid.
    They are wired to a gigabit switch.
    I have a PowerBook connected on the subnet which has ServerAdmin Tools installed.
    I don't think when I run SystemImageUtility on my PowerBook that I can successfully image one of the clusternodes disks over the network.
    I have tried to start one node in target(Firewire) mode, connect it via Firewire
    to the head node, and run hdiutil from the head node to make a complete disk image of the clusternode's drive.
    But a NetBoot image requires the whole nbi file, right?
    Could I then use copy this disk image to my PowerBook and use SystemImageUtility on my PowerBook to create a NetBoot image from it?
    I really have tried to read the PDFs, but I found the section on System Imaging in the Command Line Reference rather unhelpful.
    Thanks for anyones help.
    dmaus
      Mac OS X (10.4.4)  

    To create a NetBoot image, you could just put the cluster node in target mode and attach it to your PowerBook. Then use SIU to create the NetBoot image.
    If you're trying to create a backup image of the disk, use hdiutil, or put in in target mode and create the image with Disk Utility.

  • Prevent Startup Form from Loading using Command Line Arguments

    Hi there
    I'm developing a VB.NET windows forms application in VS2013.
    The application will have 2 ways of being executed, one being by the user manually and the other being automated by the task scheduler.
    When executed by the task scheduler, command line arguments will be used so that the application is aware that it is being run automatically and not by a user.
    My problem is that I want the startup form to load when run by a user but I don't want it to load when it is run automatically, I just want to execute code.
    Is it possible to prevent the startup form from loading by using the commandline arguments from the MyApplication_Startup event?
    Cheers

    Hi Aureuz,
    >>Is it possible to prevent the startup form from loading by using the commandline arguments from the MyApplication_Startup event
    It is impossible to accomplish it in the MyApplication_Startup event, we can use Form.Shown event:
    #Form.Shown Event
    http://msdn.microsoft.com/en-us/library/system.windows.forms.form.shown(v=vs.110).aspx
    If we start a form by using the commandline arguments, the count of CommandLineArgs will be above one, if so, use Me.Hide() method to hide this form.
    Private Sub Form1_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
    Dim args As String() = Environment.GetCommandLineArgs()
    If args.Count > 1 Then
    Me.Hide()
    Else
    Me.Show()
    End If
    End Sub
    You can also uncheck "Enable application framework" on the project properties application tab and select your startup object to a module object:
    Module Module1
    Sub Main()
    Dim args As String() = Environment.GetCommandLineArgs()
    If args.Count > 1 Then
    'Run your background code
    Else
    Dim f As New Form1
    f.ShowDialog()
    End If
    End Sub
    End Module
    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.

  • I want to use command line to execute an oracle report?

    Dear all,
    I am using Oracle Application. Does anyone know how to use command line to execute an oracle report?
    I mean execute command from client to server.
    Please advice,
    Amy
    Edited by: amychan60 on Dec 13, 2009 11:33 PM

    Hi,
    Using Oracle Application Server the standard way for a client to request a report is via a HTTP request. This doesn't really lend itself to use directly on a command line on a client however you could use the following:
    explorer "http://your_server/reports/rwservlet?report=report_name.rdf&userid=userid/password@db_sid&paramform=no&destype=FILE&desname=c:\temp\filename.pdf&desformat=pdf"
    This will load explorer and submit that URL for you and request the report. You can change the parameters depending on the report output you require.
    If you need something that is silent (ie doesn't load in explorer) you'll need to investigate other ways of submitting that URL request, perhaps using Java. You could also use SRW.run_report (Event Driven Publishing) to submit the request using SQL.
    Cheers,
    Toby.

  • Go Online on specific network using command line

    i have a remote troubleshooting software that i wrote myself i have added to it the list of all my clients which can have one of the below:public ipsteamviewer accountslogmein hamachiof course, i'm a paid hamachi client, and i have the latest hamachi version installed whenever i want to troubleshoot any client, i just right click on their name, and select remote desktop.. and the my software will automatically connect to the client using the required authentication/application. when the client has hamachi,his network has to be online, for me to be able to access his ip. so what i'm currently doing is: open hamachi, scroll to my client's network, right click, go online, and then back to my software and troubleshoot! (this is a bit time consuming compared to the other solutions) is there any way, i can go online on a specific network in my local hamachi installation? it would be really a great feature, if we can use a command line script, or use command line arguments to launch special events (locally)example:hamachi.exe /online:mynetworkidhamachi.exe /offline:mynetworkid i appreciate any feedback on this, regards,Dan

    Yes, It would be very interesting to have such a feature.E.g., I need to programmatically request Hamachi to GoOnline, because it often goes offline in some circumstances (after computer wakes from sleep mode for example).

  • Creating an auto-reply message by command line

    Hi,
    Is it possible to create a an auto-reply message by command line? Need to create one but I have the users password and don't want to reset his password.
    TIA,
    Henry

    Thanks Pterobyte.
    I guess I did not search far enough back to find this. I did have to google en example of script. I've posted it below for future reference.
    # This is a sample script for vacation rules.
    # Read the comments following the pound/hash to find out
    # what the script is doing.
    # Make sure the vacation extension is used.
    require "vacation";
    # Define the script as a vacation script
    vacation
    # Send the vacation response to any given sender only once
    # every seven days no matter how many messages are sent
    # from that sender.
    :days 7
    #For every message sent to these addresses
    :addresses ["[email protected]"]
    # Make a message with the following subject
    :subject "Out of Office Reply"
    # And make the body of the message the following
    "I'm out of the office for an extended period of time and will not have access to email. "
    # End of Script

  • How to print a specific page from a given PDF document, using command line, please?

    Hello,
    I need your advise, please. My customer requires to print a specfic page from a pdf document they receive, using command line or 3rd party solution.
    Anything you can advise, please? I have seen AcroRD32.exe options, but can only print the whole document.
    Kind Regards

    Not sure if there are any examples. The Acrobat SDK is a must, but it is best treated as documentation to study rather than examples to copy. The examples only illustrate a tiny fraction of the capabiliies.
    (One other note: the solution must involve the client owning Acrobat; Acrobat is not for server use).

  • How to open url in acrobat reader using command line

    Hi,
    I need to open file from url using command line, but I'm still getting some error (wrong filename).
    I've tried for example this command:
    AcroRd32.exe http://www.adobe.com/devnet/acrobat/pdfs/pdf_open_parameters.pdf
    Can anyone help me and tell me what's wrong?

    You can't use a URL as parameter for AcroRd32.exe.

  • How to duplicate a target and add resources in xcode using command line?

    I am trying to use command line tools to create, add resources, build, archive and export to ipa in xcode. I could do the Build, Archive and Exporting to IPA through the command line tools(xcodebuild). But I also wanted to duplicate the target in the same project,add a new Info.plist to the duplicated target resource through command line itself. How to do it? I could not find any valuable answers by Googling. I could not find any proper documentation also in Apple Sites.
    Is there any tools that can be used to perform these? I don't want to use the UI. Please, help me out.

    The Mac App Store is not appropriate for command line tools. You can use any language you want.

  • Split PDF by pages using command line options

    Hi,
    I am after a product to split a PDF file by pages / bookmark using command line options.  It would be good, if the product comes with functionality to call from VB/.NET SDK.
    I googled and came across many products, out of these following looks good.  Has anyone used this.  Please suggest me.
    www.neeviapdf.com
    www.coherentpdf.com
    Thanks
    Sarav

    You are posting in the wrong forum. This forum is for Acrobat Scripting.

Maybe you are looking for

  • Recycling program

    If I recycle my ipod in an Apple retail store, would I be able to use the 10% off online?

  • Reinstalling Acrobat 11

    what causes configuration error 1 when reinstalling Acrobat 11 Pro on Imac OS 10.6.8 ?

  • Troubling (simple)  if  statement

    I have an if statement like this: if (session.getAttribute("userType") == "Admin") sql ="SELECT * FROM TABLE"; else sql = "SELECT * FROM TABLE WHERE user_type = ' " + session.getAttribute("userType") + " ' "; //This will not work , It never generates

  • StackOverflowError on bean deployment

    I have an ear file containing two jars which in turn contain a number of bean and support classes. There is also a third party jar included in the ear and referenced by the jar manifests. When i go to deploy on 8.1, I get a StackOverflowError with no

  • Application Panel Cancel button

    Hi, We are using Cancel button provided by Application Panel to navigate back to the previous page (From Create page to Search page). As we hit the cancel button, we launch a popup to continue or stay on the same page. As soon as the popup is launche