cancel
Showing results for 
Search instead for 
Did you mean: 

File Picker not appear in Alfresco2.9b

jlongi
Champ in-the-making
Champ in-the-making
Hi! 

I install this form to test file picker:

<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           elementFormDefault="qualified">
  <xs:element name="upload-simple">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="string_with_default" type="xs:normalizedString" default="default value"/>
        <xs:element name="file_from_element" type="xs:anyURI" minOccurs="1" maxOccurs="1"/>
        <xs:element name="file_from_element_with_default" type="xs:anyURI" default="/index.jsp"/>
      </xs:sequence>
      <xs:attribute name="file_from_attribute" type="xs:anyURI" use="required"/>
      <xs:attribute name="file_from_attribute_fixed" type="xs:anyURI" use="required" fixed="/index.jsp"/>
    </xs:complexType>
  </xs:element>
</xs:schema>


but this error found, when a treat to attach a file:

Estado HTTP 500 - Failed to execute method FilePickerBean.getFilePickerData: Exception in Transaction.
type Informe de estado
  mensaje Failed to execute method FilePickerBean.getFilePickerData: Exception in Transaction.
  descripción El servidor encontró un error interno (Failed to execute method FilePickerBean.getFilePickerData: Exception in Transaction.) que   hizo que no pudiera rellenar este requerimiento.


Someone can help me?
2 REPLIES 2

aperales
Champ in-the-making
Champ in-the-making
Hi!!!

I also have the same problem. I have used this line to test file picker on xform:

<xs:element name="picture" type="xs:anyURI" minOccurs="0" maxOccurs="unbounded"/>

Where is the problem? Someone can help us?

aperales
Champ in-the-making
Champ in-the-making
Hi!


In my alfresco.log can see this stacktrace:


Caused by: java.lang.NullPointerException

        at org.alfresco.web.bean.wcm.AVMUtil.getStoreName(AVMUtil.java:108)

        at org.alfresco.web.bean.wcm.AVMUtil.getCorrespondingPathInPreviewStore(AVMUtil.java:274)

        at org.alfresco.web.bean.wcm.FilePickerBean.getFilePickerData(FilePickerBean.java:144)


Somebody help me?

Thanks!