[nbj2ee] org.openide.util.NbPreferences getPreferencesProvider WARNING: NetBeans implementation of Preferences not found

  • From: "kokyeong91" < >
  • To:
  • Subject: [nbj2ee] org.openide.util.NbPreferences getPreferencesProvider WARNING: NetBeans implementation of Preferences not found
  • Date: Wed, 27 Mar 2013 22:24:38 -0400

i has include the org.openide.util jar and org.openide.util-lookup jar 
please help mi~ 
this is my code , i have facing this error 

Mar 27, 2013 5:18:26 PM org.openide.util.NbPreferences getPreferencesProvider 
WARNING: NetBeans implementation of Preferences not found 
[INFO] AuthChallengeProcessor - -basic authentication scheme selected 
java.lang.Exception: 1 - jsexception.null.uri 
at 
com.jaspersoft.ireport.jasperserver.ws.WSClient.runReport(WSClient.java:403) 
at 
com.jaspersoft.ireport.jasperserver.ws.WSClient.runReport(WSClient.java:320) 
at pdfprint.Pdfprint.main(Pdfprint.java:40) 
Exception in thread "main" java.lang.Exception: 1 - jsexception.null.uri 
at 
com.jaspersoft.ireport.jasperserver.ws.WSClient.runReport(WSClient.java:403) 
at 
com.jaspersoft.ireport.jasperserver.ws.WSClient.runReport(WSClient.java:320) 
at pdfprint.Pdfprint.main(Pdfprint.java:40) 


package pdfprint; 
import java.util.HashMap; 
import net.sf.jasperreports.engine.JasperPrint; 
import net.sf.jasperreports.engine.export.JRPdfExporter; 
import net.sf.jasperreports.engine.export.JRPdfExporterParameter; 

import 
com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceDescriptor; 
import com.jaspersoft.ireport.jasperserver.JServer; 
import com.jaspersoft.ireport.jasperserver.ws.WSClient; 
import java.util.Locale; 
import net.sf.jasperreports.view.JasperViewer; 



public class Pdfprint { 

public static void main (String[] args) throws Exception { 
JServer server = new JServer(); 
server.setUrl("http://localhost:8080/jasperserver/services/repository";); 
server.setUsername("jasperadmin"); 
server.setPassword("jasperadmin"); 

WSClient client = server.getWSClient(); 

//System.out.println("Version Check: " + client.getVersion()); 

ResourceDescriptor rd = new ResourceDescriptor(); 
rd.setWsType(ResourceDescriptor.TYPE_REPORTUNIT); 
rd.setUriString("/reports/samples/AllAccounts"); 


HashMap params = new HashMap(); 
params.put("Plb_Company", "Company"); 
params.put("Plb_Address", "Address"); 
params.put("Plb_Title","Title"); 
params.put("PCondition","SELECT * FROM v_doc_ticketing WHERE 
f_doc_no='MYCSB0000096'"); 

//System.out.println(params); 
JasperPrint jp = client.runReport(rd, params); 
JasperViewer.viewReport(jp, false,Locale.GERMAN); 

JRPdfExporter exporter = new JRPdfExporter(); 
exporter.setParameter(JRPdfExporterParameter.JASPER_PRINT, jp); 





}






[nbj2ee] org.openide.util.NbPreferences getPreferencesProvider WARNING: NetBeans implementation of Preferences not found

kokyeong91 03/28/2013

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close