Gostaria de obter a documentação da pinagem do Bloco de Conexão SCB-100

Question in Portuguese

Olá Henrique, tudo bem?
Na verdade em nosso processo é exatamente isso: a NF de Importação é feita de maneira Writer (pois ela ocorre antes da recepção da mercadoria) e na entrada de fatura, não geramos a MIRO com a Categoria de NF, ou seja, apenas é feito o registro do documento de faturamento para gerar o Contas-a-pagar para o controle do Departamento Financeiro.
No nosso caso, optamos por utilizar transações Z (uma para que o Departamento de Suprimentos alimente as informações necessárias da DI com base no Pedido de Compra/Item registrados E outra para o Departamento Fiscal ligar as informações do Pedido/Item gerado por Suprimentos contra o Número de Documento Fiscal/Item criados da NF Writer). Depois, o Departamento Fiscal utiliza o processo "standard" SAP para a geração da NF-e de Importação (Desembaraço), através da "Determinação da NF-e" na transação do Monitor.
Por trás do sistema o que fizemos foi exatamente utilizar a BADI CL_NFE_PRINT, método FILL_ITEM, e conseguimos recuperar os dados de Importação e então mapeá-las nos campos necessários.
Não é lá a solução que eu imaginava (pois eu imaginava ser possível utilizar aquela aba Importação lá do Pedido de Compra, módulo SD-FT-PRO - Foreign Trade) mas funcionou no teste integrado e já está no ambiente de Produção, bem como a solução da NF-e 2.0, esta que implementamos "internamente", com as maiores complicações mesmo na parte do PI, uma vez que não temos especialistas aqui e eu acabei tendo que mergulhar na nota SAP e fazer acontecer!
Abraço e obrigado por seu "feedback"!
Daniel.

Similar Messages

  • Numero da linha - Grid - SAP

    Bom dia amigos! Sou novo aqui no forum SAP e gostaria de obter ajuda de vocês se possivel.
    Estou parametrizando o SAO Business One juntamente com um consultor SAP. Surgiu a necessidade de obter o numero da coluna que se encontra nos grids do SAP, ou seja, aquela coluna que tem a descrição igual "#".
    Bom, o que eu estou precisando é o seguinte:
    Na tela de Estrutura do produto, na linha da estrutura, criei um campo de usuário, onde nesse campo é preenchido com informações especificas da empresa para esse item. Na tela de OP, criei o mesmo campo de usuario, para que quando eu abrir uma O.P para essa estrutura, através de uma consulta formatada, eu consiga trazer para esse campo as informações que o usuario colocou na estrutura.
    O problema é o seguinte: Para cada linha da estrutura, eu posso ter uma informação diferente nesse campo do usuario, e pode ser também que eu tenha itens repetidos na estrtura, ou seja, o mesmo item varias vezes por razoes de politica e da engenharia da empresa, por exemplo:
    ChildNum........Item................Descrição...............CampoUsuario....................Qtde
    1....................00001............Item Teste ABC........Item para Teste1..................01
    2....................00002............Item Teste ZZZ........Item Teste.............................01
    3....................00010............Item Teste 888.........Item Teste do Usuario ..........03
    4....................00001............Item Teste ABC........Item para Teste2a.................01
    5....................00001............Item Teste ABC........Item para TesteZZZ..............01
    ou seja, o Item 00001 tenho 3 vezes nessa estrutura, porem a o CampoUsuario tem a descrição diferente mesmo sendo o mesmo item, certo?
    O que eu preciso, é quando eu lançar uma OP para essa estrutura, fazer um select em uma consulta formatada no campo do usuario e trazer essa informação do CampoUsuario para a linha correspondente na O.P. Na tabela de itens da estrutura (ITT1), temos o campo ChildNum onde é guardado o numero da linha da estrtura. Na tabela de itens da OP (WOR1), tambem tem um campo que é guardado o numero da linha (LineNum), porem esse campo só é preenchido depois de gravar no banco de dados, ou seja, não tenho como fazer a verificação do campo ITT1.ChildNum  com o WOR1.LineNum, pois como eu disse, o campo WOR1.LineNum está em branco no momento do lançamento. Tbem nao posso fazer a verificação pelo codigo do item, pois se eu fizer pelo codigo (no caso do item 00001) me traria 3 resultados: "Item para Teste1", "Item para Teste2a" e "Item para TesteZZZ". Então, para resolver esse problema eu pensei em fazer um select na tabela de estrtura do item, veriricando o numero da coluna (#) com o campo ChildNum da tabela ITT1. Alguem saberia me dizer como pegar o valor da coluna do Grid (#)? espero nao ter sido confuso na minha explicação.... desde ja, muito obrigado...
    's
    Otávio

    Só para completar, esse Select abaixo foi o que eu comentei em meu post, onde ele funcionaria somente depois de gravar a Ordem de Produção:
    SELECT T0.U_U_LG_DENOM
    FROM ITT1 T0
    WHERE T0.FATHER = $[OWOR.ITEMCODE]
    AND T0.CHILDNUM = $[WOR1.LINENUM]
    Obs: o campo "U_U_LG_DENOM" é o campo de usuário criado na tabela ITT1.
    Obrigado pessoal.
    's
    Otávio
    Edited by: otaviolussari on Nov 21, 2011 12:49 PM

  • Atualização do xml 3,10

    Boa tarde pessoal!
    Se possível, gostaria de uma orientação. A empresa onde trabalho tem conexão apenas com SEFAZ SP. Para atualizar o xml de 2,00 para 3,10 o que seria mais importante? Lembrando que não temos a automação da entrada. Utilizamos o GRC somente para as vendas.
    Além do SP16 (nota 1968460), precisaremos aplicar as notas 1933985 e 1933986?
    Muito obrigada,
    Fabiana

    Oi Fabiana!
    Quanto tempo? Estava sumida!
    Dê uma olhada na documentação...
    Liberado guide line para o layout 3.10
    Abraço
    Eduardo Chagas

  • Testar WebService - SOAMANAGER

    Olá pessoal,
    Estamos tentando testar um serviço criado com base em um módulo de função.
    Chamamos a transação SOAMANAGER, e através da ferramenta de administração de webservices tentamos testá-lo.
    Porém quando executamos a chamada no link  "Open Web Service Navigator for Selected Binding"  recebemos o seguinte erro:
    "Cannot download WSDL from http://?????/sap/bc/srt/wsdl/bndg_4B32361E291F39C2E10000000A060425/wsdl11/allinone/standard/document?sap-client=030: It is not allowed to access this service. If you believe you should be able to, please contact your system administrator "
    *?????? = nosso servidor.
    Gostaria de obter a configuração necessária para o WSNAVIGATOR também.
    Um abraço,

    Movendo para fórum correto
    Veja esta threads:
    Cannot download WSDL from  xxx -
    SOAMANGER: Cannot download WSDL
    Edited by: Fernando Ros on Jan 25, 2011 1:25 AM

  • Certificacao para ser um SAP Hosting Parnter

    Ola' Pessoal,
    gostaria de obter algumas informacoes relacionadas ao processo de certificacao para ser um SAP Hosting Partner, tais como:
    - macro plan
    - capacity plan
    - estimativas
    - qual o esforco para ser compliant em termos de plataforma, processos, etc
    obrigada
    Maristela

    Oi Maristela.
    Veja se é isso que procuras...
    http://partner.sap.com
    http://www.sap.com/ecosystem/partners/pdf/Software_Solution_Partners_Application_Checklist.pdf
    Abraço
    Eduardo

  • Qual monitor usar para mac mini

    Qual monitor é indicado para uso com Mac Mini, quero obter a melhor resolução usando a porta HDMI ou o adaptador sem perder qaulidade de imagem.
    Não esta claro que monitores usar ou o suporte para LED Full HD 1080 DPI.
    O SAC não sabe a resposta, tenho lido que a resolução não é boa em monitores nestas configurações.
    Gostaria de obter retorno com maiores esclarecimentos

    I get my Mini to tech support and the Logic Board was changed for a new one... I came home to start working but still there is no signal!!!!!!! I went to tech support... again.. they test it with the mini display port and works fine, then they told me to reset pram with the cmand alt P R keys... but nothings happens either...
    any ideas??????
    Message was edited by: Platactico

  • NEW Macbook with random RESTART! HELP!

    This is my second attempt to post as I had my 3rd random restart while typing!
    I have a week 36 MB. I waited to get my very 1st MAC until the last day of the free ipod deal...hoping I would get the MB that had been freed of the shutdown problems.Can someone please advise this newbie on what could be the problem? Do I start with calling applecare or just make an appt. at genius bar?
    Also, read in an old post that temp. might be the problem. I have only heard my fan come on once since i had this thing and it was befor I was experiencing my restarts. How do I check the operating temp. and what is considered too high?
    Thanks for any help!!!

    To check the temperature, do a Google search for "coreduotemp". Temperatures are subjective -- everyone's runs a bit different. Apple won't say anything about it. Intel has documentation that says the processor itself is OK up to 100'C. Personally, when my MacBook started RSD'ing, the temp wasn't any higher than normal.
    I'd follow kjk's advice and either give Apple a call or make an appt at your local Genius bar.
    RSD is a known issue and I'd be very surprised if the Genii (and the people at Apple's repair depots) can't replace heatsinks with their eyes closed by now.

  • PCI-DIO-32HS (PCI-6533) setup problem

    Hello
    I am in the process of setting up a Windows XP-based Labview 7.1 system and I am encountering a frustrating problem. Just to make sure I provide enough details, I'll describe what I've done so far, step-by-step (sorry if this gets tedious):
    First, I installed Labview and the NI-DAQ 7.3 drivers. I powered down the system and installed two PCI cards: a PCI-6031E and a PCI-DIO-32HS (PCI-6533) in PCI slots 1 and 2, respectively. I powered the system back up, went into MAX and configured the cards as follows:
    PCI-6031E: Device 1; AI: Polarity/Range=-10.0V - +10.0V, Referenced Single Ended; AO: Polarity=Bipolar; Accessory=SCB-100
    PCI-DIO-32HS: Device 2; Accessory=SCB-68
    I then started up Labview and ran my VI. This VI has been in use for 2 years now on the same NI hardware, so it's been well-tested and works great on other systems. However, when I run it on this system, the PCI-DIO-32HS spits out an error, with "Digital Buffer Write" as the source, and with a code of -10843 (buffer underflow).
    What's interesting is that I had this exact same problem when I was setting this system up in Mac OS 9. That time, I realized that the problem could have been due to the fact that I installed the hardware before I installed the software, so there may have been problems communicating with the device. By uninstalling everything and then re-installing it in the proper order, I solved the problem and was able to run the VI flawlessly. I'm assuming that these two problems are related in their nature, but this time around I was very careful to make sure that I did all of the setting up properly (I did it twice just to make sure. It did not work either time), so I'm not sure what could be the exact source of this one.
    Please let me know if you have any ideas as to what the source of this problem might be. Like I said before, I think there's probably a resource problem that's causing a communication failure which results in no data being sent to the DIO card (hence the buffer underflow error), but I can't figure out where to look for such a problem or how to fix it. Obviously, I'm rather new to Labview and everything about it, so the help is greatly appreciated.
    Thanks!

    Hi,
    Thanks for the reply. I have run the test panels, and I have not generated any errors in them. I've verified that I can definitely do output, because LEDs on my equipment turn on when turn on output on certain channels.
    So, I agree that the problem lies in the VI. I was not the author of the VI, however, so I'm not sure where to look. The author was also kind enough to have not provided any documentation. What would be a good example VI to run? I've never looked at any of them.
    As for how the program works, I don't believe there's any actual input coming back into the DIO-32HS. The system is used for electrophysiology. The DIO sends a signal to flash LEDs at given intervals. Electrodes then pick up an electrical signal from the retina of a mouse, which is sent to the DAQ card and written to a file. I have run complete tests, and proper data files were generated and contained expected voltage values. The only part that's not working right now is that the LEDs aren't flashing due to this error.
    I did some digging around in the program, but I couldn't come up with much. I verified that the program expects the DIO card to be Device 2, so there's no problem there. Aside from that, I couldn't find anything that seemed like it would apply.
    Thanks for your help! I have no experience with Labview, yet I've found myself placed in the "Labview expert" position over here, so I've kind of been forced into a sink-or-swim type crash course where I learn as I go.

  • Attach document from application server using BAPI

    Hi,
    I am trying to attach files to Document Info Record using BAPI
    BAPI_DOCUMENT_CHECKIN_REPLACE2. When i execute the z program that calls this BAPI on
    presentation server in foreground by giving path of documents which are locating on local pc it works
    fine and check in the file in document infor record
    But when i run program in background and file path is of application server.It gives error that
    Program no longer started via RFC. No return possible.
    I want to know the cause of this error.
    Please help.

    i think u need to pass Storage category  = FILESYSTEM.
    check the documentation of data element -
    DE CV_STORAGE_CAT
    but i'm not 100% sure abt it.
    regards
    Prabhu

  • Number of Connections in the JDeveloper

    //**Bad English
    I am working witch J2SE.
    I have one AplicationModule.
    I have one JDesktopePane that it has two JMenu.
    One window for country, other for State both in exactly ApplicationModule.
    When I open the two screens at the same time it I create two sessions in the bank. When I open one, closed it and I open to another one reaproveita it the previous session. I would like that my application always had in the maximum a connection with the bank. How to make this?
    //***Português
    Eu estou trabalhando com J2SE.
    Eu tenho 1 AplicationModule.
    Eu tenho um JDesktopPane que tem dois JMenu.
    Uma Janela para abrir País outra para estado, ambas com o mesmo aplicationmodule.
    Quando eu abro as duas telas ao mesmo tempo ele cria duas sessões no banco.
    Quando abro uma, fechou-a e abro a outra ele reaproveita a sessão anterior.
    Eu gostaria que minha aplicação sempre tivesse no máximo uma conexão com o banco. Como fazer isto ?
    Message was edited by:
    Edinei Manica

    Obs.
    I am creating two BindingContext, one for each window.
    And two times the command, one for each window.
    mgr.loadCpx("DataBindings.cpx", map);
    I also have two JUPanelBinding.
    Therefore, I not obtained used the exactly BindingContext for two Window.
    How decide this? I need only one conection for Aplication.

  • Gif to jpg help needed

    Hi,
    I have to convert a gif image to a jpg image but when I convert, the image size increases from 22 kbytes to 50 kbytes. is there a way I could convert the image without increasing the size in java?
    can somebody help me with this. I would be very glad if somebody could help me with this.
    I am using Jmagick for this.
    MagickImage.setFormat("jpg");
    I don't need it to be done using Jmagick, but if there is a way I would definitely like to know.
    Thanks,
    Samanth.

    The size of the JPG depends on the content of the image itself; in most cases, the JPG is smaller than the GIF, even with high quality images. The size of the JPG can be controlled by how much information you are willing to lose; this is controlled by a parameter called Quality.
    ImageMagick (and therefore JMagick, since this is only the Java interface to ImageMagick) has a parameter for setting the quality; in command-line tools, it is the parameter -quality; in programming, I think it is MagickSetCompressionQuality(); check the documentation. Quality ranges from 0 (lowest, barely recognizable) to 100 (highest)
    Without JMagick, you can use the built-in ImageIO
    //Read the file to a BufferedImage
    BufferedImage image = ImageIO.read(new File("c:/temp/image.gif"));
    Once you have the BufferedImage, you can write the image as a JPG. You will need to create a File object for the destination image. When calling the write() method, specify the type string as "jpg" (other formats are supported).
    ImageIO.write(image, "jpg", new File("c:/temp/image.jpg"));

  • Oracle Clusterware Configuration Assistant fails

    I am installing clusterware 11.1.0.6 and the runcluvfy commands all came back as passed, except for the VIP, which the documentation says to ignore. The whole install goes to 100%, then it runs the configuration assistants.
    It falls over on the first of these: Oracle Configuration Assistant. If I retry it, the same addition is placed in the logfile, as below:
    INFO: Starting to execute configuration assistants
    INFO: Command = C:\WINDOWS\system32\cmd /c call C:\oracle\11.1.0\crs/install/crssetup.config.bat
    clscfg: EXISTING configuration version 4 detected.
    clscfg: version 4 is 11 Release 1.
    Successfully accumulated necessary OCR keys.
    Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
    node <nodenumber>: <nodename> <private interconnect name> <hostname>
    node 1: vm-rac1 vm-rac1-priv vm-rac1
    node 2: vm-rac2 vm-rac2-priv vm-rac2
    clscfg: Arguments check out successfully.
    NO KEYS WERE WRITTEN. Supply -force parameter to override.
    -force is destructive and will destroy any previous cluster
    configuration.
    Step 1: checking status of CRS cluster
    Step 2: creating directories (C:\oracle\11.1.0\crs)
    Step 3: configuring OCR repository
    Oracle Cluster Registry already initialized
    Step 4: configuring safe mode for CRS stack
    Step 5: Starting up CRS stack on all nodes
    vm-rac1 failed to startup service OracleCSService, err(1068)
    vm-rac2 failed to startup service OracleCSService, err(1068)
    Command = C:\WINDOWS\system32\cmd /c call C:\oracle\11.1.0\crs/install/crssetup.config.bat has failed
    INFO: Configuration assistant "Oracle Clusterware Configuration Assistant" failed
    *** Starting OUICA ***
    Oracle Home set to C:\oracle\11.1.0\crs
    Configuration directory is set to C:\oracle\11.1.0\crs\cfgtoollogs. All xml files under the directory will be processed
    INFO: The "C:\oracle\11.1.0\crs\cfgtoollogs\configToolFailedCommands" script contains all commands that failed, were skipped or were cancelled. This file may be used to run these configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.
    INFO:
    The Runconfig command constructed is null
    INFO: Since the option is to overwrite the existing C:\oracle\11.1.0\crs\cfgtoollogs\configToolFailedCommands file, backing it up
    INFO: The backed up file name is C:\oracle\11.1.0\crs\cfgtoollogs\configToolFailedCommands.bak.1
    SEVERE: OUI-25031:Some of the configuration assistants failed/cancelled. It is strongly recommended that you retry the configuration assistants at this time. Not successfully running any "Recommended" assistants means your system will not be correctly configured.
    1. Check the Details panel on the Configuration Assistant Screen to see the errors resulting in the failures.
    2. Fix the errors causing these failures.
    3. Select the failed assistants and click the 'Retry' button to retry them.
    Please help.

    Sorry:
    alertvm-rac1.log:
    Oracle Database 11g CRS Release 11.1.0.6.0 - Production Copyright 1996, 2007 Oracle. All rights reserved.
    2009-05-20 15:44:25.531
    [client(3792)]CRS-1006:The OCR location \\.\ocrcfg is inaccessible. Details in C:\oracle\11.1.0\crs\log\vm-rac1\client\ocrconfig_3788.log.
    2009-05-20 15:44:25.609
    [client(3792)]CRS-1006:The OCR location \\.\ocrcfg is inaccessible. Details in C:\oracle\11.1.0\crs\log\vm-rac1\client\ocrconfig_3788.log.
    2009-05-20 15:44:25.671
    [client(3792)]CRS-1006:The OCR location \\.\ocrcfg is inaccessible. Details in C:\oracle\11.1.0\crs\log\vm-rac1\client\ocrconfig_3788.log.
    2009-05-20 15:44:25.687
    [client(3792)]CRS-1006:The OCR location \\.\ocrcfg is inaccessible. Details in C:\oracle\11.1.0\crs\log\vm-rac1\client\ocrconfig_3788.log.
    2009-05-20 15:44:28.921
    [client(3792)]CRS-1013:The OCR at \\.\ocrcfg was successfully formatted using version 2. Ignore earlier CRS-1006 messages if any.
    2009-05-20 15:44:40.875
    [client(3796)]CRS-1801:Cluster vm-rac_cluster configured with nodes vm-rac1 vm-rac2 .
    client\clscfg.log:
    Oracle Database 11g CRS Release 11.1.0.6.0 - Production Copyright 1996, 2007 Oracle. All rights reserved.
    2009-05-20 16:31:03.796: [  OCROSD][3196]utgdv:11:could not read reg value ocrmirrorconfig_loc os error= The system could not find the environment option that was entered.
    2009-05-20 16:31:03.812: [  OCROSD][3196]utgdv:11:could not read reg value ocrmirrorconfig_loc os error= The system could not find the environment option that was entered.
    2009-05-20 16:31:03.875: [  OCROSD][3196]utgdv:11:could not read reg value ocrmirrorconfig_loc os error= The system could not find the environment option that was entered.
    2009-05-20 16:31:03.875: [  OCROSD][3196]utgdv:11:could not read reg value ocrmirrorconfig_loc os error= The system could not find the environment option that was entered.
    2009-05-20 16:31:03.921: [  OCROSD][3196]utgdv:11:could not read reg value ocrmirrorconfig_loc os error= The system could not find the environment option that was entered.
    2009-05-20 16:31:03.937: [  OCROSD][3196]utgdv:11:could not read reg value ocrmirrorconfig_loc os error= The system could not find the environment option that was entered.
    client\clsfmt.log:
    Oracle Database 11g CRS Release 11.1.0.6.0 - Production Copyright 1996, 2007 Oracle. All rights reserved.
    2009-05-20 15:44:40.031: [  OCROSD][3872]utgdv:11:could not read reg value ocrmirrorconfig_loc os error= The system could not find the environment option that was entered.
    2009-05-20 15:44:40.031: [  OCROSD][3872]utgdv:11:could not read reg value ocrmirrorconfig_loc os error= The system could not find the environment option that was entered.
    2009-05-20 15:44:40.187: [  CLSFMT][3872]clsfmt: successfully initialized file \\.\votedsk1
    client\ocrconfig_3788.log:
    Oracle Database 11g CRS Release 11.1.0.6.0 - Production Copyright 1996, 2007 Oracle. All rights reserved.
    2009-05-20 15:44:25.453: [  OCROSD][3792]utgdv:11:could not read reg value ocrmirrorconfig_loc os error= The system could not find the environment option that was entered.
    2009-05-20 15:44:25.484: [  OCROSD][3792]utgdv:11:could not read reg value ocrmirrorconfig_loc os error= The system could not find the environment option that was entered.
    2009-05-20 15:44:25.484: [  OCRRAW][3792]propriogid:1: INVALID FORMAT
    2009-05-20 15:44:25.531: [  OCRRAW][3792]ibctx:1:ERROR: INVALID FORMAT
    2009-05-20 15:44:25.562: [  OCRRAW][3792]proprinit:problem reading the bootblock or superbloc 22
    2009-05-20 15:44:25.562: [ default][3792]a_init:7!: Backend init unsuccessful : [22]
    2009-05-20 15:44:25.562: [ OCRCONF][3792]ocrconfig starts...
    2009-05-20 15:44:25.578: [ OCRCONF][3792]Upgrading OCR data
    2009-05-20 15:44:25.609: [  OCROSD][3792]utgdv:11:could not read reg value ocrmirrorconfig_loc os error= The system could not find the environment option that was entered.
    2009-05-20 15:44:25.609: [  OCROSD][3792]utgdv:11:could not read reg value ocrmirrorconfig_loc os error= The system could not find the environment option that was entered.
    2009-05-20 15:44:25.609: [  OCRRAW][3792]propriogid:1: INVALID FORMAT
    2009-05-20 15:44:25.609: [  OCRRAW][3792]ibctx:1:ERROR: INVALID FORMAT
    2009-05-20 15:44:25.609: [  OCRRAW][3792]proprinit:problem reading the bootblock or superbloc 22
    2009-05-20 15:44:25.609: [ default][3792]a_init:7!: Backend init unsuccessful : [22]
    2009-05-20 15:44:25.609: [ OCRCONF][3792]Exporting OCR data to [OCRUPGRADEFILE]
    2009-05-20 15:44:25.640: [  OCRAPI][3792]a_init:7!: Backend init unsuccessful : [33]
    2009-05-20 15:44:25.640: [ OCRCONF][3792]There was no previous version of OCR. error:[PROC-33: Oracle Cluster Registry is not configured]
    2009-05-20 15:44:25.656: [  OCROSD][3792]utgdv:11:could not read reg value ocrmirrorconfig_loc os error= The system could not find the environment option that was entered.
    2009-05-20 15:44:25.671: [  OCROSD][3792]utgdv:11:could not read reg value ocrmirrorconfig_loc os error= The system could not find the environment option that was entered.
    2009-05-20 15:44:25.671: [  OCRRAW][3792]propriogid:1: INVALID FORMAT
    2009-05-20 15:44:25.671: [  OCRRAW][3792]ibctx:1:ERROR: INVALID FORMAT
    2009-05-20 15:44:25.671: [  OCRRAW][3792]proprinit:problem reading the bootblock or superbloc 22
    2009-05-20 15:44:25.671: [ default][3792]a_init:7!: Backend init unsuccessful : [22]
    2009-05-20 15:44:25.687: [  OCROSD][3792]utgdv:11:could not read reg value ocrmirrorconfig_loc os error= The system could not find the environment option that was entered.
    2009-05-20 15:44:25.687: [  OCROSD][3792]utgdv:11:could not read reg value ocrmirrorconfig_loc os error= The system could not find the environment option that was entered.
    2009-05-20 15:44:25.687: [  OCRRAW][3792]propriogid:1: INVALID FORMAT
    2009-05-20 15:44:25.687: [  OCRRAW][3792]ibctx:1:ERROR: INVALID FORMAT
    2009-05-20 15:44:25.687: [  OCRRAW][3792]proprinit:problem reading the bootblock or superbloc 22
    2009-05-20 15:44:25.687: [  OCROSD][3792]utgdv:11:could not read reg value ocrmirrorconfig_loc os error= The system could not find the environment option that was entered.
    2009-05-20 15:44:25.703: [  OCROSD][3792]utgdv:11:could not read reg value ocrmirrorconfig_loc os error= The system could not find the environment option that was entered.
    2009-05-20 15:44:25.703: [  OCRRAW][3792]propriogid:1: INVALID FORMAT
    2009-05-20 15:44:25.875: [  OCROSD][3792]utgdv:11:could not read reg value ocrmirrorconfig_loc os error= The system could not find the environment option that was entered.
    2009-05-20 15:44:25.921: [  OCRRAW][3792]propriowv: Vote information on disk 0 [\\.\ocrcfg] is adjusted from [0/0] to [2/2]
    2009-05-20 15:44:28.921: [  OCRRAW][3792]iniconfig:No 92 configuration
    2009-05-20 15:44:28.921: [  OCRAPI][3792]a_init:6a: Backend init successful
    2009-05-20 15:44:30.593: [ OCRCONF][3792]Initialized DATABASE keys in OCR
    2009-05-20 15:44:31.453: [ OCRCONF][3792]csetskgfrblock0: output from clsmft: [clsfmt: Failure trying to resize OCR file \\.\ocrcfg
    from 10725732864 bytes to 10725736448 bytes
    clsfmt: successfully initialized file \\.\ocrcfg
    g
    2009-05-20 15:44:31.531: [ OCRCONF][3792]Successfully set skgfr block 0
    2009-05-20 15:44:31.531: [ OCRCONF][3792]Exiting [status=success]...
    So, it seems to be all about the OCR not setup correctly, however, all I've done is follow the notes. This was a 'clean' VM install of win2003 Server, so nothing has been accidently tinkered with.

  • How to use CachedRowSet?

    I want to read the results of the query in pages and try to use OracleCachedRowSet for this purpose.
    this code example I found in the documentation to the Interface CachedRowSet of J5SE API:
    crs.setPageSize(100);
    crs.execute(conHandle);
    while(crs.next() {
    . . . // operate on first chunk of 100 rows in crs, row by row
    while(crs.nextPage()) {  // ERROR!!!
    while(crs.next()) {
    . . . // operate on the subsequent chunks (of 100 rows each) in crs,
    // row by row
    if I use this code example, I get an exception with message "Closed ResultSet" at the line where I call crs.nextPage():
    Exception in thread "main" java.sql.SQLException: Geschlossene Ergebnismenge: getMetaData
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
         at oracle.jdbc.driver.OracleResultSetImpl.getMetaData(OracleResultSetImpl.java:124)
         at oracle.jdbc.rowset.OracleCachedRowSet.populate(OracleCachedRowSet.java:1881)
         at oracle.jdbc.rowset.OracleCachedRowSet.nextPage(OracleCachedRowSet.java:7617)
         at test.TestRowSet.main(TestRowSet.java:31)
    what I do wrong?
    Thanks.

    sorry grif i didn't get you. Please can you explain
    more briefly.
    Exact Scenario is i have a dropdown for blood group
    and it is one of the column in cachedrowset. but i
    dont have another cachedrowset for selecting the
    bloodgroup like a+,b+,o+ etc. Simply i want to
    display all the above said feilds in that dropdown,
    but whenever i select the particular one it must be
    submitted. I hope you understand this time more
    clearly.Roman is correct in his response.
    You can either use an Options array as shown in http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/listbox_components.html or you can use the default options like you did when you completed getting started tutorial (see http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/jscintro.html#03)
    You bind the drop down list to your options and you bind the table column to the data provider column. This is very similar to what is done with trip type in http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/inserts_updates_deletes.html except that you use the Options array instead of another data provider.

  • Using JSplitPane for Comparing two Files/Contents

    Hi Java Gurus,
    I want to develope a Comparison tool which compares 2 jar files and report the difference in a user friendly manner. Everything is fine and i selected the JSplitPane to display the difference report. I face some problems in doing it exactly simillar way of presenting like a Comparison tools which is there in VSS.
    I created 2 panels and added in a splitpane.
    one panel contains the content of first jar file and another panel contains the content of second jar file.
    The content are added in a textarea and the textarea is added to a scrollpane, which is added to the panel.
    If i fix some size to Textarea, when i expand the Splitpane, the size is not getting expanded accordingly.
    if i remove the size for textarea, the content is not displayed.
    Can anyon give some suggestion.
    Have anybody developed a GUI using JSplitPane simmilar to any Difference Tool simillar to VSS.
    expecting your replies.
    Raffi

    Hi,
    Eventhough the left and right pane are not synchronized, It is showing the Differences.
    I have changed the JTextArea to JTextPane to have control on each of the String i am inserting.
    It is fine. but when i am doing the comparison for the second time, i am removing the content of the Document (of the JTextPane) and adding the new Content to the Document (of the JTextPane).
    While i am printing the length and text after removing the Old Content (in console), i am getting 0, "". But in the GUI old content are not removed and new content keeps on appending, eventhough i do updateUI() and validate().
    Is that a BUG of JTextPane?????????????
    Can any One Figure it out.
    My Code is Here:
    import java.io.*;
    import java.util.zip.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    * put your documentation comment here
    public class CheckZipFile extends JFrame {
    private JLabel firstZip = null;
    private JLabel secondZip = null;
    private JTextField firstZipName = null;
    private JTextField secondZipName = null;
    private JButton compare = null;
    private JPanel mainPanel = null;
    private JFileChooser fileChooser = null;
    private JButton chooseButton1 = null;
    private JButton chooseButton2 = null;
    private StringBuffer buffer = null;
    private StringBuffer buffer1 = null;
    private StringBuffer buffer2 = null;
    private ApolloFileFilter zipFilter;
    private JTextPane first = null;
    private JTextPane second = null;
    private Document doc1 = null;
    private Document doc = null;
    * put your documentation comment here
    public CheckZipFile () {
    initialize();
    buildGUI();
    addWindowListener();
    setLookAndFeel();
    this.pack();
    * put your documentation comment here
    private void initialize () {
    buffer = new StringBuffer();
    buffer1 = new StringBuffer();
    buffer2 = new StringBuffer();
    zipFilter = new ApolloFileFilter(new String[] {
    "zip", "jar"
    }, "ZIP and JAR Files");
    fileChooser = new JFileChooser(new File("c:\\"));
    //fileChooser.setAcceptAllFileFilterUsed(false);
    fileChooser.addChoosableFileFilter(zipFilter);
    * put your documentation comment here
    private void setLookAndFeel () {
    try {
    UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
    SwingUtilities.updateComponentTreeUI(this);
    if (fileChooser != null) {
    SwingUtilities.updateComponentTreeUI(fileChooser);
    } catch (UnsupportedLookAndFeelException exc) {
    System.out.println("Unsupported Look And Feel:" +
    exc);
    } catch (IllegalAccessException exc) {
    System.out.println("IllegalAccessException Error:"
    + exc);
    } catch (ClassNotFoundException exc) {
    System.out.println("ClassNotFoundException Error:"
    + exc);
    } catch (InstantiationException exc) {
    System.out.println("InstantiateException Error:"
    + exc);
    * put your documentation comment here
    private void buildGUI () {
    mainPanel = createPanel();
    this.getContentPane().setLayout(new BorderLayout());
    this.getContentPane().add(mainPanel, BorderLayout.CENTER);
    this.getContentPane().add(createDifferencePanel(), BorderLayout.SOUTH);
    this.setSize(700, 450);
    SwingUtilities.updateComponentTreeUI(this);
    * put your documentation comment here
    * @return
    private JPanel createPanel () {
    JPanel main = new JPanel() {
    * put your documentation comment here
    * @return
    public Dimension getPrefferedSize () {
    return new Dimension(300, 90);
    main.setLayout(new GridLayout(3, 3));
    firstZip = new JLabel("First Jar/Zip File:") {
    * put your documentation comment here
    * @return
    public Dimension getPrefferedSize () {
    return new Dimension(100, 30);
    main.add(firstZip);
    firstZipName = new JTextField() {
    * put your documentation comment here
    * @return
    public Dimension getPrefferedSize () {
    return new Dimension(100, 30);
    main.add(firstZipName);
    chooseButton1 = new JButton("Choose File 1") {
    * put your documentation comment here
    * @return
    public Dimension getPrefferedSize () {
    return new Dimension(100, 30);
    main.add(chooseButton1);
    chooseButton1.addActionListener(new ButtonListener());
    secondZip = new JLabel("Second Jar/Zip File:") {
    * put your documentation comment here
    * @return
    public Dimension getPrefferedSize () {
    return new Dimension(100, 30);
    main.add(secondZip);
    secondZipName = new JTextField() {
    * put your documentation comment here
    * @return
    public Dimension getPrefferedSize () {
    return new Dimension(100, 30);
    main.add(secondZipName);
    chooseButton2 = new JButton("Choose File 2") {
    * put your documentation comment here
    * @return
    public Dimension getPrefferedSize () {
    return new Dimension(100, 30);
    main.add(chooseButton2);
    chooseButton2.addActionListener(new ButtonListener());
    JLabel temp1 = new JLabel("") {
    * put your documentation comment here
    * @return
    public Dimension getPrefferedSize () {
    return new Dimension(100, 30);
    main.add(temp1);
    compare = new JButton("Compare") {
    * put your documentation comment here
    * @return
    public Dimension getPrefferedSize () {
    return new Dimension(100, 30);
    compare.addActionListener(new ButtonListener());
    main.add(compare);
    JLabel temp2 = new JLabel("") {
    * put your documentation comment here
    * @return
    public Dimension getPrefferedSize () {
    return new Dimension(100, 30);
    main.add(temp2);
    return main;
    * put your documentation comment here
    * @param fileContent1
    * @param fileContent2
    private void updateGUI (String fileContent1, String fileContent2) {
    System.out.println("Came here UpdateGUI");
    updateDifferencePanel(fileContent1, fileContent2);
    System.out.println("Came here UpdateGUI after call");
    SwingUtilities.updateComponentTreeUI(this);
    * put your documentation comment here
    * @return
    private JSplitPane createDifferencePanel () {
    JPanel firstPanel = new JPanel() {
    * put your documentation comment here
    * @return
    public Dimension getPrefferedSize () {
    return new Dimension(350, 360);
    first = new JTextPane();
    initStylesForTextPane(first);
    doc1 = first.getDocument();
    JScrollPane scroll1 = new JScrollPane(first);
    scroll1.setPreferredSize(new Dimension(325, 360));
    scroll1.setMinimumSize(new Dimension(100, 100));
    firstPanel.add(scroll1);
    first.updateUI();
    first.validate();
    JPanel secondPanel = new JPanel() {
    * put your documentation comment here
    * @return
    public Dimension getPrefferedSize () {
    return new Dimension(350, 360);
    second = new JTextPane();
    initStylesForTextPane(second);
    doc = second.getDocument();
    JScrollPane scroll2 = new JScrollPane(second);
    scroll2.setPreferredSize(new Dimension(325, 360));
    scroll2.setMinimumSize(new Dimension(100, 100));
    secondPanel.add(scroll2);
    second.updateUI();
    second.validate();
    JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
    firstPanel, secondPanel);
    splitPane.setDividerLocation(0.5);
    splitPane.updateUI();
    splitPane.validate();
    splitPane.setPreferredSize(new Dimension(700, 360));
    return splitPane;
    * put your documentation comment here
    * @param fileContent1
    * @param fileContent2
    private void updateDifferencePanel (String fileContent1,
    String fileContent2) {
    System.out.println("Came here");
    try {
    doc1 = first.getDocument();
    System.out.println("Text bef: " + first.getText());
    System.out.println("Length bef: " + doc1.getLength());
    doc1.remove(0, doc1.getLength());
    System.out.println("Length aft: " + doc1.getLength());
    System.out.println("Text aft: " + first.getText());
    doc1.insertString(doc1.getLength(), "test", first.getStyle("regular"));
    first.updateUI();
    first.validate();
    } catch (BadLocationException ble1) {
    ble1.printStackTrace();
    StringTokenizer tokens1 = new StringTokenizer(fileContent1,
    String token1 = "";
    String text1 = "";
    String differs1 = "false";
    int indexOfColon1 = -1;
    int count1 = 0;
    while (tokens1.hasMoreTokens()) {
    token1 = (String)tokens1.nextToken();
    count1++;
    indexOfColon1 = token1.lastIndexOf(":");
    text1 = token1.substring(0, indexOfColon1);
    differs1 = token1.substring(indexOfColon1 + 1);
    try {
    if (count1 == 1)
    System.out.println("Start: " + doc1.getLength());
    if (differs1.equals("true"))
    doc1.insertString(doc1.getLength(), text1
    + ":", first.getStyle("bold"));
    else
    doc1.insertString(doc1.getLength(), text1
    + ":", first.getStyle("regular"));
    if ((count1%3) == 0)
    doc1.insertString(doc1.getLength(), "\n",
    first.getStyle("regular"));
    } catch (BadLocationException ble1) {
    ble1.printStackTrace();
    first.updateUI();
    first.validate();
    try {
    System.out.println("Length bef: " + doc.getLength());
    doc.remove(0, doc.getLength());
    System.out.println("Length aft: " + doc.getLength());
    second.updateUI();
    second.validate();
    } catch (BadLocationException ble1) {
    ble1.printStackTrace();
    StringTokenizer tokens = new StringTokenizer(fileContent2,
    String token = "";
    String text = "";
    String differs = "false";
    int indexOfColon = -1;
    int count = 0;
    while (tokens.hasMoreTokens()) {
    token = (String)tokens.nextToken();
    count++;
    indexOfColon = token.lastIndexOf(":");
    text = token.substring(0, indexOfColon);
    differs = token.substring(indexOfColon + 1);
    try {
    if (differs.equals("true"))
    doc.insertString(doc.getLength(), text +
    ":", second.getStyle("bold"));
    else
    doc.insertString(doc.getLength(), text +
    ":", second.getStyle("regular"));
    if ((count%3) == 0)
    doc.insertString(doc.getLength(), "\n",
    second.getStyle("regular"));
    } catch (BadLocationException ble) {
    ble.printStackTrace();
    second.updateUI();
    second.validate();
    * put your documentation comment here
    * @param textPane
    protected void initStylesForTextPane (JTextPane textPane) {
    //Initialize some styles.
    Style def = StyleContext.getDefaultStyleContext().getStyle(StyleContext.DEFAULT_STYLE);
    Style regular = textPane.addStyle("regular", def);
    StyleConstants.setFontFamily(def, "SansSerif");
    Style s = textPane.addStyle("italic", regular);
    StyleConstants.setItalic(s, true);
    s = textPane.addStyle("bold", regular);
    StyleConstants.setBold(s, true);
    s = textPane.addStyle("small", regular);
    StyleConstants.setFontSize(s, 10);
    s = textPane.addStyle("large", regular);
    StyleConstants.setFontSize(s, 16);
    s = textPane.addStyle("icon", regular);
    StyleConstants.setAlignment(s, StyleConstants.ALIGN_CENTER);
    StyleConstants.setIcon(s, new ImageIcon("images/Pig.gif"));
    s = textPane.addStyle("button", regular);
    StyleConstants.setAlignment(s, StyleConstants.ALIGN_CENTER);
    JButton button = new JButton(new ImageIcon("images/sound.gif"));
    button.setMargin(new Insets(0, 0, 0, 0));
    button.addActionListener(new ActionListener() {
    * put your documentation comment here
    * @param e
    public void actionPerformed (ActionEvent e) {
    Toolkit.getDefaultToolkit().beep();
    StyleConstants.setComponent(s, button);
    * put your documentation comment here
    private void addWindowListener () {
    this.addWindowListener(new WindowAdapter() {
    * put your documentation comment here
    * @param we
    public void windowClosed (WindowEvent we) {
    CheckZipFile.this.dispose();
    System.exit(1);
    * put your documentation comment here
    * @param we
    public void windowClosing (WindowEvent we) {
    CheckZipFile.this.dispose();
    System.exit(1);
    * put your documentation comment here
    * @param argv[]
    * @exception Exception
    public static void main (String argv[]) throws Exception {
    CheckZipFile compareZip = new CheckZipFile();
    compareZip.pack();
    compareZip.setVisible(true);
    * put your documentation comment here
    public class ButtonListener
    implements ActionListener {
    * put your documentation comment here
    * @param ae
    public void actionPerformed (ActionEvent ae) {
    if (ae.getSource() == chooseButton1) {
    int retval = fileChooser.showDialog(CheckZipFile.this,
    "Select");
    if (retval == JFileChooser.APPROVE_OPTION) {
    File theFile = fileChooser.getSelectedFile();
    if (theFile != null) {
    File[] files = fileChooser.getSelectedFiles();
    if (fileChooser.isMultiSelectionEnabled()
    && files != null && files.length > 1) {
    String filenames = "";
    for (int i = 0; i < files.length; i++) {
    filenames = filenames + "\n"
    + files.getPath();
    JOptionPane.showMessageDialog(CheckZipFile.this,
    "You chose these files: \n"
    + filenames + "\n Multiple Selection Should not be done here");
    else if (theFile.isDirectory()) {
    JOptionPane.showMessageDialog(CheckZipFile.this,
    "You chose this directory: "
    + fileChooser.getSelectedFile().getPath()
    + "\n Please select a Zip File or jar File");
    else {
    JOptionPane.showMessageDialog(CheckZipFile.this,
    "You chose this file: " +
    fileChooser.getSelectedFile().getPath());
    firstZipName.setText(fileChooser.getSelectedFile().getPath());
    return;
    else if (retval == JFileChooser.CANCEL_OPTION) {
    JOptionPane.showMessageDialog(CheckZipFile.this,
    "User cancelled operation. No file was chosen.");
    else if (retval == JFileChooser.ERROR_OPTION) {
    JOptionPane.showMessageDialog(CheckZipFile.this,
    "An error occured. No file was chosen.");
    else {
    JOptionPane.showMessageDialog(CheckZipFile.this,
    "Unknown operation occured.");
    if (ae.getSource() == chooseButton2) {
    int retval = fileChooser.showDialog(CheckZipFile.this,
    "Select");
    if (retval == JFileChooser.APPROVE_OPTION) {
    File theFile = fileChooser.getSelectedFile();
    if (theFile != null) {
    File[] files = fileChooser.getSelectedFiles();
    if (fileChooser.isMultiSelectionEnabled()
    && files != null && files.length > 1) {
    String filenames = "";
    for (int i = 0; i < files.length; i++) {
    filenames = filenames + "\n"
    + files[i].getPath();
    JOptionPane.showMessageDialog(CheckZipFile.this,
    "You chose these files: \n"
    + filenames + "\n Multiple Selection Should not be done here");
    else if (theFile.isDirectory()) {
    JOptionPane.showMessageDialog(CheckZipFile.this,
    "You chose this directory: "
    + fileChooser.getSelectedFile().getPath()
    + "\n Please select a Zip File or jar File");
    else {
    JOptionPane.showMessageDialog(CheckZipFile.this,
    "You chose this file: " +
    fileChooser.getSelectedFile().getPath());
    secondZipName.setText(fileChooser.getSelectedFile().getPath());
    return;
    else if (retval == JFileChooser.CANCEL_OPTION) {
    JOptionPane.showMessageDialog(CheckZipFile.this,
    "User cancelled operation. No file was chosen.");
    else if (retval == JFileChooser.ERROR_OPTION) {
    JOptionPane.showMessageDialog(CheckZipFile.this,
    "An error occured. No file was chosen.");
    else {
    JOptionPane.showMessageDialog(CheckZipFile.this,
    "Unknown operation occured.");
    if (ae.getSource() == compare) {
    String file1 = firstZipName.getText();
    String file2 = secondZipName.getText();
    if (file1 == null || file2 == null) {
    JOptionPane.showMessageDialog(CheckZipFile.this,
    "Enter / Select the Files to be compared");
    return;
    if (file1.equals("") || file2.equals("")) {
    JOptionPane.showMessageDialog(CheckZipFile.this,
    "Enter / Select the Files to be compared");
    return;
    try {
    ZipFile zip1 = new ZipFile(file1);
    ZipFile zip2 = new ZipFile(file2);
    int size1 = zip1.size();
    int size2 = zip2.size();
    if (size1 != size2) {
    JOptionPane.showMessageDialog(CheckZipFile.this,
    "Size of both the jars are not same");
    return;
    Enumeration entries1 = zip1.entries();
    Enumeration entries2 = zip2.entries();
    ZipEntry entry1 = null;
    ZipEntry entry2 = null;
    String name1 = "";
    String name2 = "";
    long filesize1 = 0;
    long filesize2 = 0;
    long time1;
    long time2;
    //StringBuffer detail = new StringBuffer();
    boolean nameDiffers = false;
    boolean sizeDiffers = false;
    boolean timeDiffers = false;
    buffer.append(file1 + "\t\t\t" + file2 +
    "\n______________________________________________________________________\n");
    //buffer1.append("\t\t" + file1 + "\n");
    //buffer2.append("\t\t" + file2 + "\n");
    int length = buffer.length();
    for (int x = 0; x < size1; x++) {
    nameDiffers = false;
    sizeDiffers = false;
    timeDiffers = false;
    entry1 = (ZipEntry)entries1.nextElement();
    entry2 = (ZipEntry)entries2.nextElement();
    name1 = entry1.getName();
    name2 = entry2.getName();
    filesize1 = entry1.getSize();
    filesize2 = entry2.getSize();
    time1 = entry1.getTime();
    time2 = entry2.getTime();
    if (!name1.equals(name2)) {
    //System.out.println("Name of the Entries in both the Jars are not same:\n"+ entry1.getName() + " : " + entry2.getName() );
    nameDiffers = true;
    //return;
    //else
    //     System.out.println("Name: " +entry1.getName());
    if (filesize1 != filesize2) {
    //System.out.println("Size of the Entries in both the Jars are not same:\n"+ entry1.getSize() + " : " + entry2.getSize() );
    sizeDiffers = true;
    //return;
    if (time1 != time2) {
    //System.out.println("Time of the Entries in both the Jars are not same:\n"+ entry1.getTime() + " : " + entry2.getTime() );
    timeDiffers = true;
    //return;
    if (nameDiffers || sizeDiffers || timeDiffers) {
    if (filesize1 != 0 && filesize2 !=
    0) {
    buffer.append(name1 + ":" +
    filesize1 + ":" + new java.util.Date(time1)
    + "\t" + name2 + ":"
    + filesize2 + ":" +
    new java.util.Date(time2)
    + "\n");
    buffer1.append(name1 + ":" +
    nameDiffers + ";" +
    filesize1 + ":" + sizeDiffers
    + ";" + new java.util.Date(time1).toString()
    + ":" + timeDiffers +
    buffer2.append(name2 + ":" +
    nameDiffers + ";" +
    filesize2 + ":" + sizeDiffers
    + ";" + new java.util.Date(time2).toString()
    + ":" + timeDiffers +
    if (length == buffer.length())
    JOptionPane.showMessageDialog(CheckZipFile.this,
    "Both the Zip / Jar Files are Identical");
    else {
    getToolkit().beep();
    //System.out.println(buffer.toString());
    updateGUI(buffer1.toString(), buffer2.toString());
    getToolkit().beep();
    } catch (Exception ex) {
    ex.printStackTrace();

  • XmlNode.selectSingleNode(String pattern) - Java xml parser v.2

    Hi,
    I cannot understand how this method is supposed to be used :(
    I use it so:
    xmlNode.selectSingleNode("element[@name='some_name']") and I don't get a node as a result although I know such node exists. What the format of the pattern argument is supposed to be? The documentation is quite poor on this topic :(

    Your syntax is 100% correct.
    If the current node that your "xmlNode" variable refers to is the <XXXX> element below:
    <XXX>
    <element name="some_name"/>
    </XXX>
    Then xmlNode.selectSingleNode("element[@name='some_name']") will select the <element> element child.

Maybe you are looking for