Error JAXB : XmlAccessType but found AccessType

When I execute xjc I have this error message :
parsing a schema...
compiling a schema...
Exception in thread "main" java.lang.IllegalArgumentException: Expected class ja
vax.xml.bind.annotation.XmlAccessType but found class javax.xml.bind.annotation.
AccessType
at com.sun.codemodel.TypedAnnotationWriter.checkType(TypedAnnotationWrit
er.java:187)
at com.sun.codemodel.TypedAnnotationWriter.invoke(TypedAnnotationWriter.
java:101)
at $Proxy0.value(Unknown Source)
at com.sun.tools.xjc.generator.bean.ImplStructureStrategy$1.createClasse
s(ImplStructureStrategy.java:46)
at com.sun.tools.xjc.generator.bean.BeanGenerator.generateClassDef(BeanG
enerator.java:371)
at com.sun.tools.xjc.generator.bean.BeanGenerator.getClazz(BeanGenerator
.java:403)
at com.sun.tools.xjc.generator.bean.BeanGenerator$1.onBean(BeanGenerator
.java:291)
at com.sun.tools.xjc.generator.bean.BeanGenerator$1.onBean(BeanGenerator
.java:299)
at com.sun.tools.xjc.model.CClassInfo.accept(CClassInfo.java:359)
at com.sun.tools.xjc.generator.bean.BeanGenerator.getContainer(BeanGener
ator.java:281)
at com.sun.tools.xjc.generator.bean.BeanGenerator.getUsedPackages(BeanGe
nerator.java:337)
at com.sun.tools.xjc.generator.bean.BeanGenerator.<init>(BeanGenerator.j
ava:169)
at com.sun.tools.xjc.generator.bean.BeanGenerator.generate(BeanGenerator
.java:151)
at com.sun.tools.xjc.model.Model.generateCode(Model.java:228)
at com.sun.tools.xjc.Driver.run(Driver.java:293)
at com.sun.tools.xjc.Driver.run(Driver.java:170)
at com.sun.tools.xjc.Driver._main(Driver.java:95)
at com.sun.tools.xjc.Driver.access$000(Driver.java:53)
at com.sun.tools.xjc.Driver$1.run(Driver.java:75)
I have JDK 1.6 & jwsdp 2.0
What is the matter? Did you have this Exception?
Tanks for help.

Instead of JWSDP 2.0 please use http://jaxb.dev.java.net/
http://forums.java.net/jive/thread.jspa?messageID=200030&tstart=0#200030

Similar Messages

  • [Solved] was getting errors with wine, but found patched linux version

    Installed wine for the first time, following the wiki and reading most of the things linked there (such as the winehq faq for disabling winemenubuilder), made separate WINEPREFIXs for 32 and 64 bit, then unzipped a program (Meritous) into the 32 bit prefix's "Program Files" and--
    [solitudesands@TheEntireBracadaDesert Meritousness]$ WINEPREFIX=~/w32 wine Meritous.exe
    wine: cannot find L"C:\\windows\\system32\\winemenubuilder.exe"
    err:wineboot:ProcessRunKeys Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (2)
    fixme:keyboard:X11DRV_LoadKeyboardLayout L"00000409", 0080: stub!
    fixme:keyboard:X11DRV_LoadKeyboardLayout L"00000409", 0001: stub!
    wine: Unhandled page fault on read access to 0x00000034 at address 0x7bc3c8a1 (thread 0009), starting debugger...
    At which point the bug reporting wine function pops up offering this:
    Unhandled exception: page fault on read access to 0x00000034 in 32-bit code (0x7bc3c8a1).
    Register dump:
    CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
    EIP:7bc3c8a1 ESP:005533c0 EBP:005533d8 EFLAGS:00010206( R- -- I - -P- )
    EAX:7e64c301 EBX:7bcc7000 ECX:005533f0 EDX:7e6d7280
    ESI:00000020 EDI:00000000
    Stack dump:
    0x005533c0: 00682af8 7bc3c896 005533f0 7e6cf000
    0x005533d0: 0067fb40 00000000 00553408 7e65e39c
    0x005533e0: 00553438 7e663856 7e64c301 7e65e39c
    0x005533f0: 00000020 00553410 00553448 7e65e374
    0x00553400: 00553420 7e6cf000 00553468 7e663e7f
    0x00553410: 00682af8 00682af8 00000040 7e663e7f
    000c: sel=0067 base=00000000 limit=00000000 16-bit r-x
    Backtrace:
    =>0 0x7bc3c8a1 RtlEnterCriticalSection+0x21() in ntdll (0x005533d8)
    1 0x7e65e39c MSVCRT__lock_file+0x3b() in msvcrt (0x00553408)
    2 0x7e663e7f MSVCRT_fread+0x5e() in msvcrt (0x00553468)
    3 0x00401b28 in meritous (+0x1b27) (0x0067fbd8)
    4 0x004213f6 in meritous (+0x213f5) (0x0067fc08)
    5 0x004215b7 in meritous (+0x215b6) (0x0067fd88)
    6 0x00420f0b in meritous (+0x20f0a) (0x0067fe00)
    7 0x0040122d in meritous (+0x122c) (0x0067fe20)
    8 0x00401258 in meritous (+0x1257) (0x0067fe30)
    9 0x7b85c48c call_process_entry+0xb() in kernel32 (0x0067fe48)
    10 0x7b85d54a in kernel32 (+0x4d549) (0x0067fe78)
    11 0x7bc7c610 call_thread_func_wrapper+0xb() in ntdll (0x0067fe98)
    12 0x7bc7f50f call_thread_func+0xde() in ntdll (0x0067ff88)
    13 0x7bc7c5ee RtlRaiseException+0x21() in ntdll (0x0067ffb8)
    14 0x7bc51441 call_dll_entry_point+0x440() in ntdll (0x0067ffd8)
    15 0xf7553a8d wine_call_on_stack+0x1c() in libwine.so.1 (0x00000000)
    16 0xf7553c0a wine_switch_to_stack+0x29() in libwine.so.1 (0xff90b0a8)
    17 0x7bc56bd5 LdrInitializeThunk+0x1f4() in ntdll (0xff90b0f8)
    18 0x7b8634f2 __wine_kernel_init+0x871() in kernel32 (0xff90c268)
    19 0x7bc57a33 __wine_process_init+0x162() in ntdll (0xff90c2d8)
    20 0xf7551643 wine_init+0x2f2() in libwine.so.1 (0xff90c348)
    21 0x7bf00db2 main+0x81() in <wine-loader> (0xff90c7a8)
    22 0xf738de5e __libc_start_main+0xdd() in libc.so.6 (0x00000000)
    0x7bc3c8a1 RtlEnterCriticalSection+0x21 in ntdll: movl 0x14(%esi),%eax
    Modules:
    Module Address Debug info Name (68 modules)
    PE 230000- 24a000 Deferred sdl_image
    PE 400000- 473000 Export meritous
    PE 10000000-10046000 Deferred sdl
    PE 60400000-60475000 Deferred sdl_mixer
    ELF 7b800000-7ba5a000 Dwarf kernel32<elf>
    \-PE 7b810000-7ba5a000 \ kernel32
    ELF 7bc00000-7bce4000 Dwarf ntdll<elf>
    \-PE 7bc10000-7bce4000 \ ntdll
    ELF 7bf00000-7bf04000 Dwarf <wine-loader>
    ELF 7dcbc000-7dce0000 Deferred imm32<elf>
    \-PE 7dcc0000-7dce0000 \ imm32
    ELF 7dd02000-7dd08000 Deferred libxfixes.so.3
    ELF 7dd08000-7dd13000 Deferred libxcursor.so.1
    ELF 7dd13000-7dd26000 Deferred libxi.so.6
    ELF 7dd26000-7dd2a000 Deferred libxcomposite.so.1
    ELF 7dd2a000-7dd35000 Deferred libxrandr.so.2
    ELF 7dd35000-7dd40000 Deferred libxrender.so.1
    ELF 7dd40000-7dd46000 Deferred libxxf86vm.so.1
    ELF 7dd46000-7dd4a000 Deferred libxinerama.so.1
    ELF 7dd4a000-7dd70000 Deferred libxcb.so.1
    ELF 7dd70000-7dea7000 Deferred libx11.so.6
    ELF 7dea7000-7debc000 Deferred libxext.so.6
    ELF 7dee0000-7df72000 Deferred winex11<elf>
    \-PE 7def0000-7df72000 \ winex11
    ELF 7df72000-7e090000 Deferred opengl32<elf>
    \-PE 7df90000-7e090000 \ opengl32
    ELF 7e090000-7e1cc000 Deferred wined3d<elf>
    \-PE 7e0a0000-7e1cc000 \ wined3d
    ELF 7e1cc000-7e240000 Deferred ddraw<elf>
    \-PE 7e1d0000-7e240000 \ ddraw
    ELF 7e253000-7e27c000 Deferred libexpat.so.1
    ELF 7e27c000-7e2b8000 Deferred libfontconfig.so.1
    ELF 7e2b8000-7e32b000 Deferred libpcre.so.1
    ELF 7e32b000-7e436000 Deferred libglib-2.0.so.0
    ELF 7e436000-7e492000 Deferred libharfbuzz.so.0
    ELF 7e492000-7e4d0000 Deferred libpng16.so.16
    ELF 7e4d0000-7e4e1000 Deferred libbz2.so.1.0
    ELF 7e4e1000-7e4f8000 Deferred libz.so.1
    ELF 7e4f8000-7e59c000 Deferred libfreetype.so.6
    ELF 7e59c000-7e601000 Deferred libncursesw.so.5
    ELF 7e625000-7e6d9000 Dwarf msvcrt<elf>
    \-PE 7e640000-7e6d9000 \ msvcrt
    ELF 7e6d9000-7e704000 Deferred msacm32<elf>
    \-PE 7e6e0000-7e704000 \ msacm32
    ELF 7e704000-7e786000 Deferred rpcrt4<elf>
    \-PE 7e710000-7e786000 \ rpcrt4
    ELF 7e786000-7e8bf000 Deferred ole32<elf>
    \-PE 7e7a0000-7e8bf000 \ ole32
    ELF 7e8bf000-7e930000 Deferred advapi32<elf>
    \-PE 7e8d0000-7e930000 \ advapi32
    ELF 7e930000-7ea51000 Deferred gdi32<elf>
    \-PE 7e940000-7ea51000 \ gdi32
    ELF 7ea51000-7eba7000 Deferred user32<elf>
    \-PE 7ea60000-7eba7000 \ user32
    ELF 7eba7000-7ec5e000 Deferred winmm<elf>
    \-PE 7ebb0000-7ec5e000 \ winmm
    ELF 7ef8f000-7efdc000 Deferred libm.so.6
    ELF 7efdf000-7efe6000 Deferred libxdmcp.so.6
    ELF 7efe6000-7f000000 Deferred version<elf>
    \-PE 7eff0000-7f000000 \ version
    ELF f734d000-f7352000 Deferred libdl.so.2
    ELF f7352000-f7360000 Deferred libnss_files.so.2
    ELF f7372000-f7376000 Deferred libxau.so.6
    ELF f7376000-f752e000 Dwarf libc.so.6
    ELF f752e000-f754a000 Deferred libpthread.so.0
    ELF f754a000-f7703000 Dwarf libwine.so.1
    ELF f7704000-f7728000 Deferred ld-linux.so.2
    ELF f7728000-f7729000 Deferred [vdso].so
    Threads:
    process tid prio (all id:s are in hex)
    00000008 (D) C:\Program Files\Meritousness\Meritous.exe
    00000009 0 <==
    0000000e services.exe
    0000001d 0
    0000001c 0
    00000016 0
    00000014 0
    00000010 0
    0000000f 0
    00000012 winedevice.exe
    0000001b 0
    00000018 0
    00000017 0
    00000013 0
    00000019 plugplay.exe
    0000001f 0
    0000001e 0
    0000001a 0
    00000020 explorer.exe
    00000021 0
    System information:
    Wine build: wine-1.7.28
    Platform: i386
    Host system: Linux
    Host version: 3.16.3-1-ARCH
    However, unlike the few dozen other threads also including "Unhandled page fault on read access", I don't have any other errors to work with, and my backtrace is 23 lines instead of the usual 2-3. I've tried 'pacman -Ss'  for various libraries and drivers like in the other threads, but there doesn't appear to be anything I'm missing. Also, the game isn't in the appdb, so I can't look there for help.
    I'm figuratively flying blind, from newbiness and from lack of understandable, so any more experience with random failures like this would be appreciated.
    Help?
    Edit: Oh, and if you're wondering why I don't just compile from source, it's because that version always crashes halfway through the game; I'll be copying my saves from that version to this one if I get it running.
    Last edited by Torignit (2014-10-15 11:04:00)

    You'd better choose to build it from the AUR with makepkg and install it with pacman:
    https://wiki.archlinux.org/index.php/AU … Guidelines
    But nice that you could now play with it.
    Concerning Wine: I didn't see this game in the WineHQ - Wine Application Database
    Maybe it doesn't work with Wine.
    Last edited by berbae (2014-10-16 09:52:19)

  • How to fix Syntax Error: Expected end of line, etc. but found end of script. in applescript?

    I am making an applescript for my modding tool for Minecraft. It used to use multiple apps and I am now trying to make one app for all the tasks.
    Here is the code:
    say "You are running iCraft version one point one for minecraft version 1.2.5"
    display dialog "Which tool do you want to use?" buttons {"Mod Installer", "Backup", "Restore"} default button 3
    set the button_pressed to the button returned of the result
    if the button_pressed is "Mod Installer" then
    do shell script "~/desktop/iCraft/iCraft.app/contents/re…
    display dialog "Insert all mod files into the Mods folder."
    display dialog "Have you inserted all Mod files into the Mods folder?" buttons {"Yes", "No"} default button 2
    if the button_pressed is "Yes" then
    do shell script "~/desktop/iCraft/iCraft.app/contents/re…
    display dialog "Finished"
    else
    display dialog "Insert mod files into the Mods folder and restart iCraft.app."
    end if
    if the button_pressed is "Backup" then
    display dialog "Are you sure you want to backup your Minecraft.jar in it's current state?" buttons {"Yes", "No"} default button 2
    if the button_pressed is "Yes" then
    do shell script "~/desktop/iCraft/iCraft.app/contents/re…
    display dialog "Finished, find it in your Backups directory in the iCraft folder"
    else
    display dialog "Backup aborted"
    end if
    if the button_pressed is "Restore" then
    display dialog "Are you sure you want to restore your Minecraft.jar with your backup?" buttons {"Yes", "No"} default button 2
    if the button_pressed is "Yes" then
    do shell script "~/desktop/iCraft/iCraft.app/resources/s…
    else
    display dialog "Restore aborted"
    end if
    end
    When I try to compile/run it gives me Syntax Error: Expected end of line, etc. but found end of script.

    Your script got mangled when pasting it into your message, but the main problem looks like you are missing a bunch of end if statements.  Unless your if statements are contained on one line, you need to terminate them with a matching end if statement - for example, the following are equivalent:
    if someString is "whatever" then display dialog "foo"
    if someString is "whatever" then
      display dialog "foo"
    end if

  • Error encountered while signing. Windows cryptographic service provider reported an error. Object not found. Error code:2148073489. Windows 7, Adobe Reader XI, Symantec PKI, Smart Card and CAC. I have seen other threads for this error but none have a reso

    Error encountered while signing. Windows cryptographic service provider reported an error. Object not found. Error code:2148073489. Windows 7, Adobe Reader XI, Symantec PKI, Smart Card and CAC. I have seen other threads for this error but none have a resolution. Any help would be appreciated.
    Sorry for the long title, first time poster here.

    This thread is pretty old, are you still having this issue?

  • Apple Script Editor, "Expected end of line but found identifier" Error

    Hello, I'm trying to automate an Application I have, called Self Control, since I have ADD and easily get distracted, and what I want to do is for my computer to automatically set the application up, but to do this, I need a script, which I have already done, but get this error, can someone help me fix this script?
    (the error happens once I click on "run", it tells me as follows: "Syntax Error", followed by, "Expected end of line but found identifier".
    on run argv
    set defaultTime to 1440
    try
      set myTime to item 1 of argv as number
    on error
      set myTime to defaultTime
    end try
    tell application "Usable Keychain Scripting"
      tell current keychain
       set myPass to (password of first generic item ¬
        whose name contains "SelfControl")
       -- eliminate invisible characters, or "gremlins," from password
       set x to quoted form of myPass
       set myPass to do shell script "echo " & x & " | perl -pe 's/[^[:print:]]//g'"
      end tell
    end tell
    tell application "SelfControl" to activate
    tell application "System Events"
      tell process "SelfControl"
       tell slider of window "SelfControl" to set value to myTime
       click button "Start" of window "SelfControl"
      end tell
      tell window 1 of process "SecurityAgent"
       with timeout of 15 seconds
        repeat
         set tryAgain to false
         try
          set value of text field 2 of scroll area 1 of group 1 to myPass
         on error
          delay 1
          set tryAgain to true
         end try
         if not tryAgain then exit repeat
        end repeat
        click button 2 of group 2
       end timeout
      end tell
    end tell
    end run
    I'm no coding expert, but your help would be greatly appreciated. I know that once the script is done I can automate it with Calendar, or even Quicksilver, I just need help with the script.
    Thanks in advance!

    This is a pain with Applescript.
    Could  be a missing " or ' .  I didn't notice this problem.
    Use (* and *) to comment out lines to find where the problem lays. Start big then go smaller and smaller until you find the problem line.  Search internet for examples of the line in question.

  • Error "expected end of line but found identifier"?

    I downloaded the project files for Apple's iDVD Companion http://www.apple.com/applescript/idvd/companion.html because I wanted to make some changes to it and rebuild it using Xcode.
    However, even it its original state the build fails under 10.4.10 and the current version of Applescript. Error is "expected end of line but found identifier" in one of the scripts. See screenshot:
    I don't understand why this Applescript is not compiling - has there been syntax changes in Applescript which stop this compiling? What is the correct syntax?
    Appreciate any pointers... thanks...
    G5 Desktop PPC 1.6 GHz   Mac OS X (10.4.8)  

    Perform a 'Find, Find in Project...' menu item ('Command <shift> F') search for 'Abstract object', and replace such with 'item'.
    However, once this resolves the compiling problem, you will experience a slew of AppleScript errors, when utilizing the compiled application.
    Note: Even the downloadable (pre-complied) 'iDVD Companion' application file has its share of incompatibilities.
    A lot has changed (with MacOS X and AppleScript) since 27.11.2001 - the creation date of the 'iDVD Companion' project.
      Mac OS X (10.4.6)  

  • Error: unexpected XML reader state. expected: END but found: START:

    I am getting following error while invoking method 'GetVersionInfo' (.net web service over dll) which takes one input parameter(string) and gives two output parameters(both short):
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception: deserialization
    error: unexpected XML reader state. expected: END but found: START:
    {UPPLink}pnVersionMajor
    ORA-06512: at "SYS.UTL_DBWS", line 388
    ORA-06512: at "SYS.UTL_DBWS", line 385
    ORA-06512: at line 40
    Expected Request is as follows:
    POST /UPPLink/UPPLink.asmx HTTP/1.1
    Host: 172.16.1.38
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    SOAPAction: "UPPLink/GetVersionInfo"
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <GetVersionInfo xmlns="UPPLink">
    <ignore>string</ignore>
    </GetVersionInfo>
    </soap:Body>
    </soap:Envelope>
    EXpected Response is as follows:
    HTTP/1.1 200 OK
    Content-Type: text/xml; charset=utf-8
    Content-Length: length
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <GetVersionInfoResponse xmlns="UPPLink">
    <GetVersionInfoResult>
    <pnVersionMajor>short</pnVersionMajor>
    <pnVersionMinor>short</pnVersionMinor>
    </GetVersionInfoResult>
    </GetVersionInfoResponse>
    </soap:Body>
    </soap:Envelope>
    The PL/SQL code I am using is as follows:
    DECLARE
    service_ sys.utl_dbws.SERVICE;
    call_ sys.UTL_DBWS.call;
    service_qname sys.utl_dbws.QNAME;
    port_qname sys.utl_dbws.QNAME;
    operation_qname sys.utl_dbws.QNAME;
    string_type_qname sys.utl_dbws.QNAME;
    number_type_qname sys.utl_dbws.QNAME;
    retx ANYDATA;
    strEntry VARCHAR2(100);
    retx_string VARCHAR2(100);
    majorVersion NUMBER;
    minorVersion NUMBER;
    params sys.utl_dbws.ANYDATA_LIST;
    v_outputs sys.utl_dbws.anydata_list;
    BEGIN
    dbms_output.put_line('Starting Function');
    service_qname := sys.utl_dbws.to_qname(null, 'UPPLink');
    strEntry := 'vab';
    dbms_output.put_line('Creating Service');
    service_ := sys.utl_dbws.create_service(HTTPURITYPE('http://172.16.1.38/UPPLink/UPPLink.asmx?WSDL'), service_qname);
    dbms_output.put_line('Creating Operation');
    operation_qname := sys.utl_dbws.to_qname(null, 'GetVersionInfo');
    dbms_output.put_line('Calling Service');
    call_ := sys.utl_dbws.create_call(service_, null, operation_qname);
    sys.utl_dbws.set_property(call_, 'SOAPACTION_USE', 'true');
    sys.utl_dbws.set_property(call_, 'SOAPACTION_URI', 'UPPLink/GetVersionInfo');
    sys.utl_dbws.set_property(call_, 'OPERATION_STYLE', 'rpc');
    string_type_qname := sys.utl_dbws.to_qname('http://www.w3.org/2001/XMLSchema', 'string');
    number_type_qname := sys.utl_dbws.to_qname('http://www.w3.org/2001/XMLSchema', 'short');
    sys.utl_dbws.add_parameter(call_, 'ignore', string_type_qname, 'ParameterMode.IN');
    sys.utl_dbws.add_parameter(call_, 'pnVersionMinor', number_type_qname, 'ParameterMode.OUT');
    sys.utl_dbws.set_return_type(call_, number_type_qname);
    params(0) := ANYDATA.convertvarchar2(strEntry);
    dbms_output.put('Invoking with Input Parameter: ');
    dbms_output.put_line(ANYDATA.ACCESSVARCHAR2(params(0)));
    retx := sys.utl_dbws.invoke(call_, params);
    dbms_output.put_line('Invoke complete');
    majorVersion := retx.accessnumber;
    dbms_output.put_line('Major Version ' || majorVersion);
    v_outputs := SYS.utl_dbws.get_output_values(call_);
    minorVersion := ANYDATA.AccessNumber(v_outputs(1));
    dbms_output.put_line('Minor Version ' || minorVersion);
    sys.utl_dbws.release_service(service_);
    END;
    /

    Actually, the name needs to match what is specified in the WSDL file.

  • Just downloaded Numbers spreadsheet... I entered a simple "if" statement...If(c2=0,9,7) just to see how it works.... But I get an error message "Argument 1 of if expects a Boolean but found "c2=0....This if statement works fine in Excel

    Just downloaded the Apple Numbers spreadsheet app... I entered this simple 'if' statement to see how it works.... "if(c2=0,9,7)...
    I got an error message.. "Argument 1 of if statement expects a Boolean but found "c2=0".
    This if statement works fine in Excel.....What am I doing wrong ????

    Just downloaded the Apple Numbers spreadsheet app... I entered this simple 'if' statement to see how it works.... "if(c2=0,9,7)...
    I got an error message.. "Argument 1 of if statement expects a Boolean but found "c2=0".
    This if statement works fine in Excel.....What am I doing wrong ????

  • Workaround for "Expected expression but found end of line" error

    I have the following code
    tell application "Mail"
    set mymailList to {"[email protected]", "[email protected]", "[email protected]"}
    set myattachmentList to {"Macintosh HD:Users:SAM:Desktop:A1.xls", "Macintosh HD:Users:SAM:Desktop:A2.xls", "Macintosh HD:Users:SAM:Desktop:A3.xls"}
    set n to count items in mymailList
    set i to 0
    repeat n times
    set i to i + 1
    set var1 to item i of mymailList
    set var2 to item i of myattachmentList as alias
    set newmessage to make new outgoing message with properties {visible:true, subject:"Report", content:"Blah Blah Blah"}
    tell newmessage
    set sender to "Sam <[email protected]>"
    set visible to true
    make new to recipient at end of to recipients with properties {address:var1}
    tell content to make new attachment with properties {file name:var2} at after last paragraph
    end tell
    activate
    send newmessage
    end repeat
    end tell
    I would like to be able to paste the MailList and MailAttatchmentList values from a spreadsheet so that it would look something like this:
    tell application "Mail"
    set mymailList to {
    "[email protected]",
    "[email protected]",
    "[email protected]"
    set myattachmentList to {
    "Macintosh HD:Users:SAM:Desktop:A1.xls",
    "Macintosh HD:Users:SAM:Desktop:A2.xls",
    "Macintosh HD:Users:SAM:Desktop:A3.xls"
    set n to count items in mymailList
    set i to 0
    repeat n times
    set i to i + 1
    set var1 to item i of mymailList
    set var2 to item i of myattachmentList as alias
    set newmessage to make new outgoing message with properties {visible:true, subject:"Report", content:"Blah Blah Blah"}
    tell newmessage
    set sender to "Sam <[email protected]>"
    set visible to true
    make new to recipient at end of to recipients with properties {address:var1}
    tell content to make new attachment with properties {file name:var2} at after last paragraph
    end tell
    activate
    send newmessage
    end repeat
    end tell
    Is there something that I can put at the end of each value so that I avoid the "Expected expression but found end of line" error?
    Thanks!
    Sam

    You didn't need to post the entire script - just an example of the list format would have done
    Anyway, AppleScript uses option-return as a 'soft' return/line continuation character, so:
    set mymailList to {¬
    "[email protected]",¬
    "[email protected]",¬
    "[email protected]
    (where ¬ indicates an option-return) will work. I'm just not sure off hand how you'd automatically insert option-return characters coming out of Excel...

  • This error (HTTP 404 Not Found) means that Internet Explorer was able to connect to the website, but the page you wanted was not found. It's possible that the webpage is temporarily unavailable. Alternatively, the website might have changed or removed the

    This error (HTTP 404 Not Found) means that Internet Explorer was able to connect to the website, but the page you wanted was not found. It's possible that the webpage is temporarily unavailable. Alternatively, the website might
    have changed or removed the webpage.
    For more information about HTTP errors, see Help.

    check this
    http://social.msdn.microsoft.com/Forums/en-US/5576aba1-d196-42ce-bd62-ad5ddfa3a8fd/this-error-http-404-not-found-means-that-internet-explorer-was-able-to-connect-to-the-website-but?forum=sharepointgeneralprevious

  • Syntax Error: Expected end of line but found end of script.

    display dialog "Are you awesome" buttons {"Yes", "No"} default button 1
    if the button returned of the result is "Yes" then
    tell application "Finder"
    display dialog "You Passed the Test" buttons {"YAY", "Poop nugets"} default button 1
    end tell
    display dialog "Cool" buttons {"Ok", "More Info"} default button 1
    if the button returned of the result is "More Info" then
    tell application "Finder"
    display dialog "You are obviously are awesome,
    100% Cool" buttons {"Ok"} default button 1
    end tell
    Then it says:
    Syntax error: Expected end of line but found end of script.

    can somebody fix this scrip becasue i am having the exact same problems
    tell application "SpeechRecognitionServer"
              set theResponse to listen for {"yes", "no"} with prompt "Hello Michael, Would you like the internet?"
              if theResponse is "yes" then
                        launch application "Google Chrome"
                        tell application "SpeechRecognitionServer"
                                  set theResponse to listen for {"yes", "no"} with prompt "What about a Calander?"
              if theResponse is "yes" then
                        launch application "ical"
                        tell application "SpeechRecognitionServer"
                                  set theResponse to listen for {"yes", "no"} with prompt "How about some iTunes Music?"
              if theResponse is "yes" then
                        launch application "itunes"
                        tell application "SpeechRecognitionServer"
                                  set theResponse to listen for {"yes","no"} with prompt "Would you like me to stop?"
              if theResponse is "no" then
                                  say "ok"
    else
              if theResponse is "no" then
                        exit repeat
    else
                                  exit repeat
    end
    end if
    end
    end if
    end
    end if
    end tell 

  • AppleScript Error: "Expected end of line but found identifier."

    Hi everyone,
    I'm new to applescript and can't seem to figure out the error here.
    Info: Using Hazel and iFlicks 2 Applications for this process.
    tell application "iFlicks 2" to launch
    delay 7
    tell application "iFlicks 2"
    update theFile dbID without gui
    end tell
    I get the error "Expected end of line but found identifier." for the red text.
    theFile reffers to the file that the actions are to be preformed on. This is a Hazel thing.
    Thank you!

    You need to look in the "iFlicks 2" dictionary.  This line isn't matching the syntax found in the dictionary.  I find reading a dictionary nearly impossible.
    update theFile dbID without gui

  • Deserialization error: unexpected XML reader state. expected: END but found

    I have a JWSDP (on weblogic 8.1 SP2) web service that is supposed to return a string that contains a small XML file. The client can call and invoke the service just fine and the service runs. When the client reads the response it blows up with the error below, what is causing this? The response looks okay to me.
    ====================================
    ERROR FROM THE CLIENT
    ====================================
    [java] java.rmi.RemoteException: Runtime exception; nested exception is:
    [java] deserialization error: unexpected XML reader state. expected: END but found: START: exchangeDataResult
    [java] at com.sun.xml.rpc.client.StreamingSender._handleRuntimeExceptionInSend(Ljava.lang.RuntimeExceptionV(StreamingSender.java:248)
    [java] at com.sun.xml.rpc.client.StreamingSender._send(Ljava.lang.String;Lcom.sun.xml.rpc.client.StreamingSenderStateV(StreamingSender.java:230)
    [java] at com.mcdata.websvc.riverbed.server.DataExchangerSoap_Stub.exchangeData(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.lang.StringLjava.lang.String;(DataExchangerSoap_Stub.java:70)
    [java] at jsp_compiled.__index._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponseV(__index.java:141)
    [java] at weblogic.servlet.jsp.JspBase.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponseV(JspBase.java:33)
    [java] at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:971)
    [java] at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImplV(ServletStubImpl.java:402)
    [java] at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponseV(ServletStubImpl.java:305)
    [java] at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.java:6350)
    [java] at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedActionLjava.lang.Object;(AuthenticatedSubject.java:317)
    [java] at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedActionLjava.lang.Object;(SecurityManager.java:118)
    [java] at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponseImplV(WebAppServletContext.java:3635)
    [java] at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThreadV(ServletRequestImpl.java:2585)
    [java] at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequestV(ExecuteThread.java:197)
    [java] at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:170)
    [java] at java.lang.Thread.startThreadFromVM(Ljava.lang.ThreadV(Unknown Source)
    [java] Caused by: deserialization error: unexpected XML reader state. expected: END but found: START: exchangeDataResult
    [java] at com.sun.xml.rpc.encoding.literal.LiteralSimpleTypeSerializer.deserialize(Ljavax.xml.namespace.QName;Lcom.sun.xml.rpc.streaming.XMLReader;Lcom.sun.xml.rpc.encoding.SOAPDeserializationContextLjava.lang.Object;(LiteralSimpleTypeSeri
    alizer.java:133)
    [java] at com.mcdata.websvc.riverbed.server.DataExchangerSoap_Stub._deserialize_exchangeData(Lcom.sun.xml.rpc.streaming.XMLReader;Lcom.sun.xml.rpc.encoding.SOAPDeserializationContext;Lcom.sun.xml.rpc.client.StreamingSenderStateV(DataExchan
    gerSoap_Stub.java:117)
    [java] at com.mcdata.websvc.riverbed.server.DataExchangerSoap_Stub._readFirstBodyElement(Lcom.sun.xml.rpc.streaming.XMLReader;Lcom.sun.xml.rpc.encoding.SOAPDeserializationContext;Lcom.sun.xml.rpc.client.StreamingSenderStateV(DataExchangerS
    oap_Stub.java:104)
    [java] at com.sun.xml.rpc.client.StreamingSender._send(Ljava.lang.String;Lcom.sun.xml.rpc.client.StreamingSenderStateV(StreamingSender.java:158)
    [java] ... 14 more
    ====================================
    SOAP RESPONSE
    ====================================
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <env:Header>
    </env:Header>
    <env:Body env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <m:exchangeDataResponse xmlns:m="https://partners.mcdata.com">
    <exchangeDataResult xsi:type="xsd:string"><status>OK</status>
    <message>Transaction accepted.</message></exchangeDataResult>
    </m:exchangeDataResponse>
    </env:Body>
    </env:Envelope>
    ====================================
    WSDL
    ====================================
    <?xml version="1.0" encoding="utf-8"?>
    <wsdl:definitions
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:tns="https://partners.mcdata.com"
    xmlns:s="http://www.w3.org/2001/XMLSchema"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    targetNamespace="https://partners.mcdata.com"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    name="">
    <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="https://partners.mcdata.com">
    <s:element name="exchangeData">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="sender" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="password" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="transactionType" type="s:string" />
    <s:element minOccurs="0" maxOccurs="1" name="data" type="s:string" />
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="exchangeDataResponse" type="s:string" />
    </s:schema>
    </wsdl:types>
    <wsdl:message name="exchangeDataSoapIn">
    <wsdl:part name="parameters" element="tns:exchangeData" />
    </wsdl:message>
    <wsdl:message name="exchangeDataSoapOut">
    <wsdl:part name="parameters" element="tns:exchangeDataResponse" />
    </wsdl:message>
    <wsdl:portType name="DataExchangerSoap">
    <wsdl:operation name="exchangeData">
    <wsdl:input message="tns:exchangeDataSoapIn" />
    <wsdl:output message="tns:exchangeDataSoapOut" />
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="DataExchangerSoap" type="tns:DataExchangerSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="exchangeData">
    <soap:operation soapAction="https://208.47.133.243/riverbedshipserver/exchangeData" style="document" />
    <wsdl:input>
    <soap:body use="literal" />
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal" />
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="DataExchanger">
    <wsdl:port name="DataExchangerSoap" binding="tns:DataExchangerSoap">
    <soap:address location="https://208.47.133.243/riverbedshipserver/exchangeData" />
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    ====================================
    web-services.xml
    ====================================
    <web-services>
    <web-service
    name="riverbedshipserver"
    targetNamespace="https://partners.mcdata.com"
    uri="exchangeData"
    >
    <components>
    <java-class name="DataExchanger" class-name="com.mcdata.websvc.riverbed.server.DataExchangerImpl"/>
    </components>
    <operations xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <operation name="exchangeData" component="DataExchanger" method="exchangeData">
    <params>
    <param name="sender" style="in" type="xsd:string" location="header"/>
    <param name="password" style="in" type="xsd:string" location="header"/>
    <param name="transactionType" style="in" type="xsd:string" location="header"/>
    <param name="data" style="in" type="xsd:string" location="header"/>
    <return-param name="exchangeDataResult" type="xsd:string"/>
    </params>
    </operation>
    </operations>
    </web-service>
    </web-services>

    This is caused by the response xml parameter is greater than the response parameter you have specified in your wsdl. Try to use packet monitoring to monitor all the process, you will notice that problems.

  • Hp 5535 will not scan, error message printer not found

    I have a HP Envy 5535. I have only been able to scan one time with it. I scanned 22 documents, after running HP Scan Doc 4.4. Each time the HP Scan Doc states that everything is OK, yet as soon as I try to do even a test scan, I get the error message "Printer not found." I have also tried to run this scan with my McAfee virus firewall off, and it still doesn't work. I have also identified it on McAfee as part of my network.
    This question was solved.
    View Solution.

    Hi @prazdancr,
    Welcome to the HP Forums!
    I am sorry that you cannot scan with your HP Envy 5535, but I am happy to help!
    For further assistance I will need to know:
    If you are using a Windows or Mac Operating System, and the version number. To find the exact version, visit this link. Whatsmyos.
    If the printer is connected, Wireless, or USB.
    If the printer is able to make copies by itself.
    If the power cable is plugged into a surge protector, or directly to the wall outlet. Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector. This applies to Inkjet printers as well.
    In the meantime, please try going through this scanning guide. A 'The computer is not responding' Error Message Displays During Scanning.
    Hope to hear from you soon, and have a nice day!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • PA-Hiring Error- No Valid Interval Found (Internal Number Assignment)

    Hello,
    Iam facing this issue at the time of hiring (IT0000). The internal number range (01) is maintained in transaction code PA04 from
    00000001 to 90000000     and ext check box is NOT checked.  In NUMKR , the return value of the feature is also 01 .
    Now the weird thing is i get this so called error " No Valid Interval Found (Internal Number Assignment)" but if i ignore the error and hit enter / save , it lets me save IT0000 and moves on to the next infotype in infogroup.
    has anyone faced this before? what could be the possible solution here? Any help would be greatly appreciated
    thank you in advance
    Reema

    Hey Reema,
    http://www.sapfans.com/forums/viewtopic.php?f=11&t=327031
    NUMKR-Feature
    I think these are similar threads and have the same problem as you. Hope Partha Murli picks this up or you might just mail him.
    cheers
    Ajay

Maybe you are looking for

  • HP Officejet Pro L7590 - print quality issue

    We've had a lot of problems with this unit since day one.  It simply wouldn't work with our XP computers.  Thankfully it does work with our new Windows 7 computer. The problem I'm having is that I have to clean the printheads at least once, if not tw

  • Print directly to the printer

    Hi Guys Could anyone correct me how can I print directly to the printer from this program ,I am getting short dump error when I select the radio button printer and execute it. Rgds PE

  • Transaction handling in sender JDBC adapter

    Hello, In a scenario where a third party application updates a field (counting it up) and we pick up these counts and zero out the field with the sender JDBC adapter, we would like that the third party application is not able to update while the JDBC

  • I had to boot my iMAC and now the FF 'cookies' folder is always always empty. How can I undo this? TNX

    My iMAC had the 'twirling circle' and I had to restart my Mac. After that, when I went to FireFox, (Preference -> show cookies), the show cookies (with the delete cookies option) comes up - but had no cookies listed. I KNOW hotmail won't work with ou

  • Images disappear while editing

    I've been experiencing disappearing images in Aperture while editing. Images just turn to white, black or grey while editing and nothing can be done short of a restart to recover them. Sometimes resizing the window or selecting a different tool can b