Quantcast
Channel: Pentaho Community Forums
Viewing all 16689 articles
Browse latest View live

Spoon Throws JAXBContext error when connecting to remote Linux repository

$
0
0
I am running Kettle - Spoon 4.3.0-GA using Java JDK 1.7.0_25 on a Windows 7 machine.

I have copied over a repositories.xml file from another WinXP SP3 machine's installation of Kettle - Spoon 4.2.1-GA that runs on Java 1.6.0_25

When I try to connect to one of the Linux repositories defined in the copied repositories.xml file, I get an error "Repository login failed - Unable to create JAXBContext".

Connecting to the same Linux repository works fine on the WinXP machine using the same login credentials.
Connecting to a SQL Server based repository on the Win7 machine works fine as well.

What should I be looking for in the Win7 machine's config to fix the error? Is it in the Java, the Spoon config or even the Linux repository itself?

Stack Trace below
Code:

org.pentaho.di.core.exception.KettleException:
javax.xml.ws.WebServiceException: Unable to create JAXBContext
Unable to create JAXBContext

    at org.pentaho.di.repository.pur.PurRepository.connect(SourceFile:337)
    at org.pentaho.di.ui.repository.RepositoriesHelper.loginToRepository(RepositoriesHelper.java:251)
    at org.pentaho.di.ui.repository.controllers.RepositoriesController$3.run(RepositoriesController.java:215)
    at java.lang.Thread.run(Thread.java:724)
Caused by: javax.xml.ws.WebServiceException: Unable to create JAXBContext
    at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:166)
    at com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:94)
    at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:258)
    at com.sun.xml.ws.client.WSServiceDelegate.createSEIPortInfo(WSServiceDelegate.java:661)
    at com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:649)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:343)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:326)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:364)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:368)
    at javax.xml.ws.Service.getPort(Service.java:188)
    at org.pentaho.di.repository.pur.j.a(SourceFile:66)
    at org.pentaho.di.repository.pur.PurRepository.connect(SourceFile:290)
    ... 3 more
Caused by: java.security.PrivilegedActionException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
java.lang.StackTraceElement does not have a no-arg default constructor.
    this problem is related to the following location:
        at java.lang.StackTraceElement
        at public java.lang.StackTraceElement[] java.lang.Throwable.getStackTrace()
        at java.lang.Throwable
        at public java.lang.Throwable[] com.pentaho.pdi.ws.jaxws.RepositorySyncExceptionBean.suppressed
        at com.pentaho.pdi.ws.jaxws.RepositorySyncExceptionBean

    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:153)
    ... 14 more
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
java.lang.StackTraceElement does not have a no-arg default constructor.
    this problem is related to the following location:
        at java.lang.StackTraceElement
        at public java.lang.StackTraceElement[] java.lang.Throwable.getStackTrace()
        at java.lang.Throwable
        at public java.lang.Throwable[] com.pentaho.pdi.ws.jaxws.RepositorySyncExceptionBean.suppressed
        at com.pentaho.pdi.ws.jaxws.RepositorySyncExceptionBean

    at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
    at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:472)
    at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:302)
    at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1140)
    at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:154)
    at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:106)
    at com.sun.xml.ws.developer.JAXBContextFactory$1.createJAXBContext(JAXBContextFactory.java:109)
    at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:161)
    at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:154)
    ... 16 more

Thanks for any help you can give.

Combine Rows With different fields

$
0
0
Hi all,

I am a newbie of Kettle and have a issues would like to seek for help.

I am implementing a transformation to combine two input sources (XML or Excel).
They shares some common columns. And I would like to have a output like this.

e.g.
Source A
Col1 Col2
1 2
3 4

Source B
Col2 Col3
5 6
7 8

Result
Col1 Col2 Col3
1 2 null
3 4 null
null 5 6
null 7 8

Any ideas for a transformation to achieve this output?
Thanks.

P.S. Kettle 4.2.0 is the current version for my development

Step to map several patterns from a table

$
0
0
Hi,
I want to map input values using a table with pattern values. My table is this:

Row 1: Pattern = Acrobat; Output value = Adobe Acrobat
Row 2: Pattern = Windows; Output value = Microsoft Windows
...

With this table, I want to get when input = "Acrobat v6", output value = "Adobe Acrobat"
Another example, If input = "Windows 2008", output value = Microsoft Windows"

What step can I use? Some suggestion about this?
Thanks,
Alberto

MIgration

$
0
0
Hello,

I just downloaded this ETL tool and wanted to know more about this tool.
Actually we have an EDW and we make this historification in PL/SQL so in Oracle DB.
It is getting bigger and bigger and time for processing everything take more and more time... I wanted to see if, thanks to this kind of tool, it could be done in an easy/fast way.
My question is we have 300+ tables to historify, so in PL/SQL it is easy to do it, but heavy for the system... a schema for source tables, stagging, dwh and one for datamarts.
How to historify each table in an easy way. Are there some examples to follow ?

Thanks in advance for your help.

Combination lookup/update

$
0
0
I am confused - I read the documentation of this step and I _assume_ it is the correct one to accomplish this:
1) Look up in target table key (in my case customer_id, value_date)
2) If not exists insert it with all dimensional information (about 50 columns or so) and create surrogate key
3) If exists update dimensions if there is any change

OK i missed that I was supposed to do an update after combination lookup/update step

I see that surrogate is generated and fields updated in subsequent update step BUT I was forced to use Blocking step before update since I got lookup failure error.

Is this a bug?

Why I cannot connet to SVN from eclipse ???

Scheduler.xaction file in CDA actions directory exection failed

$
0
0
hi all, im posting this about an xaction file here because i just installed the CDA plugin and saiku-reporting on my pentaho server and i get this message a lot when i try to boot the server, and the only scheduler.xaction file on it is in system/CDA/actions folder. so what's wrong with it, why does it fail ? and do i have to worry ?

this is the log detail i get on the console
Code:

10:51:08,775 ERROR [SolutionEngine] 41d4c835-dfd8-11e2-9dbf-e7dfdd6ae001:SOLUTION-ENGINE:scheduler.xaction: Action Seque
nce execution failed, see details below
| Error Time: vendredi 28 juin 2013 10 h 51 WEST
| Session ID: scheduler.xaction
| Instance Id: 41d4c835-dfd8-11e2-9dbf-e7dfdd6ae001
| Action Sequence: scheduler.xaction
| Execution Stack:
EXECUTING ACTION: Scheduler (org.pentaho.platform.engine.services.solution.PojoComponent)
| Action Class: org.pentaho.platform.engine.services.solution.PojoComponent
| Action Desc: Scheduler
| Loop Index (1-based): 0
Stack Trace:org.pentaho.platform.api.engine.ActionExecutionException: RuntimeContext.ERROR_0017 - [fr_18] Activity faile
d to execute
        at org.pentaho.platform.engine.services.runtime.RuntimeContext.executeComponent(RuntimeContext.java:1325)
        at org.pentaho.platform.engine.services.runtime.RuntimeContext.executeAction(RuntimeContext.java:1262)
        at org.pentaho.platform.engine.services.runtime.RuntimeContext.performActions(RuntimeContext.java:1161)
        at org.pentaho.platform.engine.services.runtime.RuntimeContext.executeLoop(RuntimeContext.java:1105)
        at org.pentaho.platform.engine.services.runtime.RuntimeContext.executeSequence(RuntimeContext.java:987)
        at org.pentaho.platform.engine.services.runtime.RuntimeContext.executeSequence(RuntimeContext.java:897)
        at org.pentaho.platform.engine.services.solution.SolutionEngine.executeInternal(SolutionEngine.java:399)
        at org.pentaho.platform.engine.services.solution.SolutionEngine.execute(SolutionEngine.java:317)
        at org.pentaho.platform.engine.services.solution.SolutionEngine.execute(SolutionEngine.java:193)
        at org.pentaho.platform.engine.services.BaseRequestHandler.handleActionRequest(BaseRequestHandler.java:159)
        at org.pentaho.platform.scheduler.QuartzExecute.execute(QuartzExecute.java:198)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

and here is the content of the scheduler.xaction file
Code:

<?xml version="1.0" encoding="UTF-8"?>
<action-sequence>
  <title>CDA Query Scheduler Action</title>
  <version>0.1</version>
  <logging-level>INFO</logging-level>
  <documentation>
    <author>Webdetails</author>
    <description>CDA Scheduler</description>
    <icon>/style/icons/jfree1.png</icon>
    <help/>
    <result-type>report</result-type>
  </documentation>
  <actions>
    <action-definition>
      <action-name>Send email with report in body and in attachment</action-name>
      <component-name>org.pentaho.platform.engine.services.solution.PojoComponent</component-name>
      <action-type>Scheduler</action-type>
      <action-inputs/>
      <component-definition>
        <class>CdaScheduler</class>
      </component-definition>
    </action-definition>
  </actions>
</action-sequence>

in fact there is two files in that directory backupScheduler.xaction and scheduler.xaction and the on the administration console its the backupscheduler.xaction that is programmed to fire in +1 day by CDA group after i use saiku reporting wich rely on CDA even if i dont instruct it to schedul anything

thank you for your insights

CDF is Licensed or Free..??

$
0
0
Hi

I'm using Community version of Pentaho so i just wanted to know whether CDF is a free or licensed version..if it is free plz get me download link for it..

Generated the EXCEL in java using Apache Excel Report(Excel found unreadable content)

$
0
0
Hi,I have generated the EXCEL in java using Apache POI XSSF. After generating the report I am trying to open the excel file,it is showing error("Excel found unreadable content").Please find the below source code: public void writeSheet(ArrayList<ArrayList<String>> data, String sheetName) {

File file = new File(fileName);
XSSFWorkbook workbook = new XSSFWorkbook();
out = new FileOutputStream(file);
XSSFSheet sheet = workbook.createSheet(sheetName);
ArrayList<String> cells = new ArrayList<String>();
XSSFCell cell = null;
int noofRows = data.size();
XSSFRow row = null;
int noofColumns = 0;
String content = "";
for(int i = 0 ; i < noofRows ; i++) {
row = sheet.createRow(i);
cells = data.get(i);
noofColumns = cells.size();
for(int j = 0 ; j < noofColumns ; j++) {

cell = row.createCell(j);
content = cells.get(j);
setCellAttibutes(cell, content);
}
}
}
public XSSFCell setCellAttibutes(XSSFCell cell, String code ) {
XSSFCellStyle style = workbook.createCellStyle();
String str[] = code.split("<csp>");
if(str.length== 0) {
cell.setCellValue(code);
style.setFillPattern(XSSFCellStyle.SOLID_FOREGROUND);
style.setFillForegroundColor(IndexedColors.WHITE.getIndex());
} else if(str.length == 1) {
cell.setCellValue(str[0]);
style.setFillPattern(XSSFCellStyle.SOLID_FOREGROUND);
style.setFillForegroundColor(IndexedColors.WHITE.getIndex());
} else if(str.length == 2) {
style.setFillPattern(XSSFCellStyle.SOLID_FOREGROUND);
style.setFillForegroundColor(IndexedColors.valueOf(str[0]).getIndex());
cell.setCellValue(str[1]);
} else if(str.length == 3) {
HSSFHyperlink url_link=new HSSFHyperlink(HSSFHyperlink.LINK_URL);
url_link.setAddress(str[0]);
/cell.setHyperlink(url_link);
style.setFillPattern(XSSFCellStyle.SOLID_FOREGROUND);
style.setFillForegroundColor(IndexedColors.valueOf(str[1]).getIndex());
cell.setCellValue(str[2]);
}

style.setBorderBottom(XSSFCellStyle.BORDER_THIN);
style.setBorderTop(XSSFCellStyle.BORDER_THIN);
style.setBorderRight(XSSFCellStyle.BORDER_THIN);
style.setBorderLeft(XSSFCellStyle.BORDER_THIN);

cell.setCellStyle(style);

return cell;
}

setting a table input with an sql querry comming from a text file

$
0
0
Hi all,
I'm currently working on PDI and I want to know if it's possible to set a table input with an sql querry coming from a file ( csv for example).
In fact I have several identical databases and I want to get the same information from all the databases.
Currently , I use the component table input where I set manually my querry ( copy and paste in all the inputs), but I want to write the querry only once and after reuse it in all my table inputs without paste it or rewrite it.
So if you have any idea of what to do, I'm all ears.
Thank you for your availability :)

Javascript jar file for Transforms called from java

$
0
0
I've created a number of transforms that I'm calling from a java-based webapp. All work fine except for the ktr with a "Script Values / Mod" widget in it. I've put js.jar and js-1.7R1.jar in the classpath to no avail. The transform runs fine in Spoon. The error is "NoClassDefFoundError: org/mozilla/javascript.ContextFactory".

The other transforms find their .jar files just fine (kettle-*.jar, scannotation-1.0.2.jar, secondstring.jar, etc.) but the javascript one just isn't working.

This is a showstopper for me right now so any help is greatly appreciated.

Thanks.

Fred

MDX Set as a single Component

$
0
0
Hi all,
i have the follow issue.
I have a set called [X] and it is defined as:

{[Localita].[Comune].[TORINO], [Localita].[Comune].[AOSTA], [Localita].[Comune].[PERUGIA], [Localita].[Comune].[TRIESTE], [Localita].[Comune].[ANCONA], [Localita].[Comune].[CAGLIARI], [Localita].[Comune].[ROMA], [Localita].[Comune].[PESCARA], [Localita].[Comune].[CAMPOBASSO], [Localita].[Comune].[BARI], [Localita].[Comune].[POTENZA], [Localita].[Comune].[REGGIO DI CALABRIA], [Localita].[Comune].[PALERMO], [Localita].[Comune].[NAPOLI], [Localita].[Comune].[MILANO], [Localita].[Comune].[VERONA], [Localita].[Comune].[TRENTO], [Localita].[Comune].[GENOVA], [Localita].[Comune].[BOLOGNA], [Localita].[Comune].[FIRENZE]}

where [Localita] is a cube dimension and [Comune] is a Level of this hierarchy. This set maps a list of cities.
Now, i want to execute a query on this set, but i want to calculate a measure over all the members as they were a unique element. I explain better with an example.
If I execute the follow query:

select

{[Measures].[Thr. Down. Medio]} on columns,
{[X]} on rows
from [MyCUBE]

I obtain an output as on the image i have attached, that is a row for each city of my set. Instead, i want to use it as a single element. So i want to obtain an output with only one row.


Thanks in advance.
Yamas.

Marco

Immagine.png
Attached Images

Loading a kettle job through JAVA code, with SqoopImport fails

$
0
0
Hi All,

I'm trying to a load a kettle job with a Sqoop Import through JAVA code. The creating JobMeta, I'm encoutnering Kettle exception. The same happens for HadoopCopyFiles plugin. Any suggesstion would be helpful.


===============================================================
CODE
===============================================================
String path = getClass().getClassLoader().getResource("TestOracle.kjb").getPath();
log.info(path);
JobMeta meta = new JobMeta(path, null);
meta.setParameterValue("repos.directory", "jobs");


=================================================================================
STACKTRACE
=================================================================================
org.pentaho.di.core.exception.KettleXMLException:
Unable to load the job from XML file [/home/cloudera/workspace/Pentaho_Run/jobs/TestOracle.kjb]
Unable to load job info from XML node
Unable to read Job Entry copy info from XML node : org.pentaho.di.core.exception.KettleStepLoaderException:
No valid step/plugin specified (jobPlugin=null) for SqoopImport

No valid step/plugin specified (jobPlugin=null) for SqoopImport


at org.pentaho.di.job.JobMeta.<init>(JobMeta.java:879)
at org.pentaho.di.job.JobMeta.<init>(JobMeta.java:831)
at test.pentaho.bigdata.SqoopTest.runJob(SqoopTest.java:35)
at test.pentaho.bigdata.SqoopTest.main(SqoopTest.java:20)
Caused by: org.pentaho.di.core.exception.KettleXMLException:
Unable to load job info from XML node
Unable to read Job Entry copy info from XML node : org.pentaho.di.core.exception.KettleStepLoaderException:
No valid step/plugin specified (jobPlugin=null) for SqoopImport



Capture.PNG
Attached Images

IAuditEntry Logging Location

$
0
0
I'm trying to debug a stacktrace on my local pentaho bi-server and I've been reading about the IAuditEntry logging interface. From what I've read, it sounds like the community edition logs the audit messages to a file and the enterprise edition logs them to a SQL table. However, I haven't been able to figure out where the file is located which is created by IAuditEntry.

I've looked in my webserver's log file and there are no log messages from the AuditHelper class which logs audit messages. Is there a file which configures where the IAuditEntry log entries are saved to? I looked in pentaho-solutions/system/pentahoObjects.spring.xml and I do have the following line:

Code:

<bean id="IAuditEntry" class="org.pentaho.platform.engine.services.audit.AuditFileEntry" scope="singleton" />
So the auditing should be turned on, I'm just configured about where it is logging to. Any ideas?

Thanks!

DatabaseLoader Exception

$
0
0
hi

I try to do this but get an exception:

DatabaseLoader query=new DatabaseLoader();
String url="jdbc:postgresql://localhost:5432/"+dataBase+"?"+"user="+usuario+"&"+"password="+pass+"";
query.setUrl(url);
query.setQuery(sql);

Instances structure = query.getStructure();
structure.setClassIndex(1);

// train NaiveBayes
NaiveBayesUpdateable nb = new NaiveBayesUpdateable();
nb.buildClassifier(structure);
Instance current;
while ((current = query.getNextInstance(structure)) != null){
nb.updateClassifier(current);
}
System.out.println(nb);


java.io.IOException:Table does not exist according to metadata from JDBC driver. If you are convinced the table exists, set 'checkForTable' to 'False' in your DatabaseUtils.props file and try again.

thanks

Book Review: Mondrian in action by William D. Back, Nicholas Goodman & Julian Hyde

Freeform Component Help

$
0
0
Can anyone provide an example on how to fetch data in the freeform "Custom Chart Script"? When I look at a table component I see this.rawData.resultset, that's what I'm looking for. Thanks in advance.

Also, I'm going to write the component using jquery $('#'+this.htmlObject).append(). Is there a better method?

Final question, should I just write a custom component instead of using freeform?

Postgres DataSet

$
0
0
Hi
I have some time working with weka have had many problems with the java heap space I have it set to max-Xmx1600M and I still had the problem of memory do I need any suggestions or which is the most desirable one requirement is that the data I have to extract the postgres database.
I have understood that I should use incremental algorithms but try using DatabaseLoader to postgres and does not support incremental load
I need to hear suggestions

thanksss.....

Design fact updates

$
0
0
Hi

How to handle scd type2 updates in the fact table ? I am not doing incremental loading on the fact table. Any good approach to follow. Can anyone suggest me good solution when i am loading the data into the fact table. IF we have millions of rows how to do this without hitting the performance.

Generating New Report error. "Error Generating XUL, invalidcharactererror code 5"

$
0
0
Client receives this error when trying to create a new report. We have been unable to duplicate this error. Client running IE8.

The following is from the client:
In the system to generate reports at the first attempt the error occurred. I logged into the console and click "New Report". (After this error system, the system stopped responding with message “Please Wait Operation in progress...”)

And the image they passed along:
Screen Shot 2013-06-29 at 10.10.56 AM.jpg

Any help would be appreciated.
Attached Images
Viewing all 16689 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>