How to fix ContentStreamUpdateRequest stream_size field errorHow do I efficiently iterate over each entry in a Java Map?How do I call one constructor from another in Java?How do I read / convert an InputStream into a String in Java?How do I generate random integers within a specific range in Java?How can I create an executable JAR with dependencies using Maven?Why does Java have transient fields?How do I determine whether an array contains a particular value in Java?How do I convert a String to an int in Java?How do I fix android.os.NetworkOnMainThreadException?How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor version
What kind of chart is this?
What preparations would Hubble have needed to return in a Shuttle?
Why is it 出差去 and not 去出差?
Draw a symmetric alien head
「捨ててしまう」why is there two て’s used here?
Predict the product from the reaction
Print the new site header
"Correct me if I'm wrong"
How to write a nice frame challenge?
I found a password with hashcat but it doesn't work
Does there exist a non-trivial group that is both perfect and complete?
Name for a function whose effect is canceled by another function?
Explicit song lyrics checker
What mathematical theory is required for high frequency trading?
Scaling an object to change its key
Why is it easier to balance a non-moving bike standing up than sitting down?
What does this Swiss black on yellow rectangular traffic sign with a symbol looking like a dart mean?
How can a warlock learn from a spellbook?
How did Frodo know where the Bree village was?
How would one carboxylate CBG into its acid form, CBGA?
How is the idea of "girlfriend material" naturally expressed in Russian?
Densest sphere packing
Definition of 'vrit'
In a list with unique pairs A, B, how can I sort them so that the last B is the first A in the next pair?
How to fix ContentStreamUpdateRequest stream_size field error
How do I efficiently iterate over each entry in a Java Map?How do I call one constructor from another in Java?How do I read / convert an InputStream into a String in Java?How do I generate random integers within a specific range in Java?How can I create an executable JAR with dependencies using Maven?Why does Java have transient fields?How do I determine whether an array contains a particular value in Java?How do I convert a String to an int in Java?How do I fix android.os.NetworkOnMainThreadException?How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor version
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I'm reading .xlsx file using Apache POI and I want to index this reading file in my solr core using ContenStreamUpdateRequest. But there is a problem. My codes are here. I'm putting every reading file in the ArrayList and the datas comes in ArrayList.
package org.solr;
import org.apache.poi.ss.usermodel.*;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import static org.junit.Assert.assertNotNull;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.time.format.DateTimeFormatter;
import java.util.Iterator;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.UUID;
import org.apache.solr.client.solrj.SolrClient;
import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.impl.HttpSolrClient;
import org.apache.solr.client.solrj.impl.XMLResponseParser;
import org.apache.solr.client.solrj.request.AbstractUpdateRequest;
import org.apache.solr.client.solrj.request.AbstractUpdateRequest.ACTION;
import org.apache.solr.client.solrj.request.ContentStreamUpdateRequest;
import org.apache.solr.client.solrj.request.UpdateRequest;
import org.apache.solr.client.solrj.response.UpdateResponse;
import org.apache.solr.common.SolrInputDocument;
import org.apache.solr.handler.dataimport.DateFormatTransformer;
import org.apache.solr.schema.DateValueFieldType;
public class PoiJava
private static final String fileName="C:\Users\FTK1187\Desktop\E-Archive - Copy\TableArchive.xlsx";
public static void main(String Args[]) throws SolrServerException, IOException
List dataList =new ArrayList();
FileInputStream excelFile=null;
try
excelFile = new FileInputStream(new File(fileName));
Workbook workbook = new XSSFWorkbook(excelFile);
Sheet datatypeSheet = workbook.getSheetAt(0);
Iterator<Row> iterator = datatypeSheet.iterator();
String urlString="http://localhost:8983/solr/archiveCore";
HttpSolrClient solr=new HttpSolrClient.Builder(urlString).build();
((HttpSolrClient) solr).setParser(new XMLResponseParser());
//SolrInputDocument document=new SolrInputDocument();
ContentStreamUpdateRequest req = new ContentStreamUpdateRequest("/update/extract");
solr.deleteByQuery("*");
solr.commit();
req.addFile(new File("C:\Users\FTK1187\Desktop\E-Archive - Copy\TableArchive.csv"),"text/csv");
while (iterator.hasNext())
Row currentRow = iterator.next();
Iterator<Cell> cellIterator = currentRow.iterator();
while (cellIterator.hasNext())
Cell currentCell = cellIterator.next();
//getCellTypeEnum shown as deprecated for version 3.15
//getCellTypeEnum ill be renamed to getCellType starting from version 4.0
if (currentCell.getCellTypeEnum() == CellType.NUMERIC)
//System.out.println(currentCell.getNumericCellValue());
ArrayList arrayID=new ArrayList();
arrayID.add(currentCell.getNumericCellValue());
for(int k=0;k<arrayID.size();k++)
if(currentCell.getColumnIndex()==0)
req.setParam("literal.id", String.valueOf(arrayID.get(k)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayID.get(k));
else if (currentCell.getCellTypeEnum() == CellType.STRING)
ArrayList arrayAll=new ArrayList();
arrayAll.add(currentCell.getStringCellValue());
for(int i=0;i<arrayAll.size();i++)
if(currentCell.getColumnIndex()==1)
ArrayList arrayNameAdded=new ArrayList();
arrayNameAdded.add(currentCell.getStringCellValue());
req.setParam("literal.NameAdded", String.valueOf(arrayNameAdded.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayNameAdded.get(i));
else if(currentCell.getColumnIndex()==2)
ArrayList arrayDateAdded=new ArrayList();
arrayDateAdded.add(currentCell.getStringCellValue());
req.setParam("literal.DateAdded", String.valueOf(arrayDateAdded.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayDateAdded.get(i));
else if(currentCell.getColumnIndex()==3)
ArrayList arrayNameModified=new ArrayList();
arrayNameModified.add(currentCell.getStringCellValue());
req.setParam("literal.NameModified", String.valueOf(arrayNameModified.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
else if(currentCell.getColumnIndex()==4)
ArrayList arrayDateModified=new ArrayList();
arrayDateModified.add(currentCell.getStringCellValue());
req.setParam("literal.DateModified", String.valueOf(arrayDateModified.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayDateModified.get(i));
else if(currentCell.getColumnIndex()==5)
ArrayList arraystrSO=new ArrayList();
arraystrSO.add(currentCell.getStringCellValue());
req.setParam("literal.strSO", String.valueOf(arraystrSO.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arraystrSO.get(i));
else if(currentCell.getColumnIndex()==6)
ArrayList arraystrCust=new ArrayList();
arraystrCust.add(currentCell.getStringCellValue());
req.setParam("literal.strCust", String.valueOf(arraystrCust.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
else if(currentCell.getColumnIndex()==7)
ArrayList arraystrOperator=new ArrayList();
arraystrOperator.add(currentCell.getStringCellValue());
req.setParam("literal.strOperator", String.valueOf(arraystrOperator.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
else if(currentCell.getColumnIndex()==8)
ArrayList arrayPackName=new ArrayList();
arrayPackName.add(currentCell.getStringCellValue());
req.setParam("literal.PackName", String.valueOf(arrayPackName.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayPackName.get(i));
else if(currentCell.getColumnIndex()==9)
ArrayList arrayDocName=new ArrayList();
arrayDocName.add(currentCell.getStringCellValue());
req.setParam("literal.DocName", String.valueOf(arrayDocName.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayDocName.get(i));
else if(currentCell.getColumnIndex()==10)
ArrayList arrayDocType=new ArrayList();
arrayDocType.add(currentCell.getStringCellValue());
req.setParam("literal.DocType", String.valueOf(arrayDocType.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayDocType.get(i));
else if(currentCell.getColumnIndex()==11)
ArrayList arrayextType=new ArrayList();
arrayextType.add(currentCell.getStringCellValue());
req.setParam("literal.extType", String.valueOf(arrayextType.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayextType.get(i));
else if(currentCell.getColumnIndex()==12)
ArrayList arrayFileName=new ArrayList();
arrayFileName.add(currentCell.getStringCellValue());
req.setParam("literal.FileName", String.valueOf(arrayFileName.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayFileName.get(i));
else if(currentCell.getColumnIndex()==13)
ArrayList arrayFilePath=new ArrayList();
arrayFilePath.add(currentCell.getStringCellValue());
req.setParam("literal.FilePath", String.valueOf(arrayFilePath.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayFilePath.get(i));
else if(currentCell.getColumnIndex()==14)
ArrayList arrayNameDeleted=new ArrayList();
arrayNameDeleted.add(currentCell.getStringCellValue());
req.setParam("literal.NameDeleted", String.valueOf(arrayNameDeleted.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
else if(currentCell.getColumnIndex()==15)
ArrayList arrayDateDeleted=new ArrayList();
arrayDateDeleted.add(currentCell.getStringCellValue());
req.setParam("literal.DateDeleted", String.valueOf(arrayDateDeleted.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
else if(currentCell.getColumnIndex()==16)
ArrayList arrayintRev=new ArrayList();
arrayintRev.add(currentCell.getStringCellValue());
req.setParam("literal.intRev", String.valueOf(arrayintRev.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayintRev.get(i));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
catch (FileNotFoundException e)
e.printStackTrace();
catch(IOException e)
e.printStackTrace();
And I'm getting this error. I don't have any field named like 'stream_size'. Why it gives me this error?
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
SLF4J: Failed to load class "org.slf4j.impl.StaticMDCBinder".
SLF4J: Defaulting to no-operation MDCAdapter implementation.
SLF4J: See http://www.slf4j.org/codes.html#no_static_mdc_binder for further details.
Exception in thread "main" org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr/archiveCore: ERROR: [doc=5927bfa2-0ee2-4cca-95cb-47ddccdb9285] unknown field 'stream_size'
at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:610)
at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:279)
at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:268)
at org.apache.solr.client.solrj.SolrClient.request(SolrClient.java:1219)
at org.solr.PoiJava.main(PoiJava.java:96)
java solr apache-poi solrj
add a comment |
I'm reading .xlsx file using Apache POI and I want to index this reading file in my solr core using ContenStreamUpdateRequest. But there is a problem. My codes are here. I'm putting every reading file in the ArrayList and the datas comes in ArrayList.
package org.solr;
import org.apache.poi.ss.usermodel.*;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import static org.junit.Assert.assertNotNull;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.time.format.DateTimeFormatter;
import java.util.Iterator;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.UUID;
import org.apache.solr.client.solrj.SolrClient;
import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.impl.HttpSolrClient;
import org.apache.solr.client.solrj.impl.XMLResponseParser;
import org.apache.solr.client.solrj.request.AbstractUpdateRequest;
import org.apache.solr.client.solrj.request.AbstractUpdateRequest.ACTION;
import org.apache.solr.client.solrj.request.ContentStreamUpdateRequest;
import org.apache.solr.client.solrj.request.UpdateRequest;
import org.apache.solr.client.solrj.response.UpdateResponse;
import org.apache.solr.common.SolrInputDocument;
import org.apache.solr.handler.dataimport.DateFormatTransformer;
import org.apache.solr.schema.DateValueFieldType;
public class PoiJava
private static final String fileName="C:\Users\FTK1187\Desktop\E-Archive - Copy\TableArchive.xlsx";
public static void main(String Args[]) throws SolrServerException, IOException
List dataList =new ArrayList();
FileInputStream excelFile=null;
try
excelFile = new FileInputStream(new File(fileName));
Workbook workbook = new XSSFWorkbook(excelFile);
Sheet datatypeSheet = workbook.getSheetAt(0);
Iterator<Row> iterator = datatypeSheet.iterator();
String urlString="http://localhost:8983/solr/archiveCore";
HttpSolrClient solr=new HttpSolrClient.Builder(urlString).build();
((HttpSolrClient) solr).setParser(new XMLResponseParser());
//SolrInputDocument document=new SolrInputDocument();
ContentStreamUpdateRequest req = new ContentStreamUpdateRequest("/update/extract");
solr.deleteByQuery("*");
solr.commit();
req.addFile(new File("C:\Users\FTK1187\Desktop\E-Archive - Copy\TableArchive.csv"),"text/csv");
while (iterator.hasNext())
Row currentRow = iterator.next();
Iterator<Cell> cellIterator = currentRow.iterator();
while (cellIterator.hasNext())
Cell currentCell = cellIterator.next();
//getCellTypeEnum shown as deprecated for version 3.15
//getCellTypeEnum ill be renamed to getCellType starting from version 4.0
if (currentCell.getCellTypeEnum() == CellType.NUMERIC)
//System.out.println(currentCell.getNumericCellValue());
ArrayList arrayID=new ArrayList();
arrayID.add(currentCell.getNumericCellValue());
for(int k=0;k<arrayID.size();k++)
if(currentCell.getColumnIndex()==0)
req.setParam("literal.id", String.valueOf(arrayID.get(k)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayID.get(k));
else if (currentCell.getCellTypeEnum() == CellType.STRING)
ArrayList arrayAll=new ArrayList();
arrayAll.add(currentCell.getStringCellValue());
for(int i=0;i<arrayAll.size();i++)
if(currentCell.getColumnIndex()==1)
ArrayList arrayNameAdded=new ArrayList();
arrayNameAdded.add(currentCell.getStringCellValue());
req.setParam("literal.NameAdded", String.valueOf(arrayNameAdded.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayNameAdded.get(i));
else if(currentCell.getColumnIndex()==2)
ArrayList arrayDateAdded=new ArrayList();
arrayDateAdded.add(currentCell.getStringCellValue());
req.setParam("literal.DateAdded", String.valueOf(arrayDateAdded.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayDateAdded.get(i));
else if(currentCell.getColumnIndex()==3)
ArrayList arrayNameModified=new ArrayList();
arrayNameModified.add(currentCell.getStringCellValue());
req.setParam("literal.NameModified", String.valueOf(arrayNameModified.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
else if(currentCell.getColumnIndex()==4)
ArrayList arrayDateModified=new ArrayList();
arrayDateModified.add(currentCell.getStringCellValue());
req.setParam("literal.DateModified", String.valueOf(arrayDateModified.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayDateModified.get(i));
else if(currentCell.getColumnIndex()==5)
ArrayList arraystrSO=new ArrayList();
arraystrSO.add(currentCell.getStringCellValue());
req.setParam("literal.strSO", String.valueOf(arraystrSO.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arraystrSO.get(i));
else if(currentCell.getColumnIndex()==6)
ArrayList arraystrCust=new ArrayList();
arraystrCust.add(currentCell.getStringCellValue());
req.setParam("literal.strCust", String.valueOf(arraystrCust.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
else if(currentCell.getColumnIndex()==7)
ArrayList arraystrOperator=new ArrayList();
arraystrOperator.add(currentCell.getStringCellValue());
req.setParam("literal.strOperator", String.valueOf(arraystrOperator.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
else if(currentCell.getColumnIndex()==8)
ArrayList arrayPackName=new ArrayList();
arrayPackName.add(currentCell.getStringCellValue());
req.setParam("literal.PackName", String.valueOf(arrayPackName.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayPackName.get(i));
else if(currentCell.getColumnIndex()==9)
ArrayList arrayDocName=new ArrayList();
arrayDocName.add(currentCell.getStringCellValue());
req.setParam("literal.DocName", String.valueOf(arrayDocName.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayDocName.get(i));
else if(currentCell.getColumnIndex()==10)
ArrayList arrayDocType=new ArrayList();
arrayDocType.add(currentCell.getStringCellValue());
req.setParam("literal.DocType", String.valueOf(arrayDocType.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayDocType.get(i));
else if(currentCell.getColumnIndex()==11)
ArrayList arrayextType=new ArrayList();
arrayextType.add(currentCell.getStringCellValue());
req.setParam("literal.extType", String.valueOf(arrayextType.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayextType.get(i));
else if(currentCell.getColumnIndex()==12)
ArrayList arrayFileName=new ArrayList();
arrayFileName.add(currentCell.getStringCellValue());
req.setParam("literal.FileName", String.valueOf(arrayFileName.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayFileName.get(i));
else if(currentCell.getColumnIndex()==13)
ArrayList arrayFilePath=new ArrayList();
arrayFilePath.add(currentCell.getStringCellValue());
req.setParam("literal.FilePath", String.valueOf(arrayFilePath.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayFilePath.get(i));
else if(currentCell.getColumnIndex()==14)
ArrayList arrayNameDeleted=new ArrayList();
arrayNameDeleted.add(currentCell.getStringCellValue());
req.setParam("literal.NameDeleted", String.valueOf(arrayNameDeleted.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
else if(currentCell.getColumnIndex()==15)
ArrayList arrayDateDeleted=new ArrayList();
arrayDateDeleted.add(currentCell.getStringCellValue());
req.setParam("literal.DateDeleted", String.valueOf(arrayDateDeleted.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
else if(currentCell.getColumnIndex()==16)
ArrayList arrayintRev=new ArrayList();
arrayintRev.add(currentCell.getStringCellValue());
req.setParam("literal.intRev", String.valueOf(arrayintRev.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayintRev.get(i));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
catch (FileNotFoundException e)
e.printStackTrace();
catch(IOException e)
e.printStackTrace();
And I'm getting this error. I don't have any field named like 'stream_size'. Why it gives me this error?
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
SLF4J: Failed to load class "org.slf4j.impl.StaticMDCBinder".
SLF4J: Defaulting to no-operation MDCAdapter implementation.
SLF4J: See http://www.slf4j.org/codes.html#no_static_mdc_binder for further details.
Exception in thread "main" org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr/archiveCore: ERROR: [doc=5927bfa2-0ee2-4cca-95cb-47ddccdb9285] unknown field 'stream_size'
at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:610)
at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:279)
at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:268)
at org.apache.solr.client.solrj.SolrClient.request(SolrClient.java:1219)
at org.solr.PoiJava.main(PoiJava.java:96)
java solr apache-poi solrj
Post your schema. I am sure there is no "stream_size" field in it.
– s1m3n
Mar 25 at 15:12
add a comment |
I'm reading .xlsx file using Apache POI and I want to index this reading file in my solr core using ContenStreamUpdateRequest. But there is a problem. My codes are here. I'm putting every reading file in the ArrayList and the datas comes in ArrayList.
package org.solr;
import org.apache.poi.ss.usermodel.*;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import static org.junit.Assert.assertNotNull;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.time.format.DateTimeFormatter;
import java.util.Iterator;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.UUID;
import org.apache.solr.client.solrj.SolrClient;
import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.impl.HttpSolrClient;
import org.apache.solr.client.solrj.impl.XMLResponseParser;
import org.apache.solr.client.solrj.request.AbstractUpdateRequest;
import org.apache.solr.client.solrj.request.AbstractUpdateRequest.ACTION;
import org.apache.solr.client.solrj.request.ContentStreamUpdateRequest;
import org.apache.solr.client.solrj.request.UpdateRequest;
import org.apache.solr.client.solrj.response.UpdateResponse;
import org.apache.solr.common.SolrInputDocument;
import org.apache.solr.handler.dataimport.DateFormatTransformer;
import org.apache.solr.schema.DateValueFieldType;
public class PoiJava
private static final String fileName="C:\Users\FTK1187\Desktop\E-Archive - Copy\TableArchive.xlsx";
public static void main(String Args[]) throws SolrServerException, IOException
List dataList =new ArrayList();
FileInputStream excelFile=null;
try
excelFile = new FileInputStream(new File(fileName));
Workbook workbook = new XSSFWorkbook(excelFile);
Sheet datatypeSheet = workbook.getSheetAt(0);
Iterator<Row> iterator = datatypeSheet.iterator();
String urlString="http://localhost:8983/solr/archiveCore";
HttpSolrClient solr=new HttpSolrClient.Builder(urlString).build();
((HttpSolrClient) solr).setParser(new XMLResponseParser());
//SolrInputDocument document=new SolrInputDocument();
ContentStreamUpdateRequest req = new ContentStreamUpdateRequest("/update/extract");
solr.deleteByQuery("*");
solr.commit();
req.addFile(new File("C:\Users\FTK1187\Desktop\E-Archive - Copy\TableArchive.csv"),"text/csv");
while (iterator.hasNext())
Row currentRow = iterator.next();
Iterator<Cell> cellIterator = currentRow.iterator();
while (cellIterator.hasNext())
Cell currentCell = cellIterator.next();
//getCellTypeEnum shown as deprecated for version 3.15
//getCellTypeEnum ill be renamed to getCellType starting from version 4.0
if (currentCell.getCellTypeEnum() == CellType.NUMERIC)
//System.out.println(currentCell.getNumericCellValue());
ArrayList arrayID=new ArrayList();
arrayID.add(currentCell.getNumericCellValue());
for(int k=0;k<arrayID.size();k++)
if(currentCell.getColumnIndex()==0)
req.setParam("literal.id", String.valueOf(arrayID.get(k)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayID.get(k));
else if (currentCell.getCellTypeEnum() == CellType.STRING)
ArrayList arrayAll=new ArrayList();
arrayAll.add(currentCell.getStringCellValue());
for(int i=0;i<arrayAll.size();i++)
if(currentCell.getColumnIndex()==1)
ArrayList arrayNameAdded=new ArrayList();
arrayNameAdded.add(currentCell.getStringCellValue());
req.setParam("literal.NameAdded", String.valueOf(arrayNameAdded.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayNameAdded.get(i));
else if(currentCell.getColumnIndex()==2)
ArrayList arrayDateAdded=new ArrayList();
arrayDateAdded.add(currentCell.getStringCellValue());
req.setParam("literal.DateAdded", String.valueOf(arrayDateAdded.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayDateAdded.get(i));
else if(currentCell.getColumnIndex()==3)
ArrayList arrayNameModified=new ArrayList();
arrayNameModified.add(currentCell.getStringCellValue());
req.setParam("literal.NameModified", String.valueOf(arrayNameModified.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
else if(currentCell.getColumnIndex()==4)
ArrayList arrayDateModified=new ArrayList();
arrayDateModified.add(currentCell.getStringCellValue());
req.setParam("literal.DateModified", String.valueOf(arrayDateModified.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayDateModified.get(i));
else if(currentCell.getColumnIndex()==5)
ArrayList arraystrSO=new ArrayList();
arraystrSO.add(currentCell.getStringCellValue());
req.setParam("literal.strSO", String.valueOf(arraystrSO.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arraystrSO.get(i));
else if(currentCell.getColumnIndex()==6)
ArrayList arraystrCust=new ArrayList();
arraystrCust.add(currentCell.getStringCellValue());
req.setParam("literal.strCust", String.valueOf(arraystrCust.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
else if(currentCell.getColumnIndex()==7)
ArrayList arraystrOperator=new ArrayList();
arraystrOperator.add(currentCell.getStringCellValue());
req.setParam("literal.strOperator", String.valueOf(arraystrOperator.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
else if(currentCell.getColumnIndex()==8)
ArrayList arrayPackName=new ArrayList();
arrayPackName.add(currentCell.getStringCellValue());
req.setParam("literal.PackName", String.valueOf(arrayPackName.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayPackName.get(i));
else if(currentCell.getColumnIndex()==9)
ArrayList arrayDocName=new ArrayList();
arrayDocName.add(currentCell.getStringCellValue());
req.setParam("literal.DocName", String.valueOf(arrayDocName.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayDocName.get(i));
else if(currentCell.getColumnIndex()==10)
ArrayList arrayDocType=new ArrayList();
arrayDocType.add(currentCell.getStringCellValue());
req.setParam("literal.DocType", String.valueOf(arrayDocType.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayDocType.get(i));
else if(currentCell.getColumnIndex()==11)
ArrayList arrayextType=new ArrayList();
arrayextType.add(currentCell.getStringCellValue());
req.setParam("literal.extType", String.valueOf(arrayextType.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayextType.get(i));
else if(currentCell.getColumnIndex()==12)
ArrayList arrayFileName=new ArrayList();
arrayFileName.add(currentCell.getStringCellValue());
req.setParam("literal.FileName", String.valueOf(arrayFileName.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayFileName.get(i));
else if(currentCell.getColumnIndex()==13)
ArrayList arrayFilePath=new ArrayList();
arrayFilePath.add(currentCell.getStringCellValue());
req.setParam("literal.FilePath", String.valueOf(arrayFilePath.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayFilePath.get(i));
else if(currentCell.getColumnIndex()==14)
ArrayList arrayNameDeleted=new ArrayList();
arrayNameDeleted.add(currentCell.getStringCellValue());
req.setParam("literal.NameDeleted", String.valueOf(arrayNameDeleted.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
else if(currentCell.getColumnIndex()==15)
ArrayList arrayDateDeleted=new ArrayList();
arrayDateDeleted.add(currentCell.getStringCellValue());
req.setParam("literal.DateDeleted", String.valueOf(arrayDateDeleted.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
else if(currentCell.getColumnIndex()==16)
ArrayList arrayintRev=new ArrayList();
arrayintRev.add(currentCell.getStringCellValue());
req.setParam("literal.intRev", String.valueOf(arrayintRev.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayintRev.get(i));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
catch (FileNotFoundException e)
e.printStackTrace();
catch(IOException e)
e.printStackTrace();
And I'm getting this error. I don't have any field named like 'stream_size'. Why it gives me this error?
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
SLF4J: Failed to load class "org.slf4j.impl.StaticMDCBinder".
SLF4J: Defaulting to no-operation MDCAdapter implementation.
SLF4J: See http://www.slf4j.org/codes.html#no_static_mdc_binder for further details.
Exception in thread "main" org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr/archiveCore: ERROR: [doc=5927bfa2-0ee2-4cca-95cb-47ddccdb9285] unknown field 'stream_size'
at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:610)
at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:279)
at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:268)
at org.apache.solr.client.solrj.SolrClient.request(SolrClient.java:1219)
at org.solr.PoiJava.main(PoiJava.java:96)
java solr apache-poi solrj
I'm reading .xlsx file using Apache POI and I want to index this reading file in my solr core using ContenStreamUpdateRequest. But there is a problem. My codes are here. I'm putting every reading file in the ArrayList and the datas comes in ArrayList.
package org.solr;
import org.apache.poi.ss.usermodel.*;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import static org.junit.Assert.assertNotNull;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.time.format.DateTimeFormatter;
import java.util.Iterator;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.UUID;
import org.apache.solr.client.solrj.SolrClient;
import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.impl.HttpSolrClient;
import org.apache.solr.client.solrj.impl.XMLResponseParser;
import org.apache.solr.client.solrj.request.AbstractUpdateRequest;
import org.apache.solr.client.solrj.request.AbstractUpdateRequest.ACTION;
import org.apache.solr.client.solrj.request.ContentStreamUpdateRequest;
import org.apache.solr.client.solrj.request.UpdateRequest;
import org.apache.solr.client.solrj.response.UpdateResponse;
import org.apache.solr.common.SolrInputDocument;
import org.apache.solr.handler.dataimport.DateFormatTransformer;
import org.apache.solr.schema.DateValueFieldType;
public class PoiJava
private static final String fileName="C:\Users\FTK1187\Desktop\E-Archive - Copy\TableArchive.xlsx";
public static void main(String Args[]) throws SolrServerException, IOException
List dataList =new ArrayList();
FileInputStream excelFile=null;
try
excelFile = new FileInputStream(new File(fileName));
Workbook workbook = new XSSFWorkbook(excelFile);
Sheet datatypeSheet = workbook.getSheetAt(0);
Iterator<Row> iterator = datatypeSheet.iterator();
String urlString="http://localhost:8983/solr/archiveCore";
HttpSolrClient solr=new HttpSolrClient.Builder(urlString).build();
((HttpSolrClient) solr).setParser(new XMLResponseParser());
//SolrInputDocument document=new SolrInputDocument();
ContentStreamUpdateRequest req = new ContentStreamUpdateRequest("/update/extract");
solr.deleteByQuery("*");
solr.commit();
req.addFile(new File("C:\Users\FTK1187\Desktop\E-Archive - Copy\TableArchive.csv"),"text/csv");
while (iterator.hasNext())
Row currentRow = iterator.next();
Iterator<Cell> cellIterator = currentRow.iterator();
while (cellIterator.hasNext())
Cell currentCell = cellIterator.next();
//getCellTypeEnum shown as deprecated for version 3.15
//getCellTypeEnum ill be renamed to getCellType starting from version 4.0
if (currentCell.getCellTypeEnum() == CellType.NUMERIC)
//System.out.println(currentCell.getNumericCellValue());
ArrayList arrayID=new ArrayList();
arrayID.add(currentCell.getNumericCellValue());
for(int k=0;k<arrayID.size();k++)
if(currentCell.getColumnIndex()==0)
req.setParam("literal.id", String.valueOf(arrayID.get(k)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayID.get(k));
else if (currentCell.getCellTypeEnum() == CellType.STRING)
ArrayList arrayAll=new ArrayList();
arrayAll.add(currentCell.getStringCellValue());
for(int i=0;i<arrayAll.size();i++)
if(currentCell.getColumnIndex()==1)
ArrayList arrayNameAdded=new ArrayList();
arrayNameAdded.add(currentCell.getStringCellValue());
req.setParam("literal.NameAdded", String.valueOf(arrayNameAdded.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayNameAdded.get(i));
else if(currentCell.getColumnIndex()==2)
ArrayList arrayDateAdded=new ArrayList();
arrayDateAdded.add(currentCell.getStringCellValue());
req.setParam("literal.DateAdded", String.valueOf(arrayDateAdded.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayDateAdded.get(i));
else if(currentCell.getColumnIndex()==3)
ArrayList arrayNameModified=new ArrayList();
arrayNameModified.add(currentCell.getStringCellValue());
req.setParam("literal.NameModified", String.valueOf(arrayNameModified.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
else if(currentCell.getColumnIndex()==4)
ArrayList arrayDateModified=new ArrayList();
arrayDateModified.add(currentCell.getStringCellValue());
req.setParam("literal.DateModified", String.valueOf(arrayDateModified.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayDateModified.get(i));
else if(currentCell.getColumnIndex()==5)
ArrayList arraystrSO=new ArrayList();
arraystrSO.add(currentCell.getStringCellValue());
req.setParam("literal.strSO", String.valueOf(arraystrSO.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arraystrSO.get(i));
else if(currentCell.getColumnIndex()==6)
ArrayList arraystrCust=new ArrayList();
arraystrCust.add(currentCell.getStringCellValue());
req.setParam("literal.strCust", String.valueOf(arraystrCust.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
else if(currentCell.getColumnIndex()==7)
ArrayList arraystrOperator=new ArrayList();
arraystrOperator.add(currentCell.getStringCellValue());
req.setParam("literal.strOperator", String.valueOf(arraystrOperator.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
else if(currentCell.getColumnIndex()==8)
ArrayList arrayPackName=new ArrayList();
arrayPackName.add(currentCell.getStringCellValue());
req.setParam("literal.PackName", String.valueOf(arrayPackName.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayPackName.get(i));
else if(currentCell.getColumnIndex()==9)
ArrayList arrayDocName=new ArrayList();
arrayDocName.add(currentCell.getStringCellValue());
req.setParam("literal.DocName", String.valueOf(arrayDocName.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayDocName.get(i));
else if(currentCell.getColumnIndex()==10)
ArrayList arrayDocType=new ArrayList();
arrayDocType.add(currentCell.getStringCellValue());
req.setParam("literal.DocType", String.valueOf(arrayDocType.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayDocType.get(i));
else if(currentCell.getColumnIndex()==11)
ArrayList arrayextType=new ArrayList();
arrayextType.add(currentCell.getStringCellValue());
req.setParam("literal.extType", String.valueOf(arrayextType.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayextType.get(i));
else if(currentCell.getColumnIndex()==12)
ArrayList arrayFileName=new ArrayList();
arrayFileName.add(currentCell.getStringCellValue());
req.setParam("literal.FileName", String.valueOf(arrayFileName.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayFileName.get(i));
else if(currentCell.getColumnIndex()==13)
ArrayList arrayFilePath=new ArrayList();
arrayFilePath.add(currentCell.getStringCellValue());
req.setParam("literal.FilePath", String.valueOf(arrayFilePath.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayFilePath.get(i));
else if(currentCell.getColumnIndex()==14)
ArrayList arrayNameDeleted=new ArrayList();
arrayNameDeleted.add(currentCell.getStringCellValue());
req.setParam("literal.NameDeleted", String.valueOf(arrayNameDeleted.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
else if(currentCell.getColumnIndex()==15)
ArrayList arrayDateDeleted=new ArrayList();
arrayDateDeleted.add(currentCell.getStringCellValue());
req.setParam("literal.DateDeleted", String.valueOf(arrayDateDeleted.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
else if(currentCell.getColumnIndex()==16)
ArrayList arrayintRev=new ArrayList();
arrayintRev.add(currentCell.getStringCellValue());
req.setParam("literal.intRev", String.valueOf(arrayintRev.get(i)));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
//System.out.println(arrayintRev.get(i));
req.setAction(AbstractUpdateRequest.ACTION.COMMIT, true, true);
solr.request(req);
catch (FileNotFoundException e)
e.printStackTrace();
catch(IOException e)
e.printStackTrace();
And I'm getting this error. I don't have any field named like 'stream_size'. Why it gives me this error?
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
SLF4J: Failed to load class "org.slf4j.impl.StaticMDCBinder".
SLF4J: Defaulting to no-operation MDCAdapter implementation.
SLF4J: See http://www.slf4j.org/codes.html#no_static_mdc_binder for further details.
Exception in thread "main" org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr/archiveCore: ERROR: [doc=5927bfa2-0ee2-4cca-95cb-47ddccdb9285] unknown field 'stream_size'
at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:610)
at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:279)
at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:268)
at org.apache.solr.client.solrj.SolrClient.request(SolrClient.java:1219)
at org.solr.PoiJava.main(PoiJava.java:96)
java solr apache-poi solrj
java solr apache-poi solrj
asked Mar 25 at 6:13
Mustafa Berkan DemirMustafa Berkan Demir
618
618
Post your schema. I am sure there is no "stream_size" field in it.
– s1m3n
Mar 25 at 15:12
add a comment |
Post your schema. I am sure there is no "stream_size" field in it.
– s1m3n
Mar 25 at 15:12
Post your schema. I am sure there is no "stream_size" field in it.
– s1m3n
Mar 25 at 15:12
Post your schema. I am sure there is no "stream_size" field in it.
– s1m3n
Mar 25 at 15:12
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55332136%2fhow-to-fix-contentstreamupdaterequest-stream-size-field-error%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55332136%2fhow-to-fix-contentstreamupdaterequest-stream-size-field-error%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Post your schema. I am sure there is no "stream_size" field in it.
– s1m3n
Mar 25 at 15:12